iosm-cli 0.2.8 → 0.2.10

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.
Files changed (100) hide show
  1. package/CHANGELOG.md +66 -0
  2. package/README.md +3 -3
  3. package/dist/cli/args.d.ts.map +1 -1
  4. package/dist/cli/args.js +7 -3
  5. package/dist/cli/args.js.map +1 -1
  6. package/dist/core/agent-profiles.d.ts.map +1 -1
  7. package/dist/core/agent-profiles.js +5 -1
  8. package/dist/core/agent-profiles.js.map +1 -1
  9. package/dist/core/agent-session.d.ts +8 -0
  10. package/dist/core/agent-session.d.ts.map +1 -1
  11. package/dist/core/agent-session.js +490 -3
  12. package/dist/core/agent-session.js.map +1 -1
  13. package/dist/core/sdk.d.ts +2 -2
  14. package/dist/core/sdk.d.ts.map +1 -1
  15. package/dist/core/sdk.js +7 -4
  16. package/dist/core/sdk.js.map +1 -1
  17. package/dist/core/settings-manager.d.ts +18 -0
  18. package/dist/core/settings-manager.d.ts.map +1 -1
  19. package/dist/core/settings-manager.js +29 -0
  20. package/dist/core/settings-manager.js.map +1 -1
  21. package/dist/core/shadow-guard.d.ts.map +1 -1
  22. package/dist/core/shadow-guard.js +12 -1
  23. package/dist/core/shadow-guard.js.map +1 -1
  24. package/dist/core/slash-commands.d.ts.map +1 -1
  25. package/dist/core/slash-commands.js +4 -0
  26. package/dist/core/slash-commands.js.map +1 -1
  27. package/dist/core/system-prompt.d.ts.map +1 -1
  28. package/dist/core/system-prompt.js +32 -1
  29. package/dist/core/system-prompt.js.map +1 -1
  30. package/dist/core/tools/db-run.d.ts +84 -0
  31. package/dist/core/tools/db-run.d.ts.map +1 -0
  32. package/dist/core/tools/db-run.js +690 -0
  33. package/dist/core/tools/db-run.js.map +1 -0
  34. package/dist/core/tools/index.d.ts +44 -0
  35. package/dist/core/tools/index.d.ts.map +1 -1
  36. package/dist/core/tools/index.js +16 -0
  37. package/dist/core/tools/index.js.map +1 -1
  38. package/dist/core/tools/lint-run.d.ts +42 -0
  39. package/dist/core/tools/lint-run.d.ts.map +1 -0
  40. package/dist/core/tools/lint-run.js +276 -0
  41. package/dist/core/tools/lint-run.js.map +1 -0
  42. package/dist/core/tools/test-run.d.ts +36 -0
  43. package/dist/core/tools/test-run.d.ts.map +1 -0
  44. package/dist/core/tools/test-run.js +255 -0
  45. package/dist/core/tools/test-run.js.map +1 -0
  46. package/dist/core/tools/typecheck-run.d.ts +44 -0
  47. package/dist/core/tools/typecheck-run.d.ts.map +1 -0
  48. package/dist/core/tools/typecheck-run.js +343 -0
  49. package/dist/core/tools/typecheck-run.js.map +1 -0
  50. package/dist/core/tools/verification-runner.d.ts +53 -0
  51. package/dist/core/tools/verification-runner.d.ts.map +1 -0
  52. package/dist/core/tools/verification-runner.js +235 -0
  53. package/dist/core/tools/verification-runner.js.map +1 -0
  54. package/dist/core/ultrathink.d.ts +122 -0
  55. package/dist/core/ultrathink.d.ts.map +1 -0
  56. package/dist/core/ultrathink.js +621 -0
  57. package/dist/core/ultrathink.js.map +1 -0
  58. package/dist/index.d.ts +2 -2
  59. package/dist/index.d.ts.map +1 -1
  60. package/dist/index.js +1 -1
  61. package/dist/index.js.map +1 -1
  62. package/dist/modes/interactive/components/branch-summary-message.d.ts.map +1 -1
  63. package/dist/modes/interactive/components/branch-summary-message.js +2 -1
  64. package/dist/modes/interactive/components/branch-summary-message.js.map +1 -1
  65. package/dist/modes/interactive/components/compaction-summary-message.d.ts.map +1 -1
  66. package/dist/modes/interactive/components/compaction-summary-message.js +2 -1
  67. package/dist/modes/interactive/components/compaction-summary-message.js.map +1 -1
  68. package/dist/modes/interactive/components/custom-message.d.ts.map +1 -1
  69. package/dist/modes/interactive/components/custom-message.js +2 -1
  70. package/dist/modes/interactive/components/custom-message.js.map +1 -1
  71. package/dist/modes/interactive/components/skill-invocation-message.d.ts.map +1 -1
  72. package/dist/modes/interactive/components/skill-invocation-message.js +4 -2
  73. package/dist/modes/interactive/components/skill-invocation-message.js.map +1 -1
  74. package/dist/modes/interactive/components/subagent-message.d.ts.map +1 -1
  75. package/dist/modes/interactive/components/subagent-message.js +3 -1
  76. package/dist/modes/interactive/components/subagent-message.js.map +1 -1
  77. package/dist/modes/interactive/components/task-plan-message.d.ts.map +1 -1
  78. package/dist/modes/interactive/components/task-plan-message.js +2 -1
  79. package/dist/modes/interactive/components/task-plan-message.js.map +1 -1
  80. package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
  81. package/dist/modes/interactive/components/tool-execution.js +25 -7
  82. package/dist/modes/interactive/components/tool-execution.js.map +1 -1
  83. package/dist/modes/interactive/components/user-message.d.ts.map +1 -1
  84. package/dist/modes/interactive/components/user-message.js +2 -1
  85. package/dist/modes/interactive/components/user-message.js.map +1 -1
  86. package/dist/modes/interactive/interactive-mode.d.ts +5 -0
  87. package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
  88. package/dist/modes/interactive/interactive-mode.js +523 -9
  89. package/dist/modes/interactive/interactive-mode.js.map +1 -1
  90. package/dist/modes/interactive/theme/dark.json +39 -38
  91. package/dist/modes/interactive/theme/light.json +29 -29
  92. package/dist/modes/interactive/theme/theme.d.ts.map +1 -1
  93. package/dist/modes/interactive/theme/theme.js +16 -25
  94. package/dist/modes/interactive/theme/theme.js.map +1 -1
  95. package/dist/modes/interactive/theme/universal.json +85 -0
  96. package/docs/cli-reference.md +21 -1
  97. package/docs/configuration.md +76 -1
  98. package/docs/development-and-testing.md +1 -1
  99. package/docs/interactive-mode.md +11 -2
  100. package/package.json +1 -1
@@ -56,6 +56,7 @@ iosm --continue
56
56
  | `/semantic` | Open semantic search manager (`setup/auto-index/status/index/rebuild/query`) | `/semantic` |
57
57
  | `/contract` | Interactive engineering contract editor (field-by-field, auto JSON build) | `/contract` |
58
58
  | `/singular` | Feature feasibility analyzer with implementation options and recommendation | `/singular add account dashboard` |
59
+ | `/ultrathink` | Deep multi-iteration read-only analysis mode with self-check checkpoints | `/ultrathink -q 7 investigate auth regression` |
59
60
  | `/swarm` | Recommended multi-agent orchestration runtime for complex/risky tasks (`run`, `from-singular`, `watch`, `retry`, `resume`) | `/swarm run refactor auth module --max-parallel 3` |
60
61
  | `/memory` | Interactive memory manager (`add/edit/remove/scope/path`) | `/memory` |
61
62
  | `/settings` | View/modify settings | `/settings` |
@@ -92,7 +93,7 @@ iosm --continue
92
93
  | `/export` | Export session to HTML | `/export` |
93
94
  | `/share` | Share via GitHub Gist | `/share` |
94
95
  | `/copy` | Copy last response to clipboard | `/copy` |
95
- | `/doctor` | Run diagnostics for model/auth/MCP/hooks/resources | `/doctor` |
96
+ | `/doctor` | Run diagnostics for model/auth/MCP/hooks/resources/toolchain (includes db_run/typecheck client CLIs) | `/doctor` |
96
97
  | `/compact` | Compact conversation context | `/compact` |
97
98
  | `/reload` | Reload extensions and resources | `/reload` |
98
99
  | `/permissions` | View/set tool permissions | `/permissions` |
@@ -109,9 +110,14 @@ In `/semantic setup`, the headers step is optional: press `Enter` on empty input
109
110
  `/memory` opens an interactive manager. `/memory <text>` saves a note to `memory.md` and reloads session context. Use `/memory edit <index> <text>` for direct updates.
110
111
  `/contract` edits contract fields interactively (`goal`, scope, constraints, quality gates, DoD, risks, etc.), then writes JSON automatically.
111
112
  `/singular <request>` runs a two-pass feasibility analysis (baseline scan + standard agent pass), builds concrete implementation options, then prompts `Start with Swarm` / `Continue without Swarm` / `Cancel`.
113
+ `/ultrathink [-q N|--iterations N] [query]` runs `N` root-agent analysis passes in strict read-only mode (`N` defaults to `5`, max `12`), carries a compact checkpoint between passes, and emits concise per-iteration summaries with a final synthesis.
114
+ `/ultrathink` without query reuses the latest meaningful user request from session context.
115
+ If early passes produce no tool evidence, ultrathink injects an internal grounding retry so the agent probes the workspace with read-only tools before continuing.
112
116
  `/swarm` enforces `Scopes -> Touches -> Locks -> Gates -> Done`. If effective contract is missing, it blocks execution and opens a bootstrap menu (auto-draft, guided Q&A, or manual `/contract` editor).
113
117
  `/orchestrate --parallel` defaults `--max-parallel` to `--agents` when omitted and auto-selects `meta` workers when profiles are not explicitly set (outside read-only host contexts).
114
118
  For orchestrate assignments, `delegate_parallel_hint` is carried into child task calls; high hints should trigger nested delegate fan-out or explicit `DELEGATION_IMPOSSIBLE`.
119
+ If a model emits raw pseudo markup like `<tool_call>`, `<function=...>`, or `<delegate_task>` instead of real tool calls, interactive mode injects bounded protocol-recovery retries.
120
+ If a model returns a silent `stop` (no visible text and no tool call), interactive mode injects bounded stall-recovery retries.
115
121
  `/blast` and `/shadow` are removed from active interactive workflow.
116
122
 
117
123
  ### `/contract` Detailed Guide
@@ -336,7 +342,7 @@ Profiles change the agent's behavior, available tools, and system prompt:
336
342
 
337
343
  | Profile | Tools | Use Case |
338
344
  |---------|-------|----------|
339
- | `full` | All built-ins (read, bash, edit, write, git_write, fs_ops, grep, find, ls, rg, fd, ast_grep, comby, jq, yq, semgrep, sed, semantic_search, fetch, web_search, git_read) | Default development work |
345
+ | `full` | All built-ins (read, bash, edit, write, git_write, fs_ops, test_run, lint_run, typecheck_run, db_run, grep, find, ls, rg, fd, ast_grep, comby, jq, yq, semgrep, sed, semantic_search, fetch, web_search, git_read) | Default development work |
340
346
  | `plan` | Read-only bundle (read, grep, find, ls, rg, fd, ast_grep, comby, jq, yq, semgrep, sed, semantic_search, fetch, web_search, git_read) | Architecture planning, code review |
341
347
  | `iosm` | All + IOSM context | IOSM cycle execution with artifact sync |
342
348
  | `meta` | Full toolset + orchestration-first contract | Adaptive multi-agent/delegate execution with verification closure |
@@ -353,6 +359,9 @@ Profiles change the agent's behavior, available tools, and system prompt:
353
359
  | `iosm_verifier` | Verify cycle results and quality gates |
354
360
  | `cycle_planner` | Plan and structure IOSM cycles |
355
361
 
362
+ `db_run` is intentionally excluded from read-only profiles and `iosm_verifier`.
363
+ `typecheck_run` is available in write-capable profiles and `iosm_verifier`.
364
+
356
365
  ### Example: Planning Workflow
357
366
 
358
367
  ```bash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iosm-cli",
3
- "version": "0.2.8",
3
+ "version": "0.2.10",
4
4
  "description": "Standalone IOSM CLI with agent tooling, session management, and IOSM artifact orchestration",
5
5
  "type": "module",
6
6
  "iosmConfig": {