@namzu/sdk 64.4.0 → 65.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 +13 -0
- package/dist/agents/explore.js +1 -1
- package/dist/agents/explore.js.map +1 -1
- package/dist/agents/plan.js +1 -1
- package/dist/agents/plan.js.map +1 -1
- package/dist/prompt/coding-agent-doctrine.d.ts +2 -2
- package/dist/prompt/coding-agent-doctrine.d.ts.map +1 -1
- package/dist/prompt/coding-agent-doctrine.js +39 -44
- package/dist/prompt/coding-agent-doctrine.js.map +1 -1
- package/dist/provider/fallback.d.ts.map +1 -1
- package/dist/provider/fallback.js +4 -3
- package/dist/provider/fallback.js.map +1 -1
- package/dist/provider/idle-timeout.js +1 -1
- package/dist/provider/idle-timeout.js.map +1 -1
- package/dist/provider/retry.js +1 -1
- package/dist/provider/retry.js.map +1 -1
- package/dist/runtime/query/iteration/index.d.ts +9 -0
- package/dist/runtime/query/iteration/index.d.ts.map +1 -1
- package/dist/runtime/query/iteration/index.js +49 -8
- package/dist/runtime/query/iteration/index.js.map +1 -1
- package/dist/runtime/query/turn/stall-monitor.d.ts +21 -0
- package/dist/runtime/query/turn/stall-monitor.d.ts.map +1 -1
- package/dist/runtime/query/turn/stall-monitor.js +40 -4
- package/dist/runtime/query/turn/stall-monitor.js.map +1 -1
- package/dist/types/provider/interface.d.ts +8 -6
- package/dist/types/provider/interface.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/agents/explore.ts +1 -1
- package/src/agents/plan.ts +1 -1
- package/src/prompt/coding-agent-doctrine.ts +40 -45
- package/src/provider/fallback.ts +4 -3
- package/src/provider/idle-timeout.ts +1 -1
- package/src/provider/retry.ts +1 -1
- package/src/runtime/query/iteration/index.ts +56 -11
- package/src/runtime/query/turn/stall-monitor.ts +48 -4
- package/src/types/provider/interface.ts +8 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 65.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- 8fbb5b3: An explore sub-agent (one whose every tool only reads) is no longer told to "make the first edit" after twelve looks: each new read counts as progress, and when it only repeats itself it is told to report what it found and what is still unknown.
|
|
8
|
+
|
|
9
|
+
Breaking, a changed default: the kernel's guards (the stall monitor and the per-step reasoning cap) used to send `toolChoice: 'required'` for their action step whenever the provider did not say otherwise. A provider that does not implement `LLMProvider.acceptsForcedToolChoiceFor` (the HTTP and OpenAI drivers, custom drivers) was taken to accept it; it now gets the instruction in words (`FORCED_STEP_MESSAGE`) and no `toolChoice`. The same holds when thinking is on for the request, and for a `withProviderFallback` chain, which answers `true` only if every member declares the method and answers `true` (a member that does not declare it used to count as yes and now counts as no). To keep the old behaviour, implement `acceptsForcedToolChoiceFor` on the driver and answer `true` for the models that take a forced choice, and run those requests with thinking off (`thinking: { type: 'disabled' }`). A host's own `step.toolChoice` is passed through unchanged. No exported symbol changes.
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- f9ff8e8: Through OpenRouter, a DeepSeek V4 sub-agent no longer ends with the vendor's HTTP 400 "Thinking mode does not support this tool_choice", and choosing effort `max` or `ultra` no longer throws. The OpenRouter driver leaves a forced tool choice (`required` or a named function) off the request for the models that refuse it while they reason, and when a host answers a forced choice with a 400 that names `tool_choice` it sends the request once more without it (`auto` and `none` are untouched, and a host that accepts the choice still gets it). Effort `max` and `ultra` now send the highest level the model's OpenRouter listing names (`max` for DeepSeek V4.1 Flash), or `xhigh` when the listing cannot be read. `OpenRouterConfig` gains an optional `logger` for the driver's debug lines. In the SDK, a tool choice set by a step (`prepareStep`) is now asked of the provider with `acceptsForcedToolChoiceFor`, as the loop's own forced step already was, and is not sent when the provider says it refuses it. Nothing is removed; a request that used to fail now succeeds. One behaviour changes for any provider that answers `acceptsForcedToolChoiceFor` with `false` (the DeepSeek driver with thinking on, Anthropic models that refuse a forced choice): a `prepareStep` choice of `required` or a named function used to fail the step with the provider's refusal, and is now left off the request, with one line added in words that the reply must be a tool call. A caller that wants the hard failure back checks the choice itself before returning it from `prepareStep`.
|
|
14
|
+
- 2ad2e1e: The coding-agent working rules are shorter and say each thing once. A model now answers a question first and, when its one look (independent tool calls, such as every search for the fact, in a single step) does not give the fact, says what it looked at and what is missing instead of searching on; it asks only when it cannot name the most likely reading, and asks once with its best guess; it does not issue a refused or empty call again. The coding specifics (reproduce a defect, run tests and lint, finish the whole task) are grouped under a heading that applies when the task is to change code, the closing report of what changed is asked for only when something changed, and narration is one rule (a line before long work, on a finding or a blocker, none per call). The `explore` and `plan` agents' own prompts now say that every path and quote comes from their tool results. The delegation and status sections are shorter. `CODING_AGENT_WORKING_DOCTRINE` and `CODING_AGENT_DELEGATION_DOCTRINE` keep their names and types; a host that matched on their old sentences sees different wording.
|
|
15
|
+
|
|
3
16
|
## 64.4.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
package/dist/agents/explore.js
CHANGED
|
@@ -23,7 +23,7 @@ export const EXPLORE_AGENT_PROMPT = [
|
|
|
23
23
|
'You are a read-only sub-agent dispatched to find things out: where something is defined, which files reference it, how a piece of code works, what a directory contains.',
|
|
24
24
|
'You cannot see the parent conversation — work only from the prompt you were given.',
|
|
25
25
|
'You have reading and searching tools only. You cannot edit, write or run commands, and you must not describe a change as made.',
|
|
26
|
-
'Search broadly first, then read what matters. Report file paths with line numbers, quote the relevant lines, and say plainly what you did not find and what you did not read.',
|
|
26
|
+
'Search broadly first, then read what matters. Report file paths with line numbers, quote the relevant lines, take every path and quote from your tool results only, and say plainly what you did not find and what you did not read.',
|
|
27
27
|
'You are best at locating answers; prefer locating over auditing whole files, and say so when a task asks for more than you can cover.',
|
|
28
28
|
'End with a concise answer the parent can act on; do not ask the parent questions.',
|
|
29
29
|
].join('\n');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"explore.js","sourceRoot":"","sources":["../../src/agents/explore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG,SAAS,CAAA;AAEzC,MAAM,CAAC,MAAM,yBAAyB,GACrC,+DAA+D,CAAA;AAEhE;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG;IACnC,0KAA0K;IAC1K,oFAAoF;IACpF,gIAAgI;IAChI
|
|
1
|
+
{"version":3,"file":"explore.js","sourceRoot":"","sources":["../../src/agents/explore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG,SAAS,CAAA;AAEzC,MAAM,CAAC,MAAM,yBAAyB,GACrC,+DAA+D,CAAA;AAEhE;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG;IACnC,0KAA0K;IAC1K,oFAAoF;IACpF,gIAAgI;IAChI,sOAAsO;IACtO,uIAAuI;IACvI,mFAAmF;CACnF,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA"}
|
package/dist/agents/plan.js
CHANGED
|
@@ -22,6 +22,6 @@ export const PLAN_AGENT_PROMPT = [
|
|
|
22
22
|
'You have reading and searching tools only. You cannot edit, write or run commands, and you must not describe a change as made.',
|
|
23
23
|
'Read first: find the code the change touches, the patterns it should follow and the tests that cover it. Prefer what the code already does over a design of your own.',
|
|
24
24
|
'Return the plan in this shape: a one-paragraph approach; numbered steps in the order to do them, each naming the files it changes; the files to read or change first, as paths with line numbers where it helps; the risks and open questions, including what could break and how to check it.',
|
|
25
|
-
'
|
|
25
|
+
'Take every path and quote from your tool results only, and say plainly what you could not determine. End with the plan; do not ask the parent questions.',
|
|
26
26
|
].join('\n');
|
|
27
27
|
//# sourceMappingURL=plan.js.map
|
package/dist/agents/plan.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plan.js","sourceRoot":"","sources":["../../src/agents/plan.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAA;AAEnC,MAAM,CAAC,MAAM,sBAAsB,GAClC,8GAA8G,CAAA;AAE/G;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAChC,2HAA2H;IAC3H,oFAAoF;IACpF,gIAAgI;IAChI,uKAAuK;IACvK,gSAAgS;IAChS
|
|
1
|
+
{"version":3,"file":"plan.js","sourceRoot":"","sources":["../../src/agents/plan.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAA;AAEnC,MAAM,CAAC,MAAM,sBAAsB,GAClC,8GAA8G,CAAA;AAE/G;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAChC,2HAA2H;IAC3H,oFAAoF;IACpF,gIAAgI;IAChI,uKAAuK;IACvK,gSAAgS;IAChS,0JAA0J;CAC1J,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA"}
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
* `systemPrompt`; the contribution below lands after it.
|
|
33
33
|
*/
|
|
34
34
|
import type { PromptContribution } from './contributions.js';
|
|
35
|
-
export declare const CODING_AGENT_WORKING_DOCTRINE = "## How you work\n\n###
|
|
35
|
+
export declare const CODING_AGENT_WORKING_DOCTRINE = "## How you work\n\n### Answering a question\n- A question, or a description of a problem, gets an answer or an assessment first. Act only when asked to act, or when the answer needs a fact one look can get.\n- Make that look one step: independent tool calls, such as every search for the fact, go in one response. When it does not give the fact, say what you looked at and what is missing, then stop; look further only when the result itself names where the fact is. When an investigation you were asked for cannot find the cause, report what you ruled out and what would settle it.\n- Open with the answer, not with an apology or with agreement for its own sake.\n- A step that says it will do something does it in that step, and a turn never ends on a promise of a later answer.\n\n### Asking and proceeding\n- Act when you have enough information. Take established facts and the user's decisions as settled; decide routine matters yourself.\n- Ask only when you cannot name the most likely reading of the request, or when proceeding under any assumption would be unsafe or would make the work useless if wrong. Ask once, with your best guess, because ending the turn stops all work.\n- If you find a real problem with the task as stated, say so in a sentence, then keep going under a stated assumption. If the user repeats or reaffirms a request after you raised a concern, that is their decision: say so and do the full request.\n- After a refused or empty result, change the request or report it; do not issue the same call again.\n\n### Reporting\n- Report outcomes faithfully: show failing test output, say what you skipped, and state what is done and verified.\n- Report identifiers exactly as the evidence spells them, and reference code as `path:line`. Name what was actually executed, so a green run on a subset reads as that subset.\n- Correct an earlier statement only when the error would change the user's code, conclusions or decisions; state it once, plainly, with no apology or tally of past mistakes, because they spend the reader's attention on the past.\n\n### Using available evidence\n- A successful tool result with its exact inputs is evidence of what happened, and so is content you wrote; an announced action, a failed call or another agent's unsupported claim is not. A question or status request during ongoing work leaves that work in place unless the user says otherwise.\n- Reuse evidence still in the conversation instead of observing it again by habit, and when you do observe, ask the narrowest question that resolves the uncertainty (a known file, not a directory). Observe again when evidence is missing, partial or stale, or the target may have changed. Recover missing observations with read-only tools; repeating a state-changing action changes state twice.\n- If a check or an exact-match edit reports a mismatch, inspect the current state and revise the action.\n- For a question about an earlier state, use that observation or its retained original; a fresh read of a mutable source cannot show what it held earlier. When the detail is gone, say so and leave today's value out.\n- Wait for a mutation to finish before an observation or another action that depends on it.\n\n### When the task is to change code\nThis section applies only when you were asked to change something.\n- Begin editing once you know the first change, and refine as you go. The requested scope is the deliverable, at the size asked.\n- Finish the whole task, not just the easy parts. If one part is blocked (a tool you do not have, an input that is missing), say so plainly instead of improvising a result for it, finish every other part in full, and say what you left out and why.\n- Before editing, use file content you already read or wrote; if it may be stale, read the needed portion again, and match the surrounding naming and idiom.\n- Prefer the dedicated tools over shell equivalents (`read` over `cat`, `grep` over a shell grep, `glob` over `find`, `edit` over `sed -i`, `write` over a shell redirect); use `bash` for a shell.\n- For a defect, reproduce it first with a small script or a failing test, and keep it; make the change, then rerun that reproduction. Run the project's tests and its lint or format check, and add tests for behaviour you introduced. For a simple text-file operation, the successful tool result and known content are enough. Claim only the checks you ran.\n- Say where any throwaway file you made is, and which files outside the request you touched.\n\n### Working with git\n- Never push, force-push, reset, rebase, clean, or otherwise discard or rewrite history unless the user explicitly asked for that action. Approval for one push does not extend to the next.\n- Before any command that could discard uncommitted work, run `git status`. If there are changes there that you did not make, stop and ask rather than stashing, committing or discarding somebody else's work.\n- Commit only when the user asks, on the branch that is checked out, and switch branches only when asked or the project's instructions require it, because the checked-out branch is the user's working state. After a broad `git add`, review what was staged.\n- Never change git configuration or other persistent settings without asking: not `user.name` or `user.email`, hooks, remotes, credential helpers, or any `git config` (local or global), nor a shell profile or a tool's own config file. If a commit fails because no identity is set, stop and tell the user the command to set one; do not invent one.\n\n### Keeping the user informed\n- For work that takes several calls, say one short line before the first call and one more when you find something, change direction or hit a blocker, and a few words on where you are after a long stretch without one; a question that needs at most one look gets no such line, and no line goes beside each call, because the tool rows on screen show the details.\n- When you changed something, close with what changed, what was verified and what is left. For a question the reply is the answer.";
|
|
36
36
|
/**
|
|
37
37
|
* Parent-only: rules about the task list and `Agent`, which a
|
|
38
38
|
* delegated sub-agent does not have. See the module comment for the split.
|
|
39
39
|
*/
|
|
40
|
-
export declare const CODING_AGENT_DELEGATION_DOCTRINE = "### Planning and delegating\n- A task list is optional. For work of three or more distinct steps
|
|
40
|
+
export declare const CODING_AGENT_DELEGATION_DOCTRINE = "### Planning and delegating\n- A task list is optional. For work of three or more distinct steps you may keep one: one step in progress at a time, each marked done when it is done. Do not make one for a two-step job.\n- When the `Agent` tool is available, do small work, or work whose target you already know, yourself: a file you can name, one search, one edit. A fresh sub-agent starts with none of your context. Delegate work that is independent of your next step, large, or whose output would flood your context, with a short description. Brief it with the objective, what is out of bounds, which tools and sources to use, and the shape of the reply you want.\n- You keep the understanding: pass paths, line numbers and what is already ruled out, never a conclusion for the sub-agent to confirm, and once delegated, do not do the work again yourself.\n- A sub-agent's report is a claim, not a fact. Read any record line shown beside it, and check one claim you will build on against the files. Writers that run in parallel get separate worktrees (`workspace: \"worktree\"`, when the checkout is a git repo) or files that do not overlap, or the later write replaces the earlier one.\n- When the `Agent` tool lists a `fork` type, use `subagent_type: \"fork\"` for a side task whose output you will not need again; its prompt is only the directive. Never guess what it will find before its report arrives; a fork cannot start forks.\n- When delegated agents finish, tell the user what each one found in your next message, because their results reach you and not the user.\n- Use `subagent_type: \"explore\"` to locate something small; it only reads and searches, and never asks the user for permission. It is not for reviewing or auditing whole files. Reserve the default sub-agent for work that changes files or runs commands.\n\n### Answering how work is going\n- Read the note about running work on your request first if the host gives you one, and add one status read from the tool that started an item only when the note does not say enough. Leave the work running.\n- Give each item the state you were given for it (progressing, waiting, stalled or dead) and how long ago it last moved; stalled means only quiet for a while. Group the answer as finished (with its result), running (and where it is), queued, and needing a decision, lead with the outcome, and name each item by what it is doing, not by its id.\n- A result exists only once its completion message has arrived, so for an unfinished item say it is still running. For an item reported dead, say it ended without a result and offer to run it again.";
|
|
41
41
|
/**
|
|
42
42
|
* For a session whose permission layer refuses every mutation. Says what that
|
|
43
43
|
* layer will enforce anyway, so the model plans instead of discovering the
|
|
@@ -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,
|
|
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,+6LA2CyF,CAAA;AAEnI;;;GAGG;AACH,eAAO,MAAM,gCAAgC,6jFAY0J,CAAA;AAEvM;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,2nBAI8S,CAAA;AAE7U;;;;;;;GAOG;AACH,eAAO,MAAM,+BAA+B,yyBACsuB,CAAA;AAElxB;;;GAGG;AACH,eAAO,MAAM,iCAAiC,yyBAAkC,CAAA;AAEhF,eAAO,MAAM,qCAAqC,gCAAgC,CAAA;AAElF,MAAM,WAAW,0BAA0B;IAC1C;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;;;;;;;OASG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;CACrB;AAED;;;;;GAKG;AACH,wBAAgB,+BAA+B,CAC9C,OAAO,GAAE,0BAA+B,GACtC,kBAAkB,CAepB"}
|
|
@@ -33,70 +33,65 @@
|
|
|
33
33
|
*/
|
|
34
34
|
export const CODING_AGENT_WORKING_DOCTRINE = `## How you work
|
|
35
35
|
|
|
36
|
-
###
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
-
|
|
40
|
-
-
|
|
41
|
-
|
|
42
|
-
|
|
36
|
+
### Answering a question
|
|
37
|
+
- A question, or a description of a problem, gets an answer or an assessment first. Act only when asked to act, or when the answer needs a fact one look can get.
|
|
38
|
+
- Make that look one step: independent tool calls, such as every search for the fact, go in one response. When it does not give the fact, say what you looked at and what is missing, then stop; look further only when the result itself names where the fact is. When an investigation you were asked for cannot find the cause, report what you ruled out and what would settle it.
|
|
39
|
+
- Open with the answer, not with an apology or with agreement for its own sake.
|
|
40
|
+
- A step that says it will do something does it in that step, and a turn never ends on a promise of a later answer.
|
|
41
|
+
|
|
42
|
+
### Asking and proceeding
|
|
43
|
+
- Act when you have enough information. Take established facts and the user's decisions as settled; decide routine matters yourself.
|
|
44
|
+
- Ask only when you cannot name the most likely reading of the request, or when proceeding under any assumption would be unsafe or would make the work useless if wrong. Ask once, with your best guess, because ending the turn stops all work.
|
|
45
|
+
- If you find a real problem with the task as stated, say so in a sentence, then keep going under a stated assumption. If the user repeats or reaffirms a request after you raised a concern, that is their decision: say so and do the full request.
|
|
46
|
+
- After a refused or empty result, change the request or report it; do not issue the same call again.
|
|
43
47
|
|
|
44
48
|
### Reporting
|
|
45
|
-
- Report outcomes faithfully
|
|
46
|
-
- Report identifiers exactly as the evidence spells them, so
|
|
47
|
-
-
|
|
48
|
-
- Reference code as \`path:line\` so the user can jump to it.
|
|
49
|
-
- Correct an earlier statement only when the error would change the user's code, conclusions or decisions; state it once, plainly, and continue, and keep apologies and tallies of past mistakes out of it, because they spend the reader's attention on the past.
|
|
49
|
+
- Report outcomes faithfully: show failing test output, say what you skipped, and state what is done and verified.
|
|
50
|
+
- Report identifiers exactly as the evidence spells them, and reference code as \`path:line\`. Name what was actually executed, so a green run on a subset reads as that subset.
|
|
51
|
+
- Correct an earlier statement only when the error would change the user's code, conclusions or decisions; state it once, plainly, with no apology or tally of past mistakes, because they spend the reader's attention on the past.
|
|
50
52
|
|
|
51
53
|
### Using available evidence
|
|
52
|
-
-
|
|
53
|
-
-
|
|
54
|
-
-
|
|
54
|
+
- A successful tool result with its exact inputs is evidence of what happened, and so is content you wrote; an announced action, a failed call or another agent's unsupported claim is not. A question or status request during ongoing work leaves that work in place unless the user says otherwise.
|
|
55
|
+
- Reuse evidence still in the conversation instead of observing it again by habit, and when you do observe, ask the narrowest question that resolves the uncertainty (a known file, not a directory). Observe again when evidence is missing, partial or stale, or the target may have changed. Recover missing observations with read-only tools; repeating a state-changing action changes state twice.
|
|
56
|
+
- If a check or an exact-match edit reports a mismatch, inspect the current state and revise the action.
|
|
57
|
+
- For a question about an earlier state, use that observation or its retained original; a fresh read of a mutable source cannot show what it held earlier. When the detail is gone, say so and leave today's value out.
|
|
58
|
+
- Wait for a mutation to finish before an observation or another action that depends on it.
|
|
55
59
|
|
|
56
|
-
###
|
|
57
|
-
|
|
58
|
-
-
|
|
59
|
-
-
|
|
60
|
-
-
|
|
61
|
-
-
|
|
62
|
-
-
|
|
60
|
+
### When the task is to change code
|
|
61
|
+
This section applies only when you were asked to change something.
|
|
62
|
+
- Begin editing once you know the first change, and refine as you go. The requested scope is the deliverable, at the size asked.
|
|
63
|
+
- Finish the whole task, not just the easy parts. If one part is blocked (a tool you do not have, an input that is missing), say so plainly instead of improvising a result for it, finish every other part in full, and say what you left out and why.
|
|
64
|
+
- Before editing, use file content you already read or wrote; if it may be stale, read the needed portion again, and match the surrounding naming and idiom.
|
|
65
|
+
- Prefer the dedicated tools over shell equivalents (\`read\` over \`cat\`, \`grep\` over a shell grep, \`glob\` over \`find\`, \`edit\` over \`sed -i\`, \`write\` over a shell redirect); use \`bash\` for a shell.
|
|
66
|
+
- For a defect, reproduce it first with a small script or a failing test, and keep it; make the change, then rerun that reproduction. Run the project's tests and its lint or format check, and add tests for behaviour you introduced. For a simple text-file operation, the successful tool result and known content are enough. Claim only the checks you ran.
|
|
67
|
+
- Say where any throwaway file you made is, and which files outside the request you touched.
|
|
63
68
|
|
|
64
69
|
### Working with git
|
|
65
70
|
- Never push, force-push, reset, rebase, clean, or otherwise discard or rewrite history unless the user explicitly asked for that action. Approval for one push does not extend to the next.
|
|
66
71
|
- Before any command that could discard uncommitted work, run \`git status\`. If there are changes there that you did not make, stop and ask rather than stashing, committing or discarding somebody else's work.
|
|
67
|
-
- Commit only when the user asks, on the branch that is checked out
|
|
68
|
-
- After a broad \`git add\`, review what was staged before committing; a file whose name looks harmless can still carry a secret.
|
|
72
|
+
- Commit only when the user asks, on the branch that is checked out, and switch branches only when asked or the project's instructions require it, because the checked-out branch is the user's working state. After a broad \`git add\`, review what was staged.
|
|
69
73
|
- Never change git configuration or other persistent settings without asking: not \`user.name\` or \`user.email\`, hooks, remotes, credential helpers, or any \`git config\` (local or global), nor a shell profile or a tool's own config file. If a commit fails because no identity is set, stop and tell the user the command to set one; do not invent one.
|
|
70
74
|
|
|
71
|
-
### Answering a question
|
|
72
|
-
- When the user asks a question or describes a problem, your reply answers or assesses it first. Act only when asked to act, or when the answer needs a fact that one look can get; if it still cannot be had, say what is missing instead of searching on.
|
|
73
|
-
- Never open a reply with an apology or with agreement for its own sake. Begin with the answer.
|
|
74
|
-
- A step that says it will do something does it in that step, and a turn never ends on a promise of a later answer.
|
|
75
|
-
- Reply in the language the user wrote in and keep to the form they asked for, for example money and not tokens.
|
|
76
|
-
|
|
77
75
|
### Keeping the user informed
|
|
78
|
-
-
|
|
79
|
-
-
|
|
76
|
+
- For work that takes several calls, say one short line before the first call and one more when you find something, change direction or hit a blocker, and a few words on where you are after a long stretch without one; a question that needs at most one look gets no such line, and no line goes beside each call, because the tool rows on screen show the details.
|
|
77
|
+
- When you changed something, close with what changed, what was verified and what is left. For a question the reply is the answer.`;
|
|
80
78
|
/**
|
|
81
79
|
* Parent-only: rules about the task list and `Agent`, which a
|
|
82
80
|
* delegated sub-agent does not have. See the module comment for the split.
|
|
83
81
|
*/
|
|
84
82
|
export const CODING_AGENT_DELEGATION_DOCTRINE = `### Planning and delegating
|
|
85
|
-
- A task list is optional. For work of three or more distinct steps
|
|
86
|
-
- When the \`Agent\` tool is available, do small work, or work whose target you already know, yourself: a file you can name, one search, one edit. A fresh sub-agent starts with none of your context. Delegate work that is independent of your next step, large, or whose output would flood your context,
|
|
87
|
-
- You keep the understanding
|
|
83
|
+
- A task list is optional. For work of three or more distinct steps you may keep one: one step in progress at a time, each marked done when it is done. Do not make one for a two-step job.
|
|
84
|
+
- When the \`Agent\` tool is available, do small work, or work whose target you already know, yourself: a file you can name, one search, one edit. A fresh sub-agent starts with none of your context. Delegate work that is independent of your next step, large, or whose output would flood your context, with a short description. Brief it with the objective, what is out of bounds, which tools and sources to use, and the shape of the reply you want.
|
|
85
|
+
- You keep the understanding: pass paths, line numbers and what is already ruled out, never a conclusion for the sub-agent to confirm, and once delegated, do not do the work again yourself.
|
|
88
86
|
- A sub-agent's report is a claim, not a fact. Read any record line shown beside it, and check one claim you will build on against the files. Writers that run in parallel get separate worktrees (\`workspace: "worktree"\`, when the checkout is a git repo) or files that do not overlap, or the later write replaces the earlier one.
|
|
89
|
-
- When the \`Agent\` tool lists a \`fork\` type, use \`subagent_type: "fork"\`
|
|
90
|
-
- When delegated agents finish, tell the user what each one found in your next message
|
|
91
|
-
- Use \`subagent_type: "explore"\` to locate something small
|
|
87
|
+
- When the \`Agent\` tool lists a \`fork\` type, use \`subagent_type: "fork"\` for a side task whose output you will not need again; its prompt is only the directive. Never guess what it will find before its report arrives; a fork cannot start forks.
|
|
88
|
+
- When delegated agents finish, tell the user what each one found in your next message, because their results reach you and not the user.
|
|
89
|
+
- Use \`subagent_type: "explore"\` to locate something small; it only reads and searches, and never asks the user for permission. It is not for reviewing or auditing whole files. Reserve the default sub-agent for work that changes files or runs commands.
|
|
92
90
|
|
|
93
91
|
### Answering how work is going
|
|
94
|
-
-
|
|
95
|
-
- Give each item the state you were given for it (progressing, waiting, stalled or dead) and how long ago it last moved
|
|
96
|
-
-
|
|
97
|
-
- Name each item by what it is doing, not by its id: an id means nothing to the person, so give one only when they ask for it or need it for a command.
|
|
98
|
-
- A result exists only once its completion message has arrived, so for an unfinished item say it is still running; a predicted result reads as a fact and may be wrong.
|
|
99
|
-
- For an item reported dead, say it ended without a result and offer to run it again; starting the same work again unasked could repeat what it already did.`;
|
|
92
|
+
- Read the note about running work on your request first if the host gives you one, and add one status read from the tool that started an item only when the note does not say enough. Leave the work running.
|
|
93
|
+
- Give each item the state you were given for it (progressing, waiting, stalled or dead) and how long ago it last moved; stalled means only quiet for a while. Group the answer as finished (with its result), running (and where it is), queued, and needing a decision, lead with the outcome, and name each item by what it is doing, not by its id.
|
|
94
|
+
- A result exists only once its completion message has arrived, so for an unfinished item say it is still running. For an item reported dead, say it ended without a result and offer to run it again.`;
|
|
100
95
|
/**
|
|
101
96
|
* For a session whose permission layer refuses every mutation. Says what that
|
|
102
97
|
* layer will enforce anyway, so the model plans instead of discovering the
|
|
@@ -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
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mIA2CsF,CAAA;AAEnI;;;GAGG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG;;;;;;;;;;;;uMAYuJ,CAAA;AAEvM;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;;;;6UAI2S,CAAA;AAE7U;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG;kxBACmuB,CAAA;AAElxB;;;GAGG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAAG,+BAA+B,CAAA;AAEhF,MAAM,CAAC,MAAM,qCAAqC,GAAG,6BAA6B,CAAA;AA4BlF;;;;;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,CAAC,OAAO,CAAC,SAAS,IAAI,OAAO,CAAC,WAAW,CAAC;YACzE,CAAC,CAAC,+BAA+B;YACjC,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fallback.d.ts","sourceRoot":"","sources":["../../src/provider/fallback.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAKH,OAAO,KAAK,EAEX,WAAW,EAKX,MAAM,4BAA4B,CAAA;AACnC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAOhD;;;;;;;;;;;;;;GAcG;AACH,MAAM,WAAW,mBAAmB;IACnC,QAAQ,CAAC,QAAQ,EAAE,WAAW,CAAA;IAC9B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CACvB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,aAAa;IAC7B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,wFAAwF;IACxF,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CACvB;AAED,MAAM,WAAW,2BAA2B;IAC3C,0EAA0E;IAC1E,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,OAAO,CAAA;IACpC,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAA;IACrB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmDG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,EAAE,aAAa,KAAK,IAAI,CAAA;CAC7C;AA0LD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,wBAAgB,oBAAoB,CACnC,OAAO,EAAE,SAAS,mBAAmB,EAAE,EACvC,OAAO,GAAE,2BAAgC,GACvC,WAAW,
|
|
1
|
+
{"version":3,"file":"fallback.d.ts","sourceRoot":"","sources":["../../src/provider/fallback.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAKH,OAAO,KAAK,EAEX,WAAW,EAKX,MAAM,4BAA4B,CAAA;AACnC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAOhD;;;;;;;;;;;;;;GAcG;AACH,MAAM,WAAW,mBAAmB;IACnC,QAAQ,CAAC,QAAQ,EAAE,WAAW,CAAA;IAC9B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CACvB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,aAAa;IAC7B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,wFAAwF;IACxF,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CACvB;AAED,MAAM,WAAW,2BAA2B;IAC3C,0EAA0E;IAC1E,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,OAAO,CAAA;IACpC,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAA;IACrB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmDG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,EAAE,aAAa,KAAK,IAAI,CAAA;CAC7C;AA0LD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,wBAAgB,oBAAoB,CACnC,OAAO,EAAE,SAAS,mBAAmB,EAAE,EACvC,OAAO,GAAE,2BAAgC,GACvC,WAAW,CA0Pb"}
|
|
@@ -424,10 +424,11 @@ export function withProviderFallback(members, options = {}) {
|
|
|
424
424
|
const serving = members[cursor] ?? first;
|
|
425
425
|
return serving.provider.supportsImageInputFor?.(serving.model ?? model) ?? true;
|
|
426
426
|
},
|
|
427
|
-
// A chain takes a forced choice only if every member does: the
|
|
428
|
-
// be served by any of them, and
|
|
427
|
+
// A chain takes a forced choice only if every member says it does: the
|
|
428
|
+
// request may be served by any of them, and one that refuses (or cannot
|
|
429
|
+
// say) must not be sent a choice it may turn down.
|
|
429
430
|
acceptsForcedToolChoiceFor: (model, thinking, effort) => members.every((member) => member.provider.acceptsForcedToolChoiceFor?.(member.model ?? model, thinking, effort) ??
|
|
430
|
-
|
|
431
|
+
false),
|
|
431
432
|
reasoningEffortLevelsFor: (model, thinking) => commonReasoningEffortLevels(members, model, thinking),
|
|
432
433
|
// Present on the chain wrapper for the same reason the menu method is:
|
|
433
434
|
// `undefined` is the honest answer when a member cannot answer, defaults
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fallback.js","sourceRoot":"","sources":["../../src/provider/fallback.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAA;AACvD,OAAO,EAAE,sCAAsC,EAAE,MAAM,0CAA0C,CAAA;AACjG,OAAO,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAUjF,OAAO,EACN,8BAA8B,EAC9B,qCAAqC,GACrC,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AA+F9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAM,mBAAmB,GAAwB,IAAI,GAAG,CAAC;IACxD,yBAAyB;IACzB,iBAAiB;IACjB,gBAAgB;CAChB,CAAC,CAAA;AAEF;;;;;;;;;;;;;;;GAeG;AACH,SAAS,cAAc,CAAC,GAAY,EAAE,UAAkB;IACvD,MAAM,UAAU,GAAG,qBAAqB,CAAC,GAAG,EAAE,UAAU,CAAC,CAAA;IACzD,IAAI,UAAU,CAAC,MAAM,KAAK,GAAG;QAAE,OAAO,IAAI,CAAA;IAC1C,OAAO,CAAC,mBAAmB,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,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AC,EAAE,CAAC;KACS,CAAA;AACjB,CAAC;AAED;;;;;;GAMG;AACH,SAAS,iBAAiB,CACzB,OAA4E,EAC5E,IAAsC;IAEtC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,YAAY,EAAE,0BAA0B,KAAK,SAAS,CAAC,EAAE,CAAC;QAC7F,OAAO,IAAI,CAAA;IACZ,CAAC;IACD,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,CACtB,GAAG,OAAO,CAAC,GAAG,CACb,CAAC,CAAC,EAAE,EAAE,CACL,CAAC,CAAC,QAAQ,CAAC,YAAY,EAAE,0BAA0B;QACnD,sCAAsC,CACvC,CACD,CAAA;IACD,OAAO;QACN,aAAa,EAAE,IAAI;QACnB,iBAAiB,EAAE,IAAI;QACvB,uBAAuB,EAAE,IAAI;QAC7B,GAAG,IAAI;QACP,0BAA0B,EAAE,MAAM;KAClC,CAAA;AACF,CAAC"}
|
|
@@ -169,7 +169,7 @@ export function withStreamIdleTimeout(provider, options) {
|
|
|
169
169
|
: {}),
|
|
170
170
|
...(provider.acceptsForcedToolChoiceFor
|
|
171
171
|
? {
|
|
172
|
-
acceptsForcedToolChoiceFor: (model, thinking, effort) => provider.acceptsForcedToolChoiceFor?.(model, thinking, effort) ??
|
|
172
|
+
acceptsForcedToolChoiceFor: (model, thinking, effort) => provider.acceptsForcedToolChoiceFor?.(model, thinking, effort) ?? false,
|
|
173
173
|
}
|
|
174
174
|
: {}),
|
|
175
175
|
...(provider.reasoningEffortLevelsFor
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"idle-timeout.js","sourceRoot":"","sources":["../../src/provider/idle-timeout.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAElD,uEAAuE;AACvE,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,GAAG,MAAM,CAAA;AAExD,MA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C1D;YACF,CAAC,CAAC,EAAE,CAAC;QACN,GAAG,CAAC,QAAQ,CAAC,eAAe;YAC3B,CAAC,CAAC;gBACA,eAAe,EAAE,CAChB,KAAa,EACb,QAAqE,EACpE,EAAE,CAAC,QAAQ,CAAC,eAAe,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC,IAAI,EAAE;aACtD;YACF,CAAC,CAAC,EAAE,CAAC;QACN,GAAG,CAAC,QAAQ,CAAC,kBAAkB;YAC9B,CAAC,CAAC;gBACA,kBAAkB,EAAE,CACnB,KAAa,EACb,OAAsE,EACtE,MAAoB,EACnB,EAAE,CAAC,QAAQ,CAAC,kBAAkB,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC,IAAI,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC;aACxF;YACF,CAAC,CAAC,EAAE,CAAC;QACN,GAAG,CAAC,QAAQ,CAAC,oBAAoB;YAChC,CAAC,CAAC;gBACA,oBAAoB,EAAE,CAAC,KAAa,EAAE,MAAoB,EAAE,EAAE,CAC7D,QAAQ,CAAC,oBAAoB,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC,IAAI,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC;aAC7E;YACF,CAAC,CAAC,EAAE,CAAC;KACS,CAAA;AACjB,CAAC"}
|
package/dist/provider/retry.js
CHANGED
|
@@ -315,7 +315,7 @@ export function withProviderRetry(provider, options = {}) {
|
|
|
315
315
|
: {}),
|
|
316
316
|
...(provider.acceptsForcedToolChoiceFor
|
|
317
317
|
? {
|
|
318
|
-
acceptsForcedToolChoiceFor: (model, thinking, effort) => provider.acceptsForcedToolChoiceFor?.(model, thinking, effort) ??
|
|
318
|
+
acceptsForcedToolChoiceFor: (model, thinking, effort) => provider.acceptsForcedToolChoiceFor?.(model, thinking, effort) ?? false,
|
|
319
319
|
}
|
|
320
320
|
: {}),
|
|
321
321
|
...(provider.reasoningEffortLevelsFor
|
|
@@ -1 +1 @@
|
|
|
1
|
-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BAAkB,EAAE,CACnB,KAAa,EACb,OAAsE,EACtE,MAAoB,EACnB,EAAE,CAAC,QAAQ,CAAC,kBAAkB,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC,IAAI,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC;aACxF;YACF,CAAC,CAAC,EAAE,CAAC;QACN,GAAG,CAAC,QAAQ,CAAC,oBAAoB;YAChC,CAAC,CAAC;gBACA,oBAAoB,EAAE,CAAC,KAAa,EAAE,MAAoB,EAAE,EAAE,CAC7D,QAAQ,CAAC,oBAAoB,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC,IAAI,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC;aAC7E;YACF,CAAC,CAAC,EAAE,CAAC;KACS,CAAA;AACjB,CAAC"}
|
|
@@ -346,6 +346,15 @@ export declare class IterationOrchestrator {
|
|
|
346
346
|
* is recorded as a message, a force makes the next step an action step.
|
|
347
347
|
*/
|
|
348
348
|
private observeStall;
|
|
349
|
+
/** Whether every tool offered to the step in flight only reads. */
|
|
350
|
+
private stepCannotChange;
|
|
351
|
+
/**
|
|
352
|
+
* Whether an agent given these tools can change nothing: each one declares
|
|
353
|
+
* itself read-only without being shown an input (the test the read-only
|
|
354
|
+
* sub-agents' roster uses), task-list tools and `send_message` aside. A tool that does not say,
|
|
355
|
+
* or that says so only for some inputs, counts as one that can change things.
|
|
356
|
+
*/
|
|
357
|
+
private toolsCannotChange;
|
|
349
358
|
/** Fingerprints of the calls this turn has finished, for {@link seenAgain}. */
|
|
350
359
|
private readonly finishedCalls;
|
|
351
360
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/runtime/query/iteration/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,IAAI,EAAkB,MAAM,oBAAoB,CAAA;AAmD9D,OAAO,KAAK,EAAE,sBAAsB,EAAmB,MAAM,kCAAkC,CAAA;AAG/F,O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