@agimon-ai/doompi-workflow 0.0.1-alpha.95 → 0.0.1-alpha.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/extensions/pi.cjs +28 -7
- package/dist/extensions/pi.cjs.map +1 -1
- package/dist/extensions/pi.d.mts.map +1 -1
- package/dist/extensions/pi.mjs +28 -7
- package/dist/extensions/pi.mjs.map +1 -1
- package/dist/extensions/server.cjs +18 -6
- package/dist/extensions/server.cjs.map +1 -1
- package/dist/extensions/server.mjs +18 -6
- package/dist/extensions/server.mjs.map +1 -1
- package/dist/extensions/web.mjs +25 -11
- package/dist/extensions/web.mjs.map +1 -1
- package/package.json +10 -10
|
@@ -724,7 +724,8 @@ function createWorkflowServerRuntime(host, serverHost) {
|
|
|
724
724
|
},
|
|
725
725
|
name: LIST_TOOL,
|
|
726
726
|
label: "List Workflows",
|
|
727
|
-
description: "List workflow definitions
|
|
727
|
+
description: "List workflow definitions in this repository, not existing runs.",
|
|
728
|
+
promptGuidelines: ["Use list_workflows to discover definitions, not to find an existing run."],
|
|
728
729
|
parameters: z.toJSONSchema(feature.listWorkflowsTool.getInputSchema()),
|
|
729
730
|
executionMode: "serial",
|
|
730
731
|
async execute(_toolCallId, parameters, signal, _onUpdate, context) {
|
|
@@ -746,7 +747,8 @@ function createWorkflowServerRuntime(host, serverHost) {
|
|
|
746
747
|
},
|
|
747
748
|
name: LAUNCH_TOOL,
|
|
748
749
|
label: "Launch Workflow",
|
|
749
|
-
description: "Start a workflow run
|
|
750
|
+
description: "Start a workflow run. A successful launch is not a completed workflow.",
|
|
751
|
+
promptGuidelines: ["Launch returns when a run starts, not when it finishes. Use the exact run key and separate workspace from its launch result for workflow_run status, not Agiflow project or job identifiers.", "Do not relaunch a healthy running workflow merely because it has not completed."],
|
|
750
752
|
parameters: z.toJSONSchema(feature.runTool.getInputSchema()),
|
|
751
753
|
executionMode: "serial",
|
|
752
754
|
async execute(_toolCallId, parameters, signal, _onUpdate, context) {
|
|
@@ -768,7 +770,13 @@ function createWorkflowServerRuntime(host, serverHost) {
|
|
|
768
770
|
},
|
|
769
771
|
name: RUN_TOOL,
|
|
770
772
|
label: "Workflow Run",
|
|
771
|
-
description: "Inspect
|
|
773
|
+
description: "Inspect a session-owned workflow by exact run key and separate workspace, or request cooperative control.",
|
|
774
|
+
promptGuidelines: [
|
|
775
|
+
"Use workflow_run status for the recorded stage, outcome, position, jobs, and steps. A successful status lookup is not evidence that the workflow completed.",
|
|
776
|
+
"For a healthy running workflow, summarize the recorded progress. Do not automatically search CLI commands or filesystem logs, relaunch, or diagnose failure merely because it remains running.",
|
|
777
|
+
"Investigate further when the run reports failure or staleness, or when the user requests diagnostics. Only status, pause, resume, and stop are supported here; stop only on user request.",
|
|
778
|
+
"Use exact registry runKey and separate workspace from the launch or status result. Agiflow project and job identifiers are not workflow run keys."
|
|
779
|
+
],
|
|
772
780
|
parameters: {
|
|
773
781
|
type: "object",
|
|
774
782
|
properties: {
|
|
@@ -783,9 +791,13 @@ function createWorkflowServerRuntime(host, serverHost) {
|
|
|
783
791
|
},
|
|
784
792
|
runKey: {
|
|
785
793
|
type: "string",
|
|
786
|
-
minLength: 1
|
|
794
|
+
minLength: 1,
|
|
795
|
+
description: "Exact registry run key from the launch result, without the workspace prefix. Not an Agiflow job ID."
|
|
796
|
+
},
|
|
797
|
+
workspace: {
|
|
798
|
+
type: "string",
|
|
799
|
+
description: "Workspace from the launch result, passed separately from runKey."
|
|
787
800
|
},
|
|
788
|
-
workspace: { type: "string" },
|
|
789
801
|
reason: { type: "string" },
|
|
790
802
|
expectedRunId: { type: "string" }
|
|
791
803
|
},
|
|
@@ -798,7 +810,7 @@ function createWorkflowServerRuntime(host, serverHost) {
|
|
|
798
810
|
const input = parameters;
|
|
799
811
|
const runs = readWorkflowRuns({ environment: host.context.environment }).filter((run) => runBelongsToSession(run, host.context.sessionId) && run.view.runKey === input.runKey && (input.workspace === void 0 || run.view.workspace === input.workspace));
|
|
800
812
|
if (runs.length !== 1) return {
|
|
801
|
-
...callResult({ error: runs.length === 0 ? "
|
|
813
|
+
...callResult({ error: runs.length === 0 ? "No matching workflow run was found in this session. This is a lookup failure, not evidence that the workflow failed. Use the exact runKey and separate workspace from its launch result, not Agiflow job identifiers." : "Specify the workspace for this run key." }),
|
|
802
814
|
isError: true
|
|
803
815
|
};
|
|
804
816
|
const run = runs[0].view;
|