@armadra/agent 0.8.0 → 0.9.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 +52 -32
- package/CHANGELOG.zh-CN.md +69 -49
- package/README.md +162 -204
- package/README.zh-CN.md +150 -199
- package/dist/acp.d.ts +1 -1
- package/dist/acp.js +1 -1
- package/dist/agent/limits.d.ts +1 -1
- package/dist/agent/limits.js +1 -1
- package/dist/agent/loop-guard.d.ts +1 -1
- package/dist/agent/loop-guard.js +1 -1
- package/dist/agent/prompt-rules.d.ts +1 -1
- package/dist/agent/prompt-rules.js +1 -1
- package/dist/agent/reminders.d.ts +1 -1
- package/dist/agent/reminders.js +1 -1
- package/dist/agent/session-cache-key.d.ts +1 -1
- package/dist/agent/session-cache-key.js +1 -1
- package/dist/agent/session-extensions.d.ts +1 -1
- package/dist/agent/session-extensions.js +1 -1
- package/dist/agent/session-images.d.ts +1 -1
- package/dist/agent/session-images.js +1 -1
- package/dist/agent/session-plan.d.ts +1 -1
- package/dist/agent/session-plan.js +1 -1
- package/dist/agent/session-rewind.d.ts +1 -1
- package/dist/agent/session-rewind.js +1 -1
- package/dist/agent/session-settings.d.ts +1 -1
- package/dist/agent/session-settings.js +1 -1
- package/dist/agent/session-subagent.d.ts +1 -1
- package/dist/agent/session-subagent.js +1 -1
- package/dist/agent/session-telemetry.d.ts +1 -1
- package/dist/agent/session-telemetry.js +1 -1
- package/dist/agent/session-trace-writer.d.ts +1 -1
- package/dist/agent/session-trace-writer.js +1 -1
- package/dist/agent/session.js +1 -1
- package/dist/agent/subagent-background.d.ts +1 -1
- package/dist/agent/subagent-background.js +1 -1
- package/dist/agent/subagent-direct.d.ts +1 -1
- package/dist/agent/subagent-direct.js +1 -1
- package/dist/agent/subagent-fork.d.ts +1 -1
- package/dist/agent/subagent-fork.js +1 -1
- package/dist/agent/subagent-registry.d.ts +1 -1
- package/dist/agent/subagent-registry.js +1 -1
- package/dist/agent/system-prompt.js +1 -1
- package/dist/agent/tool-availability.d.ts +1 -1
- package/dist/agent/tool-availability.js +1 -1
- package/dist/agent/types-w5.d.ts +2 -2
- package/dist/agent/types-w5.js +1 -1
- package/dist/agent/types-w6.d.ts +1 -1
- package/dist/agent/types-w6.js +1 -1
- package/dist/agent/types.d.ts +1 -1
- package/dist/agent/worktree.d.ts +1 -1
- package/dist/agent/worktree.js +1 -1
- package/dist/agents/builtin.d.ts +1 -1
- package/dist/agents/builtin.js +1 -1
- package/dist/agents/catalog.d.ts +1 -1
- package/dist/agents/catalog.js +1 -1
- package/dist/agents/discover.d.ts +1 -1
- package/dist/agents/discover.js +1 -1
- package/dist/agents/external.d.ts +1 -1
- package/dist/agents/external.js +1 -1
- package/dist/agents/parse.d.ts +1 -1
- package/dist/agents/parse.js +1 -1
- package/dist/agents/result.d.ts +1 -1
- package/dist/agents/result.js +2 -2
- package/dist/agents/task-record.d.ts +3 -3
- package/dist/agents/task-record.js +2 -2
- package/dist/agents/types.d.ts +1 -1
- package/dist/agents/types.js +1 -1
- package/dist/ai/apis/anthropic-compat.d.ts +2 -2
- package/dist/ai/apis/anthropic-compat.js +2 -2
- package/dist/ai/apis/cache-params.d.ts +1 -1
- package/dist/ai/apis/cache-params.js +1 -1
- package/dist/ai/apis/chatgpt-backend.d.ts +1 -1
- package/dist/ai/apis/chatgpt-backend.js +1 -1
- package/dist/ai/apis/chatgpt-rate-limits.d.ts +1 -1
- package/dist/ai/apis/chatgpt-rate-limits.js +1 -1
- package/dist/ai/apis/max-tokens.d.ts +1 -1
- package/dist/ai/apis/max-tokens.js +1 -1
- package/dist/ai/apis/shared.d.ts +1 -1
- package/dist/ai/apis/shared.js +1 -1
- package/dist/ai/image-intern.d.ts +2 -2
- package/dist/ai/image-intern.js +1 -1
- package/dist/ai/image-limits.d.ts +1 -1
- package/dist/ai/image-limits.js +1 -1
- package/dist/ai/json-body.d.ts +1 -1
- package/dist/ai/json-body.js +1 -1
- package/dist/ai/providers/builtin.d.ts +2 -2
- package/dist/ai/providers/builtin.js +4 -4
- package/dist/ai/providers/catalog-data.js +2 -2
- package/dist/ai/providers/catalog.d.ts +2 -2
- package/dist/ai/providers/catalog.js +1 -1
- package/dist/ai/providers/channels.d.ts +1 -1
- package/dist/ai/providers/channels.js +1 -1
- package/dist/ai/providers/enrich.d.ts +1 -1
- package/dist/ai/providers/enrich.js +1 -1
- package/dist/ai/providers/models-dev-cache.d.ts +1 -1
- package/dist/ai/providers/models-dev-cache.js +1 -1
- package/dist/ai/providers/models-dev-data.d.ts +1 -1
- package/dist/ai/providers/models-dev-data.js +12 -12
- package/dist/ai/providers/models-dev-snapshot.d.ts +1 -1
- package/dist/ai/providers/models-dev-snapshot.js +1 -1
- package/dist/ai/providers/models-dev.d.ts +4 -4
- package/dist/ai/providers/models-dev.js +3 -3
- package/dist/ai/types.d.ts +2 -2
- package/dist/ai/types.js +1 -1
- package/dist/auth/chatgpt/cli.d.ts +1 -1
- package/dist/auth/chatgpt/cli.js +1 -1
- package/dist/auth/chatgpt/host-id.d.ts +1 -1
- package/dist/auth/chatgpt/host-id.js +1 -1
- package/dist/auth/chatgpt/login.d.ts +1 -1
- package/dist/auth/chatgpt/login.js +1 -1
- package/dist/auth/chatgpt/presets.d.ts +1 -1
- package/dist/auth/chatgpt/presets.js +1 -1
- package/dist/auth/oauth/callback-server.d.ts +1 -1
- package/dist/auth/oauth/callback-server.js +1 -1
- package/dist/auth/oauth/flows.d.ts +1 -1
- package/dist/auth/oauth/flows.js +1 -1
- package/dist/auth/oauth/oidc.d.ts +1 -1
- package/dist/auth/oauth/oidc.js +1 -1
- package/dist/auth/oauth/pkce.d.ts +1 -1
- package/dist/auth/oauth/pkce.js +1 -1
- package/dist/auth/oauth/refresh.d.ts +1 -1
- package/dist/auth/oauth/refresh.js +1 -1
- package/dist/auth/oauth/token-client.d.ts +1 -1
- package/dist/auth/oauth/token-client.js +1 -1
- package/dist/auth/oauth/token-store.d.ts +1 -1
- package/dist/auth/oauth/token-store.js +1 -1
- package/dist/auth/testing/fake-oauth.d.ts +1 -1
- package/dist/auth/testing/fake-oauth.js +1 -1
- package/dist/bundle/ama.cjs +41 -38
- package/dist/checkpoints/backend.js +6 -1
- package/dist/checkpoints/blobs.d.ts +1 -1
- package/dist/checkpoints/blobs.js +1 -1
- package/dist/checkpoints/gc.d.ts +1 -1
- package/dist/checkpoints/gc.js +1 -1
- package/dist/checkpoints/git-head.d.ts +1 -1
- package/dist/checkpoints/git-head.js +1 -1
- package/dist/checkpoints/index.d.ts +1 -1
- package/dist/checkpoints/index.js +1 -1
- package/dist/checkpoints/replay.d.ts +1 -1
- package/dist/checkpoints/replay.js +1 -1
- package/dist/checkpoints/restore.d.ts +1 -1
- package/dist/checkpoints/restore.js +1 -1
- package/dist/checkpoints/settings.d.ts +1 -1
- package/dist/checkpoints/settings.js +1 -1
- package/dist/checkpoints/shadow-git.d.ts +1 -1
- package/dist/checkpoints/shadow-git.js +1 -1
- package/dist/checkpoints/shadow-restore.d.ts +1 -1
- package/dist/checkpoints/shadow-restore.js +1 -1
- package/dist/checkpoints/tracker.d.ts +1 -1
- package/dist/checkpoints/tracker.js +1 -1
- package/dist/checkpoints/types.d.ts +1 -1
- package/dist/checkpoints/types.js +1 -1
- package/dist/cli/args.d.ts +2 -2
- package/dist/cli/args.js +1 -1
- package/dist/cli/bootstrap.js +1 -1
- package/dist/cli/choice-prompt.d.ts +1 -1
- package/dist/cli/choice-prompt.js +1 -1
- package/dist/cli/codemode-notice.d.ts +1 -1
- package/dist/cli/codemode-notice.js +1 -1
- package/dist/cli/compose-agents.d.ts +1 -1
- package/dist/cli/compose-agents.js +1 -1
- package/dist/cli/compose-extensions.d.ts +1 -1
- package/dist/cli/compose-extensions.js +1 -1
- package/dist/cli/compose-memory.d.ts +1 -1
- package/dist/cli/compose-memory.js +1 -1
- package/dist/cli/compose-providers.d.ts +1 -1
- package/dist/cli/compose-providers.js +1 -1
- package/dist/cli/compose-request.d.ts +1 -1
- package/dist/cli/compose-request.js +1 -1
- package/dist/cli/from-prompt.d.ts +1 -1
- package/dist/cli/from-prompt.js +1 -1
- package/dist/cli/main.d.ts +1 -1
- package/dist/cli/main.js +1 -1
- package/dist/cli/subcommands/auth.d.ts +1 -1
- package/dist/cli/subcommands/auth.js +1 -1
- package/dist/cli/subcommands/config-set.d.ts +1 -1
- package/dist/cli/subcommands/config-set.js +1 -1
- package/dist/cli/subcommands/doctor.js +1 -1
- package/dist/cli/subcommands/init.d.ts +1 -1
- package/dist/cli/subcommands/init.js +1 -1
- package/dist/cli/subcommands/memory.d.ts +1 -1
- package/dist/cli/subcommands/memory.js +1 -1
- package/dist/cli/subcommands/models.js +1 -1
- package/dist/cli/subcommands/providers-list.d.ts +1 -1
- package/dist/cli/subcommands/providers-list.js +1 -1
- package/dist/cli/subcommands/providers-plan.d.ts +1 -1
- package/dist/cli/subcommands/providers-plan.js +1 -1
- package/dist/cli/subcommands/providers.d.ts +1 -1
- package/dist/cli/subcommands/providers.js +1 -1
- package/dist/cli/subcommands/sessions-export.d.ts +1 -1
- package/dist/cli/subcommands/sessions-export.js +1 -1
- package/dist/cli/subcommands/sessions-trace.d.ts +1 -1
- package/dist/cli/subcommands/sessions-trace.js +1 -1
- package/dist/cli/subcommands/sessions.d.ts +1 -1
- package/dist/cli/subcommands/sessions.js +1 -1
- package/dist/cli/subcommands/stats.d.ts +1 -1
- package/dist/cli/subcommands/stats.js +1 -1
- package/dist/codemode/capability.d.ts +1 -1
- package/dist/codemode/capability.js +1 -1
- package/dist/codemode/host-side.d.ts +2 -2
- package/dist/codemode/host-side.js +2 -2
- package/dist/compaction/image-budget.d.ts +1 -1
- package/dist/compaction/image-budget.js +1 -1
- package/dist/config/edit.d.ts +1 -1
- package/dist/config/edit.js +1 -1
- package/dist/config/init.d.ts +1 -1
- package/dist/config/init.js +1 -1
- package/dist/config/json-schema.d.ts +2 -2
- package/dist/config/json-schema.js +2 -2
- package/dist/config/schema-w5.d.ts +1 -1
- package/dist/config/schema-w5.js +1 -1
- package/dist/config/schema-w6.d.ts +1 -1
- package/dist/config/schema-w6.js +1 -1
- package/dist/config/settings-registry.d.ts +1 -1
- package/dist/config/settings-registry.js +1 -1
- package/dist/config/types-w5.d.ts +2 -2
- package/dist/config/types-w5.js +2 -2
- package/dist/config/types-w6.d.ts +5 -5
- package/dist/config/types-w6.js +1 -1
- package/dist/config/types.d.ts +6 -6
- package/dist/config/types.js +1 -1
- package/dist/drivers/acp/client.d.ts +1 -1
- package/dist/drivers/acp/client.js +1 -1
- package/dist/drivers/acp/driver.d.ts +1 -1
- package/dist/drivers/acp/driver.js +1 -1
- package/dist/drivers/acp/testing/fake-agent.d.ts +1 -1
- package/dist/drivers/acp/testing/fake-agent.js +1 -1
- package/dist/drivers/acp/types.d.ts +1 -1
- package/dist/drivers/acp/types.js +1 -1
- package/dist/drivers/agents.d.ts +1 -1
- package/dist/drivers/agents.js +1 -1
- package/dist/drivers/base.d.ts +1 -1
- package/dist/drivers/base.js +1 -1
- package/dist/drivers/catalog.d.ts +1 -1
- package/dist/drivers/catalog.js +1 -1
- package/dist/drivers/env.d.ts +1 -1
- package/dist/drivers/env.js +1 -1
- package/dist/drivers/host-runners.d.ts +1 -1
- package/dist/drivers/host-runners.js +1 -1
- package/dist/drivers/jsonrpc.d.ts +1 -1
- package/dist/drivers/jsonrpc.js +1 -1
- package/dist/drivers/native/claude-normalize.d.ts +1 -1
- package/dist/drivers/native/claude-normalize.js +1 -1
- package/dist/drivers/native/claude-stream.d.ts +1 -1
- package/dist/drivers/native/claude-stream.js +1 -1
- package/dist/drivers/native/codex-app-server.d.ts +1 -1
- package/dist/drivers/native/codex-app-server.js +1 -1
- package/dist/drivers/native/codex-normalize.d.ts +1 -1
- package/dist/drivers/native/codex-normalize.js +1 -1
- package/dist/drivers/native/oneshot.d.ts +1 -1
- package/dist/drivers/native/oneshot.js +1 -1
- package/dist/drivers/permissions.d.ts +1 -1
- package/dist/drivers/permissions.js +1 -1
- package/dist/drivers/pids.d.ts +1 -1
- package/dist/drivers/pids.js +1 -1
- package/dist/drivers/pool.d.ts +1 -1
- package/dist/drivers/pool.js +1 -1
- package/dist/drivers/probe.d.ts +1 -1
- package/dist/drivers/probe.js +1 -1
- package/dist/drivers/process.d.ts +1 -1
- package/dist/drivers/process.js +1 -1
- package/dist/drivers/runner.d.ts +1 -1
- package/dist/drivers/runner.js +1 -1
- package/dist/drivers/store.d.ts +1 -1
- package/dist/drivers/store.js +1 -1
- package/dist/drivers/types.d.ts +1 -1
- package/dist/drivers/types.js +1 -1
- package/dist/git/info.d.ts +1 -1
- package/dist/git/info.js +1 -1
- package/dist/host/api-impl.d.ts +1 -1
- package/dist/host/api-impl.js +1 -1
- package/dist/host/types.d.ts +2 -2
- package/dist/i18n/catalog.d.ts +2 -2
- package/dist/i18n/catalog.js +2 -2
- package/dist/i18n/format.d.ts +1 -1
- package/dist/i18n/format.js +1 -1
- package/dist/i18n/index.d.ts +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/i18n/messages/acp.d.ts +1 -1
- package/dist/i18n/messages/acp.js +1 -1
- package/dist/i18n/messages/agents.d.ts +1 -1
- package/dist/i18n/messages/agents.js +1 -1
- package/dist/i18n/messages/approval.d.ts +1 -1
- package/dist/i18n/messages/approval.js +1 -1
- package/dist/i18n/messages/auth.d.ts +1 -1
- package/dist/i18n/messages/auth.js +1 -1
- package/dist/i18n/messages/cli.d.ts +1 -1
- package/dist/i18n/messages/cli.js +1 -1
- package/dist/i18n/messages/config-keys.js +12 -12
- package/dist/i18n/messages/config.d.ts +1 -1
- package/dist/i18n/messages/config.js +3 -3
- package/dist/i18n/messages/drivers.d.ts +1 -1
- package/dist/i18n/messages/drivers.js +1 -1
- package/dist/i18n/messages/errors.d.ts +1 -1
- package/dist/i18n/messages/errors.js +1 -1
- package/dist/i18n/messages/interactive-line.d.ts +1 -1
- package/dist/i18n/messages/interactive-line.js +1 -1
- package/dist/i18n/messages/interactive-startup.d.ts +1 -1
- package/dist/i18n/messages/interactive-startup.js +1 -1
- package/dist/i18n/messages/interactive-view.d.ts +1 -1
- package/dist/i18n/messages/interactive-view.js +1 -1
- package/dist/i18n/messages/interactive.d.ts +1 -1
- package/dist/i18n/messages/interactive.js +1 -1
- package/dist/i18n/messages/memory.d.ts +1 -1
- package/dist/i18n/messages/memory.js +1 -1
- package/dist/i18n/messages/panels.d.ts +1 -1
- package/dist/i18n/messages/panels.js +1 -1
- package/dist/i18n/messages/permissions.d.ts +1 -1
- package/dist/i18n/messages/permissions.js +1 -1
- package/dist/i18n/messages/plan.d.ts +1 -1
- package/dist/i18n/messages/plan.js +1 -1
- package/dist/i18n/messages/print.d.ts +2 -2
- package/dist/i18n/messages/print.js +2 -2
- package/dist/i18n/messages/report-context.d.ts +1 -1
- package/dist/i18n/messages/report-context.js +1 -1
- package/dist/i18n/messages/report.d.ts +1 -1
- package/dist/i18n/messages/report.js +1 -1
- package/dist/i18n/messages/rewind.d.ts +1 -1
- package/dist/i18n/messages/rewind.js +1 -1
- package/dist/i18n/messages/session.d.ts +1 -1
- package/dist/i18n/messages/session.js +1 -1
- package/dist/i18n/messages/settings.d.ts +1 -1
- package/dist/i18n/messages/settings.js +1 -1
- package/dist/i18n/messages/subcommands.d.ts +1 -1
- package/dist/i18n/messages/subcommands.js +1 -1
- package/dist/i18n/messages/trace.d.ts +1 -1
- package/dist/i18n/messages/trace.js +1 -1
- package/dist/i18n/types.d.ts +1 -1
- package/dist/i18n/types.js +1 -1
- package/dist/memory/frontmatter.d.ts +1 -1
- package/dist/memory/frontmatter.js +1 -1
- package/dist/memory/index.d.ts +1 -1
- package/dist/memory/index.js +1 -1
- package/dist/memory/lock.d.ts +1 -1
- package/dist/memory/lock.js +1 -1
- package/dist/memory/paths.d.ts +1 -1
- package/dist/memory/paths.js +1 -1
- package/dist/memory/runtime.d.ts +1 -1
- package/dist/memory/runtime.js +1 -1
- package/dist/memory/secrets.d.ts +1 -1
- package/dist/memory/secrets.js +1 -1
- package/dist/memory/section.d.ts +1 -1
- package/dist/memory/section.js +1 -1
- package/dist/memory/store.d.ts +1 -1
- package/dist/memory/store.js +1 -1
- package/dist/memory/tool.d.ts +1 -1
- package/dist/memory/tool.js +1 -1
- package/dist/modes/acp/acp-auth-gate.d.ts +1 -1
- package/dist/modes/acp/acp-auth-gate.js +1 -1
- package/dist/modes/acp/acp-config.d.ts +1 -1
- package/dist/modes/acp/acp-config.js +1 -1
- package/dist/modes/acp/acp-connection.d.ts +1 -1
- package/dist/modes/acp/acp-connection.js +1 -1
- package/dist/modes/acp/acp-events.d.ts +1 -1
- package/dist/modes/acp/acp-events.js +1 -1
- package/dist/modes/acp/acp-mode.d.ts +1 -1
- package/dist/modes/acp/acp-mode.js +1 -1
- package/dist/modes/acp/acp-server.d.ts +2 -2
- package/dist/modes/acp/acp-server.js +2 -2
- package/dist/modes/acp/acp-sessions.d.ts +2 -2
- package/dist/modes/acp/acp-sessions.js +2 -2
- package/dist/modes/acp/acp-tool-text.d.ts +1 -1
- package/dist/modes/acp/acp-tool-text.js +1 -1
- package/dist/modes/commands-core.js +1 -1
- package/dist/modes/image-input.d.ts +1 -1
- package/dist/modes/image-input.js +1 -1
- package/dist/modes/interactive/agent-bar.d.ts +1 -1
- package/dist/modes/interactive/agent-bar.js +1 -1
- package/dist/modes/interactive/agent-transcript.d.ts +1 -1
- package/dist/modes/interactive/agent-transcript.js +1 -1
- package/dist/modes/interactive/agent-view.d.ts +1 -1
- package/dist/modes/interactive/agent-view.js +1 -1
- package/dist/modes/interactive/approval-dock.d.ts +1 -1
- package/dist/modes/interactive/approval-dock.js +1 -1
- package/dist/modes/interactive/config-panel.d.ts +1 -1
- package/dist/modes/interactive/config-panel.js +1 -1
- package/dist/modes/interactive/config-ui.d.ts +1 -1
- package/dist/modes/interactive/config-ui.js +1 -1
- package/dist/modes/interactive/memory-panel.d.ts +1 -1
- package/dist/modes/interactive/memory-panel.js +1 -1
- package/dist/modes/interactive/plan-command.d.ts +1 -1
- package/dist/modes/interactive/plan-command.js +1 -1
- package/dist/modes/interactive/plan-dialog.d.ts +1 -1
- package/dist/modes/interactive/plan-dialog.js +1 -1
- package/dist/modes/interactive/plan-flow.d.ts +1 -1
- package/dist/modes/interactive/plan-flow.js +1 -1
- package/dist/modes/interactive/subagent-view.d.ts +1 -1
- package/dist/modes/interactive/subagent-view.js +1 -1
- package/dist/modes/interactive/task-background.d.ts +1 -1
- package/dist/modes/interactive/task-background.js +1 -1
- package/dist/modes/interactive/trace-view.d.ts +1 -1
- package/dist/modes/interactive/trace-view.js +1 -1
- package/dist/modes/print/json-event.d.ts +1 -1
- package/dist/modes/print/json-event.js +2 -2
- package/dist/modes/print/print-mode.d.ts +1 -1
- package/dist/modes/print/print-mode.js +1 -1
- package/dist/modes/print/search-hint.d.ts +1 -1
- package/dist/modes/print/search-hint.js +1 -1
- package/dist/modes/rpc/commands.js +2 -2
- package/dist/permissions/auto-safe.d.ts +1 -1
- package/dist/permissions/auto-safe.js +1 -1
- package/dist/permissions/bypass.d.ts +1 -1
- package/dist/permissions/bypass.js +1 -1
- package/dist/permissions/classifier.d.ts +1 -1
- package/dist/permissions/classifier.js +1 -1
- package/dist/permissions/memory-class.d.ts +1 -1
- package/dist/permissions/memory-class.js +1 -1
- package/dist/permissions/pipeline.d.ts +2 -2
- package/dist/permissions/pipeline.js +2 -2
- package/dist/permissions/protected.d.ts +1 -1
- package/dist/permissions/protected.js +1 -1
- package/dist/permissions/readonly-bash.d.ts +1 -1
- package/dist/permissions/readonly-bash.js +1 -1
- package/dist/permissions/types.d.ts +2 -2
- package/dist/plan/done-markers.d.ts +1 -1
- package/dist/plan/done-markers.js +1 -1
- package/dist/plan/extract.d.ts +1 -1
- package/dist/plan/extract.js +1 -1
- package/dist/plan/prompts.d.ts +1 -1
- package/dist/plan/prompts.js +1 -1
- package/dist/plan/store.d.ts +1 -1
- package/dist/plan/store.js +1 -1
- package/dist/rpc.d.ts +3 -3
- package/dist/rpc.js +3 -3
- package/dist/sandbox/bash.d.ts +1 -1
- package/dist/sandbox/bash.js +1 -1
- package/dist/sandbox/detect.d.ts +1 -1
- package/dist/sandbox/detect.js +1 -1
- package/dist/sandbox/index.d.ts +1 -1
- package/dist/sandbox/index.js +1 -1
- package/dist/sandbox/profile.d.ts +1 -1
- package/dist/sandbox/profile.js +1 -1
- package/dist/sandbox/wrap.d.ts +1 -1
- package/dist/sandbox/wrap.js +1 -1
- package/dist/sdk.d.ts +3 -3
- package/dist/sdk.js +2 -2
- package/dist/session/line-reader.d.ts +1 -1
- package/dist/session/line-reader.js +1 -1
- package/dist/session/list.d.ts +1 -1
- package/dist/session/list.js +1 -1
- package/dist/session/migrate.d.ts +1 -1
- package/dist/session/migrate.js +1 -1
- package/dist/session/store.d.ts +1 -1
- package/dist/session/store.js +1 -1
- package/dist/skills/builtin.js +2 -2
- package/dist/tools/background-jobs.d.ts +1 -1
- package/dist/tools/background-jobs.js +1 -1
- package/dist/tools/clipboard-image.d.ts +1 -1
- package/dist/tools/clipboard-image.js +1 -1
- package/dist/tools/edit.d.ts +1 -1
- package/dist/tools/edit.js +1 -1
- package/dist/tools/grep.d.ts +1 -1
- package/dist/tools/grep.js +1 -1
- package/dist/tools/image-resize.d.ts +1 -1
- package/dist/tools/image-resize.js +1 -1
- package/dist/tools/read-lines.d.ts +1 -1
- package/dist/tools/read-lines.js +1 -1
- package/dist/tools/read.d.ts +1 -1
- package/dist/tools/read.js +1 -1
- package/dist/tools/task-ctl.d.ts +1 -1
- package/dist/tools/task-ctl.js +1 -1
- package/dist/tools/task.d.ts +2 -2
- package/dist/tools/task.js +2 -2
- package/dist/tools/types.d.ts +3 -3
- package/dist/tools/types.js +1 -1
- package/dist/trace/build.d.ts +1 -1
- package/dist/trace/build.js +1 -1
- package/dist/trace/detail.d.ts +1 -1
- package/dist/trace/detail.js +1 -1
- package/dist/trace/flatten.d.ts +1 -1
- package/dist/trace/flatten.js +1 -1
- package/dist/trace/format.d.ts +1 -1
- package/dist/trace/format.js +1 -1
- package/dist/trace/html-template.d.ts +1 -1
- package/dist/trace/html-template.js +1 -1
- package/dist/trace/html.d.ts +1 -1
- package/dist/trace/html.js +1 -1
- package/dist/trace/query-session.d.ts +1 -1
- package/dist/trace/query-session.js +1 -1
- package/dist/trace/query.d.ts +1 -1
- package/dist/trace/query.js +1 -1
- package/dist/trace/types.d.ts +1 -1
- package/dist/trace/types.js +1 -1
- package/dist/tui/components/settings-list.d.ts +1 -1
- package/dist/tui/components/settings-list.js +1 -1
- package/docs/README.md +85 -0
- package/docs/assets/ama-wordmark-dark.svg +37 -0
- package/docs/assets/ama-wordmark-light.svg +37 -0
- package/docs/en/README.md +39 -0
- package/docs/en/{permissions.md → guides/permissions.md} +14 -14
- package/docs/en/{providers.md → guides/providers.md} +6 -6
- package/docs/en/{sessions.md → guides/sessions.md} +6 -6
- package/docs/en/{tui.md → guides/tui.md} +15 -15
- package/docs/en/{acp.md → reference/acp.md} +6 -6
- package/docs/en/{host-api.md → reference/host-api.md} +7 -7
- package/docs/en/{rpc.md → reference/rpc.md} +13 -13
- package/docs/{agents.md → guides/agents.md} +13 -13
- package/docs/{codemode.md → guides/codemode.md} +3 -3
- package/docs/{hooks.md → guides/hooks.md} +2 -2
- package/docs/guides/i18n.md +93 -0
- package/docs/{memory.md → guides/memory.md} +1 -1
- package/docs/{permissions.md → guides/permissions.md} +2 -2
- package/docs/{plan.md → guides/plan.md} +4 -4
- package/docs/{providers.md → guides/providers.md} +4 -4
- package/docs/{sessions.md → guides/sessions.md} +5 -5
- package/docs/{tui.md → guides/tui.md} +8 -8
- package/docs/{acp.md → reference/acp.md} +5 -5
- package/docs/{host-api.md → reference/host-api.md} +4 -4
- package/docs/{rpc.md → reference/rpc.md} +11 -11
- package/docs/{session-format.md → reference/session-format.md} +7 -7
- package/package.json +12 -23
- package/docs/rewind-plan.md +0 -181
- package/docs/tui-design.md +0 -764
- /package/docs/{sandbox.md → guides/sandbox.md} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `/config` settings panel component (docs/wave6-plan.md §6.3, D24-D26). [W6-S]
|
|
2
|
+
* `/config` settings panel component (docs/history/wave6-plan.md §6.3, D24-D26). [W6-S]
|
|
3
3
|
*
|
|
4
4
|
* Bottom overlay with the card bar: title + write target (`Tab` switches user / project), a search line,
|
|
5
5
|
* the grouped `SettingsList`, a rule, the selected key's description (key-docs, dim, wrapped), one notice
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `/config` settings panel component (docs/wave6-plan.md §6.3, D24-D26). [W6-S]
|
|
2
|
+
* `/config` settings panel component (docs/history/wave6-plan.md §6.3, D24-D26). [W6-S]
|
|
3
3
|
*
|
|
4
4
|
* Bottom overlay with the card bar: title + write target (`Tab` switches user / project), a search line,
|
|
5
5
|
* the grouped `SettingsList`, a rule, the selected key's description (key-docs, dim, wrapped), one notice
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `/config` controller (docs/wave6-plan.md §6.3, D24-D26). [W6-S]
|
|
2
|
+
* `/config` controller (docs/history/wave6-plan.md §6.3, D24-D26). [W6-S]
|
|
3
3
|
*
|
|
4
4
|
* - `open("")` shows the panel (config-panel.ts); `open("key=value")` / `open("key value")` sets one key
|
|
5
5
|
* in the user config without the panel (same path as `ama config set`).
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `/config` controller (docs/wave6-plan.md §6.3, D24-D26). [W6-S]
|
|
2
|
+
* `/config` controller (docs/history/wave6-plan.md §6.3, D24-D26). [W6-S]
|
|
3
3
|
*
|
|
4
4
|
* - `open("")` shows the panel (config-panel.ts); `open("key=value")` / `open("key value")` sets one key
|
|
5
5
|
* in the user config without the panel (same path as `ama config set`).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* `/plan` 的语义(line 模式与交互模式共用,经 commands-core)。[W5-U]
|
|
3
3
|
*
|
|
4
4
|
* - `/plan`:当前计划与状态(版本、状态、文件、步骤、待办进度、所处模式);
|
|
5
|
-
* - `/plan approve [模式|fresh]`:批准待审批的计划(没有计划块时把上一条回复当作计划,docs/wave5-plan.md
|
|
5
|
+
* - `/plan approve [模式|fresh]`:批准待审批的计划(没有计划块时把上一条回复当作计划,docs/history/wave5-plan.md
|
|
6
6
|
* §6.3);模式缺省回到进入 plan 前的模式,`fresh` 在新会话里执行(新建会话 → `adopt(plan)` → 发计划
|
|
7
7
|
* 全文);
|
|
8
8
|
* - `/plan reject`:放弃待审批的计划(留在 Plan 模式);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* `/plan` 的语义(line 模式与交互模式共用,经 commands-core)。[W5-U]
|
|
3
3
|
*
|
|
4
4
|
* - `/plan`:当前计划与状态(版本、状态、文件、步骤、待办进度、所处模式);
|
|
5
|
-
* - `/plan approve [模式|fresh]`:批准待审批的计划(没有计划块时把上一条回复当作计划,docs/wave5-plan.md
|
|
5
|
+
* - `/plan approve [模式|fresh]`:批准待审批的计划(没有计划块时把上一条回复当作计划,docs/history/wave5-plan.md
|
|
6
6
|
* §6.3);模式缺省回到进入 plan 前的模式,`fresh` 在新会话里执行(新建会话 → `adopt(plan)` → 发计划
|
|
7
7
|
* 全文);
|
|
8
8
|
* - `/plan reject`:放弃待审批的计划(留在 Plan 模式);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* 交互界面的计划审批编排(docs/wave5-plan.md §6.1):把会话的计划审批交给对话框。[W5-U]
|
|
2
|
+
* 交互界面的计划审批编排(docs/history/wave5-plan.md §6.1):把会话的计划审批交给对话框。[W5-U]
|
|
3
3
|
*
|
|
4
4
|
* - `attach(session)`:`planController(session).setAttendance("callback", …)`——计划提出后(会话空闲时)
|
|
5
5
|
* 打开审批框;同时关掉 W5-F 的文本回复审批与 `ama.plan_notice` 提示行(两者只在 `text` 时生效)。
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* 交互界面的计划审批编排(docs/wave5-plan.md §6.1):把会话的计划审批交给对话框。[W5-U]
|
|
2
|
+
* 交互界面的计划审批编排(docs/history/wave5-plan.md §6.1):把会话的计划审批交给对话框。[W5-U]
|
|
3
3
|
*
|
|
4
4
|
* - `attach(session)`:`planController(session).setAttendance("callback", …)`——计划提出后(会话空闲时)
|
|
5
5
|
* 打开审批框;同时关掉 W5-F 的文本回复审批与 `ama.plan_notice` 提示行(两者只在 `text` 时生效)。
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* 前台子 Agent 任务转后台与栏内停止的界面接线(docs/agents-concurrency-plan.md §2.4、§2.8)。[W7-C]
|
|
2
|
+
* 前台子 Agent 任务转后台与栏内停止的界面接线(docs/history/agents-concurrency-plan.md §2.4、§2.8)。[W7-C]
|
|
3
3
|
*
|
|
4
4
|
* - `Ctrl+B`(`app.tasks.background`):有阻塞中的前台任务(`registry.blocking()`,含 `task_ctl wait`)时
|
|
5
5
|
* 全部转后台(`session.backgroundTask(undefined, "user")`),不看输入框;没有时落回编辑器。
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* 前台子 Agent 任务转后台与栏内停止的界面接线(docs/agents-concurrency-plan.md §2.4、§2.8)。[W7-C]
|
|
2
|
+
* 前台子 Agent 任务转后台与栏内停止的界面接线(docs/history/agents-concurrency-plan.md §2.4、§2.8)。[W7-C]
|
|
3
3
|
*
|
|
4
4
|
* - `Ctrl+B`(`app.tasks.background`):有阻塞中的前台任务(`registry.blocking()`,含 `task_ctl wait`)时
|
|
5
5
|
* 全部转后台(`session.backgroundTask(undefined, "user")`),不看输入框;没有时落回编辑器。
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* - `message_update` 变成纯增量:去掉累计消息与 `partial`,附最新 `usage`;`done / error`
|
|
5
5
|
* 保留最终 `message`。`tool_execution_end` 去掉 `result.fileChange`([ACP-C0] 改前 / 改后全文只给
|
|
6
6
|
* ACP 映射用,不上 RPC / stream-json 线)。其余 `SessionEvent` 原样。
|
|
7
|
-
* - [M-G] `compact`(RPC 客户端声明 `compact_events`,docs/memory-plan.md D9):`compactEvent()` 去掉
|
|
7
|
+
* - [M-G] `compact`(RPC 客户端声明 `compact_events`,docs/history/memory-plan.md D9):`compactEvent()` 去掉
|
|
8
8
|
* 重复的大正文——`turn_end.toolResults[]` 每项只留 `{ toolCallId, toolName, isError, timestamp,
|
|
9
9
|
* contentOmitted }`;`message_start` 与 `entry_appended`(`message` 条目)里的 toolResult / 带图片的 user
|
|
10
10
|
* 消息 `content` 换成 `""` 并加 `contentOmitted: true`。`message_end` 与 `tool_execution_end` 保持全量。
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* - `message_update` 变成纯增量:去掉累计消息与 `partial`,附最新 `usage`;`done / error`
|
|
5
5
|
* 保留最终 `message`。`tool_execution_end` 去掉 `result.fileChange`([ACP-C0] 改前 / 改后全文只给
|
|
6
6
|
* ACP 映射用,不上 RPC / stream-json 线)。其余 `SessionEvent` 原样。
|
|
7
|
-
* - [M-G] `compact`(RPC 客户端声明 `compact_events`,docs/memory-plan.md D9):`compactEvent()` 去掉
|
|
7
|
+
* - [M-G] `compact`(RPC 客户端声明 `compact_events`,docs/history/memory-plan.md D9):`compactEvent()` 去掉
|
|
8
8
|
* 重复的大正文——`turn_end.toolResults[]` 每项只留 `{ toolCallId, toolName, isError, timestamp,
|
|
9
9
|
* contentOmitted }`;`message_start` 与 `entry_appended`(`message` 条目)里的 toolResult / 带图片的 user
|
|
10
10
|
* 消息 `content` 换成 `""` 并加 `contentOmitted: true`。`message_end` 与 `tool_execution_end` 保持全量。
|
|
@@ -34,7 +34,7 @@ export function compactEvent(event) {
|
|
|
34
34
|
return event;
|
|
35
35
|
return {
|
|
36
36
|
...event,
|
|
37
|
-
// 线上形状(docs/rpc.md)不是完整的 ToolResultMessage:正文与 details 都不带
|
|
37
|
+
// 线上形状(docs/reference/rpc.md)不是完整的 ToolResultMessage:正文与 details 都不带
|
|
38
38
|
toolResults: event.toolResults.map(({ toolCallId, toolName, isError, timestamp }) => ({
|
|
39
39
|
toolCallId,
|
|
40
40
|
toolName,
|
|
@@ -46,7 +46,7 @@ export declare function stdinWaitMs(env: Readonly<Record<string, string | undefi
|
|
|
46
46
|
export declare function readPromptStdin(io: CliIo, prompt: string | undefined, mode: "auto" | "explicit" | "off", hintMs?: number): Promise<string>;
|
|
47
47
|
export declare function runPrintMode(runtime: Runtime, context: ModeContext): Promise<number>;
|
|
48
48
|
/**
|
|
49
|
-
* [W7-B2] 主回合结束后等后台任务与它们的通知回合(docs/agents-concurrency-plan.md §2.6、§6 Q5)。
|
|
49
|
+
* [W7-B2] 主回合结束后等后台任务与它们的通知回合(docs/history/agents-concurrency-plan.md §2.6、§6 Q5)。
|
|
50
50
|
* `settled()`(subagent-background.ts)等到没有运行中任务且通知投递链(含通知回合)结束;`stopped`:SIGINT /
|
|
51
51
|
* SIGTERM、stdout 关闭或预算到限时 resolve,立即停止等待。没有子 Agent 注册表时直接返回。
|
|
52
52
|
*/
|
|
@@ -270,7 +270,7 @@ export async function runPrintMode(runtime, context) {
|
|
|
270
270
|
return ExitCode.Ok;
|
|
271
271
|
}
|
|
272
272
|
/**
|
|
273
|
-
* [W7-B2] 主回合结束后等后台任务与它们的通知回合(docs/agents-concurrency-plan.md §2.6、§6 Q5)。
|
|
273
|
+
* [W7-B2] 主回合结束后等后台任务与它们的通知回合(docs/history/agents-concurrency-plan.md §2.6、§6 Q5)。
|
|
274
274
|
* `settled()`(subagent-background.ts)等到没有运行中任务且通知投递链(含通知回合)结束;`stopped`:SIGINT /
|
|
275
275
|
* SIGTERM、stdout 关闭或预算到限时 resolve,立即停止等待。没有子 Agent 注册表时直接返回。
|
|
276
276
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* [S-A] `-p` 下 bash 搜索命令被拒时的一行提示(docs/search-plan.md §4.2)。
|
|
2
|
+
* [S-A] `-p` 下 bash 搜索命令被拒时的一行提示(docs/design/search-plan.md §4.2)。
|
|
3
3
|
*
|
|
4
4
|
* `minimal` / `coordinator` 预设没有 grep / glob,模型常改用 `bash grep` / `rg` / `find`,在无人值守下被拒后
|
|
5
5
|
* 只能猜文件名(§1.3 E3)。这里只在「被拒的 bash 命令形如搜索」且活动集缺 grep 或 glob 时提示怎么加回来;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* [S-A] `-p` 下 bash 搜索命令被拒时的一行提示(docs/search-plan.md §4.2)。
|
|
2
|
+
* [S-A] `-p` 下 bash 搜索命令被拒时的一行提示(docs/design/search-plan.md §4.2)。
|
|
3
3
|
*
|
|
4
4
|
* `minimal` / `coordinator` 预设没有 grep / glob,模型常改用 `bash grep` / `rg` / `find`,在无人值守下被拒后
|
|
5
5
|
* 只能猜文件名(§1.3 E3)。这里只在「被拒的 bash 命令形如搜索」且活动集缺 grep 或 glob 时提示怎么加回来;
|
|
@@ -310,7 +310,7 @@ export const handlers = {
|
|
|
310
310
|
},
|
|
311
311
|
get_commands: async (_p, ctx) => ({ commands: commands(ctx.runtime) }),
|
|
312
312
|
get_skills: async (_p, ctx) => ({ skills: ctx.runtime.resources.skills }),
|
|
313
|
-
// [W5-F] 计划 / 任务命令(docs/wave5-plan.md §6.5、§7.5)
|
|
313
|
+
// [W5-F] 计划 / 任务命令(docs/history/wave5-plan.md §6.5、§7.5)
|
|
314
314
|
plan_response: async (p, ctx) => {
|
|
315
315
|
const result = await plans(ctx).respond(p);
|
|
316
316
|
if (result.freshPrompt !== undefined) {
|
|
@@ -325,7 +325,7 @@ export const handlers = {
|
|
|
325
325
|
get_todos: async (_p, ctx) => ({ items: currentTodos(impl(ctx.session()).manager.branch()) }),
|
|
326
326
|
get_tasks: async (_p, ctx) => ({ tasks: [...(ctx.tasks?.()?.list() ?? [])] }),
|
|
327
327
|
get_agents: async (_p, ctx) => ({ agents: [...(ctx.agents?.() ?? [])] }),
|
|
328
|
-
// [W6-T2] 轨迹(docs/wave6-plan.md §2.6;分页 / 增量 / 脱敏见 trace/query.ts)
|
|
328
|
+
// [W6-T2] 轨迹(docs/history/wave6-plan.md §2.6;分页 / 增量 / 脱敏见 trace/query.ts)
|
|
329
329
|
get_trace: async (p, ctx) => sessionTrace(ctx.session(), p ?? {}),
|
|
330
330
|
// [W7-B2] 前台任务转后台:工具调用立即返回、任务继续,完成后照常通知
|
|
331
331
|
background_task: async (p, ctx) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* 进入 Bypass permissions(`full-auto`)前的确认(docs/permissions.md「进入 Bypass」)。
|
|
2
|
+
* 进入 Bypass permissions(`full-auto`)前的确认(docs/guides/permissions.md「进入 Bypass」)。
|
|
3
3
|
*
|
|
4
4
|
* - 交互界面里的切换(Tab / Shift+Tab 循环、`/permission` 选择器、`/permission full-auto` 命令)
|
|
5
5
|
* 进入 Bypass 前问一次;本次运行内确认过之后不再问;启动时已是 Bypass(命令行
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* 进入 Bypass permissions(`full-auto`)前的确认(docs/permissions.md「进入 Bypass」)。
|
|
2
|
+
* 进入 Bypass permissions(`full-auto`)前的确认(docs/guides/permissions.md「进入 Bypass」)。
|
|
3
3
|
*
|
|
4
4
|
* - 交互界面里的切换(Tab / Shift+Tab 循环、`/permission` 选择器、`/permission full-auto` 命令)
|
|
5
5
|
* 进入 Bypass 前问一次;本次运行内确认过之后不再问;启动时已是 Bypass(命令行
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
* 命中;带 path 的工具记文件所在目录,之后该目录下的路径命中;其它工具只记工具名。
|
|
26
26
|
* 记忆只作用于第 ③ 步模式产生的 ask(auto 里只作用于规则层之后)。
|
|
27
27
|
*
|
|
28
|
-
* [S2] bash 沙箱(docs/permissions.md「判定顺序」):default / auto-edit 下,bash 调用若将在 OS 沙箱内
|
|
28
|
+
* [S2] bash 沙箱(docs/guides/permissions.md「判定顺序」):default / auto-edit 下,bash 调用若将在 OS 沙箱内
|
|
29
29
|
* 运行且沙箱拒绝网络、没请求 `sandbox: false`、命令文本不碰机密路径、嵌套不超深,第 ③ 步的 ask 变
|
|
30
30
|
* allow(`sandboxed: true`);①② 与 Hook ask 照旧优先。auto 下沙箱不直接放行,只作为分类器输入;
|
|
31
31
|
* 请求 `sandbox: false` 越出沙箱时规则层询问(allow 规则 / Hook allow / 会话记忆仍可放行)。
|
|
@@ -47,7 +47,7 @@ export declare const PLAN_MODE_MESSAGE = "Plan mode is active: write/execute too
|
|
|
47
47
|
/** [W5-F] plan 下 `todo set / update` 的拒绝说明(计划与清单分开,避免跳过审批)。 */
|
|
48
48
|
export declare const PLAN_TODO_MESSAGE = "Plan mode is active: the todo list is created from the approved plan. Write the steps in a <proposed_plan> block instead.";
|
|
49
49
|
/**
|
|
50
|
-
* [W5-F] plan 模式第 ③ 步(输入可见,docs/wave5-plan.md §6.2):
|
|
50
|
+
* [W5-F] plan 模式第 ③ 步(输入可见,docs/history/wave5-plan.md §6.2):
|
|
51
51
|
* read 放行(`todo` 只放行 get);bash 按 `plan.bash`(readonly:只读子集放行其余拒绝;ask:其余询问;
|
|
52
52
|
* deny:全拒);task 放行(子会话共用同一管线,同样处在 plan);其余 write / execute 拒绝。
|
|
53
53
|
* 返回 undefined = 交给通常的模式真值表。
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
* 命中;带 path 的工具记文件所在目录,之后该目录下的路径命中;其它工具只记工具名。
|
|
26
26
|
* 记忆只作用于第 ③ 步模式产生的 ask(auto 里只作用于规则层之后)。
|
|
27
27
|
*
|
|
28
|
-
* [S2] bash 沙箱(docs/permissions.md「判定顺序」):default / auto-edit 下,bash 调用若将在 OS 沙箱内
|
|
28
|
+
* [S2] bash 沙箱(docs/guides/permissions.md「判定顺序」):default / auto-edit 下,bash 调用若将在 OS 沙箱内
|
|
29
29
|
* 运行且沙箱拒绝网络、没请求 `sandbox: false`、命令文本不碰机密路径、嵌套不超深,第 ③ 步的 ask 变
|
|
30
30
|
* allow(`sandboxed: true`);①② 与 Hook ask 照旧优先。auto 下沙箱不直接放行,只作为分类器输入;
|
|
31
31
|
* 请求 `sandbox: false` 越出沙箱时规则层询问(allow 规则 / Hook allow / 会话记忆仍可放行)。
|
|
@@ -72,7 +72,7 @@ export const PLAN_MODE_MESSAGE = "Plan mode is active: write/execute tools are d
|
|
|
72
72
|
/** [W5-F] plan 下 `todo set / update` 的拒绝说明(计划与清单分开,避免跳过审批)。 */
|
|
73
73
|
export const PLAN_TODO_MESSAGE = "Plan mode is active: the todo list is created from the approved plan. Write the steps in a <proposed_plan> block instead.";
|
|
74
74
|
/**
|
|
75
|
-
* [W5-F] plan 模式第 ③ 步(输入可见,docs/wave5-plan.md §6.2):
|
|
75
|
+
* [W5-F] plan 模式第 ③ 步(输入可见,docs/history/wave5-plan.md §6.2):
|
|
76
76
|
* read 放行(`todo` 只放行 get);bash 按 `plan.bash`(readonly:只读子集放行其余拒绝;ask:其余询问;
|
|
77
77
|
* deny:全拒);task 放行(子会话共用同一管线,同样处在 plan);其余 write / execute 拒绝。
|
|
78
78
|
* 返回 undefined = 交给通常的模式真值表。
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* auto 模式规则层的受保护路径(§7.4,docs/permissions.md「规则层」)。
|
|
2
|
+
* auto 模式规则层的受保护路径(§7.4,docs/guides/permissions.md「规则层」)。
|
|
3
3
|
*
|
|
4
4
|
* - **机密路径**(读写都询问):`.env` / `.env.*`(`.example` / `.sample` / `.template` / `.dist` 除外)、
|
|
5
5
|
* `*.env`、`.ssh/`、`.gnupg/`、`.aws/`、`.kube/config`、`.docker/config.json`、`.config/gcloud/`、
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* auto 模式规则层的受保护路径(§7.4,docs/permissions.md「规则层」)。
|
|
2
|
+
* auto 模式规则层的受保护路径(§7.4,docs/guides/permissions.md「规则层」)。
|
|
3
3
|
*
|
|
4
4
|
* - **机密路径**(读写都询问):`.env` / `.env.*`(`.example` / `.sample` / `.template` / `.dist` 除外)、
|
|
5
5
|
* `*.env`、`.ssh/`、`.gnupg/`、`.aws/`、`.kube/config`、`.docker/config.json`、`.config/gcloud/`、
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* plan 模式与 allowlist 放行的只读 bash 子集 `READONLY_BASH`(docs/wave5-plan.md §6.2、D21)。[W5-F]
|
|
2
|
+
* plan 模式与 allowlist 放行的只读 bash 子集 `READONLY_BASH`(docs/history/wave5-plan.md §6.2、D21)。[W5-F]
|
|
3
3
|
*
|
|
4
4
|
* 判定 = auto 的静态判定(`analyzeBashForAuto`:分词、嵌套展开、规则层的网络 / 删除 / 写入目标 /
|
|
5
5
|
* 机密路径、命令替换、变量展开、点文件通配)**全部通过**,再加四条更窄的限制:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* plan 模式与 allowlist 放行的只读 bash 子集 `READONLY_BASH`(docs/wave5-plan.md §6.2、D21)。[W5-F]
|
|
2
|
+
* plan 模式与 allowlist 放行的只读 bash 子集 `READONLY_BASH`(docs/history/wave5-plan.md §6.2、D21)。[W5-F]
|
|
3
3
|
*
|
|
4
4
|
* 判定 = auto 的静态判定(`analyzeBashForAuto`:分词、嵌套展开、规则层的网络 / 删除 / 写入目标 /
|
|
5
5
|
* 机密路径、命令替换、变量展开、点文件通配)**全部通过**,再加四条更窄的限制:
|
|
@@ -75,7 +75,7 @@ export interface ApprovalRequestContext {
|
|
|
75
75
|
/** [W5-C0] 子 Agent 任务 id(对话框标注 `[task:<agent>]`)。 */
|
|
76
76
|
taskId?: string;
|
|
77
77
|
/**
|
|
78
|
-
* [W5-C0] 来自外部 Agent 的权限请求(docs/wave5-plan.md §5.3):只走 broker 链(宿主 → UI →
|
|
78
|
+
* [W5-C0] 来自外部 Agent 的权限请求(docs/history/wave5-plan.md §5.3):只走 broker 链(宿主 → UI →
|
|
79
79
|
* 无人值守拒绝),auto 分类器与模型都不参与;RPC `permission_request` 原样带出。
|
|
80
80
|
*/
|
|
81
81
|
origin?: ExternalPermissionOrigin;
|
|
@@ -171,7 +171,7 @@ export interface PermissionVerdict {
|
|
|
171
171
|
*/
|
|
172
172
|
classify?: boolean;
|
|
173
173
|
/**
|
|
174
|
-
* [S2] 这次 bash 调用将经 OS 沙箱运行(docs/sandbox.md「第二阶段」)。default / auto-edit 下因此免审批时
|
|
174
|
+
* [S2] 这次 bash 调用将经 OS 沙箱运行(docs/guides/sandbox.md「第二阶段」)。default / auto-edit 下因此免审批时
|
|
175
175
|
* 为真;auto 下随 `classify` 一起交给分类器作为输入。
|
|
176
176
|
*/
|
|
177
177
|
sandboxed?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* [W5-Z] `[DONE:<步骤>]` 文本交接(docs/plan.md「交接」,D20 / R6 的回退):活动工具集里没有 `todo` 时,
|
|
2
|
+
* [W5-Z] `[DONE:<步骤>]` 文本交接(docs/guides/plan.md「交接」,D20 / R6 的回退):活动工具集里没有 `todo` 时,
|
|
3
3
|
* 批准计划的交接消息请模型每完成一步在回复里单独一行写 `[DONE:S1]`;ama 在回合结束时读这些标记,
|
|
4
4
|
* 把计划生成的待办(`planStep`)标为 done、下一个未完成项转 in_progress,照常落 `ama.todo` 与发
|
|
5
5
|
* `todo_updated`,界面与 RPC 的进度显示不依赖 todo 工具。
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* [W5-Z] `[DONE:<步骤>]` 文本交接(docs/plan.md「交接」,D20 / R6 的回退):活动工具集里没有 `todo` 时,
|
|
2
|
+
* [W5-Z] `[DONE:<步骤>]` 文本交接(docs/guides/plan.md「交接」,D20 / R6 的回退):活动工具集里没有 `todo` 时,
|
|
3
3
|
* 批准计划的交接消息请模型每完成一步在回复里单独一行写 `[DONE:S1]`;ama 在回合结束时读这些标记,
|
|
4
4
|
* 把计划生成的待办(`planStep`)标为 done、下一个未完成项转 in_progress,照常落 `ama.todo` 与发
|
|
5
5
|
* `todo_updated`,界面与 RPC 的进度显示不依赖 todo 工具。
|
package/dist/plan/extract.d.ts
CHANGED
package/dist/plan/extract.js
CHANGED
package/dist/plan/prompts.d.ts
CHANGED
package/dist/plan/prompts.js
CHANGED
package/dist/plan/store.d.ts
CHANGED
package/dist/plan/store.js
CHANGED
package/dist/rpc.d.ts
CHANGED
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
* - 线上事件 = 进程内 `SessionEvent`,但 `message_update` 换成纯增量(去掉 partial / 累计消息,
|
|
13
13
|
* 附最新 usage);stream-json 输出同一形状。
|
|
14
14
|
* - 类型定义直接放在本文件(B6 实现 import 它),避免子路径入口依赖实现文件。
|
|
15
|
-
* - [W5-C0] 第五波(docs/wave5-plan.md §6.5、§7.5):命令 `plan_response / get_plan / get_todos /
|
|
15
|
+
* - [W5-C0] 第五波(docs/history/wave5-plan.md §6.5、§7.5):命令 `plan_response / get_plan / get_todos /
|
|
16
16
|
* get_tasks / get_agents`(返回形状见 `RpcW5Results`),客户端能力 `plans`(声明后计划审批交客户端);
|
|
17
17
|
* 新事件由 `SessionEvent` 派生自动包含。命令实现归 W5-F(C0 时返回 `not_implemented`),
|
|
18
18
|
* `RPC_PROTOCOL_VERSION` 不变。
|
|
19
|
-
* - [W6-C0] 第六波(docs/wave6-plan.md §2.6、§4.4):命令 `get_trace`(参数 `RpcGetTraceParams`、返回
|
|
19
|
+
* - [W6-C0] 第六波(docs/history/wave6-plan.md §2.6、§4.4):命令 `get_trace`(参数 `RpcGetTraceParams`、返回
|
|
20
20
|
* `RpcW6Results`,W6-T2 实现,之前回 `not_implemented`);事件 `quota_update`;`permission_request.context`
|
|
21
21
|
* 可带 `toolCallId`;`keySource` 可为 `oauth`。`RPC_PROTOCOL_VERSION` 不变。
|
|
22
|
-
* - [W7-B2] 后台子 Agent(docs/agents-concurrency-plan.md §2.5):命令 `background_task { taskId? }` →
|
|
22
|
+
* - [W7-B2] 后台子 Agent(docs/history/agents-concurrency-plan.md §2.5):命令 `background_task { taskId? }` →
|
|
23
23
|
* `RpcW7Results`(无 taskId = 全部前台运行中任务;对已结束 / 已在后台的任务回空表);事件
|
|
24
24
|
* `subagent_background` 由 `SessionEvent` 派生。`RPC_PROTOCOL_VERSION` 不变。
|
|
25
25
|
*/
|
package/dist/rpc.js
CHANGED
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
* - 线上事件 = 进程内 `SessionEvent`,但 `message_update` 换成纯增量(去掉 partial / 累计消息,
|
|
13
13
|
* 附最新 usage);stream-json 输出同一形状。
|
|
14
14
|
* - 类型定义直接放在本文件(B6 实现 import 它),避免子路径入口依赖实现文件。
|
|
15
|
-
* - [W5-C0] 第五波(docs/wave5-plan.md §6.5、§7.5):命令 `plan_response / get_plan / get_todos /
|
|
15
|
+
* - [W5-C0] 第五波(docs/history/wave5-plan.md §6.5、§7.5):命令 `plan_response / get_plan / get_todos /
|
|
16
16
|
* get_tasks / get_agents`(返回形状见 `RpcW5Results`),客户端能力 `plans`(声明后计划审批交客户端);
|
|
17
17
|
* 新事件由 `SessionEvent` 派生自动包含。命令实现归 W5-F(C0 时返回 `not_implemented`),
|
|
18
18
|
* `RPC_PROTOCOL_VERSION` 不变。
|
|
19
|
-
* - [W6-C0] 第六波(docs/wave6-plan.md §2.6、§4.4):命令 `get_trace`(参数 `RpcGetTraceParams`、返回
|
|
19
|
+
* - [W6-C0] 第六波(docs/history/wave6-plan.md §2.6、§4.4):命令 `get_trace`(参数 `RpcGetTraceParams`、返回
|
|
20
20
|
* `RpcW6Results`,W6-T2 实现,之前回 `not_implemented`);事件 `quota_update`;`permission_request.context`
|
|
21
21
|
* 可带 `toolCallId`;`keySource` 可为 `oauth`。`RPC_PROTOCOL_VERSION` 不变。
|
|
22
|
-
* - [W7-B2] 后台子 Agent(docs/agents-concurrency-plan.md §2.5):命令 `background_task { taskId? }` →
|
|
22
|
+
* - [W7-B2] 后台子 Agent(docs/history/agents-concurrency-plan.md §2.5):命令 `background_task { taskId? }` →
|
|
23
23
|
* `RpcW7Results`(无 taskId = 全部前台运行中任务;对已结束 / 已在后台的任务回空表);事件
|
|
24
24
|
* `subagent_background` 由 `SessionEvent` 派生。`RPC_PROTOCOL_VERSION` 不变。
|
|
25
25
|
*/
|
package/dist/sandbox/bash.d.ts
CHANGED
package/dist/sandbox/bash.js
CHANGED
package/dist/sandbox/detect.d.ts
CHANGED
package/dist/sandbox/detect.js
CHANGED
package/dist/sandbox/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** 操作系统级沙箱(docs/sandbox.md):探测、参数生成与命令包装。 */
|
|
1
|
+
/** 操作系统级沙箱(docs/guides/sandbox.md):探测、参数生成与命令包装。 */
|
|
2
2
|
export { NO_OS_SANDBOX, configureOsSandbox, osSandboxStatus, probeOsSandbox, resetOsSandboxForTests, resolveSandboxEnabled, type OsSandboxStatus, type ProbeDeps, type SandboxEnabled, } from "./detect.js";
|
|
3
3
|
export { buildBwrapArgs, buildSbplProfile, buildUnshareArgs, type OsSandboxKind, type OsSandboxPolicy, } from "./profile.js";
|
|
4
4
|
export { resolveExtras, resolveWritable, wrapCommand, type WrappedCommand } from "./wrap.js";
|
package/dist/sandbox/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** 操作系统级沙箱(docs/sandbox.md):探测、参数生成与命令包装。 */
|
|
1
|
+
/** 操作系统级沙箱(docs/guides/sandbox.md):探测、参数生成与命令包装。 */
|
|
2
2
|
export { NO_OS_SANDBOX, configureOsSandbox, osSandboxStatus, probeOsSandbox, resetOsSandboxForTests, resolveSandboxEnabled, } from "./detect.js";
|
|
3
3
|
export { buildBwrapArgs, buildSbplProfile, buildUnshareArgs, } from "./profile.js";
|
|
4
4
|
export { resolveExtras, resolveWritable, wrapCommand } from "./wrap.js";
|