Skip to content

Add createTaskFlow/editTaskFlow actions#2188

Merged
hillary-mutisya merged 1 commit intomicrosoft:mainfrom
hillary-mutisya:scriptflowFixes3
Apr 11, 2026
Merged

Add createTaskFlow/editTaskFlow actions#2188
hillary-mutisya merged 1 commit intomicrosoft:mainfrom
hillary-mutisya:scriptflowFixes3

Conversation

@hillary-mutisya
Copy link
Copy Markdown
Collaborator

TaskFlow:

  • Add createTaskFlow action for direct flow registration from reasoning (name, description, parameters, script, grammarPatterns)
  • Add editTaskFlow action for modifying existing flows
  • Add deleteTaskFlow action for removing flows
  • Extract ParameterDefinition interface from inline type in TaskFlowStore
  • Expand TaskFlowStore with hasFlow(), saveFlowFromAction(), and deleteFlow() methods for CRUD operations
  • Fix taskFlowScriptApi to handle both array and record parameter formats and support optional testValue fields

ScriptFlow:

  • Add testScriptFlow action for test-then-register pattern — executes a script in sandbox without saving, allowing validation before registration
  • Add hasFlow() to ScriptFlowStore for duplicate checking

Dispatcher:

  • Expose CommandHandlerContext via _systemContext on sessionContext so agents executing nested actions (e.g., TaskFlow calling player actions) resolve the correct system context
  • Fix actionHandlers to use _systemContext fallback for nested execution
  • Reload dynamic schemas and grammars after schema reload in appAgentManager to pick up newly registered flows immediately

 TaskFlow:
  - Add createTaskFlow action for direct flow registration from reasoning (name, description, parameters, script, grammarPatterns)
  - Add editTaskFlow action for modifying existing flows
  - Add deleteTaskFlow action for removing flows
  - Extract ParameterDefinition interface from inline type in TaskFlowStore
  - Expand TaskFlowStore with hasFlow(), saveFlowFromAction(), and deleteFlow() methods for CRUD operations
  - Fix taskFlowScriptApi to handle both array and record parameter formats and support optional testValue fields

  ScriptFlow:
  - Add testScriptFlow action for test-then-register pattern — executes a script in sandbox without saving, allowing validation before registration
  - Add hasFlow() to ScriptFlowStore for duplicate checking

  Dispatcher:
  - Expose CommandHandlerContext via _systemContext on sessionContext so agents executing nested actions (e.g., TaskFlow calling player actions) resolve the correct system context
  - Fix actionHandlers to use _systemContext fallback for nested execution
  - Reload dynamic schemas and grammars after schema reload in appAgentManager to pick up newly registered flows immediately
@hillary-mutisya hillary-mutisya added this pull request to the merge queue Apr 11, 2026
Merged via the queue into microsoft:main with commit a84849f Apr 11, 2026
13 of 15 checks passed
@hillary-mutisya hillary-mutisya deleted the scriptflowFixes3 branch April 12, 2026 01:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant