@psnext/slingcli 2.4.20260507-3 → 2.4.20260509-2
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/LICENSE +1 -1
- package/README.md +1 -1
- package/bin/sling.js +39 -16
- package/node_modules/@aws-sdk/client-bedrock-runtime/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/package.json +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-agent-core/dist/agent-loop.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-agent-core/dist/agent.js +4 -3
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/agent-harness.js +526 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/branch-summarization.js +243 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.js +616 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/env/nodejs.js +348 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/execution-env.js +3 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/factory.js +9 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/messages.js +102 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/prompt-templates.js +194 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo/jsonl.js +92 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo/memory.js +42 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo/shared.js +31 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/session.js +196 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/storage/jsonl.js +170 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/storage/memory.js +90 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/skills.js +258 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/system-prompt.js +30 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/types.js +16 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/shell-output.js +97 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/index.js +26 -0
- package/node_modules/{@mariozechner → @earendil-works}/pi-agent-core/dist/proxy.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-agent-core/package.json +7 -5
- package/node_modules/{@mariozechner → @earendil-works}/pi-ai/dist/cli.js +6 -6
- package/node_modules/{@mariozechner → @earendil-works}/pi-ai/dist/env-api-keys.js +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/image-models.generated.js +307 -0
- package/node_modules/@earendil-works/pi-ai/dist/image-models.js +23 -0
- package/node_modules/@earendil-works/pi-ai/dist/images-api-registry.js +22 -0
- package/node_modules/@earendil-works/pi-ai/dist/images.js +14 -0
- package/node_modules/{@mariozechner → @earendil-works}/pi-ai/dist/index.js +4 -0
- package/node_modules/{@mariozechner → @earendil-works}/pi-ai/dist/models.generated.js +427 -122
- package/node_modules/@earendil-works/pi-ai/dist/providers/images/openrouter.js +129 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/images/register-builtins.js +34 -0
- package/node_modules/{@mariozechner → @earendil-works}/pi-ai/dist/providers/openai-codex-responses.js +1 -1
- package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/providers/openai-completions.js +150 -122
- package/node_modules/{@mariozechner → @earendil-works}/pi-ai/dist/providers/openai-responses-shared.js +14 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-ai/dist/utils/oauth/openai-codex.js +25 -14
- package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/utils/overflow.js +3 -0
- package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/package.json +5 -4
- package/node_modules/@earendil-works/pi-coding-agent/dist/bun/register-bedrock.js +4 -0
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/cli/args.js +1 -0
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/cli/config-selector.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/cli/list-models.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/cli/session-picker.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/config.js +52 -30
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/agent-session.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/auth-storage.js +2 -2
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/compaction/branch-summarization.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/compaction/compaction.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/compaction/utils.js +153 -0
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/export-html/template.css +45 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/export-html/template.js +68 -4
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/extensions/loader.js +26 -12
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/keybindings.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/model-registry.js +3 -2
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/model-resolver.js +2 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/package-manager.js +22 -5
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/provider-display-names.js +1 -0
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/sdk.js +3 -3
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/tools/bash.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/tools/edit.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/tools/find.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/tools/grep.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/tools/ls.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/tools/read.js +3 -2
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/tools/render-utils.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/truncate.js +205 -0
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/tools/write.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/main.js +2 -2
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/migrations.js +3 -3
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/assistant-message.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/bash-execution.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/bordered-loader.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/branch-summary-message.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/compaction-summary-message.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/config-selector.js +25 -3
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/custom-editor.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/custom-message.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/earendil-announcement.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/extension-editor.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/extension-input.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/extension-selector.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/footer.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/keybinding-hints.js +36 -0
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/login-dialog.js +4 -3
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/model-selector.js +2 -2
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/oauth-selector.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/scoped-models-selector.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/session-selector-search.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/session-selector.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/settings-selector.js +4 -2
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/show-images-selector.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/skill-invocation-message.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/theme-selector.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/thinking-selector.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/tool-execution.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/tree-selector.js +3 -2
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/user-message-selector.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/user-message.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/visual-truncate.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/interactive-mode.js +47 -32
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/theme/dark.json +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/theme/light.json +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/theme/theme.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/package-manager-cli.js +42 -39
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/utils/clipboard.js +9 -2
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/utils/paths.js +16 -0
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/utils/version-check.js +9 -2
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/package.json +9 -8
- package/node_modules/{@mariozechner → @earendil-works}/pi-tui/dist/components/image.js +14 -7
- package/node_modules/{@mariozechner → @earendil-works}/pi-tui/dist/components/markdown.js +24 -84
- package/node_modules/{@mariozechner → @earendil-works}/pi-tui/dist/terminal-image.js +10 -4
- package/node_modules/{@mariozechner → @earendil-works}/pi-tui/dist/tui.js +73 -4
- package/node_modules/{@mariozechner → @earendil-works}/pi-tui/dist/utils.js +33 -7
- package/node_modules/{@mariozechner → @earendil-works}/pi-tui/package.json +3 -3
- package/node_modules/@mariozechner/clipboard/README.md +58 -0
- package/node_modules/@mariozechner/clipboard/index.d.ts +23 -0
- package/node_modules/@mariozechner/clipboard-linux-x64-gnu/README.md +3 -0
- package/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/node/http2.d.ts +4 -1
- package/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/node/stream/web.d.ts +4 -0
- package/node_modules/brace-expansion/dist/commonjs/index.js +1 -1
- package/node_modules/brace-expansion/dist/commonjs/index.js.map +1 -1
- package/node_modules/brace-expansion/dist/esm/index.js +1 -1
- package/node_modules/brace-expansion/dist/esm/index.js.map +1 -1
- package/node_modules/brace-expansion/package.json +1 -1
- package/node_modules/fast-xml-builder/CHANGELOG.md +4 -0
- package/node_modules/fast-xml-builder/lib/fxb.cjs +1 -1
- package/node_modules/fast-xml-builder/lib/fxb.d.cts +91 -1
- package/node_modules/fast-xml-builder/lib/fxb.min.js +1 -1
- package/node_modules/fast-xml-builder/lib/fxb.min.js.map +1 -1
- package/node_modules/fast-xml-builder/package.json +3 -2
- package/node_modules/fast-xml-builder/src/fxb.d.ts +92 -3
- package/node_modules/fast-xml-builder/src/fxb.js +92 -31
- package/node_modules/fast-xml-builder/src/orderedJs2Xml.js +87 -33
- package/node_modules/get-east-asian-width/lookup-data.js +15 -12
- package/node_modules/get-east-asian-width/lookup.js +25 -22
- package/node_modules/get-east-asian-width/package.json +1 -1
- package/node_modules/jiti/README.md +258 -0
- package/node_modules/jiti/dist/babel.cjs +257 -0
- package/node_modules/jiti/dist/jiti.cjs +1 -0
- package/node_modules/jiti/lib/jiti.mjs +29 -0
- package/node_modules/jiti/lib/types.d.ts +420 -0
- package/node_modules/jiti/package.json +146 -0
- package/node_modules/protobufjs/dist/light/protobuf.js +5 -3
- package/node_modules/protobufjs/dist/light/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/light/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/dist/minimal/protobuf.js +2 -2
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js +2 -2
- package/node_modules/protobufjs/dist/protobuf.js +5 -3
- package/node_modules/protobufjs/dist/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/package.json +1 -1
- package/node_modules/protobufjs/src/namespace.js +3 -1
- package/node_modules/semver/README.md +19 -4
- package/node_modules/semver/bin/semver.js +14 -10
- package/node_modules/semver/functions/truncate.js +48 -0
- package/node_modules/semver/index.js +2 -0
- package/node_modules/semver/internal/re.js +1 -1
- package/node_modules/semver/package.json +3 -3
- package/node_modules/semver/range.bnf +5 -4
- package/node_modules/socks/package.json +2 -2
- package/node_modules/xml-naming/README.md +189 -0
- package/node_modules/xml-naming/package.json +54 -0
- package/node_modules/xml-naming/src/index.d.ts +74 -0
- package/node_modules/xml-naming/src/index.js +270 -0
- package/package.json +6 -6
- package/sling-default-packages.json +2 -1
- package/slingshot/index.js +442 -23
- package/node_modules/@mariozechner/jiti/dist/babel.cjs +0 -246
- package/node_modules/@mariozechner/jiti/dist/jiti.cjs +0 -1
- package/node_modules/@mariozechner/jiti/package.json +0 -96
- package/node_modules/@mariozechner/pi-agent-core/dist/index.js +0 -9
- package/node_modules/@mariozechner/pi-agent-core/node_modules/@mariozechner/pi-ai/dist/cli.js +0 -116
- package/node_modules/@mariozechner/pi-agent-core/node_modules/@mariozechner/pi-ai/dist/env-api-keys.js +0 -166
- package/node_modules/@mariozechner/pi-agent-core/node_modules/@mariozechner/pi-ai/dist/index.js +0 -15
- package/node_modules/@mariozechner/pi-agent-core/node_modules/@mariozechner/pi-ai/dist/models.generated.js +0 -16568
- package/node_modules/@mariozechner/pi-agent-core/node_modules/@mariozechner/pi-ai/dist/providers/amazon-bedrock.js +0 -753
- package/node_modules/@mariozechner/pi-agent-core/node_modules/@mariozechner/pi-ai/dist/providers/openai-codex-responses.js +0 -909
- package/node_modules/@mariozechner/pi-agent-core/node_modules/@mariozechner/pi-ai/dist/providers/openai-responses-shared.js +0 -479
- package/node_modules/@mariozechner/pi-agent-core/node_modules/@mariozechner/pi-ai/dist/utils/oauth/openai-codex.js +0 -374
- package/node_modules/@mariozechner/pi-ai/dist/api-registry.js +0 -44
- package/node_modules/@mariozechner/pi-ai/dist/bedrock-provider.js +0 -6
- package/node_modules/@mariozechner/pi-ai/dist/models.js +0 -71
- package/node_modules/@mariozechner/pi-ai/dist/oauth.js +0 -2
- package/node_modules/@mariozechner/pi-ai/dist/providers/anthropic.js +0 -951
- package/node_modules/@mariozechner/pi-ai/dist/providers/azure-openai-responses.js +0 -208
- package/node_modules/@mariozechner/pi-ai/dist/providers/cloudflare.js +0 -26
- package/node_modules/@mariozechner/pi-ai/dist/providers/faux.js +0 -368
- package/node_modules/@mariozechner/pi-ai/dist/providers/github-copilot-headers.js +0 -29
- package/node_modules/@mariozechner/pi-ai/dist/providers/google-shared.js +0 -329
- package/node_modules/@mariozechner/pi-ai/dist/providers/google-vertex.js +0 -442
- package/node_modules/@mariozechner/pi-ai/dist/providers/google.js +0 -400
- package/node_modules/@mariozechner/pi-ai/dist/providers/mistral.js +0 -535
- package/node_modules/@mariozechner/pi-ai/dist/providers/openai-completions.js +0 -908
- package/node_modules/@mariozechner/pi-ai/dist/providers/openai-responses.js +0 -220
- package/node_modules/@mariozechner/pi-ai/dist/providers/register-builtins.js +0 -243
- package/node_modules/@mariozechner/pi-ai/dist/providers/simple-options.js +0 -39
- package/node_modules/@mariozechner/pi-ai/dist/providers/transform-messages.js +0 -184
- package/node_modules/@mariozechner/pi-ai/dist/stream.js +0 -27
- package/node_modules/@mariozechner/pi-ai/dist/types.js +0 -2
- package/node_modules/@mariozechner/pi-ai/dist/utils/event-stream.js +0 -81
- package/node_modules/@mariozechner/pi-ai/dist/utils/hash.js +0 -14
- package/node_modules/@mariozechner/pi-ai/dist/utils/headers.js +0 -8
- package/node_modules/@mariozechner/pi-ai/dist/utils/json-parse.js +0 -113
- package/node_modules/@mariozechner/pi-ai/dist/utils/oauth/anthropic.js +0 -335
- package/node_modules/@mariozechner/pi-ai/dist/utils/oauth/github-copilot.js +0 -292
- package/node_modules/@mariozechner/pi-ai/dist/utils/oauth/index.js +0 -121
- package/node_modules/@mariozechner/pi-ai/dist/utils/oauth/oauth-page.js +0 -105
- package/node_modules/@mariozechner/pi-ai/dist/utils/oauth/pkce.js +0 -31
- package/node_modules/@mariozechner/pi-ai/dist/utils/oauth/types.js +0 -2
- package/node_modules/@mariozechner/pi-ai/dist/utils/overflow.js +0 -146
- package/node_modules/@mariozechner/pi-ai/dist/utils/sanitize-unicode.js +0 -26
- package/node_modules/@mariozechner/pi-ai/dist/utils/typebox-helpers.js +0 -21
- package/node_modules/@mariozechner/pi-ai/dist/utils/validation.js +0 -281
- package/node_modules/@mariozechner/pi-ai/package.json +0 -108
- package/node_modules/@mariozechner/pi-coding-agent/dist/bun/register-bedrock.js +0 -4
- package/node_modules/@mariozechner/pi-coding-agent/dist/modes/interactive/components/keybinding-hints.js +0 -22
- package/node_modules/@mariozechner/pi-coding-agent/node_modules/@mariozechner/pi-agent-core/dist/agent-loop.js +0 -458
- package/node_modules/@mariozechner/pi-coding-agent/node_modules/@mariozechner/pi-agent-core/dist/agent.js +0 -398
- package/node_modules/@mariozechner/pi-coding-agent/node_modules/@mariozechner/pi-agent-core/dist/index.js +0 -9
- package/node_modules/@mariozechner/pi-coding-agent/node_modules/@mariozechner/pi-agent-core/dist/proxy.js +0 -278
- package/node_modules/@mariozechner/pi-coding-agent/node_modules/@mariozechner/pi-agent-core/dist/types.js +0 -2
- package/node_modules/@mariozechner/pi-coding-agent/node_modules/@mariozechner/pi-agent-core/package.json +0 -45
- package/node_modules/socks/.claude/settings.local.json +0 -26
- package/node_modules/std-env/LICENCE +0 -22
- package/node_modules/std-env/README.md +0 -118
- package/node_modules/std-env/dist/index.cjs +0 -1
- package/node_modules/std-env/dist/index.d.cts +0 -92
- package/node_modules/std-env/dist/index.d.mts +0 -92
- package/node_modules/std-env/dist/index.d.ts +0 -92
- package/node_modules/std-env/dist/index.mjs +0 -1
- package/node_modules/std-env/package.json +0 -46
- package/node_modules/yoctocolors/base.d.ts +0 -47
- package/node_modules/yoctocolors/base.js +0 -94
- package/node_modules/yoctocolors/index.d.ts +0 -2
- package/node_modules/yoctocolors/index.js +0 -2
- package/node_modules/yoctocolors/license +0 -9
- package/node_modules/yoctocolors/package.json +0 -69
- package/node_modules/yoctocolors/readme.md +0 -138
- /package/node_modules/{@mariozechner/pi-coding-agent/dist/core → @earendil-works/pi-agent-core/dist/harness}/compaction/utils.js +0 -0
- /package/node_modules/{@mariozechner/pi-coding-agent/dist/core/tools → @earendil-works/pi-agent-core/dist/harness/utils}/truncate.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-agent-core/dist/types.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/api-registry.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/bedrock-provider.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/models.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/oauth.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-ai/dist/providers/amazon-bedrock.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/providers/anthropic.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/providers/azure-openai-responses.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/providers/cloudflare.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/providers/faux.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/providers/github-copilot-headers.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/providers/google-shared.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/providers/google-vertex.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/providers/google.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/providers/mistral.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/providers/openai-responses.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/providers/register-builtins.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/providers/simple-options.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/providers/transform-messages.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-ai/dist/session-resources.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/stream.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/types.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-ai/dist/utils/diagnostics.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/utils/event-stream.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/utils/hash.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/utils/headers.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/utils/json-parse.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/utils/oauth/anthropic.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/utils/oauth/github-copilot.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/utils/oauth/index.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/utils/oauth/oauth-page.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/utils/oauth/pkce.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/utils/oauth/types.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/utils/sanitize-unicode.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/utils/typebox-helpers.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/utils/validation.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/bun/cli.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/bun/restore-sandbox-env.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/cli/file-processor.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/cli/initial-message.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/cli.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/agent-session-runtime.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/agent-session-services.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/auth-guidance.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/bash-executor.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/compaction/index.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/defaults.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/diagnostics.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/event-bus.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/exec.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/export-html/ansi-to-html.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/export-html/index.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/export-html/template.html +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/export-html/tool-renderer.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/export-html/vendor/highlight.min.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/export-html/vendor/marked.min.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/extensions/index.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/extensions/runner.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/extensions/types.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/extensions/wrapper.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/footer-data-provider.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/index.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/messages.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/output-guard.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/prompt-templates.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/resolve-config-value.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/resource-loader.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/session-cwd.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/session-manager.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/settings-manager.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/skills.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/slash-commands.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/source-info.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/system-prompt.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/telemetry.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/timings.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/tools/edit-diff.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/tools/file-mutation-queue.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/tools/index.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/tools/output-accumulator.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/tools/path-utils.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/tools/tool-definition-wrapper.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/index.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/index.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/assets/clankolas.png +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/armin.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/countdown-timer.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/daxnuts.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/diff.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/dynamic-border.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/index.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/theme/theme-schema.json +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/print-mode.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/rpc/jsonl.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/rpc/rpc-client.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/rpc/rpc-mode.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/rpc/rpc-types.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/utils/changelog.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/utils/child-process.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/utils/clipboard-image.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/utils/clipboard-native.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/utils/exif-orientation.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/utils/frontmatter.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/utils/fs-watch.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/utils/git.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/utils/image-convert.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/utils/image-resize.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/utils/mime.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/utils/photon.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/utils/pi-user-agent.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/utils/shell.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/utils/sleep.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/utils/tools-manager.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-tui/dist/autocomplete.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-tui/dist/components/box.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-tui/dist/components/cancellable-loader.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-tui/dist/components/editor.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-tui/dist/components/input.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-tui/dist/components/loader.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-tui/dist/components/select-list.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-tui/dist/components/settings-list.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-tui/dist/components/spacer.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-tui/dist/components/text.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-tui/dist/components/truncated-text.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-tui/dist/editor-component.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-tui/dist/fuzzy.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-tui/dist/index.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-tui/dist/keybindings.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-tui/dist/keys.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-tui/dist/kill-ring.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-tui/dist/stdin-buffer.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-tui/dist/terminal.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-tui/dist/undo-stack.js +0 -0
- /package/node_modules/{@mariozechner/jiti → jiti}/LICENSE +0 -0
- /package/node_modules/{@mariozechner/jiti → jiti}/lib/jiti-cli.mjs +0 -0
- /package/node_modules/{@mariozechner/jiti → jiti}/lib/jiti-hooks.mjs +0 -0
- /package/node_modules/{@mariozechner/jiti → jiti}/lib/jiti-native.mjs +0 -0
- /package/node_modules/{@mariozechner/jiti → jiti}/lib/jiti-register.d.mts +0 -0
- /package/node_modules/{@mariozechner/jiti → jiti}/lib/jiti-register.mjs +0 -0
- /package/node_modules/{@mariozechner/jiti/lib/jiti.mjs → jiti/lib/jiti-static.mjs} +0 -0
- /package/node_modules/{@mariozechner/jiti → jiti}/lib/jiti.cjs +0 -0
- /package/node_modules/{@mariozechner/jiti → jiti}/lib/jiti.d.cts +0 -0
- /package/node_modules/{@mariozechner/jiti → jiti}/lib/jiti.d.mts +0 -0
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
import ignore from "ignore";
|
|
2
|
+
import { parse } from "yaml";
|
|
3
|
+
const MAX_NAME_LENGTH = 64;
|
|
4
|
+
const MAX_DESCRIPTION_LENGTH = 1024;
|
|
5
|
+
const IGNORE_FILE_NAMES = [".gitignore", ".ignore", ".fdignore"];
|
|
6
|
+
/** Expand a skill into a prompt, optionally appending additional user instructions. */
|
|
7
|
+
export function expandSkillCommand(skill, additionalInstructions) {
|
|
8
|
+
const skillBlock = `<skill name="${skill.name}" location="${skill.filePath}">\nReferences are relative to ${dirnameEnvPath(skill.filePath)}.\n\n${skill.content}\n</skill>`;
|
|
9
|
+
return additionalInstructions ? `${skillBlock}\n\n${additionalInstructions}` : skillBlock;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Load skills from one or more directories.
|
|
13
|
+
*
|
|
14
|
+
* Traverses directories recursively, loads `SKILL.md` files, loads direct root `.md` files as skills, honors ignore files,
|
|
15
|
+
* and returns diagnostics for invalid skill files. Missing input directories are skipped.
|
|
16
|
+
*/
|
|
17
|
+
export async function loadSkills(env, dirs) {
|
|
18
|
+
const skills = [];
|
|
19
|
+
const diagnostics = [];
|
|
20
|
+
for (const dir of Array.isArray(dirs) ? dirs : [dirs]) {
|
|
21
|
+
const rootInfo = await safeFileInfo(env, dir);
|
|
22
|
+
if (!rootInfo || (await resolveKind(env, rootInfo)) !== "directory")
|
|
23
|
+
continue;
|
|
24
|
+
const result = await loadSkillsFromDirInternal(env, rootInfo.path, true, ignore(), rootInfo.path);
|
|
25
|
+
skills.push(...result.skills);
|
|
26
|
+
diagnostics.push(...result.diagnostics);
|
|
27
|
+
}
|
|
28
|
+
return { skills, diagnostics };
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Load skills from source-tagged directories.
|
|
32
|
+
*
|
|
33
|
+
* Source values are preserved exactly and attached to every loaded skill and diagnostic. The agent package does not
|
|
34
|
+
* interpret source values; applications define their own provenance shape.
|
|
35
|
+
*/
|
|
36
|
+
export async function loadSourcedSkills(env, inputs) {
|
|
37
|
+
const skills = [];
|
|
38
|
+
const diagnostics = [];
|
|
39
|
+
for (const input of inputs) {
|
|
40
|
+
const result = await loadSkills(env, input.path);
|
|
41
|
+
for (const skill of result.skills)
|
|
42
|
+
skills.push({ skill, source: input.source });
|
|
43
|
+
for (const diagnostic of result.diagnostics)
|
|
44
|
+
diagnostics.push({ ...diagnostic, source: input.source });
|
|
45
|
+
}
|
|
46
|
+
return { skills, diagnostics };
|
|
47
|
+
}
|
|
48
|
+
async function loadSkillsFromDirInternal(env, dir, includeRootFiles, ignoreMatcher, rootDir) {
|
|
49
|
+
const skills = [];
|
|
50
|
+
const diagnostics = [];
|
|
51
|
+
if (!(await env.exists(dir)))
|
|
52
|
+
return { skills, diagnostics };
|
|
53
|
+
const dirInfo = await safeFileInfo(env, dir);
|
|
54
|
+
if (!dirInfo || (await resolveKind(env, dirInfo)) !== "directory")
|
|
55
|
+
return { skills, diagnostics };
|
|
56
|
+
await addIgnoreRules(env, ignoreMatcher, dir, rootDir);
|
|
57
|
+
let entries;
|
|
58
|
+
try {
|
|
59
|
+
entries = await env.listDir(dir);
|
|
60
|
+
}
|
|
61
|
+
catch {
|
|
62
|
+
return { skills, diagnostics };
|
|
63
|
+
}
|
|
64
|
+
for (const entry of entries) {
|
|
65
|
+
if (entry.name !== "SKILL.md")
|
|
66
|
+
continue;
|
|
67
|
+
const fullPath = entry.path;
|
|
68
|
+
const kind = await resolveKind(env, entry);
|
|
69
|
+
if (kind !== "file")
|
|
70
|
+
continue;
|
|
71
|
+
const relPath = relativeEnvPath(rootDir, fullPath);
|
|
72
|
+
if (ignoreMatcher.ignores(relPath))
|
|
73
|
+
continue;
|
|
74
|
+
const result = await loadSkillFromFile(env, fullPath);
|
|
75
|
+
if (result.skill)
|
|
76
|
+
skills.push(result.skill);
|
|
77
|
+
diagnostics.push(...result.diagnostics);
|
|
78
|
+
return { skills, diagnostics };
|
|
79
|
+
}
|
|
80
|
+
for (const entry of entries.sort((a, b) => a.name.localeCompare(b.name))) {
|
|
81
|
+
if (entry.name.startsWith(".") || entry.name === "node_modules")
|
|
82
|
+
continue;
|
|
83
|
+
const fullPath = entry.path;
|
|
84
|
+
const kind = await resolveKind(env, entry);
|
|
85
|
+
if (!kind)
|
|
86
|
+
continue;
|
|
87
|
+
const relPath = relativeEnvPath(rootDir, fullPath);
|
|
88
|
+
const ignorePath = kind === "directory" ? `${relPath}/` : relPath;
|
|
89
|
+
if (ignoreMatcher.ignores(ignorePath))
|
|
90
|
+
continue;
|
|
91
|
+
if (kind === "directory") {
|
|
92
|
+
const result = await loadSkillsFromDirInternal(env, fullPath, false, ignoreMatcher, rootDir);
|
|
93
|
+
skills.push(...result.skills);
|
|
94
|
+
diagnostics.push(...result.diagnostics);
|
|
95
|
+
continue;
|
|
96
|
+
}
|
|
97
|
+
if (kind !== "file" || !includeRootFiles || !entry.name.endsWith(".md"))
|
|
98
|
+
continue;
|
|
99
|
+
const result = await loadSkillFromFile(env, fullPath);
|
|
100
|
+
if (result.skill)
|
|
101
|
+
skills.push(result.skill);
|
|
102
|
+
diagnostics.push(...result.diagnostics);
|
|
103
|
+
}
|
|
104
|
+
return { skills, diagnostics };
|
|
105
|
+
}
|
|
106
|
+
async function addIgnoreRules(env, ig, dir, rootDir) {
|
|
107
|
+
const relativeDir = relativeEnvPath(rootDir, dir);
|
|
108
|
+
const prefix = relativeDir ? `${relativeDir}/` : "";
|
|
109
|
+
for (const filename of IGNORE_FILE_NAMES) {
|
|
110
|
+
const ignorePath = joinEnvPath(dir, filename);
|
|
111
|
+
const info = await safeFileInfo(env, ignorePath);
|
|
112
|
+
if (info?.kind !== "file")
|
|
113
|
+
continue;
|
|
114
|
+
try {
|
|
115
|
+
const content = await env.readTextFile(ignorePath);
|
|
116
|
+
const patterns = content
|
|
117
|
+
.split(/\r?\n/)
|
|
118
|
+
.map((line) => prefixIgnorePattern(line, prefix))
|
|
119
|
+
.filter((line) => Boolean(line));
|
|
120
|
+
if (patterns.length > 0)
|
|
121
|
+
ig.add(patterns);
|
|
122
|
+
}
|
|
123
|
+
catch { }
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
function prefixIgnorePattern(line, prefix) {
|
|
127
|
+
const trimmed = line.trim();
|
|
128
|
+
if (!trimmed)
|
|
129
|
+
return null;
|
|
130
|
+
if (trimmed.startsWith("#") && !trimmed.startsWith("\\#"))
|
|
131
|
+
return null;
|
|
132
|
+
let pattern = line;
|
|
133
|
+
let negated = false;
|
|
134
|
+
if (pattern.startsWith("!")) {
|
|
135
|
+
negated = true;
|
|
136
|
+
pattern = pattern.slice(1);
|
|
137
|
+
}
|
|
138
|
+
else if (pattern.startsWith("\\!")) {
|
|
139
|
+
pattern = pattern.slice(1);
|
|
140
|
+
}
|
|
141
|
+
if (pattern.startsWith("/"))
|
|
142
|
+
pattern = pattern.slice(1);
|
|
143
|
+
const prefixed = prefix ? `${prefix}${pattern}` : pattern;
|
|
144
|
+
return negated ? `!${prefixed}` : prefixed;
|
|
145
|
+
}
|
|
146
|
+
async function loadSkillFromFile(env, filePath) {
|
|
147
|
+
const diagnostics = [];
|
|
148
|
+
try {
|
|
149
|
+
const rawContent = await env.readTextFile(filePath);
|
|
150
|
+
const { frontmatter, body } = parseFrontmatter(rawContent);
|
|
151
|
+
const skillDir = dirnameEnvPath(filePath);
|
|
152
|
+
const parentDirName = basenameEnvPath(skillDir);
|
|
153
|
+
for (const error of validateDescription(frontmatter.description)) {
|
|
154
|
+
diagnostics.push({ type: "warning", message: error, path: filePath });
|
|
155
|
+
}
|
|
156
|
+
const name = frontmatter.name || parentDirName;
|
|
157
|
+
for (const error of validateName(name, parentDirName)) {
|
|
158
|
+
diagnostics.push({ type: "warning", message: error, path: filePath });
|
|
159
|
+
}
|
|
160
|
+
if (!frontmatter.description || frontmatter.description.trim() === "") {
|
|
161
|
+
return { skill: null, diagnostics };
|
|
162
|
+
}
|
|
163
|
+
return {
|
|
164
|
+
skill: {
|
|
165
|
+
name,
|
|
166
|
+
description: frontmatter.description,
|
|
167
|
+
content: body,
|
|
168
|
+
filePath,
|
|
169
|
+
disableModelInvocation: frontmatter["disable-model-invocation"] === true,
|
|
170
|
+
},
|
|
171
|
+
diagnostics,
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
catch (error) {
|
|
175
|
+
const message = error instanceof Error ? error.message : "failed to parse skill file";
|
|
176
|
+
diagnostics.push({ type: "warning", message, path: filePath });
|
|
177
|
+
return { skill: null, diagnostics };
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
function validateName(name, parentDirName) {
|
|
181
|
+
const errors = [];
|
|
182
|
+
if (name !== parentDirName)
|
|
183
|
+
errors.push(`name "${name}" does not match parent directory "${parentDirName}"`);
|
|
184
|
+
if (name.length > MAX_NAME_LENGTH)
|
|
185
|
+
errors.push(`name exceeds ${MAX_NAME_LENGTH} characters (${name.length})`);
|
|
186
|
+
if (!/^[a-z0-9-]+$/.test(name)) {
|
|
187
|
+
errors.push("name contains invalid characters (must be lowercase a-z, 0-9, hyphens only)");
|
|
188
|
+
}
|
|
189
|
+
if (name.startsWith("-") || name.endsWith("-"))
|
|
190
|
+
errors.push("name must not start or end with a hyphen");
|
|
191
|
+
if (name.includes("--"))
|
|
192
|
+
errors.push("name must not contain consecutive hyphens");
|
|
193
|
+
return errors;
|
|
194
|
+
}
|
|
195
|
+
function validateDescription(description) {
|
|
196
|
+
const errors = [];
|
|
197
|
+
if (!description || description.trim() === "") {
|
|
198
|
+
errors.push("description is required");
|
|
199
|
+
}
|
|
200
|
+
else if (description.length > MAX_DESCRIPTION_LENGTH) {
|
|
201
|
+
errors.push(`description exceeds ${MAX_DESCRIPTION_LENGTH} characters (${description.length})`);
|
|
202
|
+
}
|
|
203
|
+
return errors;
|
|
204
|
+
}
|
|
205
|
+
function parseFrontmatter(content) {
|
|
206
|
+
const normalized = content.replace(/\r\n/g, "\n").replace(/\r/g, "\n");
|
|
207
|
+
if (!normalized.startsWith("---"))
|
|
208
|
+
return { frontmatter: {}, body: normalized };
|
|
209
|
+
const endIndex = normalized.indexOf("\n---", 3);
|
|
210
|
+
if (endIndex === -1)
|
|
211
|
+
return { frontmatter: {}, body: normalized };
|
|
212
|
+
const yamlString = normalized.slice(4, endIndex);
|
|
213
|
+
const body = normalized.slice(endIndex + 4).trim();
|
|
214
|
+
return { frontmatter: (parse(yamlString) ?? {}), body };
|
|
215
|
+
}
|
|
216
|
+
async function safeFileInfo(env, path) {
|
|
217
|
+
try {
|
|
218
|
+
return await env.fileInfo(path);
|
|
219
|
+
}
|
|
220
|
+
catch {
|
|
221
|
+
return undefined;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
async function resolveKind(env, info) {
|
|
225
|
+
if (info.kind === "file" || info.kind === "directory")
|
|
226
|
+
return info.kind;
|
|
227
|
+
try {
|
|
228
|
+
const realPath = await env.realPath(info.path);
|
|
229
|
+
const target = await env.fileInfo(realPath);
|
|
230
|
+
return target.kind === "file" || target.kind === "directory" ? target.kind : undefined;
|
|
231
|
+
}
|
|
232
|
+
catch {
|
|
233
|
+
return undefined;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
function joinEnvPath(base, child) {
|
|
237
|
+
return `${base.replace(/\/+$/, "")}/${child.replace(/^\/+/, "")}`;
|
|
238
|
+
}
|
|
239
|
+
function dirnameEnvPath(path) {
|
|
240
|
+
const normalized = path.replace(/\/+$/, "");
|
|
241
|
+
const slashIndex = normalized.lastIndexOf("/");
|
|
242
|
+
return slashIndex <= 0 ? "/" : normalized.slice(0, slashIndex);
|
|
243
|
+
}
|
|
244
|
+
function basenameEnvPath(path) {
|
|
245
|
+
const normalized = path.replace(/\/+$/, "");
|
|
246
|
+
const slashIndex = normalized.lastIndexOf("/");
|
|
247
|
+
return slashIndex === -1 ? normalized : normalized.slice(slashIndex + 1);
|
|
248
|
+
}
|
|
249
|
+
function relativeEnvPath(root, path) {
|
|
250
|
+
const normalizedRoot = root.replace(/\/+$/, "");
|
|
251
|
+
const normalizedPath = path.replace(/\/+$/, "");
|
|
252
|
+
if (normalizedPath === normalizedRoot)
|
|
253
|
+
return "";
|
|
254
|
+
return normalizedPath.startsWith(`${normalizedRoot}/`)
|
|
255
|
+
? normalizedPath.slice(normalizedRoot.length + 1)
|
|
256
|
+
: normalizedPath.replace(/^\/+/, "");
|
|
257
|
+
}
|
|
258
|
+
//# sourceMappingURL=skills.js.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export function formatSkillsForSystemPrompt(skills) {
|
|
2
|
+
const visibleSkills = skills.filter((skill) => !skill.disableModelInvocation);
|
|
3
|
+
if (visibleSkills.length === 0)
|
|
4
|
+
return "";
|
|
5
|
+
const lines = [
|
|
6
|
+
"The following skills provide specialized instructions for specific tasks.",
|
|
7
|
+
"Use the read tool to load a skill's file when the task matches its description.",
|
|
8
|
+
"When a skill file references a relative path, resolve it against the skill directory (parent of SKILL.md / dirname of the path) and use that absolute path in tool commands.",
|
|
9
|
+
"",
|
|
10
|
+
"<available_skills>",
|
|
11
|
+
];
|
|
12
|
+
for (const skill of visibleSkills) {
|
|
13
|
+
lines.push(" <skill>");
|
|
14
|
+
lines.push(` <name>${escapeXml(skill.name)}</name>`);
|
|
15
|
+
lines.push(` <description>${escapeXml(skill.description)}</description>`);
|
|
16
|
+
lines.push(` <location>${escapeXml(skill.filePath)}</location>`);
|
|
17
|
+
lines.push(" </skill>");
|
|
18
|
+
}
|
|
19
|
+
lines.push("</available_skills>");
|
|
20
|
+
return lines.join("\n");
|
|
21
|
+
}
|
|
22
|
+
function escapeXml(value) {
|
|
23
|
+
return value
|
|
24
|
+
.replace(/&/g, "&")
|
|
25
|
+
.replace(/</g, "<")
|
|
26
|
+
.replace(/>/g, ">")
|
|
27
|
+
.replace(/"/g, """)
|
|
28
|
+
.replace(/'/g, "'");
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=system-prompt.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** Error thrown by {@link ExecutionEnv} file operations. */
|
|
2
|
+
export class FileError extends Error {
|
|
3
|
+
code;
|
|
4
|
+
path;
|
|
5
|
+
constructor(
|
|
6
|
+
/** Backend-independent error code. */
|
|
7
|
+
code, message,
|
|
8
|
+
/** Absolute addressed path associated with the failure, when available. */
|
|
9
|
+
path, options) {
|
|
10
|
+
super(message, options);
|
|
11
|
+
this.code = code;
|
|
12
|
+
this.path = path;
|
|
13
|
+
this.name = "FileError";
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { randomBytes } from "node:crypto";
|
|
2
|
+
import { createWriteStream } from "node:fs";
|
|
3
|
+
import { tmpdir } from "node:os";
|
|
4
|
+
import { join } from "node:path";
|
|
5
|
+
import { DEFAULT_MAX_BYTES, truncateTail } from "./truncate.js";
|
|
6
|
+
export function sanitizeBinaryOutput(str) {
|
|
7
|
+
return Array.from(str)
|
|
8
|
+
.filter((char) => {
|
|
9
|
+
const code = char.codePointAt(0);
|
|
10
|
+
if (code === undefined)
|
|
11
|
+
return false;
|
|
12
|
+
if (code === 0x09 || code === 0x0a || code === 0x0d)
|
|
13
|
+
return true;
|
|
14
|
+
if (code <= 0x1f)
|
|
15
|
+
return false;
|
|
16
|
+
if (code >= 0xfff9 && code <= 0xfffb)
|
|
17
|
+
return false;
|
|
18
|
+
return true;
|
|
19
|
+
})
|
|
20
|
+
.join("");
|
|
21
|
+
}
|
|
22
|
+
export async function executeShellWithCapture(env, command, options) {
|
|
23
|
+
const outputChunks = [];
|
|
24
|
+
let outputBytes = 0;
|
|
25
|
+
const maxOutputBytes = DEFAULT_MAX_BYTES * 2;
|
|
26
|
+
let tempFilePath;
|
|
27
|
+
let tempFileStream;
|
|
28
|
+
let totalBytes = 0;
|
|
29
|
+
const ensureTempFile = () => {
|
|
30
|
+
if (tempFilePath)
|
|
31
|
+
return;
|
|
32
|
+
const id = randomBytes(8).toString("hex");
|
|
33
|
+
tempFilePath = join(tmpdir(), `bash-${id}.log`);
|
|
34
|
+
tempFileStream = createWriteStream(tempFilePath);
|
|
35
|
+
for (const chunk of outputChunks) {
|
|
36
|
+
tempFileStream.write(chunk);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
const onChunk = (chunk) => {
|
|
40
|
+
totalBytes += Buffer.byteLength(chunk, "utf-8");
|
|
41
|
+
const text = sanitizeBinaryOutput(chunk).replace(/\r/g, "");
|
|
42
|
+
if (totalBytes > DEFAULT_MAX_BYTES) {
|
|
43
|
+
ensureTempFile();
|
|
44
|
+
}
|
|
45
|
+
if (tempFileStream) {
|
|
46
|
+
tempFileStream.write(text);
|
|
47
|
+
}
|
|
48
|
+
outputChunks.push(text);
|
|
49
|
+
outputBytes += text.length;
|
|
50
|
+
while (outputBytes > maxOutputBytes && outputChunks.length > 1) {
|
|
51
|
+
const removed = outputChunks.shift();
|
|
52
|
+
outputBytes -= removed.length;
|
|
53
|
+
}
|
|
54
|
+
options?.onChunk?.(text);
|
|
55
|
+
};
|
|
56
|
+
try {
|
|
57
|
+
const result = await env.exec(command, {
|
|
58
|
+
...(options ?? {}),
|
|
59
|
+
onStdout: onChunk,
|
|
60
|
+
onStderr: onChunk,
|
|
61
|
+
});
|
|
62
|
+
const fullOutput = outputChunks.join("");
|
|
63
|
+
const truncationResult = truncateTail(fullOutput);
|
|
64
|
+
if (truncationResult.truncated) {
|
|
65
|
+
ensureTempFile();
|
|
66
|
+
}
|
|
67
|
+
tempFileStream?.end();
|
|
68
|
+
const cancelled = options?.signal?.aborted ?? false;
|
|
69
|
+
return {
|
|
70
|
+
output: truncationResult.truncated ? truncationResult.content : fullOutput,
|
|
71
|
+
exitCode: cancelled ? undefined : result.exitCode,
|
|
72
|
+
cancelled,
|
|
73
|
+
truncated: truncationResult.truncated,
|
|
74
|
+
fullOutputPath: tempFilePath,
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
catch (err) {
|
|
78
|
+
if (options?.signal?.aborted) {
|
|
79
|
+
const fullOutput = outputChunks.join("");
|
|
80
|
+
const truncationResult = truncateTail(fullOutput);
|
|
81
|
+
if (truncationResult.truncated) {
|
|
82
|
+
ensureTempFile();
|
|
83
|
+
}
|
|
84
|
+
tempFileStream?.end();
|
|
85
|
+
return {
|
|
86
|
+
output: truncationResult.truncated ? truncationResult.content : fullOutput,
|
|
87
|
+
exitCode: undefined,
|
|
88
|
+
cancelled: true,
|
|
89
|
+
truncated: truncationResult.truncated,
|
|
90
|
+
fullOutputPath: tempFilePath,
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
tempFileStream?.end();
|
|
94
|
+
throw err;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
//# sourceMappingURL=shell-output.js.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// Core Agent
|
|
2
|
+
export * from "./agent.js";
|
|
3
|
+
// Loop functions
|
|
4
|
+
export * from "./agent-loop.js";
|
|
5
|
+
export * from "./harness/agent-harness.js";
|
|
6
|
+
export { collectEntriesForBranchSummary, generateBranchSummary, prepareBranchEntries, } from "./harness/compaction/branch-summarization.js";
|
|
7
|
+
export { calculateContextTokens, compact, DEFAULT_COMPACTION_SETTINGS, estimateContextTokens, estimateTokens, findCutPoint, findTurnStartIndex, generateSummary, getLastAssistantUsage, prepareCompaction, serializeConversation, shouldCompact, } from "./harness/compaction/compaction.js";
|
|
8
|
+
export * from "./harness/execution-env.js";
|
|
9
|
+
export * from "./harness/factory.js";
|
|
10
|
+
export * from "./harness/messages.js";
|
|
11
|
+
export * from "./harness/prompt-templates.js";
|
|
12
|
+
export * from "./harness/session/repo/jsonl.js";
|
|
13
|
+
export * from "./harness/session/repo/memory.js";
|
|
14
|
+
export * from "./harness/session/repo/shared.js";
|
|
15
|
+
export * from "./harness/session/session.js";
|
|
16
|
+
export * from "./harness/skills.js";
|
|
17
|
+
export * from "./harness/system-prompt.js";
|
|
18
|
+
// Harness
|
|
19
|
+
export * from "./harness/types.js";
|
|
20
|
+
export * from "./harness/utils/shell-output.js";
|
|
21
|
+
export * from "./harness/utils/truncate.js";
|
|
22
|
+
// Proxy utilities
|
|
23
|
+
export * from "./proxy.js";
|
|
24
|
+
// Types
|
|
25
|
+
export * from "./types.js";
|
|
26
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* The server manages auth and proxies requests to LLM providers.
|
|
4
4
|
*/
|
|
5
5
|
// Internal import for JSON parsing utility
|
|
6
|
-
import { EventStream, parseStreamingJson, } from "@
|
|
6
|
+
import { EventStream, parseStreamingJson, } from "@earendil-works/pi-ai";
|
|
7
7
|
// Create stream class matching ProxyMessageEventStream
|
|
8
8
|
class ProxyMessageEventStream extends EventStream {
|
|
9
9
|
constructor() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "@
|
|
3
|
-
"version": "0.
|
|
2
|
+
"name": "@earendil-works/pi-agent-core",
|
|
3
|
+
"version": "0.74.0",
|
|
4
4
|
"description": "General-purpose agent with transport abstraction, state management, and attachment support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -17,8 +17,10 @@
|
|
|
17
17
|
"prepublishOnly": "npm run clean && npm run build"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@
|
|
21
|
-
"
|
|
20
|
+
"@earendil-works/pi-ai": "^0.74.0",
|
|
21
|
+
"ignore": "^7.0.5",
|
|
22
|
+
"typebox": "^1.1.24",
|
|
23
|
+
"yaml": "^2.8.2"
|
|
22
24
|
},
|
|
23
25
|
"keywords": [
|
|
24
26
|
"ai",
|
|
@@ -31,7 +33,7 @@
|
|
|
31
33
|
"license": "MIT",
|
|
32
34
|
"repository": {
|
|
33
35
|
"type": "git",
|
|
34
|
-
"url": "git+https://github.com/
|
|
36
|
+
"url": "git+https://github.com/earendil-works/pi-mono.git",
|
|
35
37
|
"directory": "packages/agent"
|
|
36
38
|
},
|
|
37
39
|
"engines": {
|
|
@@ -55,7 +55,7 @@ async function main() {
|
|
|
55
55
|
const command = args[0];
|
|
56
56
|
if (!command || command === "help" || command === "--help" || command === "-h") {
|
|
57
57
|
const providerList = PROVIDERS.map((p) => ` ${p.id.padEnd(20)} ${p.name}`).join("\n");
|
|
58
|
-
console.log(`Usage: npx @
|
|
58
|
+
console.log(`Usage: npx @earendil-works/pi-ai <command> [provider]
|
|
59
59
|
|
|
60
60
|
Commands:
|
|
61
61
|
login [provider] Login to an OAuth provider
|
|
@@ -65,9 +65,9 @@ Providers:
|
|
|
65
65
|
${providerList}
|
|
66
66
|
|
|
67
67
|
Examples:
|
|
68
|
-
npx @
|
|
69
|
-
npx @
|
|
70
|
-
npx @
|
|
68
|
+
npx @earendil-works/pi-ai login # interactive provider selection
|
|
69
|
+
npx @earendil-works/pi-ai login anthropic # login to specific provider
|
|
70
|
+
npx @earendil-works/pi-ai list # list providers
|
|
71
71
|
`);
|
|
72
72
|
return;
|
|
73
73
|
}
|
|
@@ -98,7 +98,7 @@ Examples:
|
|
|
98
98
|
}
|
|
99
99
|
if (!PROVIDERS.some((p) => p.id === provider)) {
|
|
100
100
|
console.error(`Unknown provider: ${provider}`);
|
|
101
|
-
console.error(`Use 'npx @
|
|
101
|
+
console.error(`Use 'npx @earendil-works/pi-ai list' to see available providers`);
|
|
102
102
|
process.exit(1);
|
|
103
103
|
}
|
|
104
104
|
console.log(`Logging in to ${provider}...`);
|
|
@@ -106,7 +106,7 @@ Examples:
|
|
|
106
106
|
return;
|
|
107
107
|
}
|
|
108
108
|
console.error(`Unknown command: ${command}`);
|
|
109
|
-
console.error(`Use 'npx @
|
|
109
|
+
console.error(`Use 'npx @earendil-works/pi-ai --help' for usage`);
|
|
110
110
|
process.exit(1);
|
|
111
111
|
}
|
|
112
112
|
main().catch((err) => {
|
|
@@ -103,6 +103,7 @@ function getApiKeyEnvVars(provider) {
|
|
|
103
103
|
"moonshotai-cn": "MOONSHOT_API_KEY",
|
|
104
104
|
huggingface: "HF_TOKEN",
|
|
105
105
|
fireworks: "FIREWORKS_API_KEY",
|
|
106
|
+
together: "TOGETHER_API_KEY",
|
|
106
107
|
opencode: "OPENCODE_API_KEY",
|
|
107
108
|
"opencode-go": "OPENCODE_API_KEY",
|
|
108
109
|
"kimi-coding": "KIMI_API_KEY",
|