ralphflow-dsh 2.3.1 → 2.4.0
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/README.md +47 -21
- package/graphs/codewiki/format.md +362 -0
- package/graphs/codewiki/graph.yaml +39 -0
- package/graphs/codewiki/nodes/assemble.md +24 -0
- package/graphs/codewiki/nodes/core-pages.md +17 -0
- package/graphs/codewiki/nodes/module-pages.md +18 -0
- package/graphs/codewiki/nodes/operations-pages.md +18 -0
- package/graphs/codewiki/nodes/survey.md +22 -0
- package/lib/asset-path.d.ts +59 -0
- package/lib/asset-path.js +181 -0
- package/lib/assets.d.ts +42 -0
- package/lib/assets.js +86 -0
- package/lib/client/phase.d.ts +29 -0
- package/lib/client/phase.js +86 -0
- package/lib/client/selection.d.ts +28 -0
- package/lib/client/selection.js +9 -0
- package/lib/client/status-source.d.ts +3 -1
- package/lib/client/status-source.js +3 -2
- package/lib/client/status.js +49 -13
- package/lib/client/viewer.d.ts +18 -0
- package/lib/client/viewer.js +540 -0
- package/lib/client.js +1159 -64
- package/lib/engine.d.ts +111 -47
- package/lib/engine.js +473 -320
- package/lib/facade.d.ts +175 -0
- package/lib/facade.js +553 -0
- package/lib/graph/agent-registry.d.ts +4 -0
- package/lib/graph/agent-registry.js +20 -0
- package/lib/graph/asset.d.ts +47 -0
- package/lib/graph/asset.js +276 -0
- package/lib/graph/assets.d.ts +47 -0
- package/lib/graph/assets.js +224 -0
- package/lib/graph/branches.d.ts +9 -0
- package/lib/graph/branches.js +13 -0
- package/lib/graph/check.d.ts +23 -0
- package/lib/graph/check.js +46 -0
- package/lib/graph/engine.d.ts +55 -0
- package/lib/graph/engine.js +2002 -0
- package/lib/graph/report.d.ts +9 -0
- package/lib/graph/report.js +117 -0
- package/lib/graph/state.d.ts +244 -0
- package/lib/graph/state.js +358 -0
- package/lib/graph/workspace.d.ts +68 -0
- package/lib/graph/workspace.js +262 -0
- package/lib/index.js +150 -47
- package/lib/owner.d.ts +34 -0
- package/lib/owner.js +49 -0
- package/lib/paths.d.ts +12 -0
- package/lib/paths.js +44 -0
- package/lib/pause.d.ts +12 -0
- package/lib/pause.js +19 -0
- package/lib/skills.d.ts +17 -30
- package/lib/skills.js +85 -21
- package/lib/status-contract.d.ts +114 -1
- package/lib/status-contract.js +106 -4
- package/lib/status-service.d.ts +5 -1
- package/lib/status-service.js +8 -1
- package/lib/tools.d.ts +14 -6
- package/lib/tools.js +88 -60
- package/lib/unfinished.d.ts +11 -0
- package/lib/unfinished.js +18 -0
- package/lib/verifier-preset.d.ts +40 -0
- package/lib/verifier-preset.js +126 -0
- package/lib/verify.d.ts +63 -9
- package/lib/verify.js +282 -72
- package/package.json +50 -38
- package/skills/ralphflow-create/SKILL.md +32 -0
- package/skills/ralphflow-create/graph-authoring.md +85 -0
- package/skills/ralphflow-create/matt/LICENSE +21 -0
- package/skills/ralphflow-create/matt/SHA256SUMS +6 -0
- package/skills/ralphflow-create/matt/SKILL-MECHANICS.md +22 -0
- package/skills/ralphflow-create/matt/SOURCE.md +12 -0
- package/skills/ralphflow-create/matt/grilling.md +30 -0
- package/skills/ralphflow-create/matt/to-spec.md +75 -0
- package/skills/ralphflow-create/matt/to-tickets.md +105 -0
- package/skills/ralphflow-create/matt/writing-for-agents.md +81 -0
- package/skills/ralphflow-create/ralphflow-authoring.md +31 -0
- package/skills/ralphflow-create/testing-workflow.md +60 -0
- package/{references → skills/ralphflow-create}/workflow-authoring.md +25 -5
- package/workflows/create-graph/steps/graph.md +17 -0
- package/workflows/create-graph/workflow.yaml +77 -0
- package/workflows/loop/workflow.yaml +23 -0
- package/lib/create.d.ts +0 -2
- package/lib/create.js +0 -17
- package/workflows/loop.yaml +0 -45
- /package/workflows/{spec.yaml → spec/workflow.yaml} +0 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { Context } from "@deepseek-ai/cordis";
|
|
2
|
+
import type { Agent } from "@deepseek-ai/dsh-agent";
|
|
3
|
+
import { type EnginePorts, type ToolResult } from "../engine.js";
|
|
4
|
+
import { type GraphWorkflowEntry } from "./assets.js";
|
|
5
|
+
import { type GraphInstanceState, type GraphRunProjection } from "./state.js";
|
|
6
|
+
export interface GraphEngineOptions {
|
|
7
|
+
ctx: Context;
|
|
8
|
+
ports: EnginePorts;
|
|
9
|
+
workspace: string;
|
|
10
|
+
}
|
|
11
|
+
export declare function createGraphEngine(options: GraphEngineOptions): {
|
|
12
|
+
kind: "graph";
|
|
13
|
+
root: string;
|
|
14
|
+
graphsDir: string;
|
|
15
|
+
instancesDir: string;
|
|
16
|
+
reportsDir: string;
|
|
17
|
+
projectDir: string;
|
|
18
|
+
ensureLayout: () => void;
|
|
19
|
+
listWorkflows: () => GraphWorkflowEntry[];
|
|
20
|
+
loadWorkflow: (name: string) => import("./assets.js").GraphLoadResult;
|
|
21
|
+
readState: (instId: string) => GraphInstanceState | null;
|
|
22
|
+
listStates: () => Array<{
|
|
23
|
+
id: string;
|
|
24
|
+
state: GraphInstanceState;
|
|
25
|
+
}>;
|
|
26
|
+
instanceDir: (instId: string) => string;
|
|
27
|
+
artifactsDirOf: (state: GraphInstanceState) => string;
|
|
28
|
+
start: (workflowName: string, task: string, sessionId: string) => Promise<ToolResult>;
|
|
29
|
+
submitFromAgent: (agent: Agent | undefined, summary?: string, unfinished?: string[]) => Promise<ToolResult | null>;
|
|
30
|
+
continueInstance: (sessionId: string, instanceRef?: string) => Promise<ToolResult>;
|
|
31
|
+
pauseForUserStop: (sessionId: string) => ToolResult;
|
|
32
|
+
cancelInstance: (sessionId: string, instanceRef?: string, reason?: string) => Promise<ToolResult>;
|
|
33
|
+
cleanupInstance: (instanceRef?: string) => Promise<ToolResult>;
|
|
34
|
+
statusOf: (sessionId: string, instanceRef?: string) => ToolResult;
|
|
35
|
+
listAll: () => ToolResult;
|
|
36
|
+
diagnose: () => ToolResult;
|
|
37
|
+
restore: () => void;
|
|
38
|
+
respond: (agent: Agent | undefined, text: string, todoId?: string) => string;
|
|
39
|
+
remindToSubmit: (sessionId: string) => {
|
|
40
|
+
remind: boolean;
|
|
41
|
+
message?: string;
|
|
42
|
+
summary?: string;
|
|
43
|
+
};
|
|
44
|
+
uiStatus: (sessionId: string) => {
|
|
45
|
+
projection: GraphRunProjection | null;
|
|
46
|
+
error: string | null;
|
|
47
|
+
};
|
|
48
|
+
activeInstanceOfSession: (sessionId: string) => {
|
|
49
|
+
id: string;
|
|
50
|
+
state: GraphInstanceState;
|
|
51
|
+
} | undefined;
|
|
52
|
+
syncSession: (sessionId: string) => void;
|
|
53
|
+
projectionOf: (state: GraphInstanceState, id: string) => GraphRunProjection;
|
|
54
|
+
};
|
|
55
|
+
export type GraphEngine = ReturnType<typeof createGraphEngine>;
|