@namzu/sdk 44.2.0 → 44.3.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 +10 -0
- package/dist/prompt/coding-agent-doctrine.d.ts +1 -1
- package/dist/prompt/coding-agent-doctrine.d.ts.map +1 -1
- package/dist/prompt/coding-agent-doctrine.js +1 -1
- package/dist/prompt/coding-agent-doctrine.js.map +1 -1
- package/dist/types/provider/stream.d.ts +10 -0
- package/dist/types/provider/stream.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/prompt/coding-agent-doctrine.ts +1 -1
- package/src/types/provider/stream.ts +10 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 44.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 4375e72: A provider-hosted web search now says what it searched for. `StreamChunk.delta.hostedTool`, and so the `hosted_tool` session event and the `hosted.tool` SSE event, may carry `query` (the search query), `url` (a page the provider opened instead of running a query) and `results` (how many sources it reported). Codex fills them from the search call's action, Anthropic from the search block's streamed input and its result list, Google from the grounding metadata. Each field is optional and absent when the provider does not say; nothing that already reads `id`, `name` and `status` changes. A custom driver can start emitting them whenever it knows them.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 1b65e2e: `CODING_AGENT_ORCHESTRATE_DOCTRINE` gains one sentence: agents in the same phase are launched in the same response, with `run_in_background: true` when they are to be waited for together, never one at a time. The text only reaches a prompt when a host turns orchestrate mode on (`codingAgentDoctrineContribution({ orchestrate: true })`); with the option off the rendered doctrine is byte-identical to before. A host that snapshots the orchestrate text will see the new sentence.
|
|
12
|
+
|
|
3
13
|
## 44.2.0
|
|
4
14
|
|
|
5
15
|
### Minor Changes
|
|
@@ -52,7 +52,7 @@ export declare const PLAN_MODE_DOCTRINE = "## Plan mode\n\nYou are in plan mode.
|
|
|
52
52
|
* creates no roster, starts no work by itself, and names no tool the base
|
|
53
53
|
* doctrine did not already name.
|
|
54
54
|
*/
|
|
55
|
-
export declare const CODING_AGENT_ORCHESTRATE_DOCTRINE = "### Orchestrate mode\nThis session has orchestrate mode on: treat delegation through `Agent` as the default for substantive work, not the exception. Before doing multi-step work yourself, ask whether an independent piece of it \u2014 a lookup, a draft, a check \u2014 could run as its own delegation, and prefer delegating it when the answer is yes. This changes only how eagerly you reach for `Agent` on work you would otherwise do inline; it does not mount a roster or start any delegation by itself.";
|
|
55
|
+
export declare const CODING_AGENT_ORCHESTRATE_DOCTRINE = "### Orchestrate mode\nThis session has orchestrate mode on: treat delegation through `Agent` as the default for substantive work, not the exception. Before doing multi-step work yourself, ask whether an independent piece of it \u2014 a lookup, a draft, a check \u2014 could run as its own delegation, and prefer delegating it when the answer is yes. This changes only how eagerly you reach for `Agent` on work you would otherwise do inline; it does not mount a roster or start any delegation by itself. Agents in the same phase are launched in the same response, each with `run_in_background: true` when you mean to wait for them together; a phase is never started one agent at a time.";
|
|
56
56
|
export declare const CODING_AGENT_DOCTRINE_CONTRIBUTION_ID = "namzu.coding-agent-doctrine";
|
|
57
57
|
export interface CodingAgentDoctrineOptions {
|
|
58
58
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coding-agent-doctrine.d.ts","sourceRoot":"","sources":["../../src/prompt/coding-agent-doctrine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AAE5D,eAAO,MAAM,6BAA6B,wuMAsC+E,CAAA;AAEzH;;;GAGG;AACH,eAAO,MAAM,gCAAgC,gkCAGwP,CAAA;AAErS;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,snBAI8S,CAAA;AAE7U;;;;;;;GAOG;AACH,eAAO,MAAM,iCAAiC,
|
|
1
|
+
{"version":3,"file":"coding-agent-doctrine.d.ts","sourceRoot":"","sources":["../../src/prompt/coding-agent-doctrine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AAE5D,eAAO,MAAM,6BAA6B,wuMAsC+E,CAAA;AAEzH;;;GAGG;AACH,eAAO,MAAM,gCAAgC,gkCAGwP,CAAA;AAErS;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,snBAI8S,CAAA;AAE7U;;;;;;;GAOG;AACH,eAAO,MAAM,iCAAiC,krBACsmB,CAAA;AAEppB,eAAO,MAAM,qCAAqC,gCAAgC,CAAA;AAElF,MAAM,WAAW,0BAA0B;IAC1C;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;;;;;;;OASG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;CACrB;AAED;;;;;GAKG;AACH,wBAAgB,+BAA+B,CAC9C,OAAO,GAAE,0BAA+B,GACtC,kBAAkB,CAepB"}
|
|
@@ -97,7 +97,7 @@ When you have understood the task, reply with the plan: what you would change, i
|
|
|
97
97
|
* doctrine did not already name.
|
|
98
98
|
*/
|
|
99
99
|
export const CODING_AGENT_ORCHESTRATE_DOCTRINE = `### Orchestrate mode
|
|
100
|
-
This session has orchestrate mode on: treat delegation through \`Agent\` as the default for substantive work, not the exception. Before doing multi-step work yourself, ask whether an independent piece of it — a lookup, a draft, a check — could run as its own delegation, and prefer delegating it when the answer is yes. This changes only how eagerly you reach for \`Agent\` on work you would otherwise do inline; it does not mount a roster or start any delegation by itself.`;
|
|
100
|
+
This session has orchestrate mode on: treat delegation through \`Agent\` as the default for substantive work, not the exception. Before doing multi-step work yourself, ask whether an independent piece of it — a lookup, a draft, a check — could run as its own delegation, and prefer delegating it when the answer is yes. This changes only how eagerly you reach for \`Agent\` on work you would otherwise do inline; it does not mount a roster or start any delegation by itself. Agents in the same phase are launched in the same response, each with \`run_in_background: true\` when you mean to wait for them together; a phase is never started one agent at a time.`;
|
|
101
101
|
export const CODING_AGENT_DOCTRINE_CONTRIBUTION_ID = 'namzu.coding-agent-doctrine';
|
|
102
102
|
/**
|
|
103
103
|
* The doctrine as a `static` contribution: it depends on nothing that changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coding-agent-doctrine.js","sourceRoot":"","sources":["../../src/prompt/coding-agent-doctrine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAIH,MAAM,CAAC,MAAM,6BAA6B,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yHAsC4E,CAAA;AAEzH;;;GAGG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG;;;qSAGqP,CAAA;AAErS;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;;;;6UAI2S,CAAA;AAE7U;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAAG;
|
|
1
|
+
{"version":3,"file":"coding-agent-doctrine.js","sourceRoot":"","sources":["../../src/prompt/coding-agent-doctrine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAIH,MAAM,CAAC,MAAM,6BAA6B,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yHAsC4E,CAAA;AAEzH;;;GAGG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG;;;qSAGqP,CAAA;AAErS;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;;;;6UAI2S,CAAA;AAE7U;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAAG;opBACmmB,CAAA;AAEppB,MAAM,CAAC,MAAM,qCAAqC,GAAG,6BAA6B,CAAA;AAsBlF;;;;;GAKG;AACH,MAAM,UAAU,+BAA+B,CAC9C,UAAsC,EAAE;IAExC,MAAM,IAAI,GAAG;QACZ,6BAA6B;QAC7B,OAAO,CAAC,UAAU,KAAK,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,gCAAgC;QAC3E,OAAO,CAAC,UAAU,KAAK,KAAK,IAAI,OAAO,CAAC,WAAW;YAClD,CAAC,CAAC,iCAAiC;YACnC,CAAC,CAAC,SAAS;KACZ;SACC,MAAM,CAAC,CAAC,IAAI,EAAkB,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;SAC/C,IAAI,CAAC,MAAM,CAAC,CAAA;IACd,OAAO;QACN,EAAE,EAAE,qCAAqC;QACzC,SAAS,EAAE,QAAQ;QACnB,MAAM,EAAE,GAAG,EAAE,CAAC,IAAI;KAClB,CAAA;AACF,CAAC"}
|
|
@@ -15,6 +15,16 @@ export interface StreamChunk {
|
|
|
15
15
|
id: string;
|
|
16
16
|
name: 'web_search';
|
|
17
17
|
status: 'running' | 'completed' | 'failed';
|
|
18
|
+
/**
|
|
19
|
+
* What the provider searched for, when it says. Often absent on
|
|
20
|
+
* `running` and present on the terminal chunk: a provider may decide
|
|
21
|
+
* the query while the call is already under way.
|
|
22
|
+
*/
|
|
23
|
+
query?: string;
|
|
24
|
+
/** The page the provider opened or searched within, for a page action rather than a query. */
|
|
25
|
+
url?: string;
|
|
26
|
+
/** How many sources the provider reported for this call. Absent means unknown, not zero. */
|
|
27
|
+
results?: number;
|
|
18
28
|
};
|
|
19
29
|
content?: string;
|
|
20
30
|
/** Identity and phase of this content fragment, when the provider supplies them. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stream.d.ts","sourceRoot":"","sources":["../../../src/types/provider/stream.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAEpD,MAAM,WAAW,WAAW;IAC3B,EAAE,EAAE,MAAM,CAAA;IACV;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA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EAAE,OAAO,CAAA;CAChC;AAED;;;;;;;;;;GAUG;AACH,MAAM,WAAW,sBAAsB;IACtC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAA;IAC/B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;IAC7B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,sEAAsE;IACtE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;IACxB,6EAA6E;IAC7E,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CACvB"}
|
package/package.json
CHANGED
|
@@ -103,7 +103,7 @@ When you have understood the task, reply with the plan: what you would change, i
|
|
|
103
103
|
* doctrine did not already name.
|
|
104
104
|
*/
|
|
105
105
|
export const CODING_AGENT_ORCHESTRATE_DOCTRINE = `### Orchestrate mode
|
|
106
|
-
This session has orchestrate mode on: treat delegation through \`Agent\` as the default for substantive work, not the exception. Before doing multi-step work yourself, ask whether an independent piece of it — a lookup, a draft, a check — could run as its own delegation, and prefer delegating it when the answer is yes. This changes only how eagerly you reach for \`Agent\` on work you would otherwise do inline; it does not mount a roster or start any delegation by itself.`
|
|
106
|
+
This session has orchestrate mode on: treat delegation through \`Agent\` as the default for substantive work, not the exception. Before doing multi-step work yourself, ask whether an independent piece of it — a lookup, a draft, a check — could run as its own delegation, and prefer delegating it when the answer is yes. This changes only how eagerly you reach for \`Agent\` on work you would otherwise do inline; it does not mount a roster or start any delegation by itself. Agents in the same phase are launched in the same response, each with \`run_in_background: true\` when you mean to wait for them together; a phase is never started one agent at a time.`
|
|
107
107
|
|
|
108
108
|
export const CODING_AGENT_DOCTRINE_CONTRIBUTION_ID = 'namzu.coding-agent-doctrine'
|
|
109
109
|
|
|
@@ -16,6 +16,16 @@ export interface StreamChunk {
|
|
|
16
16
|
id: string
|
|
17
17
|
name: 'web_search'
|
|
18
18
|
status: 'running' | 'completed' | 'failed'
|
|
19
|
+
/**
|
|
20
|
+
* What the provider searched for, when it says. Often absent on
|
|
21
|
+
* `running` and present on the terminal chunk: a provider may decide
|
|
22
|
+
* the query while the call is already under way.
|
|
23
|
+
*/
|
|
24
|
+
query?: string
|
|
25
|
+
/** The page the provider opened or searched within, for a page action rather than a query. */
|
|
26
|
+
url?: string
|
|
27
|
+
/** How many sources the provider reported for this call. Absent means unknown, not zero. */
|
|
28
|
+
results?: number
|
|
19
29
|
}
|
|
20
30
|
|
|
21
31
|
content?: string
|