@armadra/agent 0.7.6 → 0.8.1
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 +51 -31
- package/CHANGELOG.zh-CN.md +68 -48
- 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 +4 -2
- package/dist/ai/apis/chatgpt-backend.js +11 -2
- 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.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 +1 -1
- 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 +1041 -359
- 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 +23 -2
- package/dist/drivers/acp/driver.js +60 -6
- 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 +4 -1
- package/dist/drivers/base.d.ts +1 -1
- package/dist/drivers/base.js +1 -1
- package/dist/drivers/catalog.d.ts +3 -1
- package/dist/drivers/catalog.js +95 -5
- 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 +9 -1
- package/dist/drivers/native/claude-normalize.js +28 -1
- package/dist/drivers/native/claude-stream.d.ts +1 -1
- package/dist/drivers/native/claude-stream.js +17 -2
- package/dist/drivers/native/codex-app-server.d.ts +1 -1
- package/dist/drivers/native/codex-app-server.js +5 -3
- 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 +13 -3
- package/dist/drivers/native/pi-gate.d.ts +19 -0
- package/dist/drivers/native/pi-gate.js +39 -0
- package/dist/drivers/native/pi-rpc.d.ts +29 -0
- package/dist/drivers/native/pi-rpc.js +483 -0
- 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 +2 -1
- package/dist/drivers/store.d.ts +1 -1
- package/dist/drivers/store.js +1 -1
- package/dist/drivers/types.d.ts +2 -2
- 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 +5 -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 +3 -1
- package/dist/i18n/messages/auth.js +3 -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 +5 -1
- package/dist/i18n/messages/drivers.js +5 -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} +13 -12
- 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} +68 -23
- 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} +11 -10
- 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
|
-
* 消息目录:report 的 `/context` 部分(键名规范见 docs/i18n.md)。
|
|
2
|
+
* 消息目录:report 的 `/context` 部分(键名规范见 docs/guides/i18n.md)。
|
|
3
3
|
*
|
|
4
4
|
* 单文件 600 行上限,从 `report.ts` 拆出;经 `msg().report.contextReport` 取用(modes/context-report.ts)。
|
|
5
5
|
* 只有数字与名字的格式,不含任何正文。en 是形状源;zh 用 `satisfies Messages<typeof en>`。
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* 消息目录:report(键名规范见 docs/i18n.md)。[W6-C0 建空壳,W6-I3 迁入]
|
|
2
|
+
* 消息目录:report(键名规范见 docs/guides/i18n.md)。[W6-C0 建空壳,W6-I3 迁入]
|
|
3
3
|
*
|
|
4
4
|
* 范围:斜杠命令语义层(`modes/commands-core.ts` 的命令说明与回执)、`/session` `/cache` 报告与缓存提示
|
|
5
5
|
* (`modes/session-report.ts`)、启动期文本问答(`modes/startup-ui-text.ts`)、`ama doctor`。
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* 消息目录:report(键名规范见 docs/i18n.md)。[W6-C0 建空壳,W6-I3 迁入]
|
|
2
|
+
* 消息目录:report(键名规范见 docs/guides/i18n.md)。[W6-C0 建空壳,W6-I3 迁入]
|
|
3
3
|
*
|
|
4
4
|
* 范围:斜杠命令语义层(`modes/commands-core.ts` 的命令说明与回执)、`/session` `/cache` 报告与缓存提示
|
|
5
5
|
* (`modes/session-report.ts`)、启动期文本问答(`modes/startup-ui-text.ts`)、`ama doctor`。
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* 消息目录:session(键名规范见 docs/i18n.md)。[W6-C0 建空壳,W6-I3 迁入]
|
|
2
|
+
* 消息目录:session(键名规范见 docs/guides/i18n.md)。[W6-C0 建空壳,W6-I3 迁入]
|
|
3
3
|
*
|
|
4
4
|
* 范围:`src/session/**`(含 Markdown 导出)、`src/checkpoints/**`、`src/plan/store.ts`、
|
|
5
5
|
* `src/agent/session-plan.ts` 的待审批提示、`src/sandbox/**` 的状态说明、`src/codemode/capability.ts`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* 消息目录:session(键名规范见 docs/i18n.md)。[W6-C0 建空壳,W6-I3 迁入]
|
|
2
|
+
* 消息目录:session(键名规范见 docs/guides/i18n.md)。[W6-C0 建空壳,W6-I3 迁入]
|
|
3
3
|
*
|
|
4
4
|
* 范围:`src/session/**`(含 Markdown 导出)、`src/checkpoints/**`、`src/plan/store.ts`、
|
|
5
5
|
* `src/agent/session-plan.ts` 的待审批提示、`src/sandbox/**` 的状态说明、`src/codemode/capability.ts`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* 消息目录:subcommands(键名规范见 docs/i18n.md)。[W6-C0 建空壳,W6-I1 迁入 `src/cli/subcommands/**`]
|
|
2
|
+
* 消息目录:subcommands(键名规范见 docs/guides/i18n.md)。[W6-C0 建空壳,W6-I1 迁入 `src/cli/subcommands/**`]
|
|
3
3
|
*
|
|
4
4
|
* en 是形状源;zh 用 `satisfies Messages<typeof en>`,缺键 / 多键 / 参数不符在 tsc 期报错。
|
|
5
5
|
* 整句一个键、禁止片段拼接;插值写成函数,条件分支写进函数体。
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* 消息目录:subcommands(键名规范见 docs/i18n.md)。[W6-C0 建空壳,W6-I1 迁入 `src/cli/subcommands/**`]
|
|
2
|
+
* 消息目录:subcommands(键名规范见 docs/guides/i18n.md)。[W6-C0 建空壳,W6-I1 迁入 `src/cli/subcommands/**`]
|
|
3
3
|
*
|
|
4
4
|
* en 是形状源;zh 用 `satisfies Messages<typeof en>`,缺键 / 多键 / 参数不符在 tsc 期报错。
|
|
5
5
|
* 整句一个键、禁止片段拼接;插值写成函数,条件分支写进函数体。
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* 消息目录:trace(键名规范见 docs/i18n.md)。[W6-C0 建空壳,W6-T1 填 TUI / line 模式文案,W6-T2 追加 HTML]
|
|
2
|
+
* 消息目录:trace(键名规范见 docs/guides/i18n.md)。[W6-C0 建空壳,W6-T1 填 TUI / line 模式文案,W6-T2 追加 HTML]
|
|
3
3
|
*
|
|
4
4
|
* en 是形状源;zh 用 `satisfies Messages<typeof en>`,缺键 / 多键 / 参数不符在 tsc 期报错。
|
|
5
5
|
* 整句一个键、禁止片段拼接;插值写成函数,条件分支写进函数体。
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* 消息目录:trace(键名规范见 docs/i18n.md)。[W6-C0 建空壳,W6-T1 填 TUI / line 模式文案,W6-T2 追加 HTML]
|
|
2
|
+
* 消息目录:trace(键名规范见 docs/guides/i18n.md)。[W6-C0 建空壳,W6-T1 填 TUI / line 模式文案,W6-T2 追加 HTML]
|
|
3
3
|
*
|
|
4
4
|
* en 是形状源;zh 用 `satisfies Messages<typeof en>`,缺键 / 多键 / 参数不符在 tsc 期报错。
|
|
5
5
|
* 整句一个键、禁止片段拼接;插值写成函数,条件分支写进函数体。
|
package/dist/i18n/types.d.ts
CHANGED
package/dist/i18n/types.js
CHANGED
package/dist/memory/index.d.ts
CHANGED
package/dist/memory/index.js
CHANGED
package/dist/memory/lock.d.ts
CHANGED
package/dist/memory/lock.js
CHANGED
package/dist/memory/paths.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* 记忆的目录与逻辑路径(docs/wave6-plan.md §3.2、D9、D11)。[W6-M]
|
|
2
|
+
* 记忆的目录与逻辑路径(docs/history/wave6-plan.md §3.2、D9、D11)。[W6-M]
|
|
3
3
|
*
|
|
4
4
|
* - 独立终端:`<dataDir>/memory/user/` 与 `<dataDir>/memory/projects/<slug>-<sha8>/`;sha8 = 项目根真实路径的
|
|
5
5
|
* sha256 前 8 位。项目根:git 顶层(worktree 取主仓库,经 `commondir`);子模块取子模块自己的检出;
|
package/dist/memory/paths.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* 记忆的目录与逻辑路径(docs/wave6-plan.md §3.2、D9、D11)。[W6-M]
|
|
2
|
+
* 记忆的目录与逻辑路径(docs/history/wave6-plan.md §3.2、D9、D11)。[W6-M]
|
|
3
3
|
*
|
|
4
4
|
* - 独立终端:`<dataDir>/memory/user/` 与 `<dataDir>/memory/projects/<slug>-<sha8>/`;sha8 = 项目根真实路径的
|
|
5
5
|
* sha256 前 8 位。项目根:git 顶层(worktree 取主仓库,经 `commondir`);子模块取子模块自己的检出;
|
package/dist/memory/runtime.d.ts
CHANGED
package/dist/memory/runtime.js
CHANGED
package/dist/memory/secrets.d.ts
CHANGED
package/dist/memory/secrets.js
CHANGED
package/dist/memory/section.d.ts
CHANGED
package/dist/memory/section.js
CHANGED
package/dist/memory/store.d.ts
CHANGED
package/dist/memory/store.js
CHANGED
package/dist/memory/tool.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `memory` 工具(docs/wave6-plan.md §3.3、D10)。[W6-M] 模型侧模块:不得 import src/i18n。
|
|
2
|
+
* `memory` 工具(docs/history/wave6-plan.md §3.3、D10)。[W6-M] 模型侧模块:不得 import src/i18n。
|
|
3
3
|
*
|
|
4
4
|
* 自定义工具(不声明供应商原生的 memory 工具类型),四个命令:`view / create / str_replace / delete`,路径限定
|
|
5
5
|
* 在 `/memories/<scope>/`。权限类 `memory`:view 按读放行,写命令按 execute 判定(permissions/memory-class.ts)。
|
package/dist/memory/tool.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `memory` 工具(docs/wave6-plan.md §3.3、D10)。[W6-M] 模型侧模块:不得 import src/i18n。
|
|
2
|
+
* `memory` 工具(docs/history/wave6-plan.md §3.3、D10)。[W6-M] 模型侧模块:不得 import src/i18n。
|
|
3
3
|
*
|
|
4
4
|
* 自定义工具(不声明供应商原生的 memory 工具类型),四个命令:`view / create / str_replace / delete`,路径限定
|
|
5
5
|
* 在 `/memories/<scope>/`。权限类 `memory`:view 按读放行,写命令按 execute 判定(permissions/memory-class.ts)。
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `ama --mode acp` 的认证门(docs/acp-plan.md §2.2、D3、D4)。[ACP-A]
|
|
2
|
+
* `ama --mode acp` 的认证门(docs/history/acp-plan.md §2.2、D3、D4)。[ACP-A]
|
|
3
3
|
*
|
|
4
4
|
* bootstrap 因没有可用模型(退出码 4)失败时不退出,改为在同一条 stdio 上应答 ACP:
|
|
5
5
|
* - `initialize` → 正常握手;客户端声明 `clientCapabilities.auth.terminal` 时给两条 terminal 型
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `ama --mode acp` 的认证门(docs/acp-plan.md §2.2、D3、D4)。[ACP-A]
|
|
2
|
+
* `ama --mode acp` 的认证门(docs/history/acp-plan.md §2.2、D3、D4)。[ACP-A]
|
|
3
3
|
*
|
|
4
4
|
* bootstrap 因没有可用模型(退出码 4)失败时不退出,改为在同一条 stdio 上应答 ACP:
|
|
5
5
|
* - `initialize` → 正常握手;客户端声明 `clientCapabilities.auth.terminal` 时给两条 terminal 型
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `ama --mode acp` 的会话配置项与命令表(docs/acp-plan.md §1.6、D8、D9)。[ACP-C0 建壳,ACP-D 实现]
|
|
2
|
+
* `ama --mode acp` 的会话配置项与命令表(docs/history/acp-plan.md §1.6、D8、D9)。[ACP-C0 建壳,ACP-D 实现]
|
|
3
3
|
*
|
|
4
4
|
* - `buildConfigOptions`:`mode`(select,category `mode`,值是 ama 的权限模式,与 `modes` 同一状态)、
|
|
5
5
|
* `model`(select,category `model`,按供应商分组,值 `provider/model-id`)与 `thinking`(select,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `ama --mode acp` 的会话配置项与命令表(docs/acp-plan.md §1.6、D8、D9)。[ACP-C0 建壳,ACP-D 实现]
|
|
2
|
+
* `ama --mode acp` 的会话配置项与命令表(docs/history/acp-plan.md §1.6、D8、D9)。[ACP-C0 建壳,ACP-D 实现]
|
|
3
3
|
*
|
|
4
4
|
* - `buildConfigOptions`:`mode`(select,category `mode`,值是 ama 的权限模式,与 `modes` 同一状态)、
|
|
5
5
|
* `model`(select,category `model`,按供应商分组,值 `provider/model-id`)与 `thinking`(select,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `ama --mode acp` 的连接:JSON-RPC 对等端 + `initialize` 协商结果(docs/acp-plan.md §1.6)。[ACP-C0]
|
|
2
|
+
* `ama --mode acp` 的连接:JSON-RPC 对等端 + `initialize` 协商结果(docs/history/acp-plan.md §1.6)。[ACP-C0]
|
|
3
3
|
*
|
|
4
4
|
* 认证门(无模型时的握手,acp-auth-gate.ts)与服务端(acp-server.ts)共用同一条连接:门控在
|
|
5
5
|
* bootstrap 成功后把它交给 `AcpServer`,客户端不必重新 `initialize`。对等端开着协议级取消
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `ama --mode acp` 的连接:JSON-RPC 对等端 + `initialize` 协商结果(docs/acp-plan.md §1.6)。[ACP-C0]
|
|
2
|
+
* `ama --mode acp` 的连接:JSON-RPC 对等端 + `initialize` 协商结果(docs/history/acp-plan.md §1.6)。[ACP-C0]
|
|
3
3
|
*
|
|
4
4
|
* 认证门(无模型时的握手,acp-auth-gate.ts)与服务端(acp-server.ts)共用同一条连接:门控在
|
|
5
5
|
* bootstrap 成功后把它交给 `AcpServer`,客户端不必重新 `initialize`。对等端开着协议级取消
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `ama --mode acp`:ama 的会话事件 → ACP `session/update`(docs/wave5-plan.md §5.6、docs/acp-plan.md §2.3)。
|
|
2
|
+
* `ama --mode acp`:ama 的会话事件 → ACP `session/update`(docs/history/wave5-plan.md §5.6、docs/history/acp-plan.md §2.3)。
|
|
3
3
|
*
|
|
4
4
|
* | ama | ACP |
|
|
5
5
|
* | ----------------------------------------- | ---------------------------------------------------------------- |
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `ama --mode acp`:ama 的会话事件 → ACP `session/update`(docs/wave5-plan.md §5.6、docs/acp-plan.md §2.3)。
|
|
2
|
+
* `ama --mode acp`:ama 的会话事件 → ACP `session/update`(docs/history/wave5-plan.md §5.6、docs/history/acp-plan.md §2.3)。
|
|
3
3
|
*
|
|
4
4
|
* | ama | ACP |
|
|
5
5
|
* | ----------------------------------------- | ---------------------------------------------------------------- |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `ama --mode acp`:把 ama 的会话暴露为 ACP Agent(docs/wave5-plan.md §5.6,D14;多会话见
|
|
3
|
-
* docs/acp-plan.md D1、D2、D11、D12、§2.1)。[W5-E,ACP-B]
|
|
2
|
+
* `ama --mode acp`:把 ama 的会话暴露为 ACP Agent(docs/history/wave5-plan.md §5.6,D14;多会话见
|
|
3
|
+
* docs/history/acp-plan.md D1、D2、D11、D12、§2.1)。[W5-E,ACP-B]
|
|
4
4
|
*
|
|
5
5
|
* 与 `--mode rpc` 同一引擎(Runtime + 组装根)。多会话:
|
|
6
6
|
* - 每个 ACP sessionId 一个常驻会话(会话池,acp-sessions.ts),各有自己的事件映射器与权限模式;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `ama --mode acp`:把 ama 的会话暴露为 ACP Agent(docs/wave5-plan.md §5.6,D14;多会话见
|
|
3
|
-
* docs/acp-plan.md D1、D2、D11、D12、§2.1)。[W5-E,ACP-B]
|
|
2
|
+
* `ama --mode acp`:把 ama 的会话暴露为 ACP Agent(docs/history/wave5-plan.md §5.6,D14;多会话见
|
|
3
|
+
* docs/history/acp-plan.md D1、D2、D11、D12、§2.1)。[W5-E,ACP-B]
|
|
4
4
|
*
|
|
5
5
|
* 与 `--mode rpc` 同一引擎(Runtime + 组装根)。多会话:
|
|
6
6
|
* - 每个 ACP sessionId 一个常驻会话(会话池,acp-sessions.ts),各有自己的事件映射器与权限模式;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `ama --mode acp` 的多会话:会话池条目、FIFO 提示队列、`session/list` 的分页与标题(docs/acp-plan.md
|
|
2
|
+
* `ama --mode acp` 的多会话:会话池条目、FIFO 提示队列、`session/list` 的分页与标题(docs/history/acp-plan.md
|
|
3
3
|
* D1、D2、D11、§2.1)。[ACP-B]
|
|
4
4
|
*
|
|
5
5
|
* - 每个 ACP sessionId 一个常驻会话({@link PooledSession}),各有自己的事件映射器与权限模式;
|
|
@@ -81,7 +81,7 @@ export declare function decodeCursor(cursor: unknown): {
|
|
|
81
81
|
/** 一页会话(`cursor` 缺省从头)。 */
|
|
82
82
|
export declare function pageSessions(items: readonly SessionListItem[], cursor: unknown, pageSize?: number): AcpListSessionsResult;
|
|
83
83
|
/**
|
|
84
|
-
* 跑一个出队的提示(docs/memory-plan.md D4、§2.2,Issue #139)。[M-A]
|
|
84
|
+
* 跑一个出队的提示(docs/history/memory-plan.md D4、§2.2,Issue #139)。[M-A]
|
|
85
85
|
*
|
|
86
86
|
* 后台子 Agent 的完成通知以 `followUp` 在会话空闲时开回合,不经 {@link PromptQueue};那一回合在跑时
|
|
87
87
|
* 直接 `prompt` 会报 busy。这里先等它结束;与通知器竞速输了(等到空闲后它抢先开了回合)再等一轮。
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `ama --mode acp` 的多会话:会话池条目、FIFO 提示队列、`session/list` 的分页与标题(docs/acp-plan.md
|
|
2
|
+
* `ama --mode acp` 的多会话:会话池条目、FIFO 提示队列、`session/list` 的分页与标题(docs/history/acp-plan.md
|
|
3
3
|
* D1、D2、D11、§2.1)。[ACP-B]
|
|
4
4
|
*
|
|
5
5
|
* - 每个 ACP sessionId 一个常驻会话({@link PooledSession}),各有自己的事件映射器与权限模式;
|
|
@@ -158,7 +158,7 @@ export function pageSessions(items, cursor, pageSize = LIST_PAGE_SIZE) {
|
|
|
158
158
|
: { sessions };
|
|
159
159
|
}
|
|
160
160
|
/**
|
|
161
|
-
* 跑一个出队的提示(docs/memory-plan.md D4、§2.2,Issue #139)。[M-A]
|
|
161
|
+
* 跑一个出队的提示(docs/history/memory-plan.md D4、§2.2,Issue #139)。[M-A]
|
|
162
162
|
*
|
|
163
163
|
* 后台子 Agent 的完成通知以 `followUp` 在会话空闲时开回合,不经 {@link PromptQueue};那一回合在跑时
|
|
164
164
|
* 直接 `prompt` 会报 busy。这里先等它结束;与通知器竞速输了(等到空闲后它抢先开了回合)再等一轮。
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* `ama --mode acp` 工具调用的展示字段:title / kind / locations、结果文本(前 4 KB)与 diff 内容。
|
|
3
|
-
* [ACP-C] 从 acp-events.ts 拆出(docs/acp-plan.md §2.3、D5、D6)。
|
|
3
|
+
* [ACP-C] 从 acp-events.ts 拆出(docs/history/acp-plan.md §2.3、D5、D6)。
|
|
4
4
|
*
|
|
5
5
|
* - codemode 内层调用(带 parentToolCallId)的 title 加前缀 `acp.tools.codemodePrefix`;
|
|
6
6
|
* - `tool_execution_end` 的 `content` = `[diff?, text]`:diff 来自 `ToolResult.fileChange`(edit / write
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* `ama --mode acp` 工具调用的展示字段:title / kind / locations、结果文本(前 4 KB)与 diff 内容。
|
|
3
|
-
* [ACP-C] 从 acp-events.ts 拆出(docs/acp-plan.md §2.3、D5、D6)。
|
|
3
|
+
* [ACP-C] 从 acp-events.ts 拆出(docs/history/acp-plan.md §2.3、D5、D6)。
|
|
4
4
|
*
|
|
5
5
|
* - codemode 内层调用(带 parentToolCallId)的 title 加前缀 `acp.tools.codemodePrefix`;
|
|
6
6
|
* - `tool_execution_end` 的 `content` = `[diff?, text]`:diff 来自 `ToolResult.fileChange`(edit / write
|
|
@@ -30,7 +30,7 @@ export { describeSession } from "./session-report.js";
|
|
|
30
30
|
/** [W6-C0] 各功能批次实现的第六波命令(没有处理器时回「尚未提供」)。 */
|
|
31
31
|
export const W6_COMMANDS = ["config", "trace", "memory"];
|
|
32
32
|
/**
|
|
33
|
-
* 说明与需要翻译的参数占位按界面语言取(getter,不在 import 时定死,docs/i18n.md);
|
|
33
|
+
* 说明与需要翻译的参数占位按界面语言取(getter,不在 import 时定死,docs/guides/i18n.md);
|
|
34
34
|
* `args` 是字符串时原样(不含要翻译的词),是 `{ key }` 时取目录里的占位。
|
|
35
35
|
*/
|
|
36
36
|
function command(name, key, args) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* 子 Agent 视图的正文(docs/wave6-plan.md §1.2、D2)。[W6-A]
|
|
2
|
+
* 子 Agent 视图的正文(docs/history/wave6-plan.md §1.2、D2)。[W6-A]
|
|
3
3
|
*
|
|
4
4
|
* - `AmaTranscript`:ama 子会话的全量消息,复用消息区的 `MessageView` / `ToolTracker` 渲染;先按条目重放
|
|
5
5
|
* (句柄在内存时读 `entries()`,被 LRU 释放或 resume 后只读加载子会话文件),运行中再跟随子会话事件。
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* 子 Agent 视图的正文(docs/wave6-plan.md §1.2、D2)。[W6-A]
|
|
2
|
+
* 子 Agent 视图的正文(docs/history/wave6-plan.md §1.2、D2)。[W6-A]
|
|
3
3
|
*
|
|
4
4
|
* - `AmaTranscript`:ama 子会话的全量消息,复用消息区的 `MessageView` / `ToolTracker` 渲染;先按条目重放
|
|
5
5
|
* (句柄在内存时读 `entries()`,被 LRU 释放或 resume 后只读加载子会话文件),运行中再跟随子会话事件。
|
|
@@ -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 模式);
|