@lzn1998/dsh-langgraph 1.0.0 → 1.0.1
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/docs/CONTEXT.md +15 -0
- package/docs/DETAIL.md +5 -0
- package/index.js +4 -0
- package/package.json +1 -1
package/docs/CONTEXT.md
CHANGED
|
@@ -64,6 +64,21 @@ The tool description covers mechanics (arguments, thread/resume/checkpoint, back
|
|
|
64
64
|
job), not selection; the section covers selection, not mechanics. This split is the main
|
|
65
65
|
rule for future edits.
|
|
66
66
|
|
|
67
|
+
## Leaving the shape open
|
|
68
|
+
|
|
69
|
+
The prompt does not prescribe a decision tree or concrete examples. It states the
|
|
70
|
+
boundaries and the available moves:
|
|
71
|
+
|
|
72
|
+
- a graph that is already registered and whose output matches → `langgraph_run`;
|
|
73
|
+
- a one-off task, or a task whose shape is still unclear → ordinary DSH tools;
|
|
74
|
+
- an ad-hoc fan-out whose shape is generated for this run → `workflow`;
|
|
75
|
+
- a shape worth reusing → a profile graph module (authored outside this tool).
|
|
76
|
+
|
|
77
|
+
`langgraph_run` cannot define a graph; the model is told not to invent an id. The only
|
|
78
|
+
concrete list in the prompt is the registry itself — data the model must select from, not
|
|
79
|
+
an example to copy. This is deliberate: the model should choose or compose the shape,
|
|
80
|
+
not imitate a canned one.
|
|
81
|
+
|
|
67
82
|
## Boundaries with DSH's own context
|
|
68
83
|
|
|
69
84
|
| DSH facility | Boundary |
|
package/docs/DETAIL.md
CHANGED
|
@@ -58,6 +58,11 @@ returns the full list and input schemas.
|
|
|
58
58
|
- The section sits just before the subagent guidance, after the `workflow` tool's
|
|
59
59
|
"only when the user asks" rule. An earlier placement at `TOOL_WORKFLOW` made the two
|
|
60
60
|
"workflow" instructions read as one.
|
|
61
|
+
- The section also says that `langgraph_run` only runs registered graphs and cannot
|
|
62
|
+
define one: one-off or still-unclear work stays on ordinary DSH tools (or `workflow`
|
|
63
|
+
for an ad-hoc fan-out), and a reusable shape belongs in a profile graph module. It
|
|
64
|
+
gives no concrete examples for that choice, so the model composes the shape instead
|
|
65
|
+
of copying one.
|
|
61
66
|
- Apart from the section and the two tool schemas, the plugin injects no runtime context;
|
|
62
67
|
per-session thread facts are read on demand with `langgraph_threads`. See
|
|
63
68
|
[CONTEXT.md](CONTEXT.md) for the mapping and the maintenance rules.
|
package/index.js
CHANGED
|
@@ -163,6 +163,10 @@ export function renderGraphPrompt(registry, ready) {
|
|
|
163
163
|
+ 'history or replay, a Trajectory sub-call record, or the graph description says it interrupts.',
|
|
164
164
|
'When no graph\'s output matches, use ordinary DSH tools; do not wrap a single tool call in a graph '
|
|
165
165
|
+ 'just for ceremony, and do not use the `workflow` tool as a substitute for a named graph.',
|
|
166
|
+
'`langgraph_run` only runs graphs already registered with this profile; it cannot define a new one, '
|
|
167
|
+
+ 'so do not invent an id. For one-off or still-unclear work, compose ordinary DSH tools (or use '
|
|
168
|
+
+ '`workflow` for an ad-hoc fan-out). A shape worth reusing belongs in a profile graph module, '
|
|
169
|
+
+ 'which then appears in this list.',
|
|
166
170
|
'A LangGraph thread is a durable checkpoint chain for one graph run, not a DSH Session. '
|
|
167
171
|
+ 'Use `langgraph_threads` to list, inspect, time-travel, or delete threads, or read a graph\'s topology.',
|
|
168
172
|
`Registered graphs:\n${lines.join('\n')}`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lzn1998/dsh-langgraph",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Durable LangGraph graphs as DSH tools: register TS/JS graphs, advertise them in the system prompt, run, resume and time-travel them, give them durable long-term memory, ask the user in the native question UI, run them as background jobs, delegate to DSH subagents, trace every node/tool/model call in Trajectory, draw their topology in a Web panel, and let graph nodes call this session's own tools.",
|
|
6
6
|
"repository": {
|