mia-code 0.2.0 → 0.3.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/.miette/260321.md +1 -0
- package/.miette/260323.md +9 -0
- package/.miette/260331.md +2 -0
- package/.pde/2604011511--83a2d7f9-24a5-4cf4-98d5-036c82f872e8/2604020008--d3417f2c-df12-4f0f-8a1b-d88e7968f822/d3417f2c-df12-4f0f-8a1b-d88e7968f822.md +63 -0
- package/.pde/2604011511--83a2d7f9-24a5-4cf4-98d5-036c82f872e8/2604020008--e6c3fc5d-4a70-4523-ba7d-a3250da4c235/e6c3fc5d-4a70-4523-ba7d-a3250da4c235.md +72 -0
- package/.pde/2604011511--83a2d7f9-24a5-4cf4-98d5-036c82f872e8/2604020008--efeb00a2-b17a-4d32-b1f0-b90c37a8d24e/efeb00a2-b17a-4d32-b1f0-b90c37a8d24e.md +62 -0
- package/.pde/2604011511--83a2d7f9-24a5-4cf4-98d5-036c82f872e8/83a2d7f9-24a5-4cf4-98d5-036c82f872e8.json +302 -0
- package/.pde/2604011511--83a2d7f9-24a5-4cf4-98d5-036c82f872e8/83a2d7f9-24a5-4cf4-98d5-036c82f872e8.md +149 -0
- package/.pde/2604011511--83a2d7f9-24a5-4cf4-98d5-036c82f872e8/AGENTS.md +31 -0
- package/.pde/2604011511--83a2d7f9-24a5-4cf4-98d5-036c82f872e8/meta-decomposition-3-children.md +67 -0
- package/.pde/2604040129--61f9dd4d-7aa6-45e6-a58b-e480b1aa6737/61f9dd4d-7aa6-45e6-a58b-e480b1aa6737--from-mia-openclaw-workspace.md +125 -0
- package/.pde/2604040129--61f9dd4d-7aa6-45e6-a58b-e480b1aa6737/STATUS.md +1 -0
- package/.pde/4f02ba94-9f52-422e-9389-b16f9b37f358.json +177 -0
- package/.pde/4f02ba94-9f52-422e-9389-b16f9b37f358.md +77 -0
- package/.pde/6ad9244d-5340-490f-b76c-c86728b9de52.json +222 -0
- package/.pde/6ad9244d-5340-490f-b76c-c86728b9de52.md +99 -0
- package/.pde/8b566792-ed15-4606-96f9-2b6f593d7e6b.json +111 -0
- package/.pde/8b566792-ed15-4606-96f9-2b6f593d7e6b.md +67 -0
- package/.pde/c7f1e74b-05a5-40e2-9f01-4cc48d2528f7.json +349 -0
- package/.pde/c7f1e74b-05a5-40e2-9f01-4cc48d2528f7.md +147 -0
- package/.pde/dfc00a78-1da0-4c09-8a16-c6982644051b.json +118 -0
- package/.pde/dfc00a78-1da0-4c09-8a16-c6982644051b.md +64 -0
- package/GUILLAUME.md +8 -0
- package/KINSHIP.md +9 -0
- package/MIA_CODE_ARCHITECTURE_REPORT.md +718 -0
- package/contextual_research/260119-MIA-CODE--98090899-8aff-4e11-9dc3-8b99466d1.md +1101 -0
- package/contextual_research/MIA.md +38 -0
- package/contextual_research/MIAWAPASCONE.md +59 -0
- package/contextual_research/MIETTE.md +38 -0
- package/contextual_research/PDE-generalization--caefee82-efb1-4dbb-8733-691b01581464--260130/2504.00218v2.pdf +7483 -12
- package/contextual_research/PDE-generalization--caefee82-efb1-4dbb-8733-691b01581464--260130/2505.00212v3.pdf +0 -0
- package/contextual_research/PDE-generalization--caefee82-efb1-4dbb-8733-691b01581464--260130/CONTENT.md +1014 -0
- package/contextual_research/PDE-generalization--caefee82-efb1-4dbb-8733-691b01581464--260130/DESIGN.gemini.md +242 -0
- package/contextual_research/PDE-generalization--caefee82-efb1-4dbb-8733-691b01581464--260130/INDEX.md +45 -0
- package/contextual_research/PDE-generalization--caefee82-efb1-4dbb-8733-691b01581464--260130/sources/2504.00218v2.md +2025 -0
- package/contextual_research/PDE-generalization--caefee82-efb1-4dbb-8733-691b01581464--260130/sources/2504.00218v2.pdf +7483 -12
- package/contextual_research/PDE-generalization--caefee82-efb1-4dbb-8733-691b01581464--260130/sources/2505.00212v3.md +1755 -0
- package/contextual_research/PDE-generalization--caefee82-efb1-4dbb-8733-691b01581464--260130/sources/2505.00212v3.pdf +0 -0
- package/contextual_research/PDE-generalization--caefee82-efb1-4dbb-8733-691b01581464--260130/sources/footnote_1_12_decomposed_prompting.pdf +0 -0
- package/contextual_research/PDE-generalization--caefee82-efb1-4dbb-8733-691b01581464--260130/sources/footnote_1_19_hugginggpt_planning.pdf +0 -0
- package/contextual_research/PDE-generalization--caefee82-efb1-4dbb-8733-691b01581464--260130/sources/footnote_1_1_coordination_challenges.md +766 -0
- package/contextual_research/PDE-generalization--caefee82-efb1-4dbb-8733-691b01581464--260130/sources/footnote_1_1_coordination_challenges.pdf +3431 -4
- package/contextual_research/PDE-generalization--caefee82-efb1-4dbb-8733-691b01581464--260130/sources/footnote_1_28_guardrails_multi_agent.md +260 -0
- package/contextual_research/PDE-generalization--caefee82-efb1-4dbb-8733-691b01581464--260130/sources/footnote_1_28_guardrails_multi_agent.pdf +0 -0
- package/contextual_research/PDE-generalization--caefee82-efb1-4dbb-8733-691b01581464--260130/sources/footnote_1_2_navigating_complexity.md +558 -0
- package/contextual_research/PDE-generalization--caefee82-efb1-4dbb-8733-691b01581464--260130/sources/footnote_1_2_navigating_complexity.pdf +0 -0
- package/contextual_research/PDE-generalization--caefee82-efb1-4dbb-8733-691b01581464--260130/sources/footnote_1_34_hierarchical_multi_agent.pdf +0 -0
- package/contextual_research/PDE-generalization--caefee82-efb1-4dbb-8733-691b01581464--260130/sources/footnote_1_5_open_intent_extraction.pdf +0 -0
- package/contextual_research/PODCAST.md +109 -0
- package/contextual_research/langchain-principles-roadmap.md +157 -0
- package/contextual_research/persona-to-narrative-character-inquiry_260201.md +50 -0
- package/dist/cli.js +35 -11
- package/dist/geminiHeadless.js +8 -2
- package/dist/index.js +2 -1
- package/dist/mcp/miaco-server.js +10 -1
- package/dist/mcp/miatel-server.js +10 -1
- package/dist/mcp/miawa-server.js +10 -1
- package/dist/mcp/utils.d.ts +6 -1
- package/dist/mcp/utils.js +24 -3
- package/dist/sessionStore.d.ts +8 -2
- package/dist/sessionStore.js +39 -3
- package/dist/types.d.ts +1 -0
- package/miaco/README.md +124 -0
- package/miaco/dist/commands/chart.d.ts +6 -0
- package/miaco/dist/commands/chart.d.ts.map +1 -0
- package/miaco/dist/commands/chart.js +222 -0
- package/miaco/dist/commands/chart.js.map +1 -0
- package/miaco/dist/commands/decompose.d.ts +6 -0
- package/miaco/dist/commands/decompose.d.ts.map +1 -0
- package/miaco/dist/commands/decompose.js +98 -0
- package/miaco/dist/commands/decompose.js.map +1 -0
- package/miaco/dist/commands/schema.d.ts +6 -0
- package/miaco/dist/commands/schema.d.ts.map +1 -0
- package/miaco/dist/commands/schema.js +66 -0
- package/miaco/dist/commands/schema.js.map +1 -0
- package/miaco/dist/commands/stc.d.ts +11 -0
- package/miaco/dist/commands/stc.d.ts.map +1 -0
- package/miaco/dist/commands/stc.js +590 -0
- package/miaco/dist/commands/stc.js.map +1 -0
- package/miaco/dist/commands/trace.d.ts +6 -0
- package/miaco/dist/commands/trace.d.ts.map +1 -0
- package/miaco/dist/commands/trace.js +83 -0
- package/miaco/dist/commands/trace.js.map +1 -0
- package/miaco/dist/commands/validate.d.ts +6 -0
- package/miaco/dist/commands/validate.d.ts.map +1 -0
- package/miaco/dist/commands/validate.js +58 -0
- package/miaco/dist/commands/validate.js.map +1 -0
- package/miaco/dist/decompose.d.ts +93 -0
- package/miaco/dist/decompose.d.ts.map +1 -0
- package/miaco/dist/decompose.js +562 -0
- package/miaco/dist/decompose.js.map +1 -0
- package/miaco/dist/index.d.ts +18 -0
- package/miaco/dist/index.d.ts.map +1 -0
- package/miaco/dist/index.js +83 -0
- package/miaco/dist/index.js.map +1 -0
- package/miaco/dist/storage.d.ts +60 -0
- package/miaco/dist/storage.d.ts.map +1 -0
- package/miaco/dist/storage.js +100 -0
- package/miaco/dist/storage.js.map +1 -0
- package/miaco/package-lock.json +4103 -0
- package/miaco/package.json +40 -0
- package/miaco/tsconfig.json +18 -0
- package/miaco/version-patch-commit-and-publish.sh +1 -0
- package/miatel/MISSION_251231.md +3 -0
- package/miatel/README.md +107 -0
- package/miatel/dist/commands/analyze.d.ts +6 -0
- package/miatel/dist/commands/analyze.d.ts.map +1 -0
- package/miatel/dist/commands/analyze.js +100 -0
- package/miatel/dist/commands/analyze.js.map +1 -0
- package/miatel/dist/commands/arc.d.ts +6 -0
- package/miatel/dist/commands/arc.d.ts.map +1 -0
- package/miatel/dist/commands/arc.js +71 -0
- package/miatel/dist/commands/arc.js.map +1 -0
- package/miatel/dist/commands/beat.d.ts +6 -0
- package/miatel/dist/commands/beat.d.ts.map +1 -0
- package/miatel/dist/commands/beat.js +165 -0
- package/miatel/dist/commands/beat.js.map +1 -0
- package/miatel/dist/commands/theme.d.ts +6 -0
- package/miatel/dist/commands/theme.d.ts.map +1 -0
- package/miatel/dist/commands/theme.js +54 -0
- package/miatel/dist/commands/theme.js.map +1 -0
- package/miatel/dist/index.d.ts +18 -0
- package/miatel/dist/index.d.ts.map +1 -0
- package/miatel/dist/index.js +80 -0
- package/miatel/dist/index.js.map +1 -0
- package/miatel/dist/storage.d.ts +55 -0
- package/miatel/dist/storage.d.ts.map +1 -0
- package/miatel/dist/storage.js +100 -0
- package/miatel/dist/storage.js.map +1 -0
- package/miatel/package-lock.json +4103 -0
- package/miatel/package.json +35 -0
- package/miatel/src/commands/analyze.ts +109 -0
- package/miatel/src/commands/arc.ts +78 -0
- package/miatel/src/commands/beat.ts +176 -0
- package/miatel/src/commands/theme.ts +60 -0
- package/miatel/src/index.ts +94 -0
- package/miatel/src/storage.ts +156 -0
- package/miatel/tsconfig.json +18 -0
- package/miawa/MISSION_251231.md +144 -0
- package/miawa/README.md +133 -0
- package/miawa/dist/commands/beat.d.ts +6 -0
- package/miawa/dist/commands/beat.d.ts.map +1 -0
- package/miawa/dist/commands/beat.js +69 -0
- package/miawa/dist/commands/beat.js.map +1 -0
- package/miawa/dist/commands/ceremony.d.ts +6 -0
- package/miawa/dist/commands/ceremony.d.ts.map +1 -0
- package/miawa/dist/commands/ceremony.js +239 -0
- package/miawa/dist/commands/ceremony.js.map +1 -0
- package/miawa/dist/commands/circle.d.ts +6 -0
- package/miawa/dist/commands/circle.d.ts.map +1 -0
- package/miawa/dist/commands/circle.js +75 -0
- package/miawa/dist/commands/circle.js.map +1 -0
- package/miawa/dist/commands/eva.d.ts +6 -0
- package/miawa/dist/commands/eva.d.ts.map +1 -0
- package/miawa/dist/commands/eva.js +73 -0
- package/miawa/dist/commands/eva.js.map +1 -0
- package/miawa/dist/commands/wound.d.ts +6 -0
- package/miawa/dist/commands/wound.d.ts.map +1 -0
- package/miawa/dist/commands/wound.js +74 -0
- package/miawa/dist/commands/wound.js.map +1 -0
- package/miawa/dist/index.d.ts +19 -0
- package/miawa/dist/index.d.ts.map +1 -0
- package/miawa/dist/index.js +91 -0
- package/miawa/dist/index.js.map +1 -0
- package/miawa/dist/storage.d.ts +73 -0
- package/miawa/dist/storage.d.ts.map +1 -0
- package/miawa/dist/storage.js +100 -0
- package/miawa/dist/storage.js.map +1 -0
- package/miawa/package-lock.json +4103 -0
- package/miawa/package.json +36 -0
- package/miawa/src/commands/beat.ts +74 -0
- package/miawa/src/commands/ceremony.ts +256 -0
- package/miawa/src/commands/circle.ts +83 -0
- package/miawa/src/commands/eva.ts +84 -0
- package/miawa/src/commands/wound.ts +79 -0
- package/miawa/src/index.ts +108 -0
- package/miawa/src/storage.ts +179 -0
- package/miawa/tsconfig.json +18 -0
- package/package.json +7 -5
- package/references/acp/CLAUDE.md +7 -0
- package/references/acp/agent-plan.md +84 -0
- package/references/acp/clients.md +31 -0
- package/references/acp/extensibility.md +137 -0
- package/references/acp/initialization.md +225 -0
- package/references/acp/prompt-turn.md +321 -0
- package/references/acp/proxy-chains.md +562 -0
- package/references/acp/schema.md +3171 -0
- package/references/acp/session-list.md +334 -0
- package/references/acp/session-modes.md +170 -0
- package/references/acp/slash-commands.md +99 -0
- package/references/acp/terminals.md +281 -0
- package/references/acp/tool-calls.md +311 -0
- package/references/acp/typescript.md +29 -0
- package/references/claude/agent-teams.md +399 -0
- package/references/claude/chrome.md +231 -0
- package/references/claude/headless.md +158 -0
- package/references/claude/hooks-guide.md +708 -0
- package/references/claude/output-styles.md +112 -0
- package/references/claude/plugins.md +432 -0
- package/references/claude/skills.md +693 -0
- package/references/claude/sub-agents.md +816 -0
- package/references/copilot/acp/agents.md +32 -0
- package/references/copilot/acp/architecture.md +37 -0
- package/references/copilot/acp/clients.md +31 -0
- package/references/copilot/acp/introduction.md +42 -0
- package/references/copilot/acp/registry.md +339 -0
- package/references/copilot/acp-server.md +117 -0
- package/references/copilot/create-copilot-instructions.md +840 -0
- package/references/langchain/llms.txt +833 -0
- package/references/langchain/python/agents.md +677 -0
- package/references/langchain/python/context-engineering.md +1195 -0
- package/references/langchain/python/human-in-the-loop.md +326 -0
- package/references/langchain/python/long-term-memory.md +168 -0
- package/references/langchain/python/mcp.md +949 -0
- package/references/langchain/python/multi-agents/custom-workflow.md +187 -0
- package/references/langchain/python/multi-agents/handoffs.md +436 -0
- package/references/langchain/python/multi-agents/overview.md +295 -0
- package/references/langchain/python/multi-agents/router.md +150 -0
- package/references/langchain/python/multi-agents/skills.md +92 -0
- package/references/langchain/python/multi-agents/subagents.md +486 -0
- package/references/langchain/python/retrieval.md +320 -0
- package/references/langchain/python/runtime.md +141 -0
- package/references/langchain/python/short-term-memory.md +658 -0
- package/references/langchain/python/structured-output.md +712 -0
- package/references/langfuse/llms.txt +148 -0
- package/references/langgraph/javascript/llms.txt +275 -0
- package/references/skills/home.md +259 -0
- package/references/skills/integrate-skills.md +103 -0
- package/references/skills/specification.md +254 -0
- package/references/skills/what-are-skills.md +74 -0
- package/rispecs/README.md +164 -0
- package/rispecs/_sync_/miadi-code/SPEC.md +313 -0
- package/rispecs/_sync_/miadi-code/STATUS.md +177 -0
- package/rispecs/_sync_/miadi-code/dashboard/SPEC.md +465 -0
- package/rispecs/_sync_/miadi-code/dashboard/STATUS.md +212 -0
- package/rispecs/_sync_/miadi-code/multiline-input/SPEC.md +232 -0
- package/rispecs/_sync_/miadi-code/multiline-input/STATUS.md +108 -0
- package/rispecs/_sync_/miadi-code/pde/SPEC.md +253 -0
- package/rispecs/_sync_/miadi-code/pde/STATUS.md +56 -0
- package/rispecs/_sync_/miadi-code/stc/SPEC.md +397 -0
- package/rispecs/_sync_/miadi-code/stc/STATUS.md +70 -0
- package/rispecs/ava-langstack/inquiry-routing-upgrade.spec.md +119 -0
- package/rispecs/borrowed_from_opencode/001-client-server-architecture.rispec.md +98 -0
- package/rispecs/borrowed_from_opencode/002-event-bus-system.rispec.md +125 -0
- package/rispecs/borrowed_from_opencode/003-instance-state-pattern.rispec.md +136 -0
- package/rispecs/borrowed_from_opencode/004-namespace-module-pattern.rispec.md +151 -0
- package/rispecs/borrowed_from_opencode/005-zod-schema-validation.rispec.md +139 -0
- package/rispecs/borrowed_from_opencode/006-named-error-system.rispec.md +155 -0
- package/rispecs/borrowed_from_opencode/007-structured-logging.rispec.md +138 -0
- package/rispecs/borrowed_from_opencode/008-lazy-initialization.rispec.md +127 -0
- package/rispecs/borrowed_from_opencode/009-multi-agent-system.rispec.md +97 -0
- package/rispecs/borrowed_from_opencode/010-agent-definition-config.rispec.md +135 -0
- package/rispecs/borrowed_from_opencode/011-agent-permission-rulesets.rispec.md +151 -0
- package/rispecs/borrowed_from_opencode/012-agent-prompt-templates.rispec.md +141 -0
- package/rispecs/borrowed_from_opencode/013-agent-generation.rispec.md +142 -0
- package/rispecs/borrowed_from_opencode/014-plan-build-mode-toggle.rispec.md +155 -0
- package/rispecs/borrowed_from_opencode/015-subagent-task-delegation.rispec.md +146 -0
- package/rispecs/borrowed_from_opencode/016-agent-model-selection.rispec.md +151 -0
- package/rispecs/borrowed_from_opencode/017-compaction-agent.rispec.md +150 -0
- package/rispecs/borrowed_from_opencode/018-session-persistence.rispec.md +125 -0
- package/rispecs/borrowed_from_opencode/019-session-compaction.rispec.md +132 -0
- package/rispecs/borrowed_from_opencode/020-session-forking.rispec.md +134 -0
- package/rispecs/borrowed_from_opencode/021-session-revert-snapshot.rispec.md +135 -0
- package/rispecs/borrowed_from_opencode/022-session-sharing.rispec.md +165 -0
- package/rispecs/borrowed_from_opencode/023-session-summary-diffs.rispec.md +165 -0
- package/rispecs/borrowed_from_opencode/024-child-sessions.rispec.md +164 -0
- package/rispecs/borrowed_from_opencode/025-session-title-generation.rispec.md +162 -0
- package/rispecs/borrowed_from_opencode/026-message-parts-model.rispec.md +201 -0
- package/rispecs/borrowed_from_opencode/027-streaming-message-deltas.rispec.md +212 -0
- package/rispecs/borrowed_from_opencode/028-multi-provider-architecture.rispec.md +184 -0
- package/rispecs/borrowed_from_opencode/029-provider-authentication.rispec.md +225 -0
- package/rispecs/borrowed_from_opencode/030-model-registry.rispec.md +222 -0
- package/rispecs/borrowed_from_opencode/031-cost-tracking.rispec.md +243 -0
- package/rispecs/borrowed_from_opencode/032-provider-transform-pipeline.rispec.md +282 -0
- package/rispecs/borrowed_from_opencode/033-provider-sdk-abstraction.rispec.md +338 -0
- package/rispecs/borrowed_from_opencode/034-tool-registry.rispec.md +110 -0
- package/rispecs/borrowed_from_opencode/035-tool-context-injection.rispec.md +155 -0
- package/rispecs/borrowed_from_opencode/036-tool-output-truncation.rispec.md +138 -0
- package/rispecs/borrowed_from_opencode/037-batch-tool.rispec.md +129 -0
- package/rispecs/borrowed_from_opencode/038-multi-edit-tool.rispec.md +167 -0
- package/rispecs/borrowed_from_opencode/039-apply-patch-tool.rispec.md +161 -0
- package/rispecs/borrowed_from_opencode/040-code-search-tool.rispec.md +143 -0
- package/rispecs/borrowed_from_opencode/041-web-fetch-tool.rispec.md +131 -0
- package/rispecs/borrowed_from_opencode/042-web-search-tool.rispec.md +159 -0
- package/rispecs/borrowed_from_opencode/043-todo-tool.rispec.md +156 -0
- package/rispecs/borrowed_from_opencode/044-plan-mode-tool.rispec.md +139 -0
- package/rispecs/borrowed_from_opencode/045-task-tool.rispec.md +146 -0
- package/rispecs/borrowed_from_opencode/046-question-tool.rispec.md +170 -0
- package/rispecs/borrowed_from_opencode/047-external-directory-tool.rispec.md +166 -0
- package/rispecs/borrowed_from_opencode/048-file-read-write-tools.rispec.md +205 -0
- package/rispecs/borrowed_from_opencode/049-lsp-server-management.rispec.md +104 -0
- package/rispecs/borrowed_from_opencode/050-lsp-hover-completion.rispec.md +102 -0
- package/rispecs/borrowed_from_opencode/051-lsp-diagnostics.rispec.md +86 -0
- package/rispecs/borrowed_from_opencode/052-lsp-root-detection.rispec.md +109 -0
- package/rispecs/borrowed_from_opencode/053-remote-mcp-servers.rispec.md +119 -0
- package/rispecs/borrowed_from_opencode/054-mcp-oauth-flow.rispec.md +107 -0
- package/rispecs/borrowed_from_opencode/055-mcp-tool-conversion.rispec.md +118 -0
- package/rispecs/borrowed_from_opencode/056-mcp-connection-monitoring.rispec.md +106 -0
- package/rispecs/borrowed_from_opencode/057-local-mcp-servers.rispec.md +116 -0
- package/rispecs/borrowed_from_opencode/058-rich-tui.rispec.md +108 -0
- package/rispecs/borrowed_from_opencode/059-streaming-display.rispec.md +116 -0
- package/rispecs/borrowed_from_opencode/060-permission-prompts.rispec.md +130 -0
- package/rispecs/borrowed_from_opencode/061-session-navigation.rispec.md +155 -0
- package/rispecs/borrowed_from_opencode/062-syntax-highlighting.rispec.md +151 -0
- package/rispecs/borrowed_from_opencode/063-keybinding-system.rispec.md +181 -0
- package/rispecs/borrowed_from_opencode/064-multi-level-config.rispec.md +155 -0
- package/rispecs/borrowed_from_opencode/065-jsonc-config.rispec.md +190 -0
- package/rispecs/borrowed_from_opencode/066-config-env-variables.rispec.md +153 -0
- package/rispecs/borrowed_from_opencode/067-config-deep-merging.rispec.md +178 -0
- package/rispecs/borrowed_from_opencode/068-remote-org-config.rispec.md +183 -0
- package/rispecs/borrowed_from_opencode/069-config-markdown-frontmatter.rispec.md +206 -0
- package/rispecs/borrowed_from_opencode/070-managed-config-directory.rispec.md +232 -0
- package/rispecs/borrowed_from_opencode/071-plugin-architecture.rispec.md +104 -0
- package/rispecs/borrowed_from_opencode/072-plugin-hooks.rispec.md +123 -0
- package/rispecs/borrowed_from_opencode/073-plugin-auto-install.rispec.md +115 -0
- package/rispecs/borrowed_from_opencode/074-permission-system.rispec.md +133 -0
- package/rispecs/borrowed_from_opencode/075-git-worktree-management.rispec.md +126 -0
- package/rispecs/borrowed_from_opencode/076-snapshot-system.rispec.md +124 -0
- package/rispecs/borrowed_from_opencode/077-snapshot-diff.rispec.md +117 -0
- package/rispecs/borrowed_from_opencode/078-snapshot-restore.rispec.md +128 -0
- package/rispecs/borrowed_from_opencode/079-worktree-branch-naming.rispec.md +122 -0
- package/rispecs/borrowed_from_opencode/080-sqlite-storage.rispec.md +134 -0
- package/rispecs/borrowed_from_opencode/081-database-migrations.rispec.md +148 -0
- package/rispecs/borrowed_from_opencode/082-database-transactions.rispec.md +138 -0
- package/rispecs/borrowed_from_opencode/083-deferred-effects.rispec.md +148 -0
- package/rispecs/borrowed_from_opencode/084-permission-rules.rispec.md +123 -0
- package/rispecs/borrowed_from_opencode/085-permission-glob-patterns.rispec.md +113 -0
- package/rispecs/borrowed_from_opencode/086-permission-merging.rispec.md +134 -0
- package/rispecs/borrowed_from_opencode/087-permission-modes.rispec.md +145 -0
- package/rispecs/borrowed_from_opencode/088-http-api-server.rispec.md +165 -0
- package/rispecs/borrowed_from_opencode/089-openapi-spec-generation.rispec.md +164 -0
- package/rispecs/borrowed_from_opencode/090-websocket-support.rispec.md +136 -0
- package/rispecs/borrowed_from_opencode/091-sse-streaming.rispec.md +168 -0
- package/rispecs/borrowed_from_opencode/092-mdns-discovery.rispec.md +145 -0
- package/rispecs/borrowed_from_opencode/093-javascript-sdk.rispec.md +200 -0
- package/rispecs/borrowed_from_opencode/094-skill-system.rispec.md +187 -0
- package/rispecs/borrowed_from_opencode/095-skill-discovery.rispec.md +182 -0
- package/rispecs/borrowed_from_opencode/096-desktop-remote-driving.rispec.md +175 -0
- package/rispecs/borrowed_from_opencode/INDEX.md +255 -0
- package/rispecs/core.rispecs.md +261 -0
- package/rispecs/engines.rispecs.md +241 -0
- package/rispecs/formatting.rispecs.md +252 -0
- package/rispecs/living-specifications.rispecs.md +361 -0
- package/rispecs/mcp.rispecs.md +197 -0
- package/rispecs/pde.rispecs.md +399 -0
- package/rispecs/pi-mono-envisionning/ENVISIONING.md +366 -0
- package/rispecs/pi-mono-envisionning/storytelling-horizon.rispecs.md +76 -0
- package/rispecs/pi-mono-envisionning/widget.rispecs.md +2 -0
- package/rispecs/relation-to-mcp-structural-thinking.kin.md +72 -0
- package/rispecs/research-for-better-framework/CLAUDE.md +7 -0
- package/rispecs/research-for-better-framework/survey-pi-openclaw-opencode-openhands.md +210 -0
- package/rispecs/session.rispecs.md +277 -0
- package/rispecs/stc.rispecs.md +138 -0
- package/rispecs/unifier.rispecs.md +317 -0
- package/scripts/LAUNCH--mcp-mia-code--testing--2603141315--ac705a66-2c15-4a1c-a26d-9491018c5ba8.sh +2 -0
- package/scripts/RESUME--mia-code--mcps--260313--ac705a66-2c15-4a1c-a26d-9491018c5ba8.sh +1 -0
- package/scripts/install-widget-in-home-pi-agent-extensions.sh +4 -0
- package/scripts/sample-decompose--2604011535-prompt.sh +1 -0
- package/skills/deep-search/AGENTS.md +17 -0
- package/skills/deep-search/SKILL.md +281 -0
- package/skills/deep-search/agent-templates.md +224 -0
- package/skills/deep-search/orchestration-patterns.md +95 -0
- package/skills/miaco-pde-inquiry-routing-deep-search/AGENTS.md +13 -0
- package/skills/miaco-pde-inquiry-routing-deep-search/SKILL.md +136 -0
- package/skills/miaco-pde-inquiry-routing-internal-external-relationship/AGENTS.md +4 -0
- package/skills/miaco-pde-inquiry-routing-internal-external-relationship/SKILL.md +157 -0
- package/skills/miaco-pde-inquiry-routing-local-qmd/AGENTS.md +42 -0
- package/skills/miaco-pde-inquiry-routing-local-qmd/SKILL.md +135 -0
- package/skills/qmd/AGENTS.md +3 -0
- package/skills/qmd/SKILL.md +144 -0
- package/skills/qmd/references/mcp-setup.md +102 -0
- package/skills/rise-pde-inquiry-session-multi-agents-v3/SKILL.md +234 -0
- package/skills/rise-pde-inquiry-session-multi-agents-v3/agent-templates.md +436 -0
- package/skills/rise-pde-inquiry-session-multi-agents-v3/orchestration-patterns.md +197 -0
- package/skills/rise-pde-inquiry-session-multi-agents-v3/references/ceremonial-technology.md +102 -0
- package/skills/rise-pde-inquiry-session-multi-agents-v3/references/creative-orientation.md +99 -0
- package/skills/rise-pde-inquiry-session-multi-agents-v3/references/prompt-decomposition.md +73 -0
- package/skills/rise-pde-inquiry-session-multi-agents-v3/references/rise-framework.md +74 -0
- package/skills/rise-pde-inquiry-session-multi-agents-v3/references/structural-tension.md +82 -0
- package/src/cli.ts +35 -11
- package/src/geminiHeadless.ts +7 -2
- package/src/index.ts +2 -1
- package/src/mcp/miaco-server.ts +13 -1
- package/src/mcp/miatel-server.ts +13 -1
- package/src/mcp/miawa-server.ts +13 -1
- package/src/mcp/utils.ts +41 -8
- package/src/sessionStore.ts +44 -4
- package/src/types.ts +2 -1
- package/widget/mia-ceremony/README.md +36 -0
- package/widget/mia-ceremony/index.ts +143 -0
- package/widget/mia-interceptor/README.md +39 -0
- package/widget/mia-interceptor/index.ts +221 -0
- package/widget/mia-tools/README.md +37 -0
- package/widget/mia-tools/index.ts +569 -0
- package/widget/miette-echo/README.md +44 -0
- package/widget/miette-echo/index.ts +164 -0
- package/.claude/settings.local.json +0 -9
- package/.hch/issue_.env +0 -4
- package/.hch/issue_add__2601211715.json +0 -77
- package/.hch/issue_add__2601211715.md +0 -4
- package/.hch/issue_add__2602242020.json +0 -78
- package/.hch/issue_add__2602242020.md +0 -7
- package/.hch/issues.json +0 -2312
- package/.hch/issues.md +0 -30
- package/WS__mia-code__260214__IAIP_PDE.code-workspace +0 -29
- package/WS__mia-code__src332__260122.code-workspace +0 -23
- package/samples/copilot/session-state/be76abaa-a27f-4725-b2a9-22fb45f7e0f7/checkpoints/index.md +0 -6
- package/samples/copilot/session-state/be76abaa-a27f-4725-b2a9-22fb45f7e0f7/events.jsonl +0 -213
- package/samples/copilot/session-state/be76abaa-a27f-4725-b2a9-22fb45f7e0f7/plan.md +0 -243
- package/samples/copilot/session-state/be76abaa-a27f-4725-b2a9-22fb45f7e0f7/workspace.yaml +0 -5
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
# Borrowed from OpenCode — RISE Specification Index
|
|
2
|
+
|
|
3
|
+
> Cross-pollination specifications extracted from [OpenCode](https://github.com/anomalyco/opencode), an open-source AI coding agent, for implementation in mia-code.
|
|
4
|
+
|
|
5
|
+
## How to Use This Folder
|
|
6
|
+
|
|
7
|
+
Each `.rispec.md` file is a **self-contained RISE specification** describing one feature or capability that can enhance mia-code. An implementing LLM should:
|
|
8
|
+
|
|
9
|
+
1. Read this index to understand the full scope
|
|
10
|
+
2. Read individual specs in dependency order (noted below)
|
|
11
|
+
3. Implement each spec independently — they are designed to be modular
|
|
12
|
+
4. Refer to mia-code's existing `rispecs/core.rispecs.md` for current architecture
|
|
13
|
+
|
|
14
|
+
## Dependency Graph
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
001-client-server-architecture
|
|
18
|
+
└── 088-http-api-server
|
|
19
|
+
├── 089-openapi-spec-generation
|
|
20
|
+
├── 090-websocket-support
|
|
21
|
+
└── 091-sse-streaming
|
|
22
|
+
|
|
23
|
+
002-event-bus-system ← foundational, many specs depend on this
|
|
24
|
+
|
|
25
|
+
003-instance-state-pattern ← foundational pattern
|
|
26
|
+
|
|
27
|
+
080-sqlite-storage
|
|
28
|
+
├── 018-session-persistence
|
|
29
|
+
│ ├── 019-session-compaction
|
|
30
|
+
│ ├── 020-session-forking
|
|
31
|
+
│ ├── 021-session-revert-snapshot
|
|
32
|
+
│ └── 022-session-sharing
|
|
33
|
+
├── 081-database-migrations
|
|
34
|
+
└── 082-database-transactions
|
|
35
|
+
|
|
36
|
+
034-tool-registry ← all tool specs (035-048) depend on this
|
|
37
|
+
|
|
38
|
+
064-multi-level-config ← configuration foundation
|
|
39
|
+
|
|
40
|
+
071-plugin-architecture ← plugin specs (072-074) depend on this
|
|
41
|
+
|
|
42
|
+
074-permission-system ← many tool/agent specs reference this
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Specification Categories
|
|
46
|
+
|
|
47
|
+
### 1. Architecture (001–008)
|
|
48
|
+
Core architectural patterns that form the foundation.
|
|
49
|
+
|
|
50
|
+
| File | Feature |
|
|
51
|
+
|------|---------|
|
|
52
|
+
| [001](001-client-server-architecture.rispec.md) | Client/Server Architecture |
|
|
53
|
+
| [002](002-event-bus-system.rispec.md) | Event Bus System |
|
|
54
|
+
| [003](003-instance-state-pattern.rispec.md) | Instance State Pattern |
|
|
55
|
+
| [004](004-namespace-module-pattern.rispec.md) | Namespace Module Pattern |
|
|
56
|
+
| [005](005-zod-schema-validation.rispec.md) | Zod Schema Validation |
|
|
57
|
+
| [006](006-named-error-system.rispec.md) | Named Error System |
|
|
58
|
+
| [007](007-structured-logging.rispec.md) | Structured Logging |
|
|
59
|
+
| [008](008-lazy-initialization.rispec.md) | Lazy Initialization Pattern |
|
|
60
|
+
|
|
61
|
+
### 2. Agent System (009–017)
|
|
62
|
+
Multi-agent orchestration with modes, permissions, and generation.
|
|
63
|
+
|
|
64
|
+
| File | Feature |
|
|
65
|
+
|------|---------|
|
|
66
|
+
| [009](009-multi-agent-system.rispec.md) | Multi-Agent System with Modes |
|
|
67
|
+
| [010](010-agent-definition-config.rispec.md) | Agent Definition & Configuration |
|
|
68
|
+
| [011](011-agent-permission-rulesets.rispec.md) | Agent Permission Rulesets |
|
|
69
|
+
| [012](012-agent-prompt-templates.rispec.md) | Agent Prompt Templates |
|
|
70
|
+
| [013](013-agent-generation.rispec.md) | AI-Powered Agent Generation |
|
|
71
|
+
| [014](014-plan-build-mode-toggle.rispec.md) | Plan/Build Mode Toggle |
|
|
72
|
+
| [015](015-subagent-task-delegation.rispec.md) | Sub-Agent Task Delegation |
|
|
73
|
+
| [016](016-agent-model-selection.rispec.md) | Per-Agent Model Selection |
|
|
74
|
+
| [017](017-compaction-agent.rispec.md) | Session Compaction Agent |
|
|
75
|
+
|
|
76
|
+
### 3. Session Management (018–027)
|
|
77
|
+
Persistent, forkable, shareable conversation sessions.
|
|
78
|
+
|
|
79
|
+
| File | Feature |
|
|
80
|
+
|------|---------|
|
|
81
|
+
| [018](018-session-persistence.rispec.md) | SQLite Session Persistence |
|
|
82
|
+
| [019](019-session-compaction.rispec.md) | Session History Compaction |
|
|
83
|
+
| [020](020-session-forking.rispec.md) | Session Forking |
|
|
84
|
+
| [021](021-session-revert-snapshot.rispec.md) | Session Revert & Snapshots |
|
|
85
|
+
| [022](022-session-sharing.rispec.md) | Session Sharing |
|
|
86
|
+
| [023](023-session-summary-diffs.rispec.md) | Session Summary with Diffs |
|
|
87
|
+
| [024](024-child-sessions.rispec.md) | Child Sessions |
|
|
88
|
+
| [025](025-session-title-generation.rispec.md) | AI Session Title Generation |
|
|
89
|
+
| [026](026-message-parts-model.rispec.md) | Message Parts Model |
|
|
90
|
+
| [027](027-streaming-message-deltas.rispec.md) | Streaming Message Deltas |
|
|
91
|
+
|
|
92
|
+
### 4. Provider System (028–033)
|
|
93
|
+
Multi-provider LLM integration with cost tracking.
|
|
94
|
+
|
|
95
|
+
| File | Feature |
|
|
96
|
+
|------|---------|
|
|
97
|
+
| [028](028-multi-provider-architecture.rispec.md) | Multi-Provider Architecture |
|
|
98
|
+
| [029](029-provider-authentication.rispec.md) | Provider Authentication |
|
|
99
|
+
| [030](030-model-registry.rispec.md) | Model Registry (models.dev) |
|
|
100
|
+
| [031](031-cost-tracking.rispec.md) | Token Cost Tracking |
|
|
101
|
+
| [032](032-provider-transform-pipeline.rispec.md) | Provider Transform Pipeline |
|
|
102
|
+
| [033](033-provider-sdk-abstraction.rispec.md) | Provider SDK Abstraction |
|
|
103
|
+
|
|
104
|
+
### 5. Tool System (034–048)
|
|
105
|
+
Comprehensive tool registry with 15+ built-in tools.
|
|
106
|
+
|
|
107
|
+
| File | Feature |
|
|
108
|
+
|------|---------|
|
|
109
|
+
| [034](034-tool-registry.rispec.md) | Tool Registry Pattern |
|
|
110
|
+
| [035](035-tool-context-injection.rispec.md) | Tool Context Injection |
|
|
111
|
+
| [036](036-tool-output-truncation.rispec.md) | Tool Output Truncation |
|
|
112
|
+
| [037](037-batch-tool.rispec.md) | Batch File Operations Tool |
|
|
113
|
+
| [038](038-multi-edit-tool.rispec.md) | Multi-Edit Tool |
|
|
114
|
+
| [039](039-apply-patch-tool.rispec.md) | Apply Patch Tool |
|
|
115
|
+
| [040](040-code-search-tool.rispec.md) | Code Search Tool |
|
|
116
|
+
| [041](041-web-fetch-tool.rispec.md) | Web Fetch Tool |
|
|
117
|
+
| [042](042-web-search-tool.rispec.md) | Web Search Tool |
|
|
118
|
+
| [043](043-todo-tool.rispec.md) | Built-in Todo Tool |
|
|
119
|
+
| [044](044-plan-mode-tool.rispec.md) | Plan Mode Tool |
|
|
120
|
+
| [045](045-task-tool.rispec.md) | Background Task Tool |
|
|
121
|
+
| [046](046-question-tool.rispec.md) | User Question Tool |
|
|
122
|
+
| [047](047-external-directory-tool.rispec.md) | External Directory Access Tool |
|
|
123
|
+
| [048](048-file-read-write-tools.rispec.md) | File Read/Write Tools |
|
|
124
|
+
|
|
125
|
+
### 6. LSP Integration (049–052)
|
|
126
|
+
Language Server Protocol for code intelligence.
|
|
127
|
+
|
|
128
|
+
| File | Feature |
|
|
129
|
+
|------|---------|
|
|
130
|
+
| [049](049-lsp-server-management.rispec.md) | LSP Server Management |
|
|
131
|
+
| [050](050-lsp-hover-completion.rispec.md) | LSP Hover & Completion |
|
|
132
|
+
| [051](051-lsp-diagnostics.rispec.md) | LSP Diagnostics Integration |
|
|
133
|
+
| [052](052-lsp-root-detection.rispec.md) | LSP Root Detection |
|
|
134
|
+
|
|
135
|
+
### 7. MCP Enhancement (053–057)
|
|
136
|
+
Enhanced Model Context Protocol integration.
|
|
137
|
+
|
|
138
|
+
| File | Feature |
|
|
139
|
+
|------|---------|
|
|
140
|
+
| [053](053-remote-mcp-servers.rispec.md) | Remote MCP Servers |
|
|
141
|
+
| [054](054-mcp-oauth-flow.rispec.md) | MCP OAuth Flow |
|
|
142
|
+
| [055](055-mcp-tool-conversion.rispec.md) | MCP Tool Conversion |
|
|
143
|
+
| [056](056-mcp-connection-monitoring.rispec.md) | MCP Connection Monitoring |
|
|
144
|
+
| [057](057-local-mcp-servers.rispec.md) | Local MCP Server Management |
|
|
145
|
+
|
|
146
|
+
### 8. TUI/Interface (058–063)
|
|
147
|
+
Rich terminal user interface.
|
|
148
|
+
|
|
149
|
+
| File | Feature |
|
|
150
|
+
|------|---------|
|
|
151
|
+
| [058](058-rich-tui.rispec.md) | Rich Terminal UI |
|
|
152
|
+
| [059](059-streaming-display.rispec.md) | Streaming Message Display |
|
|
153
|
+
| [060](060-permission-prompts.rispec.md) | Interactive Permission Prompts |
|
|
154
|
+
| [061](061-session-navigation.rispec.md) | Session Navigation UI |
|
|
155
|
+
| [062](062-syntax-highlighting.rispec.md) | Syntax Highlighting |
|
|
156
|
+
| [063](063-keybinding-system.rispec.md) | Keybinding System |
|
|
157
|
+
|
|
158
|
+
### 9. Configuration (064–070)
|
|
159
|
+
Multi-level configuration with deep merging.
|
|
160
|
+
|
|
161
|
+
| File | Feature |
|
|
162
|
+
|------|---------|
|
|
163
|
+
| [064](064-multi-level-config.rispec.md) | Multi-Level Configuration |
|
|
164
|
+
| [065](065-jsonc-config.rispec.md) | JSONC Config Support |
|
|
165
|
+
| [066](066-config-env-variables.rispec.md) | Config Environment Variables |
|
|
166
|
+
| [067](067-config-deep-merging.rispec.md) | Config Deep Merging |
|
|
167
|
+
| [068](068-remote-org-config.rispec.md) | Remote Organization Config |
|
|
168
|
+
| [069](069-config-markdown-frontmatter.rispec.md) | Config Markdown Frontmatter |
|
|
169
|
+
| [070](070-managed-config-directory.rispec.md) | Managed Config Directory |
|
|
170
|
+
|
|
171
|
+
### 10. Plugin System (071–074)
|
|
172
|
+
Extensible plugin architecture with hooks.
|
|
173
|
+
|
|
174
|
+
| File | Feature |
|
|
175
|
+
|------|---------|
|
|
176
|
+
| [071](071-plugin-architecture.rispec.md) | Plugin Architecture |
|
|
177
|
+
| [072](072-plugin-hooks.rispec.md) | Plugin Hook System |
|
|
178
|
+
| [073](073-plugin-auto-install.rispec.md) | Plugin Auto-Install |
|
|
179
|
+
| [074](074-permission-system.rispec.md) | Granular Permission System |
|
|
180
|
+
|
|
181
|
+
### 11. Git Integration (075–079)
|
|
182
|
+
Worktrees, snapshots, and file tracking.
|
|
183
|
+
|
|
184
|
+
| File | Feature |
|
|
185
|
+
|------|---------|
|
|
186
|
+
| [075](075-git-worktree-management.rispec.md) | Git Worktree Management |
|
|
187
|
+
| [076](076-snapshot-system.rispec.md) | File Snapshot System |
|
|
188
|
+
| [077](077-snapshot-diff.rispec.md) | Snapshot Diff & Comparison |
|
|
189
|
+
| [078](078-snapshot-restore.rispec.md) | Snapshot Restore |
|
|
190
|
+
| [079](079-worktree-branch-naming.rispec.md) | Worktree Branch Naming |
|
|
191
|
+
|
|
192
|
+
### 12. Storage (080–083)
|
|
193
|
+
SQLite database layer with ORM.
|
|
194
|
+
|
|
195
|
+
| File | Feature |
|
|
196
|
+
|------|---------|
|
|
197
|
+
| [080](080-sqlite-storage.rispec.md) | SQLite Storage Layer |
|
|
198
|
+
| [081](081-database-migrations.rispec.md) | Database Migrations |
|
|
199
|
+
| [082](082-database-transactions.rispec.md) | Database Transactions |
|
|
200
|
+
| [083](083-deferred-effects.rispec.md) | Deferred Side Effects |
|
|
201
|
+
|
|
202
|
+
### 13. Permission System (084–087)
|
|
203
|
+
Granular access control.
|
|
204
|
+
|
|
205
|
+
| File | Feature |
|
|
206
|
+
|------|---------|
|
|
207
|
+
| [084](084-permission-rules.rispec.md) | Permission Rule Definitions |
|
|
208
|
+
| [085](085-permission-glob-patterns.rispec.md) | Permission Glob Patterns |
|
|
209
|
+
| [086](086-permission-merging.rispec.md) | Permission Layered Merging |
|
|
210
|
+
| [087](087-permission-modes.rispec.md) | Permission Modes (Allow/Deny/Ask) |
|
|
211
|
+
|
|
212
|
+
### 14. Server & API (088–092)
|
|
213
|
+
HTTP server with real-time communication.
|
|
214
|
+
|
|
215
|
+
| File | Feature |
|
|
216
|
+
|------|---------|
|
|
217
|
+
| [088](088-http-api-server.rispec.md) | HTTP API Server |
|
|
218
|
+
| [089](089-openapi-spec-generation.rispec.md) | OpenAPI Spec Generation |
|
|
219
|
+
| [090](090-websocket-support.rispec.md) | WebSocket Real-Time Support |
|
|
220
|
+
| [091](091-sse-streaming.rispec.md) | SSE Event Streaming |
|
|
221
|
+
| [092](092-mdns-discovery.rispec.md) | mDNS Local Discovery |
|
|
222
|
+
|
|
223
|
+
### 15. SDK & Extension Points (093–096)
|
|
224
|
+
External integration and extension capabilities.
|
|
225
|
+
|
|
226
|
+
| File | Feature |
|
|
227
|
+
|------|---------|
|
|
228
|
+
| [093](093-javascript-sdk.rispec.md) | JavaScript SDK |
|
|
229
|
+
| [094](094-skill-system.rispec.md) | Skill System |
|
|
230
|
+
| [095](095-skill-discovery.rispec.md) | Skill Discovery & Remote Loading |
|
|
231
|
+
| [096](096-desktop-remote-driving.rispec.md) | Desktop & Remote Driving |
|
|
232
|
+
|
|
233
|
+
## Implementation Priority for mia-code
|
|
234
|
+
|
|
235
|
+
### Phase 1 — Foundation (implement first)
|
|
236
|
+
- 002 Event Bus, 003 Instance State, 005 Zod Validation, 006 Named Errors
|
|
237
|
+
- 064 Multi-Level Config, 080 SQLite Storage
|
|
238
|
+
- 034 Tool Registry, 074 Permission System
|
|
239
|
+
|
|
240
|
+
### Phase 2 — Agent Enhancement
|
|
241
|
+
- 009 Multi-Agent, 014 Plan/Build Toggle, 015 Sub-Agent Delegation
|
|
242
|
+
- 018 Session Persistence, 026 Message Parts Model
|
|
243
|
+
|
|
244
|
+
### Phase 3 — Developer Experience
|
|
245
|
+
- 049-052 LSP Integration (massive DX improvement)
|
|
246
|
+
- 058-063 Rich TUI
|
|
247
|
+
- 094-095 Skill System
|
|
248
|
+
|
|
249
|
+
### Phase 4 — Platform
|
|
250
|
+
- 001 Client/Server, 088-092 HTTP API & real-time
|
|
251
|
+
- 022 Session Sharing, 093 SDK
|
|
252
|
+
|
|
253
|
+
---
|
|
254
|
+
|
|
255
|
+
*Generated: 2026-02-25 | Source: OpenCode (anomalyco/opencode) | Target: mia-code*
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
# mia-code Core Specification
|
|
2
|
+
|
|
3
|
+
> RISE Framework Specification v1.0
|
|
4
|
+
> Document: mia-code/rispecs/core.rispecs.md
|
|
5
|
+
|
|
6
|
+
## Creative Intent
|
|
7
|
+
|
|
8
|
+
mia-code enables developers to create focused, meaningful interactions with AI coding agents through a unified terminal interface. Users achieve clarity and ceremonial depth in their code collaboration by channeling raw agent outputs through dual-perspective interpretation.
|
|
9
|
+
|
|
10
|
+
## Structural Tension Analysis
|
|
11
|
+
|
|
12
|
+
**Current Structural Reality:**
|
|
13
|
+
- Developers interact with AI coding agents (Gemini CLI, Claude CLI) through raw output streams
|
|
14
|
+
- Agent responses blend technical actions with implicit reasoning, creating cognitive load
|
|
15
|
+
- Session continuity requires manual tracking across project contexts
|
|
16
|
+
- No unified abstraction layer exists for multi-engine agent workflows
|
|
17
|
+
|
|
18
|
+
**Desired Structural State:**
|
|
19
|
+
- Every agent interaction produces structurally clear (🧠 Mia) and resonantly meaningful (🌸 Miette) outputs
|
|
20
|
+
- Session persistence auto-resumes project context without user intervention
|
|
21
|
+
- Engine selection becomes a configuration choice, not an interface change
|
|
22
|
+
- Users focus on desired outcomes while the system handles orchestration complexity
|
|
23
|
+
|
|
24
|
+
## Application Overview
|
|
25
|
+
|
|
26
|
+
mia-code is a terminal coding agent that wraps Gemini CLI, Claude CLI, and Copilot CLI in headless mode, providing:
|
|
27
|
+
- Dual-session architecture: primary agent performs work, unifier interprets essence
|
|
28
|
+
- Multi-engine support: configurable between Gemini (default), Claude, and Copilot
|
|
29
|
+
- Session management: per-project persistence with automatic resume
|
|
30
|
+
- Ceremonial output: 🧠 Mia (structure) + 🌸 Miette (echo) dual-perspective summaries
|
|
31
|
+
- MCP servers: three sub-CLIs (miaco, miatel, miawa) exposed as MCP tools for external agent orchestration
|
|
32
|
+
|
|
33
|
+
## Screens
|
|
34
|
+
|
|
35
|
+
### Interactive Chat Session
|
|
36
|
+
|
|
37
|
+
**Description:** Primary interface where users create coding conversations with AI agents. Each prompt flows through primary agent execution and ceremonial interpretation.
|
|
38
|
+
|
|
39
|
+
**Behavior:**
|
|
40
|
+
- User enters prompt via readline interface
|
|
41
|
+
- Primary agent session (Gemini or Claude) executes with tools/code/analysis
|
|
42
|
+
- Unifier session interprets raw events into dual-perspective output
|
|
43
|
+
- Session ID persists for conversation continuity
|
|
44
|
+
|
|
45
|
+
**Layout:** Contains `PromptInput`, `ThinkingIndicator`, `CeremonialOutput`
|
|
46
|
+
|
|
47
|
+
### Single Prompt Mode
|
|
48
|
+
|
|
49
|
+
**Description:** Non-interactive mode for scripted or single-shot agent interactions.
|
|
50
|
+
|
|
51
|
+
**Behavior:**
|
|
52
|
+
- Accepts prompt as command-line argument
|
|
53
|
+
- Executes same dual-session flow as interactive mode
|
|
54
|
+
- Outputs to stdout and exits
|
|
55
|
+
- Supports `--raw` flag for uninterpreted output
|
|
56
|
+
|
|
57
|
+
### Configuration View
|
|
58
|
+
|
|
59
|
+
**Description:** Users configure agent preferences and view current settings.
|
|
60
|
+
|
|
61
|
+
**Behavior:**
|
|
62
|
+
- Display current configuration as JSON
|
|
63
|
+
- Accept `--set-*` flags to update individual settings
|
|
64
|
+
- Persist to `~/.mia-code.json`
|
|
65
|
+
|
|
66
|
+
### Session List
|
|
67
|
+
|
|
68
|
+
**Description:** Users review and manage saved sessions across projects.
|
|
69
|
+
|
|
70
|
+
**Behavior:**
|
|
71
|
+
- List sessions with truncated IDs, project paths, and timestamps
|
|
72
|
+
- Support `--clear` to remove all sessions
|
|
73
|
+
- Interactive session picker when resuming without explicit ID
|
|
74
|
+
|
|
75
|
+
## Components
|
|
76
|
+
|
|
77
|
+
### PromptInput
|
|
78
|
+
|
|
79
|
+
**Description:** Readline-based text input with ceremonial prompt styling.
|
|
80
|
+
|
|
81
|
+
**Behavior:**
|
|
82
|
+
- Displays `you> ` prompt in yellow
|
|
83
|
+
- Handles slash commands (`/help`, `/exit`, `/session`)
|
|
84
|
+
- Submits non-command input to agent processing pipeline
|
|
85
|
+
|
|
86
|
+
**Styling:** Fixed terminal input, yellow accent color for prompt
|
|
87
|
+
|
|
88
|
+
### ThinkingIndicator
|
|
89
|
+
|
|
90
|
+
**Description:** Visual feedback during agent processing.
|
|
91
|
+
|
|
92
|
+
**Behavior:**
|
|
93
|
+
- Displays `⏳ thinking...` during primary session
|
|
94
|
+
- Displays `⏳ interpreting...` during unifier session
|
|
95
|
+
- Clears lines via ANSI codes upon completion
|
|
96
|
+
|
|
97
|
+
**Styling:** Dimmed text, transient display
|
|
98
|
+
|
|
99
|
+
### CeremonialOutput
|
|
100
|
+
|
|
101
|
+
**Description:** Dual-perspective rendering of agent session results.
|
|
102
|
+
|
|
103
|
+
**Behavior:**
|
|
104
|
+
- Renders `🧠 mia (structure)` section with factual summary
|
|
105
|
+
- Renders `🌸 miette (echo)` section with resonant reflection
|
|
106
|
+
- Falls back to raw output if unifier fails
|
|
107
|
+
|
|
108
|
+
**Styling:**
|
|
109
|
+
- Bold green header for `🧠🌸 miawa:`
|
|
110
|
+
- Dimmed text for session metadata
|
|
111
|
+
- Standard text for body content
|
|
112
|
+
|
|
113
|
+
## Data
|
|
114
|
+
|
|
115
|
+
### MiaCodeConfig
|
|
116
|
+
|
|
117
|
+
**Description:** User preferences and agent configuration.
|
|
118
|
+
|
|
119
|
+
```typescript
|
|
120
|
+
interface MiaCodeConfig {
|
|
121
|
+
engine: "gemini" | "claude" | "copilot"; // Primary agent engine
|
|
122
|
+
geminiBinary: string; // Path to gemini CLI
|
|
123
|
+
claudeBinary: string; // Path to claude CLI
|
|
124
|
+
copilotBinary: string; // Path to copilot CLI
|
|
125
|
+
model: string; // Model name (engine-specific)
|
|
126
|
+
headlessOutputFormat: "json" | "stream-json";
|
|
127
|
+
defaultMode: "code" | "chat";
|
|
128
|
+
defaultProjectRoot: string | null;
|
|
129
|
+
yoloMode: boolean; // Auto-approve agent actions
|
|
130
|
+
}
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
**Storage:** `~/.mia-code.json`
|
|
134
|
+
**Defaults:** `gemini` engine, `gemini-2.5-pro` model, YOLO disabled
|
|
135
|
+
|
|
136
|
+
### MiaCodeSessionMeta
|
|
137
|
+
|
|
138
|
+
**Description:** Session tracking metadata for conversation continuity.
|
|
139
|
+
|
|
140
|
+
```typescript
|
|
141
|
+
interface MiaCodeSessionMeta {
|
|
142
|
+
id: string; // Session UUID (from agent CLI)
|
|
143
|
+
startedAt: string; // ISO timestamp
|
|
144
|
+
model: string; // Model used for session
|
|
145
|
+
projectRoot: string | null; // Project directory
|
|
146
|
+
}
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
**Storage:** `~/.mia-code-sessions.json`
|
|
150
|
+
**Index:** By project root and by session ID
|
|
151
|
+
|
|
152
|
+
### GeminiJsonEvent
|
|
153
|
+
|
|
154
|
+
**Description:** Normalized event structure from agent CLI output streams.
|
|
155
|
+
|
|
156
|
+
```typescript
|
|
157
|
+
interface GeminiJsonEvent {
|
|
158
|
+
type: "init" | "message" | "tool_use" | "tool_result" | "error" | "result" | string;
|
|
159
|
+
session_id?: string;
|
|
160
|
+
timestamp?: string;
|
|
161
|
+
role?: "user" | "assistant" | "system";
|
|
162
|
+
text?: string;
|
|
163
|
+
content?: string;
|
|
164
|
+
tool?: { name: string; input: unknown; };
|
|
165
|
+
result?: unknown;
|
|
166
|
+
error?: { code: string; message: string; };
|
|
167
|
+
}
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
**Sources:** Gemini CLI stream-json, Claude CLI json output
|
|
171
|
+
|
|
172
|
+
## Creative Advancement Scenarios
|
|
173
|
+
|
|
174
|
+
### Creative Advancement Scenario: First Project Interaction
|
|
175
|
+
|
|
176
|
+
**Desired Outcome:** Developer creates initial conversation with AI agent in new project
|
|
177
|
+
|
|
178
|
+
**Current Structural Reality:** No session exists for current directory
|
|
179
|
+
|
|
180
|
+
**Natural Progression:**
|
|
181
|
+
1. User invokes `mia-code` in project directory
|
|
182
|
+
2. Header displays project path and "new session will be created"
|
|
183
|
+
3. User enters first prompt
|
|
184
|
+
4. Agent CLI spawns, executes, returns events
|
|
185
|
+
5. Session ID captured from agent response
|
|
186
|
+
6. Session meta persisted to index
|
|
187
|
+
7. Unifier interprets, displays ceremonial output
|
|
188
|
+
|
|
189
|
+
**Achieved Outcome:** Developer sees meaningful dual-perspective response, session auto-persists for future resume
|
|
190
|
+
|
|
191
|
+
### Creative Advancement Scenario: Engine Switching
|
|
192
|
+
|
|
193
|
+
**Desired Outcome:** Developer selects optimal agent engine for task type
|
|
194
|
+
|
|
195
|
+
**Current Structural Reality:** Using Gemini (default) but task requires Claude capabilities
|
|
196
|
+
|
|
197
|
+
**Natural Progression:**
|
|
198
|
+
1. User adds `--claude` flag to invocation
|
|
199
|
+
2. Config override applies for this session
|
|
200
|
+
3. Primary agent spawns Claude CLI instead of Gemini
|
|
201
|
+
4. Engine-specific argument translation occurs (YOLO → dangerously-skip-permissions)
|
|
202
|
+
5. Unifier always uses Claude (requires --system-prompt)
|
|
203
|
+
|
|
204
|
+
**Achieved Outcome:** Developer uses Claude for primary agent while maintaining ceremonial interpretation
|
|
205
|
+
|
|
206
|
+
### Creative Advancement Scenario: Session Resume
|
|
207
|
+
|
|
208
|
+
**Desired Outcome:** Developer continues previous conversation context
|
|
209
|
+
|
|
210
|
+
**Current Structural Reality:** Session exists from prior work in same project
|
|
211
|
+
|
|
212
|
+
**Natural Progression:**
|
|
213
|
+
1. User invokes `mia-code` in same project directory
|
|
214
|
+
2. Session index lookup finds matching project root
|
|
215
|
+
3. Last session ID retrieved, displayed in header
|
|
216
|
+
4. Agent CLI receives `--resume <sessionId>` flag
|
|
217
|
+
5. Conversation context restored by agent
|
|
218
|
+
|
|
219
|
+
**Achieved Outcome:** Developer seamlessly continues prior conversation without manual session management
|
|
220
|
+
|
|
221
|
+
## Supporting Structures
|
|
222
|
+
|
|
223
|
+
### Command-Line Interface
|
|
224
|
+
|
|
225
|
+
```bash
|
|
226
|
+
# Primary commands
|
|
227
|
+
mia-code chat [--project <path>] [--resume [id]] [--yolo] [--raw] [--claude|--gemini]
|
|
228
|
+
mia-code prompt <text> [--project <path>] [--resume <id>] [--yolo] [--raw] [--claude|--gemini]
|
|
229
|
+
mia-code config [--set-engine <e>] [--set-model <m>] [--set-yolo <bool>]
|
|
230
|
+
mia-code sessions [--clear]
|
|
231
|
+
mia-code where-config
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
### Slash Commands (Interactive Mode)
|
|
235
|
+
|
|
236
|
+
```
|
|
237
|
+
/help, /h, /? - Display available commands
|
|
238
|
+
/exit, /quit, /q - Exit CLI
|
|
239
|
+
/session - Show current session info
|
|
240
|
+
/sessions - List all saved sessions
|
|
241
|
+
/clear - Clear session history
|
|
242
|
+
/config - Display current configuration
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
## Advancing Patterns
|
|
246
|
+
|
|
247
|
+
1. **Dual-Session Architecture:** Every interaction naturally produces both technical clarity and resonant meaning without user configuration
|
|
248
|
+
2. **Engine Abstraction:** Multi-engine support enables advancing toward optimal tool selection per context
|
|
249
|
+
3. **Session Continuity:** Per-project persistence eliminates friction in returning to work contexts
|
|
250
|
+
4. **Graceful Degradation:** Unifier failures fallback to raw output, ensuring reliable function
|
|
251
|
+
|
|
252
|
+
## Implementation Reference
|
|
253
|
+
|
|
254
|
+
- **Entry Point:** `src/index.ts` - Commander CLI setup
|
|
255
|
+
- **Interactive Loop:** `src/cli.ts` - Readline session handling
|
|
256
|
+
- **Agent Interface:** `src/geminiHeadless.ts` - Multi-engine wrapper
|
|
257
|
+
- **Interpretation:** `src/unifier.ts` - Ceremonial interpretation layer
|
|
258
|
+
- **Persistence:** `src/sessionStore.ts` - Session index management
|
|
259
|
+
- **Configuration:** `src/config.ts` - Config file handling
|
|
260
|
+
- **MCP Servers:** `src/mcp/*.ts` - JSON-RPC stdio servers (see `mcp.rispecs.md`)
|
|
261
|
+
- **Sub-CLIs:** `miaco/`, `miatel/`, `miawa/` - Domain-specific CLI tools
|