@namzu/sdk 6.1.0 → 7.0.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/CHANGELOG.md +361 -0
- package/dist/agents/ReactiveAgent.d.ts.map +1 -1
- package/dist/agents/ReactiveAgent.js +5 -0
- package/dist/agents/ReactiveAgent.js.map +1 -1
- package/dist/agents/SupervisorAgent.d.ts.map +1 -1
- package/dist/agents/SupervisorAgent.js +9 -0
- package/dist/agents/SupervisorAgent.js.map +1 -1
- package/dist/agents/__tests__/supervisor-coordinator-registration.test.js +31 -0
- package/dist/agents/__tests__/supervisor-coordinator-registration.test.js.map +1 -1
- package/dist/agents/runAgent.d.ts +19 -1
- package/dist/agents/runAgent.d.ts.map +1 -1
- package/dist/agents/runAgent.js +2 -0
- package/dist/agents/runAgent.js.map +1 -1
- package/dist/connector/mcp/__tests__/positional-arrays.test.d.ts +2 -0
- package/dist/connector/mcp/__tests__/positional-arrays.test.d.ts.map +1 -0
- package/dist/connector/mcp/__tests__/positional-arrays.test.js +142 -0
- package/dist/connector/mcp/__tests__/positional-arrays.test.js.map +1 -0
- package/dist/connector/mcp/adapter.d.ts.map +1 -1
- package/dist/connector/mcp/adapter.js +123 -8
- package/dist/connector/mcp/adapter.js.map +1 -1
- package/dist/constants/agent/index.d.ts +5 -0
- package/dist/constants/agent/index.d.ts.map +1 -1
- package/dist/constants/agent/index.js +5 -0
- package/dist/constants/agent/index.js.map +1 -1
- package/dist/constants/plugin/index.d.ts +15 -0
- package/dist/constants/plugin/index.d.ts.map +1 -1
- package/dist/constants/plugin/index.js +15 -0
- package/dist/constants/plugin/index.js.map +1 -1
- package/dist/gateway/__tests__/completion-inbox.test.js +17 -0
- package/dist/gateway/__tests__/completion-inbox.test.js.map +1 -1
- package/dist/gateway/completion-inbox.d.ts.map +1 -1
- package/dist/gateway/completion-inbox.js +17 -3
- package/dist/gateway/completion-inbox.js.map +1 -1
- package/dist/gateway/local.d.ts +11 -0
- package/dist/gateway/local.d.ts.map +1 -1
- package/dist/gateway/local.js +27 -1
- package/dist/gateway/local.js.map +1 -1
- package/dist/manager/agent/lifecycle.d.ts.map +1 -1
- package/dist/manager/agent/lifecycle.js +6 -0
- package/dist/manager/agent/lifecycle.js.map +1 -1
- package/dist/provider/thinking-support.d.ts +2 -1
- package/dist/provider/thinking-support.d.ts.map +1 -1
- package/dist/provider/thinking-support.js +14 -0
- package/dist/provider/thinking-support.js.map +1 -1
- package/dist/public-runtime.d.ts +1 -1
- package/dist/public-runtime.d.ts.map +1 -1
- package/dist/public-runtime.js +9 -1
- package/dist/public-runtime.js.map +1 -1
- package/dist/runtime/query/__tests__/context.test.js +18 -0
- package/dist/runtime/query/__tests__/context.test.js.map +1 -1
- package/dist/runtime/query/__tests__/effort-reaches-the-wire.test.d.ts +2 -0
- package/dist/runtime/query/__tests__/effort-reaches-the-wire.test.d.ts.map +1 -0
- package/dist/runtime/query/__tests__/effort-reaches-the-wire.test.js +118 -0
- package/dist/runtime/query/__tests__/effort-reaches-the-wire.test.js.map +1 -0
- package/dist/runtime/query/__tests__/run-survives-its-own-park.proc-test.d.ts +2 -0
- package/dist/runtime/query/__tests__/run-survives-its-own-park.proc-test.d.ts.map +1 -0
- package/dist/runtime/query/__tests__/run-survives-its-own-park.proc-test.js +122 -0
- package/dist/runtime/query/__tests__/run-survives-its-own-park.proc-test.js.map +1 -0
- package/dist/runtime/query/__tests__/tool-timeout.test.js +34 -0
- package/dist/runtime/query/__tests__/tool-timeout.test.js.map +1 -1
- package/dist/runtime/query/context.d.ts.map +1 -1
- package/dist/runtime/query/context.js +16 -1
- package/dist/runtime/query/context.js.map +1 -1
- package/dist/runtime/query/executor.d.ts.map +1 -1
- package/dist/runtime/query/executor.js +11 -1
- package/dist/runtime/query/executor.js.map +1 -1
- package/dist/runtime/query/iteration/index.d.ts.map +1 -1
- package/dist/runtime/query/iteration/index.js +5 -0
- package/dist/runtime/query/iteration/index.js.map +1 -1
- package/dist/runtime/query/iteration/phases/context.d.ts.map +1 -1
- package/dist/runtime/query/iteration/phases/context.js +43 -13
- package/dist/runtime/query/iteration/phases/context.js.map +1 -1
- package/dist/telemetry/__tests__/model-call-span.test.js +22 -4
- package/dist/telemetry/__tests__/model-call-span.test.js.map +1 -1
- package/dist/telemetry/__tests__/span-closure.test.js +12 -5
- package/dist/telemetry/__tests__/span-closure.test.js.map +1 -1
- package/dist/tools/builtins/__tests__/bash.proc-test.d.ts +2 -0
- package/dist/tools/builtins/__tests__/bash.proc-test.d.ts.map +1 -0
- package/dist/tools/builtins/__tests__/bash.proc-test.js +115 -0
- package/dist/tools/builtins/__tests__/bash.proc-test.js.map +1 -0
- package/dist/tools/builtins/__tests__/bash.test.d.ts +2 -0
- package/dist/tools/builtins/__tests__/bash.test.d.ts.map +1 -0
- package/dist/tools/builtins/__tests__/bash.test.js +65 -0
- package/dist/tools/builtins/__tests__/bash.test.js.map +1 -0
- package/dist/tools/builtins/bash.d.ts.map +1 -1
- package/dist/tools/builtins/bash.js +89 -17
- package/dist/tools/builtins/bash.js.map +1 -1
- package/dist/tools/coordinator/__tests__/allow-delegation.test.d.ts +2 -0
- package/dist/tools/coordinator/__tests__/allow-delegation.test.d.ts.map +1 -0
- package/dist/tools/coordinator/__tests__/allow-delegation.test.js +94 -0
- package/dist/tools/coordinator/__tests__/allow-delegation.test.js.map +1 -0
- package/dist/tools/coordinator/__tests__/wait-with-idle-bound.test.d.ts +2 -0
- package/dist/tools/coordinator/__tests__/wait-with-idle-bound.test.d.ts.map +1 -0
- package/dist/tools/coordinator/__tests__/wait-with-idle-bound.test.js +193 -0
- package/dist/tools/coordinator/__tests__/wait-with-idle-bound.test.js.map +1 -0
- package/dist/tools/coordinator/index.d.ts +28 -0
- package/dist/tools/coordinator/index.d.ts.map +1 -1
- package/dist/tools/coordinator/index.js +101 -62
- package/dist/tools/coordinator/index.js.map +1 -1
- package/dist/tools/coordinator/wait-with-idle-bound.d.ts +66 -0
- package/dist/tools/coordinator/wait-with-idle-bound.d.ts.map +1 -0
- package/dist/tools/coordinator/wait-with-idle-bound.js +78 -0
- package/dist/tools/coordinator/wait-with-idle-bound.js.map +1 -0
- package/dist/types/agent/base.d.ts +16 -0
- package/dist/types/agent/base.d.ts.map +1 -1
- package/dist/types/agent/gateway.d.ts +23 -0
- package/dist/types/agent/gateway.d.ts.map +1 -1
- package/dist/types/agent/lifecycle-event.d.ts +9 -1
- package/dist/types/agent/lifecycle-event.d.ts.map +1 -1
- package/dist/types/agent/supervisor.d.ts +27 -0
- package/dist/types/agent/supervisor.d.ts.map +1 -1
- package/dist/types/agent/task.d.ts +5 -0
- package/dist/types/agent/task.d.ts.map +1 -1
- package/dist/types/hitl/index.d.ts +10 -0
- package/dist/types/hitl/index.d.ts.map +1 -1
- package/dist/types/hitl/index.js.map +1 -1
- package/dist/types/probe/registry.d.ts +6 -0
- package/dist/types/probe/registry.d.ts.map +1 -1
- package/dist/types/run/config.d.ts +25 -0
- package/dist/types/run/config.d.ts.map +1 -1
- package/dist/utils/__tests__/abort-reason.test.d.ts +2 -0
- package/dist/utils/__tests__/abort-reason.test.d.ts.map +1 -0
- package/dist/utils/__tests__/abort-reason.test.js +48 -0
- package/dist/utils/__tests__/abort-reason.test.js.map +1 -0
- package/dist/utils/abort.d.ts +26 -0
- package/dist/utils/abort.d.ts.map +1 -1
- package/dist/utils/abort.js +34 -0
- package/dist/utils/abort.js.map +1 -1
- package/dist/verification/__tests__/rule-order-and-reason.test.d.ts +2 -0
- package/dist/verification/__tests__/rule-order-and-reason.test.d.ts.map +1 -0
- package/dist/verification/__tests__/rule-order-and-reason.test.js +126 -0
- package/dist/verification/__tests__/rule-order-and-reason.test.js.map +1 -0
- package/dist/verification/gate.d.ts +17 -1
- package/dist/verification/gate.d.ts.map +1 -1
- package/dist/verification/gate.js +58 -2
- package/dist/verification/gate.js.map +1 -1
- package/dist/verification/index.d.ts +1 -1
- package/dist/verification/index.d.ts.map +1 -1
- package/dist/verification/index.js +1 -1
- package/dist/verification/index.js.map +1 -1
- package/package.json +3 -2
- package/src/agents/ReactiveAgent.ts +5 -0
- package/src/agents/SupervisorAgent.ts +9 -0
- package/src/agents/__tests__/supervisor-coordinator-registration.test.ts +37 -0
- package/src/agents/runAgent.ts +22 -1
- package/src/connector/mcp/__tests__/positional-arrays.test.ts +183 -0
- package/src/connector/mcp/adapter.ts +131 -7
- package/src/constants/agent/index.ts +5 -0
- package/src/constants/plugin/index.ts +15 -0
- package/src/gateway/__tests__/completion-inbox.test.ts +23 -0
- package/src/gateway/completion-inbox.ts +17 -3
- package/src/gateway/local.ts +26 -1
- package/src/manager/agent/lifecycle.ts +6 -0
- package/src/provider/thinking-support.ts +19 -2
- package/src/public-runtime.ts +9 -0
- package/src/runtime/query/__tests__/context.test.ts +24 -0
- package/src/runtime/query/__tests__/effort-reaches-the-wire.test.ts +135 -0
- package/src/runtime/query/__tests__/run-survives-its-own-park.proc-test.ts +127 -0
- package/src/runtime/query/__tests__/tool-timeout.test.ts +38 -0
- package/src/runtime/query/context.ts +16 -1
- package/src/runtime/query/executor.ts +11 -1
- package/src/runtime/query/iteration/index.ts +5 -0
- package/src/runtime/query/iteration/phases/context.ts +41 -15
- package/src/telemetry/__tests__/model-call-span.test.ts +22 -5
- package/src/telemetry/__tests__/span-closure.test.ts +12 -5
- package/src/tools/builtins/__tests__/bash.proc-test.ts +142 -0
- package/src/tools/builtins/__tests__/bash.test.ts +79 -0
- package/src/tools/builtins/bash.ts +100 -18
- package/src/tools/coordinator/__tests__/allow-delegation.test.ts +120 -0
- package/src/tools/coordinator/__tests__/wait-with-idle-bound.test.ts +247 -0
- package/src/tools/coordinator/index.ts +112 -65
- package/src/tools/coordinator/wait-with-idle-bound.ts +142 -0
- package/src/types/agent/base.ts +17 -0
- package/src/types/agent/gateway.ts +24 -0
- package/src/types/agent/lifecycle-event.ts +7 -0
- package/src/types/agent/supervisor.ts +28 -0
- package/src/types/agent/task.ts +5 -0
- package/src/types/hitl/index.ts +10 -0
- package/src/types/probe/registry.ts +6 -0
- package/src/types/run/config.ts +26 -0
- package/src/utils/__tests__/abort-reason.test.ts +56 -0
- package/src/utils/abort.ts +34 -0
- package/src/verification/__tests__/rule-order-and-reason.test.ts +149 -0
- package/src/verification/gate.ts +61 -3
- package/src/verification/index.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,366 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 7.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- 062624c: A bridged tool's positional array is no longer flattened to "an array of
|
|
8
|
+
anything".
|
|
9
|
+
|
|
10
|
+
`mcpJsonSchemaToZod` collapsed every positional array — both the draft-07
|
|
11
|
+
spelling (`items` holding a list) and the 2020-12 one (`prefixItems`) — to
|
|
12
|
+
`z.array(z.unknown())`. The schema makes a round trip, server JSON Schema → Zod
|
|
13
|
+
→ JSON Schema on the wire, so what was dropped was dropped from what the MODEL
|
|
14
|
+
is shown: a server that spelled out `[string, number]` had the model told
|
|
15
|
+
nothing about the positions, their types, or their order.
|
|
16
|
+
|
|
17
|
+
**Why this is a major.** Where the server pinned the arity and closed the tail,
|
|
18
|
+
the converted schema is now a tuple, so input that a looser array accepted is
|
|
19
|
+
refused locally. It is only ever refused where the server itself declared it
|
|
20
|
+
invalid — the error moves from the server's response to the local validator —
|
|
21
|
+
but a host driving a bridged tool directly can see a validation failure it did
|
|
22
|
+
not see before, and code branching on the converted type (`instanceof
|
|
23
|
+
z.ZodArray`) will take a different branch. If you relied on the permissive
|
|
24
|
+
shape, the fix is to send what the server's schema declares.
|
|
25
|
+
|
|
26
|
+
**The tuple is deliberately narrow, and that is the whole design.** A rejected
|
|
27
|
+
tool schema fails the entire request rather than degrading one tool, taking down
|
|
28
|
+
every run that offered the toolset — so a faithful conversion the wire will not
|
|
29
|
+
accept is strictly worse than a lossy one it will. A tuple is therefore emitted
|
|
30
|
+
only where the server pinned the arity AND closed the tail, because that renders
|
|
31
|
+
as bounded `prefixItems`, which is the one positional shape measured as
|
|
32
|
+
accepted and the same shape a first-party builtin already ships. Every looser
|
|
33
|
+
positional array keeps today's permissive array and gains its shape in the
|
|
34
|
+
description instead, appended to whatever the server wrote rather than replacing
|
|
35
|
+
it.
|
|
36
|
+
|
|
37
|
+
The inversion worth knowing if you write these schemas: positional members do
|
|
38
|
+
not constrain LENGTH. Without `minItems` a server is permitting a shorter array,
|
|
39
|
+
which a tuple cannot express — so an absent lower bound is a reason to keep the
|
|
40
|
+
loose form, not a detail to round up.
|
|
41
|
+
|
|
42
|
+
**Also fixed, and reachable from any bridged server:** the conversion's depth
|
|
43
|
+
ceiling never fired. `MAX_CONVERSION_DEPTH` was compared against in one branch
|
|
44
|
+
that a pure array or union never reaches, and the counter was not even passed
|
|
45
|
+
down the array path — so a deeply nested schema from a remote tool listing took
|
|
46
|
+
the process down with a stack overflow instead of being left permissive as the
|
|
47
|
+
ceiling's own comment promised.
|
|
48
|
+
|
|
49
|
+
### Minor Changes
|
|
50
|
+
|
|
51
|
+
- bf0999d: a policy rule you wrote is actually consulted, and a refusal says what it said
|
|
52
|
+
|
|
53
|
+
Two defects in the verification gate, found while designing an operator-facing
|
|
54
|
+
permission surface on top of it.
|
|
55
|
+
|
|
56
|
+
**A rule could be silently unreachable.** `allowReadOnlyTools` was expanded
|
|
57
|
+
into a rule ahead of the operator's own, and the gate stops at the first match
|
|
58
|
+
— so a rule like "prompt me before every read" was never consulted while that
|
|
59
|
+
flag was on. Not rejected, not warned about, just never reached. Someone who
|
|
60
|
+
writes a control and is silently ignored gets the worst outcome available: they
|
|
61
|
+
believe it is in force and it is not.
|
|
62
|
+
|
|
63
|
+
The read-only allowance now goes LAST, which makes it what it always was in
|
|
64
|
+
substance — a default for tools nobody wrote a rule about, rather than an
|
|
65
|
+
override of the rules they did write. **The dangerous-pattern denial still goes
|
|
66
|
+
first and still outranks everything**, so an operator rule cannot open what the
|
|
67
|
+
floor closes.
|
|
68
|
+
|
|
69
|
+
**A refusal told the model nothing it could use.** The reason was built as
|
|
70
|
+
`Matched rule: ${rule.type}`, so a denial arrived as _"Blocked by the
|
|
71
|
+
verification gate: Matched rule: deny_by_name"_ — the KIND of rule and nothing
|
|
72
|
+
about it. Not which tool, not which pattern, not whether a different input
|
|
73
|
+
would fare better.
|
|
74
|
+
|
|
75
|
+
That difference is behavioural, not cosmetic. Told only that it was denied, a
|
|
76
|
+
model rewords the same call and tries again, because nothing says the retry is
|
|
77
|
+
pointless. Told that a pattern rule denies `git push*`, or that a by-name
|
|
78
|
+
denial is about the tool rather than the input, it can stop and say so. A
|
|
79
|
+
refusal that cannot be reasoned about produces thrashing; one that can produces
|
|
80
|
+
a route around it.
|
|
81
|
+
|
|
82
|
+
`describeRule` is exported, so a host rendering its own approval UI can show
|
|
83
|
+
the same sentence the model got.
|
|
84
|
+
|
|
85
|
+
- cb772c7: Export `describeRule` alongside `evaluateRule`.
|
|
86
|
+
|
|
87
|
+
`evaluateRule` has been public for some time and answers only whether a rule
|
|
88
|
+
matched. A host driving the rules directly — rather than through
|
|
89
|
+
`VerificationGate` — was left holding a verdict with no words for it, and the
|
|
90
|
+
only way to say anything about a refusal was to switch on the rule's `type`.
|
|
91
|
+
That names the KIND of rule and nothing about what it said: not which tool, not
|
|
92
|
+
which pattern, not whether a different input could ever help.
|
|
93
|
+
|
|
94
|
+
That is the same defect the gate itself carried until its `reason` stopped
|
|
95
|
+
being `Matched rule: <type>`, and it was left open one layer up for anyone
|
|
96
|
+
using the rule primitives without the gate. The two now travel together.
|
|
97
|
+
|
|
98
|
+
Nothing is removed and no behaviour changes. If you were deriving your own
|
|
99
|
+
denial text from `rule.type`, `describeRule(rule)` is the sentence the gate
|
|
100
|
+
uses, and it is worth reading before you keep your own.
|
|
101
|
+
|
|
102
|
+
- 062624c: `effort` can be set on a run — and so, for the first time, can `thinking`.
|
|
103
|
+
|
|
104
|
+
`effort` was on the provider params, exported, and read by a driver that wrote
|
|
105
|
+
it to the wire, and nothing in the kernel ever set it. Every request went out at
|
|
106
|
+
the model's default, which reads as "this model ignores effort" rather than
|
|
107
|
+
"nobody plumbed it through".
|
|
108
|
+
|
|
109
|
+
`AgentRunConfig` gains `effort`, a sibling of `thinking` rather than a field
|
|
110
|
+
inside it — on some models the two are independent controls that apply together,
|
|
111
|
+
and nesting would make that combination unsayable. It is run-level rather than
|
|
112
|
+
per-step because the provider documents that changing effort between requests
|
|
113
|
+
does not preserve a cached prefix, so a value that moves between steps buys a
|
|
114
|
+
different answer shape at the cost of the cache on every step that changes it.
|
|
115
|
+
|
|
116
|
+
**`thinking` turned out to have the same defect, and had shipped with it.** It
|
|
117
|
+
was settable only through `drainQuery`. Every ergonomic entry point — `runAgent`,
|
|
118
|
+
`ReactiveAgent`, `SupervisorAgent`, and the agent manager's bare-config branch —
|
|
119
|
+
builds its run config by hand-listing fields, so a field nobody remembered to add
|
|
120
|
+
is dropped in silence, with no cast to blame and no error to see. A caller could
|
|
121
|
+
set `thinking` on an agent config and get a run that never asked for it. Both
|
|
122
|
+
fields now live on `BaseAgentConfig` and are forwarded by all four.
|
|
123
|
+
|
|
124
|
+
This was found by watching an actual HTTP body from a real run. The unit tests
|
|
125
|
+
passed throughout, because they drive the kernel directly, and the kernel was
|
|
126
|
+
never the half that was broken.
|
|
127
|
+
|
|
128
|
+
**A driver that cannot honour `effort` now refuses rather than dropping it**,
|
|
129
|
+
the rule `thinking` already had. Effort is the worse silence of the two: a
|
|
130
|
+
dropped `thinking` leaves an empty reasoning list someone might notice, while a
|
|
131
|
+
dropped `effort` leaves a perfectly ordinary answer, so a run requested at `max`
|
|
132
|
+
is indistinguishable from one at the default — including in what it cost.
|
|
133
|
+
Nothing existing breaks, because the field could not be set until now.
|
|
134
|
+
|
|
135
|
+
Two driver-side corrections ride along, both verified against the live wire:
|
|
136
|
+
|
|
137
|
+
- The preview model's capability row claimed all five effort levels. It takes
|
|
138
|
+
`max` and not `xhigh`. That model is not reachable from the tenant the live
|
|
139
|
+
suite runs against, so the row is sourced from the reference rather than
|
|
140
|
+
measured — but the pairing itself is now measured, on a model that has it:
|
|
141
|
+
`claude-sonnet-4-6` answers `xhigh` with _"This model does not support effort
|
|
142
|
+
level 'xhigh'. Supported levels: high, low, max, medium"_ and accepts `max`.
|
|
143
|
+
Reading the levels as a ladder, where anything taking the top rung takes the
|
|
144
|
+
one below, is what produced the wrong row.
|
|
145
|
+
- `output_config` is now merged rather than assigned. It is a shared envelope on
|
|
146
|
+
that wire — a structured-output format and a task budget live in it too — so
|
|
147
|
+
assigning meant whoever wired the next one would silently delete effort, or
|
|
148
|
+
have effort delete theirs, depending only on which line ran last.
|
|
149
|
+
|
|
150
|
+
- bf0999d: a delegated worker is bounded by how long it has been quiet, not only by how long it has run
|
|
151
|
+
|
|
152
|
+
`DELEGATION_TIMEOUT_MS` gave the supervisor an hour to wait, which fixed the
|
|
153
|
+
two-minute deadline that made the blocking path structurally unreachable. An
|
|
154
|
+
hour of wall clock is still the wrong quantity to measure: it says nothing
|
|
155
|
+
about whether the worker is doing anything.
|
|
156
|
+
|
|
157
|
+
One number cannot answer both questions. It has to be generous enough for a
|
|
158
|
+
child doing real work, which is exactly what makes it useless as a stall
|
|
159
|
+
detector — so a worker wedged in its second minute held the supervisor for
|
|
160
|
+
another fifty-eight, and a worker making steady progress at minute fifty-nine
|
|
161
|
+
was cut off for being slow rather than for being stuck.
|
|
162
|
+
|
|
163
|
+
There are two clocks now:
|
|
164
|
+
|
|
165
|
+
- **the run bound**, elapsed time, never refreshed, still an hour. For a worker
|
|
166
|
+
that stays busy forever.
|
|
167
|
+
- **the idle bound**, time since the worker last did anything, reset on every
|
|
168
|
+
progress signal. Five minutes, overridable with `NAMZU_DELEGATION_IDLE_MS`.
|
|
169
|
+
For a worker that stopped.
|
|
170
|
+
|
|
171
|
+
Whichever fires first ends the wait, and **the result says which** — "it went
|
|
172
|
+
quiet" and "it ran too long" are different diagnoses that lead to different
|
|
173
|
+
next moves, and the message is what a model acts on.
|
|
174
|
+
|
|
175
|
+
Giving up on the wait does not cancel the worker. The child keeps going and its
|
|
176
|
+
completion still arrives as a task notification, because a wait that ran out is
|
|
177
|
+
a statement about the waiter, not about the work. Losing an eight-minute
|
|
178
|
+
worker's output because a clock expired is the shape of the bug this whole area
|
|
179
|
+
has been unpicking.
|
|
180
|
+
|
|
181
|
+
**`TaskGateway.onTaskProgress` is new and OPTIONAL.** The idle bound needs a
|
|
182
|
+
signal that a task did something, and only a gateway can see it. It is optional
|
|
183
|
+
because hosts implement `TaskGateway` and not all of them can observe their
|
|
184
|
+
children — a gateway without it is bounded by the wall clock alone, exactly as
|
|
185
|
+
before. That degradation is deliberately visible rather than silent: the
|
|
186
|
+
timeout result carries `idleBoundArmed`, and the message says outright that
|
|
187
|
+
this gateway cannot tell a busy worker from a stuck one.
|
|
188
|
+
|
|
189
|
+
- 69d609a: six declarations that drive nothing are marked for removal
|
|
190
|
+
|
|
191
|
+
An audit of the kernel found primitives that are declared, reachable from the
|
|
192
|
+
published typings, and read by no code at all. None is deleted yet — they are
|
|
193
|
+
on the public surface, so they get the deprecation release the repository's own
|
|
194
|
+
policy asks for, and go in the next major.
|
|
195
|
+
|
|
196
|
+
They are worth naming individually, because a dead declaration is not merely
|
|
197
|
+
untidy. Each of these tells a reader something false:
|
|
198
|
+
|
|
199
|
+
- `HOOK_MAX_CONCURRENT` reads as a concurrency cap that is in force. Hooks run
|
|
200
|
+
sequentially and always have, so a reviewer reasons about batching that does
|
|
201
|
+
not happen. Do not "fix" it by batching — ordering is the contract hooks are
|
|
202
|
+
written against.
|
|
203
|
+
- `MAX_RECENT_ACTIVITIES` — no list is trimmed to it.
|
|
204
|
+
- `AgentTask.progress` and the `progress_updated` lifecycle variant are a whole
|
|
205
|
+
reporting channel with **no producer**. A host that switches on the event has
|
|
206
|
+
written a branch that cannot run; one that waits for progress waits forever.
|
|
207
|
+
- `IterationCheckpoint.planStatus` is never set, so a host restoring a
|
|
208
|
+
checkpoint to find out whether the plan was approved gets `undefined` for
|
|
209
|
+
every run — approved or not — and cannot tell the two apart. Ask the plan
|
|
210
|
+
manager.
|
|
211
|
+
- `ProbeOptions.otel` is unimplemented: setting it changes nothing.
|
|
212
|
+
|
|
213
|
+
Each now carries `@deprecated` and a note saying which of "unused",
|
|
214
|
+
"no producer" or "unimplemented" applies, so the next reader does not have to
|
|
215
|
+
re-derive it.
|
|
216
|
+
|
|
217
|
+
### Patch Changes
|
|
218
|
+
|
|
219
|
+
- bf0999d: `continue_task` is deleted rather than left defined and unreachable
|
|
220
|
+
|
|
221
|
+
It was written, documented, and never returned from the coordinator builder —
|
|
222
|
+
so no model could call it. The question was reopened when `background: true`
|
|
223
|
+
made a live task id reachable again, since the reason it was dropped had been
|
|
224
|
+
that a blocking launch leaves every worker terminal before a later turn learns
|
|
225
|
+
its id, and the manager refuses `continue` on a terminal task.
|
|
226
|
+
|
|
227
|
+
Measured instead of assumed, and it fails on the other side. On a LIVE task the
|
|
228
|
+
manager accepts the call and pushes onto `pendingMessages` — and **nothing
|
|
229
|
+
drains that queue during a run**. The codebase already knew: `steering.ts` says
|
|
230
|
+
in as many words that `queueMessage`/`drainMessages` were never read by the
|
|
231
|
+
iteration loop, and `SteeringChannel` exists because of it, delivering guidance
|
|
232
|
+
on a tool result instead — a `tool_use` must be answered by a `tool_result`
|
|
233
|
+
with the same id, so there is no legal slot for a user message mid-batch.
|
|
234
|
+
|
|
235
|
+
So the tool had no state it worked in: terminal tasks refuse it, live tasks
|
|
236
|
+
accept it into a queue nobody reads. Registering it would have handed the model
|
|
237
|
+
a call that silently does nothing, which is worse than an unreachable
|
|
238
|
+
definition — an unreachable one at least cannot be called.
|
|
239
|
+
|
|
240
|
+
If follow-ups on a live worker are wanted, the work is a consumer for the queue
|
|
241
|
+
or a steering channel that reaches a child. Not this tool.
|
|
242
|
+
|
|
243
|
+
## 6.2.0
|
|
244
|
+
|
|
245
|
+
### Minor Changes
|
|
246
|
+
|
|
247
|
+
- 9d4cf61: a supervisor can decline to delegate without lying about its roster
|
|
248
|
+
|
|
249
|
+
`SupervisorAgentConfig` gains `allowDelegation?: boolean`, default `true`.
|
|
250
|
+
|
|
251
|
+
The roster answered WHO a run may call. Nothing answered WHETHER it may call
|
|
252
|
+
anyone, and the two are different questions. A host that runs one specialist by
|
|
253
|
+
putting its persona into the supervisor shell and its id into the roster has a
|
|
254
|
+
non-empty roster and must still delegate to nobody — and got the full
|
|
255
|
+
delegation surface, discovering the refusal only by spending a turn on it.
|
|
256
|
+
|
|
257
|
+
It cannot be derived. Comparing the roster against the executing agent fails in
|
|
258
|
+
exactly that arrangement, because the ids differ. And no predicate over the
|
|
259
|
+
roster could work: a supervisor whose roster holds one specialist and a run
|
|
260
|
+
that IS that specialist are indistinguishable in it. So the caller states the
|
|
261
|
+
fact and the SDK decides what it implies for its own tool surface — which also
|
|
262
|
+
means the implied list cannot go stale, the way a caller-held list of tool
|
|
263
|
+
names silently did when this surface went from two tools to four.
|
|
264
|
+
|
|
265
|
+
Details worth knowing:
|
|
266
|
+
|
|
267
|
+
- **`agent_task_list` stays.** A run that may not launch anything may still want
|
|
268
|
+
to see what is running.
|
|
269
|
+
- **`approve_plan` and `ask_user_question` are untouched.** They are the
|
|
270
|
+
human-in-the-loop surface, not delegation.
|
|
271
|
+
- **`allowDelegation: false` is absolute.** `runtimeToolOverrides` cannot put
|
|
272
|
+
the tools back: the override pass runs over the tools this flag declined to
|
|
273
|
+
build, and both values come from the same caller in the same call, so
|
|
274
|
+
"must not delegate" plus "give it `create_task`" is a contradiction rather
|
|
275
|
+
than extra knowledge. `agentIds: []` has always worked this way.
|
|
276
|
+
- **Absent and `true` are identical**, so adopting the flag cannot change a
|
|
277
|
+
caller that opts in explicitly.
|
|
278
|
+
|
|
279
|
+
### Patch Changes
|
|
280
|
+
|
|
281
|
+
- 9d4cf61: cancelling a task no longer deletes a result it had already produced
|
|
282
|
+
|
|
283
|
+
`CompletionInbox.forget` cleared both the outstanding-work set and the queue of
|
|
284
|
+
completions waiting to be announced. The second was wrong.
|
|
285
|
+
|
|
286
|
+
A background worker finishes, its completion is queued for the next drain, and
|
|
287
|
+
the model — told nothing yet, and reading a tool that says it cancels a
|
|
288
|
+
_running_ task — cancels it. The run then reported `cancelled` over work that
|
|
289
|
+
had been done, and the output existed nowhere else: not announced, not
|
|
290
|
+
claimable, not readable through the listing.
|
|
291
|
+
|
|
292
|
+
`forget` is about pending work, and a finished result is not pending work. It
|
|
293
|
+
now narrows to the outstanding set. The asymmetry with `claim`, which does clear
|
|
294
|
+
the queue, is deliberate: there a tool has just handed the model the same
|
|
295
|
+
result.
|
|
296
|
+
|
|
297
|
+
- 6961d3b: a failing shell command now says what happened, and its own deadline is the one that fires
|
|
298
|
+
|
|
299
|
+
**The failure path threw away everything useful.** The host branch of `bash`
|
|
300
|
+
called `exec` with no `catch`, and `exec` rejects on a non-zero exit. So the two
|
|
301
|
+
things an agent runs a shell for most — a test run and a build — both threw, the
|
|
302
|
+
registry turned the throw into "the tool failed", and the stdout, stderr and
|
|
303
|
+
exit code that explain why were discarded. The rejection carries all three.
|
|
304
|
+
|
|
305
|
+
The sandbox branch a few lines above already reported them, so the same command
|
|
306
|
+
told the model two different amounts depending on where it happened to run. It
|
|
307
|
+
now reports the exit code, both streams, and — separately — whether the command
|
|
308
|
+
ran out of time, because "timed out" and "exited 1" lead to different next moves
|
|
309
|
+
and the model acts on the message.
|
|
310
|
+
|
|
311
|
+
A caller-owned abort still propagates as an abort rather than being reported as
|
|
312
|
+
a command failure.
|
|
313
|
+
|
|
314
|
+
**Two clocks, one of them undeclared.** `bash` enforces the `timeout` it is
|
|
315
|
+
given; the executor enforces a separate per-tool deadline, and with none
|
|
316
|
+
declared here it fell back to its generic default — also two minutes. The two
|
|
317
|
+
agreed by coincidence and diverged the moment a model asked for longer because
|
|
318
|
+
it knew a build was slow: it got two minutes, from a clock it had not been told
|
|
319
|
+
about, reported as an abandoned tool rather than as a command that ran out of
|
|
320
|
+
time.
|
|
321
|
+
|
|
322
|
+
The tool now declares a deadline above the ceiling its input accepts, so its own
|
|
323
|
+
clock is the one that fires. A request past the ceiling is **refused** rather
|
|
324
|
+
than silently clamped — a number the model was not told had changed is how it
|
|
325
|
+
learns to distrust its own arguments. The ceiling is ten minutes, overridable
|
|
326
|
+
with `NAMZU_BASH_MAX_TIMEOUT_MS`.
|
|
327
|
+
|
|
328
|
+
**And it now has tests.** The only builtin that runs a shell had none, which is
|
|
329
|
+
how the swallowed failure shipped. Thirteen cases, mutation-checked: neutralising
|
|
330
|
+
the failure path fails four of them.
|
|
331
|
+
|
|
332
|
+
- 06fb51b: a run no longer kills its own process while waiting, mid-turn, and report success
|
|
333
|
+
|
|
334
|
+
`namzu run` and `namzu run-stream` could not finish a turn. The first tool call
|
|
335
|
+
completed and the process ended: no second turn, nothing written, no terminal
|
|
336
|
+
event, **exit code 0**. A user asking for a two-step task was told nothing had
|
|
337
|
+
gone wrong while nothing had been done.
|
|
338
|
+
|
|
339
|
+
Every human-in-the-loop park went through a timer that was deliberately
|
|
340
|
+
`unref`'d, so a pending park-recorder could never hold a process open after the
|
|
341
|
+
run settled. The hazard is real and the intent was right; the scope was wrong.
|
|
342
|
+
That promise is **awaited during the run**, on every park, including the
|
|
343
|
+
automatic ones a headless run resolves instantly. An `unref`'d timer does not
|
|
344
|
+
keep Node's event loop alive — so once the decision resolved and the run sat out
|
|
345
|
+
the rest of the delay, the loop had nothing left in it that counted, and the
|
|
346
|
+
process exited from under the run.
|
|
347
|
+
|
|
348
|
+
The timer is cancelled now instead of unref'd. It stays ref'd while the run is
|
|
349
|
+
genuinely waiting on it, and is cleared the moment the decision arrives, so
|
|
350
|
+
nothing dangles past the run either. A park that had already begun recording is
|
|
351
|
+
still awaited, so the unpark cannot race it.
|
|
352
|
+
|
|
353
|
+
Measured before and after on the same command: before, three events and an
|
|
354
|
+
unchanged file; after, the edit applied and a terminal event.
|
|
355
|
+
|
|
356
|
+
**Why no test caught it.** A test runner holds the event loop open for the whole
|
|
357
|
+
file, which is exactly the prop this bug hides behind — the entire suite passed
|
|
358
|
+
throughout, including tests that drive real runs against a live provider. The
|
|
359
|
+
regression test therefore spawns a real `node` process with nothing else in it,
|
|
360
|
+
and lives in its own suite (`pnpm --filter @namzu/sdk test:proc`, run as its own
|
|
361
|
+
CI step) because the spawn competes for CPU hard enough to flake the
|
|
362
|
+
timing-sensitive tests beside it.
|
|
363
|
+
|
|
3
364
|
## 6.1.0
|
|
4
365
|
|
|
5
366
|
### Minor Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReactiveAgent.d.ts","sourceRoot":"","sources":["../../src/agents/ReactiveAgent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACX,UAAU,EACV,aAAa,EACb,mBAAmB,EACnB,mBAAmB,EACnB,MAAM,yBAAyB,CAAA;AAEhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAElD,qBAAa,aAAc,SAAQ,aAAa,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;IACzF,QAAQ,CAAC,IAAI,EAAG,UAAU,CAAS;gBAEvB,QAAQ,EAAE,IAAI,CAAC,aAAa,EAAE,MAAM,GAAG,cAAc,CAAC;IAalE;;;;;;;;OAQG;IACG,GAAG,CACR,KAAK,EAAE,UAAU,EACjB,MAAM,EAAE,mBAAmB,EAC3B,QAAQ,CAAC,EAAE,gBAAgB,GACzB,OAAO,CAAC,mBAAmB,CAAC;YAMjB,YAAY;
|
|
1
|
+
{"version":3,"file":"ReactiveAgent.d.ts","sourceRoot":"","sources":["../../src/agents/ReactiveAgent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACX,UAAU,EACV,aAAa,EACb,mBAAmB,EACnB,mBAAmB,EACnB,MAAM,yBAAyB,CAAA;AAEhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAElD,qBAAa,aAAc,SAAQ,aAAa,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;IACzF,QAAQ,CAAC,IAAI,EAAG,UAAU,CAAS;gBAEvB,QAAQ,EAAE,IAAI,CAAC,aAAa,EAAE,MAAM,GAAG,cAAc,CAAC;IAalE;;;;;;;;OAQG;IACG,GAAG,CACR,KAAK,EAAE,UAAU,EACjB,MAAM,EAAE,mBAAmB,EAC3B,QAAQ,CAAC,EAAE,gBAAgB,GACzB,OAAO,CAAC,mBAAmB,CAAC;YAMjB,YAAY;IAsHX,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;CAGtC"}
|
|
@@ -83,6 +83,11 @@ export class ReactiveAgent extends AbstractAgent {
|
|
|
83
83
|
costLimitUsd: config.costLimitUsd,
|
|
84
84
|
permissionMode: config.permissionMode,
|
|
85
85
|
env: config.env,
|
|
86
|
+
// Hand-listed, so anything not named here is dropped in silence.
|
|
87
|
+
// That is how both of these came to be unreachable from every
|
|
88
|
+
// entry point except the raw kernel one.
|
|
89
|
+
...(config.thinking ? { thinking: config.thinking } : {}),
|
|
90
|
+
...(config.effort ? { effort: config.effort } : {}),
|
|
86
91
|
},
|
|
87
92
|
agentId: this.metadata.id,
|
|
88
93
|
agentName: this.metadata.name,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReactiveAgent.js","sourceRoot":"","sources":["../../src/agents/ReactiveAgent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAStD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAElD,MAAM,OAAO,aAAc,SAAQ,aAAuD;IAChF,IAAI,GAAG,UAAmB,CAAA;IAEnC,YAAY,QAAsD;QACjE,KAAK,CAAC;YACL,GAAG,QAAQ;YACX,IAAI,EAAE,UAAU;YAChB,YAAY,EAAE;gBACb,aAAa,EAAE,IAAI;gBACnB,iBAAiB,EAAE,IAAI;gBACv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IAAI,EAAG,YAAY,CAAS;gBAEzB,QAAQ,EAAE,IAAI,CAAC,aAAa,EAAE,MAAM,GAAG,cAAc,CAAC;IAalE;;;;;;;;OAQG;IACG,GAAG,CACR,KAAK,EAAE,UAAU,EACjB,MAAM,EAAE,qBAAqB,EAC7B,QAAQ,CAAC,EAAE,gBAAgB,GACzB,OAAO,CAAC,qBAAqB,CAAC;YAMnB,YAAY;CAwQ1B"}
|
|
@@ -149,6 +149,11 @@ export class SupervisorAgent extends AbstractAgent {
|
|
|
149
149
|
workingDirectory: input.workingDirectory,
|
|
150
150
|
runtimeContext: input.runtimeContext,
|
|
151
151
|
allowedAgentIds: config.agentIds,
|
|
152
|
+
// The only hop between the config and the decision. Omit it and
|
|
153
|
+
// everything still compiles: the field is settable, documented, and
|
|
154
|
+
// read by nothing — which is the shape of a declaration this repo
|
|
155
|
+
// has had to go and delete before.
|
|
156
|
+
allowDelegation: config.allowDelegation,
|
|
152
157
|
taskStore: input.taskStore,
|
|
153
158
|
runId,
|
|
154
159
|
getPlanManager: () => planManagerRef,
|
|
@@ -234,6 +239,10 @@ export class SupervisorAgent extends AbstractAgent {
|
|
|
234
239
|
maxIterations: config.maxIterations,
|
|
235
240
|
temperature: config.temperature,
|
|
236
241
|
env: config.env,
|
|
242
|
+
// See ReactiveAgent: a hand-listed literal drops what nobody
|
|
243
|
+
// remembered to add, and reports nothing when it does.
|
|
244
|
+
...(config.thinking ? { thinking: config.thinking } : {}),
|
|
245
|
+
...(config.effort ? { effort: config.effort } : {}),
|
|
237
246
|
},
|
|
238
247
|
questionParks,
|
|
239
248
|
pendingAnswers,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SupervisorAgent.js","sourceRoot":"","sources":["../../src/agents/SupervisorAgent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAChE,OAAO,EAA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AC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,QAAQ;YAC3D,UAAU,EAAE,GAAG,CAAC,UAAU;YAC1B,KAAK,EAAE,GAAG,CAAC,UAAU;YACrB,IAAI,EAAE,GAAG,CAAC,QAAQ;YAClB,UAAU,EAAE,GAAG,CAAC,gBAAgB;YAChC,UAAU,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,SAAS;YAClC,QAAQ,EAAE,GAAG,CAAC,QAAQ;YACtB,MAAM,EAAE,GAAG,CAAC,MAAM;YAClB,SAAS,EAAE,GAAG,CAAC,SAAS;YACxB,WAAW;YACX,cAAc;YACd,UAAU,EAAE,WAAW,CAAC,MAAM;SAC9B,CAAA;IACF,CAAC;CACD"}
|
|
@@ -66,6 +66,9 @@ async function runWith(options) {
|
|
|
66
66
|
}, {
|
|
67
67
|
provider,
|
|
68
68
|
agentIds: ['worker'],
|
|
69
|
+
...(options.allowDelegation !== undefined
|
|
70
|
+
? { allowDelegation: options.allowDelegation }
|
|
71
|
+
: {}),
|
|
69
72
|
agentManager: stubManager(),
|
|
70
73
|
tools,
|
|
71
74
|
systemPrompt: 'You coordinate.',
|
|
@@ -119,4 +122,32 @@ describe('supervisor coordinator-tool registration', () => {
|
|
|
119
122
|
expect(describedAs('create_task')).toBe(HOST_TOOL_DESCRIPTION);
|
|
120
123
|
});
|
|
121
124
|
});
|
|
125
|
+
/**
|
|
126
|
+
* The one hop between `SupervisorAgentConfig.allowDelegation` and the builder
|
|
127
|
+
* that acts on it.
|
|
128
|
+
*
|
|
129
|
+
* These go through `SupervisorAgent` rather than calling the builder directly,
|
|
130
|
+
* and that is the entire point. The builder has its own unit tests, and they
|
|
131
|
+
* pass whether or not the supervisor actually forwards the flag — measured:
|
|
132
|
+
* deleting the forward left the type-check clean and all 143 coordinator and
|
|
133
|
+
* agent tests green, with the field settable, documented, and read by nobody.
|
|
134
|
+
* That is the shape of a declaration this repository has had to go and delete
|
|
135
|
+
* before, so it gets a test that fails when the road is cut.
|
|
136
|
+
*/
|
|
137
|
+
describe('allowDelegation reaches the tool surface', () => {
|
|
138
|
+
it('withholds the delegation tools when the run declines to delegate', async () => {
|
|
139
|
+
const { names } = await runWith({ allowDelegation: false });
|
|
140
|
+
expect(names, 'the flag never reached buildCoordinatorTools').not.toContain('create_task');
|
|
141
|
+
expect(names).not.toContain('wait_for_task');
|
|
142
|
+
expect(names).not.toContain('cancel_task');
|
|
143
|
+
});
|
|
144
|
+
it('keeps the listing, so a non-delegating run can still see what is running', async () => {
|
|
145
|
+
expect((await runWith({ allowDelegation: false })).names).toContain('agent_task_list');
|
|
146
|
+
});
|
|
147
|
+
it('leaves an opting-in run exactly as it was', async () => {
|
|
148
|
+
const { names } = await runWith({ allowDelegation: true });
|
|
149
|
+
expect(names).toContain('create_task');
|
|
150
|
+
expect(names).toContain('agent_task_list');
|
|
151
|
+
});
|
|
152
|
+
});
|
|
122
153
|
//# sourceMappingURL=supervisor-coordinator-registration.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"supervisor-coordinator-registration.test.js","sourceRoot":"","sources":["../../../src/agents/__tests__/supervisor-coordinator-registration.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAA;AACjD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAAE,sBAAsB,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAA;AACrF,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEvD;;;;;;;;;;;;;GAaG;AAEH,MAAM,qBAAqB,GAAG,0CAA0C,CAAA;AAExE,SAAS,WAAW;IACnB,OAAO;QACN,WAAW,EAAE,EAAE,CAAC,EAAE,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC,CAAC;QAC3E,KAAK,EAAE,EAAE,CAAC,EAAE,CAAC,KAAK,IAAI,EAAE,CAAC,SAAS,CAAC;QACnC,MAAM,EAAE,EAAE,CAAC,EAAE,EAAE;QACf,OAAO,EAAE,EAAE,CAAC,EAAE,EAAE;QAChB,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE;QACX,GAAG,EAAE,EAAE,CAAC,EAAE,EAAE;KACZ,CAAA;AACF,CAAC;AAED,MAAM,QAAQ,GAAG,CAAC,IAAY,EAAE,EAAE,CACjC,UAAU,CAAC;IACV,IAAI;IACJ,WAAW,EAAE,qBAAqB;IAClC,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC;IACzB,QAAQ,EAAE,QAAQ;IAClB,WAAW,EAAE,EAAE;IACf,QAAQ,EAAE,IAAI;IACd,WAAW,EAAE,KAAK;IAClB,eAAe,EAAE,IAAI;IACrB,KAAK,CAAC,OAAO;QACZ,OAAO,EAAE,OAAO,EAAE,IAAa,EAAE,MAAM,EAAE,eAAe,EAAE,CAAA;IAC3D,CAAC;CACD,CAAC,CAAA;AAEH,KAAK,UAAU,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"supervisor-coordinator-registration.test.js","sourceRoot":"","sources":["../../../src/agents/__tests__/supervisor-coordinator-registration.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,QAAQ,EAAE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H,QAAQ,CAAC,0CAA0C,EAAE,GAAG,EAAE;IACzD,EAAE,CAAC,kEAAkE,EAAE,KAAK,IAAI,EAAE;QACjF,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,OAAO,CAAC,EAAE,eAAe,EAAE,KAAK,EAAE,CAAC,CAAA;QAE3D,MAAM,CAAC,KAAK,EAAE,8CAA8C,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,aAAa,CAAC,CAAA;QAC1F,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,eAAe,CAAC,CAAA;QAC5C,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,aAAa,CAAC,CAAA;IAC3C,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,0EAA0E,EAAE,KAAK,IAAI,EAAE;QACzF,MAAM,CAAC,CAAC,MAAM,OAAO,CAAC,EAAE,eAAe,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAA;IACvF,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,2CAA2C,EAAE,KAAK,IAAI,EAAE;QAC1D,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,OAAO,CAAC,EAAE,eAAe,EAAE,IAAI,EAAE,CAAC,CAAA;QAE1D,MAAM,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,aAAa,CAAC,CAAA;QACtC,MAAM,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAA;IAC3C,CAAC,CAAC,CAAA;AACH,CAAC,CAAC,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ProjectId, SessionId, TenantId, ThreadId } from '../types/ids/index.js';
|
|
2
2
|
import type { Message } from '../types/message/index.js';
|
|
3
|
-
import type { LLMProvider } from '../types/provider/index.js';
|
|
3
|
+
import type { LLMProvider, ReasoningEffort, ThinkingConfig } from '../types/provider/index.js';
|
|
4
4
|
import type { Run, RunEventListener } from '../types/run/index.js';
|
|
5
5
|
import type { Skill } from '../types/skills/index.js';
|
|
6
6
|
import type { ToolRegistryContract } from '../types/tool/index.js';
|
|
@@ -64,6 +64,24 @@ export interface RunAgentOptions extends AgentIdentity {
|
|
|
64
64
|
tokenBudget?: number;
|
|
65
65
|
timeoutMs?: number;
|
|
66
66
|
temperature?: number;
|
|
67
|
+
/**
|
|
68
|
+
* Extended-thinking request and response-effort level, forwarded on every
|
|
69
|
+
* model call.
|
|
70
|
+
*
|
|
71
|
+
* These are here because the run config below is assembled by HAND, and a
|
|
72
|
+
* hand-listed literal silently drops whatever nobody remembered to add —
|
|
73
|
+
* which is precisely what happened. `thinking` shipped on `AgentRunConfig`
|
|
74
|
+
* and was reachable only from the raw kernel entry point, because this
|
|
75
|
+
* function, `ReactiveAgent` and `SupervisorAgent` each rebuilt the object
|
|
76
|
+
* from a fixed list. So the capability existed and the front door could not
|
|
77
|
+
* open it.
|
|
78
|
+
*
|
|
79
|
+
* A live run is what found it: the unit tests passed because they drove the
|
|
80
|
+
* kernel directly, and a real agent run through this function put no effort
|
|
81
|
+
* on the wire at all.
|
|
82
|
+
*/
|
|
83
|
+
thinking?: ThinkingConfig;
|
|
84
|
+
effort?: ReasoningEffort;
|
|
67
85
|
/** Names the agent in traces and events. Defaults to `Agent`. */
|
|
68
86
|
name?: string;
|
|
69
87
|
signal?: AbortSignal;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runAgent.d.ts","sourceRoot":"","sources":["../../src/agents/runAgent.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AACrF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AACxD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"runAgent.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AA;IACtB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;;;;;;;;;;;;;;OAeG;IACH,QAAQ,CAAC,EAAE,cAAc,CAAA;IACzB,MAAM,CAAC,EAAE,eAAe,CAAA;IAExB,iEAAiE;IACjE,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,QAAQ,CAAC,EAAE,gBAAgB,CAAA;CAC3B;AAED,MAAM,WAAW,cAAc;IAC9B,kEAAkE;IAClE,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAEnC,qEAAqE;IACrE,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAA;IAEjB;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,aAAa,CAAC,CAAA;CAC1C;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB,KAAK,CAAA;AACxC,eAAO,MAAM,oBAAoB,SAAU,CAAA;AAC3C,eAAO,MAAM,kBAAkB,SAAU,CAAA;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,wBAAsB,QAAQ,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,cAAc,CAAC,CA6ChF"}
|
package/dist/agents/runAgent.js
CHANGED
|
@@ -75,6 +75,8 @@ export async function runAgent(options) {
|
|
|
75
75
|
tokenBudget: options.tokenBudget ?? DEFAULT_TOKEN_BUDGET,
|
|
76
76
|
timeoutMs: options.timeoutMs ?? DEFAULT_TIMEOUT_MS,
|
|
77
77
|
...(options.temperature !== undefined ? { temperature: options.temperature } : {}),
|
|
78
|
+
...(options.thinking ? { thinking: options.thinking } : {}),
|
|
79
|
+
...(options.effort ? { effort: options.effort } : {}),
|
|
78
80
|
},
|
|
79
81
|
// One option covers both. `drainQuery` separates the id from the
|
|
80
82
|
// display name because a fleet needs a stable key and a readable
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runAgent.js","sourceRoot":"","sources":["../../src/agents/runAgent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAQtD,OAAO,EACN,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,GAChB,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"runAgent.js","sourceRoot":"","sources":["../../src/agents/runAgent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAQtD,OAAO,EACN,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,GAChB,MAAM,gBAAgB,CAAA;AAgHvB;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,EAAE,CAAA;AACxC,MAAM,CAAC,MAAM,oBAAoB,GAAG,OAAO,CAAA;AAC3C,MAAM,CAAC,MAAM,kBAAkB,GAAG,OAAO,CAAA;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,MAAM,CAAC,KAAK,UAAU,QAAQ,CAAC,OAAwB;IACtD,MAAM,QAAQ,GAA4B;QACzC,SAAS,EAAE,OAAO,CAAC,SAAS,IAAI,iBAAiB,EAAE;QACnD,QAAQ,EAAE,OAAO,CAAC,QAAQ,IAAI,gBAAgB,EAAE;QAChD,SAAS,EAAE,OAAO,CAAC,SAAS,IAAI,iBAAiB,EAAE;QACnD,QAAQ,EAAE,OAAO,CAAC,QAAQ,IAAI,gBAAgB,EAAE;KAChD,CAAA;IAED,MAAM,QAAQ,GACb,OAAO,OAAO,CAAC,MAAM,KAAK,QAAQ;QACj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