@eddyskywalker/dsh-chatgpt-subscription 0.88.1 → 0.89.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/client.js +1061 -284
- package/lib/client.js.map +1 -1
- package/lib/codemode.js +1 -0
- package/lib/index.js +391 -67
- package/lib/{progress-updates-CSBYky9J.js → progress-updates-DwpfBXOx.js} +53 -17
- package/lib/progress-updates.js +1 -1
- package/lib/types/client/features/progress-updates/contracts.d.ts +9 -0
- package/lib/types/client/features/progress-updates/contracts.d.ts.map +1 -1
- package/lib/types/client/features/progress-updates/dashboard.d.ts +12 -0
- package/lib/types/client/features/progress-updates/dashboard.d.ts.map +1 -0
- package/lib/types/client/features/progress-updates/host-source.d.ts +7 -1
- package/lib/types/client/features/progress-updates/host-source.d.ts.map +1 -1
- package/lib/types/client/features/progress-updates/locales.d.ts +59 -2
- package/lib/types/client/features/progress-updates/locales.d.ts.map +1 -1
- package/lib/types/client/features/progress-updates/updates-panel.d.ts +7 -89
- package/lib/types/client/features/progress-updates/updates-panel.d.ts.map +1 -1
- package/lib/types/client/locales-ru/hub.d.ts.map +1 -1
- package/lib/types/client/locales-ru/progress-updates.d.ts.map +1 -1
- package/lib/types/client/providers/codex-chatgpt/CodexSubscriptionSection.d.ts +1 -1
- package/lib/types/client/providers/codex-chatgpt/CodexSubscriptionSection.d.ts.map +1 -1
- package/lib/types/client/providers/codex-chatgpt/api.d.ts +3 -1
- package/lib/types/client/providers/codex-chatgpt/api.d.ts.map +1 -1
- package/lib/types/client/providers/codex-chatgpt/locales.d.ts +9 -1
- package/lib/types/client/providers/codex-chatgpt/locales.d.ts.map +1 -1
- package/lib/types/client/providers/codex-chatgpt/styles.d.ts.map +1 -1
- package/lib/types/compat.d.ts +1 -1
- package/lib/types/host/common/account-pool.d.ts +3 -0
- package/lib/types/host/common/account-pool.d.ts.map +1 -1
- package/lib/types/host/providers/antigravity-acp/adapter.d.ts.map +1 -1
- package/lib/types/host/providers/antigravity-acp/binary.d.ts +1 -1
- package/lib/types/host/providers/antigravity-acp/binary.d.ts.map +1 -1
- package/lib/types/host/providers/antigravity-acp/errors.d.ts +4 -2
- package/lib/types/host/providers/antigravity-acp/errors.d.ts.map +1 -1
- package/lib/types/host/providers/codex-chatgpt/codex-account-pool.d.ts +2 -0
- package/lib/types/host/providers/codex-chatgpt/codex-account-pool.d.ts.map +1 -1
- package/lib/types/host/providers/codex-chatgpt/codex-file-import.d.ts +12 -0
- package/lib/types/host/providers/codex-chatgpt/codex-file-import.d.ts.map +1 -0
- package/lib/types/host/providers/codex-chatgpt/codex-identity.d.ts +1 -0
- package/lib/types/host/providers/codex-chatgpt/codex-identity.d.ts.map +1 -1
- package/lib/types/host/providers/codex-chatgpt/routes.d.ts.map +1 -1
- package/lib/types/host/providers/kimi-code/cache-wait.d.ts +23 -0
- package/lib/types/host/providers/kimi-code/cache-wait.d.ts.map +1 -1
- package/lib/types/host/providers/opencode-go/mapper.d.ts.map +1 -1
- package/lib/types/host/providers/opendesign/mapper.d.ts.map +1 -1
- package/lib/types/host/runtime/codemode/rules.d.ts.map +1 -1
- package/lib/types/host/runtime/progress-updates/index.d.ts +1 -1
- package/lib/types/host/runtime/progress-updates/index.d.ts.map +1 -1
- package/lib/types/host/runtime/progress-updates/nudge.d.ts +1 -1
- package/lib/types/host/runtime/progress-updates/routes.d.ts +3 -1
- package/lib/types/host/runtime/progress-updates/routes.d.ts.map +1 -1
- package/lib/types/host/runtime/progress-updates/store.d.ts +8 -1
- package/lib/types/host/runtime/progress-updates/store.d.ts.map +1 -1
- package/lib/types/index.d.ts +2 -2
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/shared/contracts.d.ts +6 -0
- package/lib/types/shared/contracts.d.ts.map +1 -1
- package/package.json +1 -1
package/lib/codemode.js
CHANGED
|
@@ -661,6 +661,7 @@ function buildCodemodeSectionText(input) {
|
|
|
661
661
|
"- Discovery returns whole objects too: `" + listTool + "` answers `{ tools: [{ name, description, namespace }] }`, `" + searchTool + "` answers `{ tools: [{ name, namespace, description, parameters, output? }], fallback? }`, and `" + describeTool + "` answers `{ found, name?, namespace?, description?, parameters?, output? }`.",
|
|
662
662
|
!python && retained ? "- Tool argument objects and evaluated values must be lossless JSON: **never leave `undefined` in an object property value** — `{ a: x.opt }` fails the call when `x.opt === undefined`. Omit the key, write `x.opt ?? null`, or inspect it with `inspect(x)`." : "- Tool argument objects and `return` values must be lossless JSON: **never leave `undefined` in an object property value** — `{ a: x.opt }` fails the call when `x.opt === undefined`. Omit the key, write `x.opt ?? null`, or print it with `inspect` / `console.log`.",
|
|
663
663
|
"- Parameter keys: `read`, `edit`, `write`, and `read_image` take `file_path` (not `path`); `glob` and `grep` take `path`; `bash`, `pwsh`, and `win_bash` take `workdir` (not `cwd`).",
|
|
664
|
+
"- Before `edit`, read the file and copy an `old_string` that occurs exactly once; `old_string` and `new_string` must differ. Use `glob` to confirm an unknown path before `read` or `edit`: a missing path is a tool error, not an empty result.",
|
|
664
665
|
...python ? [] : [
|
|
665
666
|
"- Paths and regexes: write a Windows path with forward slashes (`C:/Users/...`) or wrap it in `String.raw`; a literal `C:\\Users` inside an ordinary string is read as the escape `\\U` and the program never starts (`Expected unicode escape`). Regex backslashes (`\\d`, `\\.`) have the same trap — double them or use `String.raw`.",
|
|
666
667
|
...retained ? ["- Modules in the retained REPL: CommonJS `require` / `module` and host packages like `import('vscode')` are unavailable; dynamic `await import('./src/x.ts')` resolves relative to the session's initial working directory (whereas `process.cwd()` and relative file paths follow the current session directory on each call).", "- Retained REPL scope: each call copies prior top-level bindings into a fresh scope (mutating an object persists; reassigning a primitive only updates that call's copy). Either use a copied name or redeclare it — never self-reference in `let x = x + 1`, avoid `var` inside blocks, and never declare `__$binding_*` identifiers."] : ["- A program is not a module: `import('./src/x.ts')` and `import('vscode')` cannot resolve — the program runs in a fresh process with no module graph. Read files with `tools.read`; `await import('node:fs')` works only for Node built-ins."],
|