@ouro.bot/cli 0.1.0-alpha.207 → 0.1.0-alpha.209

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 (43) hide show
  1. package/changelog.json +12 -0
  2. package/dist/heart/daemon/cli-defaults.js +557 -0
  3. package/dist/heart/daemon/cli-exec.js +1847 -0
  4. package/dist/heart/daemon/cli-parse.js +759 -0
  5. package/dist/heart/daemon/cli-render.js +316 -0
  6. package/dist/heart/daemon/cli-types.js +8 -0
  7. package/dist/heart/daemon/daemon-cli.js +28 -3347
  8. package/dist/heart/daemon/daemon-entry.js +2 -2
  9. package/dist/heart/daemon/daemon.js +7 -7
  10. package/dist/heart/daemon/ouro-bot-entry.js +1 -1
  11. package/dist/heart/{daemon → habits}/habit-scheduler.js +1 -1
  12. package/dist/heart/{daemon → hatch}/hatch-flow.js +2 -2
  13. package/dist/heart/{daemon → mcp}/mcp-server.js +3 -3
  14. package/dist/heart/{daemon → outlook}/outlook-read.js +3 -3
  15. package/dist/heart/provider-ping.js +1 -1
  16. package/dist/heart/{daemon → versioning}/ouro-bot-global-installer.js +1 -1
  17. package/dist/heart/{daemon → versioning}/ouro-bot-wrapper.js +1 -1
  18. package/dist/mind/prompt.js +1 -1
  19. package/dist/nerves/coverage/file-completeness.js +7 -3
  20. package/dist/senses/cli.js +1 -1
  21. package/dist/senses/inner-dialog-worker.js +1 -1
  22. package/dist/senses/inner-dialog.js +1 -1
  23. package/dist/senses/pipeline.js +1 -1
  24. package/package.json +1 -1
  25. /package/dist/heart/{daemon → auth}/auth-flow.js +0 -0
  26. /package/dist/heart/{daemon → habits}/habit-migration.js +0 -0
  27. /package/dist/heart/{daemon → habits}/habit-parser.js +0 -0
  28. /package/dist/heart/{daemon → hatch}/hatch-animation.js +0 -0
  29. /package/dist/heart/{daemon → hatch}/hatch-specialist.js +0 -0
  30. /package/dist/heart/{daemon → hatch}/specialist-orchestrator.js +0 -0
  31. /package/dist/heart/{daemon → hatch}/specialist-prompt.js +0 -0
  32. /package/dist/heart/{daemon → hatch}/specialist-tools.js +0 -0
  33. /package/dist/heart/{daemon → outlook}/outlook-http.js +0 -0
  34. /package/dist/heart/{daemon → outlook}/outlook-render.js +0 -0
  35. /package/dist/heart/{daemon → outlook}/outlook-types.js +0 -0
  36. /package/dist/heart/{daemon → outlook}/outlook-view.js +0 -0
  37. /package/dist/heart/{daemon → versioning}/ouro-path-installer.js +0 -0
  38. /package/dist/heart/{daemon → versioning}/ouro-uti.js +0 -0
  39. /package/dist/heart/{daemon → versioning}/ouro-version-manager.js +0 -0
  40. /package/dist/heart/{daemon → versioning}/staged-restart.js +0 -0
  41. /package/dist/heart/{daemon → versioning}/update-checker.js +0 -0
  42. /package/dist/heart/{daemon → versioning}/update-hooks.js +0 -0
  43. /package/dist/heart/{daemon → versioning}/wrapper-publish-guard.js +0 -0
@@ -49,8 +49,8 @@ const sense_manager_1 = require("./sense-manager");
49
49
  const agent_discovery_1 = require("./agent-discovery");
50
50
  const identity_1 = require("../identity");
51
51
  const runtime_mode_1 = require("./runtime-mode");
52
- const habit_scheduler_1 = require("./habit-scheduler");
53
- const habit_migration_1 = require("./habit-migration");
52
+ const habit_scheduler_1 = require("../habits/habit-scheduler");
53
+ const habit_migration_1 = require("../habits/habit-migration");
54
54
  const os_cron_deps_1 = require("./os-cron-deps");
55
55
  const os_cron_1 = require("./os-cron");
56
56
  const daemon_tombstone_1 = require("./daemon-tombstone");
@@ -45,21 +45,21 @@ const identity_1 = require("../identity");
45
45
  const runtime_1 = require("../../nerves/runtime");
46
46
  const runtime_metadata_1 = require("./runtime-metadata");
47
47
  const runtime_mode_1 = require("./runtime-mode");
48
- const update_hooks_1 = require("./update-hooks");
48
+ const update_hooks_1 = require("../versioning/update-hooks");
49
49
  const bundle_meta_1 = require("./hooks/bundle-meta");
50
50
  const agent_config_v2_1 = require("./hooks/agent-config-v2");
51
51
  const bundle_manifest_1 = require("../../mind/bundle-manifest");
52
- const update_checker_1 = require("./update-checker");
53
- const staged_restart_1 = require("./staged-restart");
52
+ const update_checker_1 = require("../versioning/update-checker");
53
+ const staged_restart_1 = require("../versioning/staged-restart");
54
54
  const child_process_1 = require("child_process");
55
55
  const pending_1 = require("../../mind/pending");
56
56
  const agent_service_1 = require("./agent-service");
57
57
  const channel_1 = require("../../mind/friends/channel");
58
58
  const mcp_manager_1 = require("../../repertoire/mcp-manager");
59
- const outlook_http_1 = require("./outlook-http");
60
- const outlook_types_1 = require("./outlook-types");
61
- const outlook_read_1 = require("./outlook-read");
62
- const outlook_view_1 = require("./outlook-view");
59
+ const outlook_http_1 = require("../outlook/outlook-http");
60
+ const outlook_types_1 = require("../outlook/outlook-types");
61
+ const outlook_read_1 = require("../outlook/outlook-read");
62
+ const outlook_view_1 = require("../outlook/outlook-view");
63
63
  const PIDFILE_PATH = path.join(os.homedir(), ".ouro-cli", "daemon.pids");
64
64
  /**
65
65
  * Kill all ouro processes from the previous daemon instance using the pidfile.
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  const runtime_1 = require("../../nerves/runtime");
5
5
  const runtime_logging_1 = require("./runtime-logging");
6
- const ouro_bot_wrapper_1 = require("./ouro-bot-wrapper");
6
+ const ouro_bot_wrapper_1 = require("../versioning/ouro-bot-wrapper");
7
7
  (0, runtime_logging_1.configureDaemonRuntimeLogger)("ouro-bot");
8
8
  (0, runtime_1.emitNervesEvent)({
9
9
  component: "daemon",
@@ -37,7 +37,7 @@ exports.HabitScheduler = void 0;
37
37
  const path = __importStar(require("path"));
38
38
  const runtime_1 = require("../../nerves/runtime");
39
39
  const habit_parser_1 = require("./habit-parser");
40
- const cadence_1 = require("./cadence");
40
+ const cadence_1 = require("../daemon/cadence");
41
41
  const WATCH_DEBOUNCE_MS = 200;
42
42
  class HabitScheduler {
43
43
  agent;
@@ -41,8 +41,8 @@ const path = __importStar(require("path"));
41
41
  const identity_1 = require("../identity");
42
42
  const config_1 = require("../config");
43
43
  const runtime_1 = require("../../nerves/runtime");
44
- const auth_flow_1 = require("./auth-flow");
45
- const habit_parser_1 = require("./habit-parser");
44
+ const auth_flow_1 = require("../auth/auth-flow");
45
+ const habit_parser_1 = require("../habits/habit-parser");
46
46
  const hatch_specialist_1 = require("./hatch-specialist");
47
47
  function requiredCredentialKeys(provider) {
48
48
  return identity_1.PROVIDER_CREDENTIALS[provider].required;
@@ -35,10 +35,10 @@ var __importStar = (this && this.__importStar) || (function () {
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.createMcpServer = createMcpServer;
37
37
  exports.getToolSchemas = getToolSchemas;
38
- const socket_client_1 = require("./socket-client");
39
- const agentService = __importStar(require("./agent-service"));
38
+ const socket_client_1 = require("../daemon/socket-client");
39
+ const agentService = __importStar(require("../daemon/agent-service"));
40
40
  const runtime_1 = require("../../nerves/runtime");
41
- const session_id_resolver_1 = require("./session-id-resolver");
41
+ const session_id_resolver_1 = require("../daemon/session-id-resolver");
42
42
  const pending_1 = require("../../mind/pending");
43
43
  /**
44
44
  * Maps MCP tool names to daemon command kinds.
@@ -61,9 +61,9 @@ const obligations_1 = require("../obligations");
61
61
  const session_activity_1 = require("../session-activity");
62
62
  const board_1 = require("../../repertoire/tasks/board");
63
63
  const scanner_1 = require("../../repertoire/tasks/scanner");
64
- const agent_discovery_1 = require("./agent-discovery");
65
- const runtime_metadata_1 = require("./runtime-metadata");
66
- const thoughts_1 = require("./thoughts");
64
+ const agent_discovery_1 = require("../daemon/agent-discovery");
65
+ const runtime_metadata_1 = require("../daemon/runtime-metadata");
66
+ const thoughts_1 = require("../daemon/thoughts");
67
67
  const outlook_types_1 = require("./outlook-types");
68
68
  const presence_1 = require("../presence");
69
69
  const cares_1 = require("../cares");
@@ -9,7 +9,7 @@ const azure_1 = require("./providers/azure");
9
9
  const minimax_1 = require("./providers/minimax");
10
10
  const openai_codex_1 = require("./providers/openai-codex");
11
11
  const github_copilot_1 = require("./providers/github-copilot");
12
- const auth_flow_1 = require("./daemon/auth-flow");
12
+ const auth_flow_1 = require("./auth/auth-flow");
13
13
  const runtime_1 = require("../nerves/runtime");
14
14
  const PING_TIMEOUT_MS = 10_000;
15
15
  /**
@@ -38,7 +38,7 @@ const child_process_1 = require("child_process");
38
38
  const fs = __importStar(require("fs"));
39
39
  const path = __importStar(require("path"));
40
40
  const runtime_1 = require("../../nerves/runtime");
41
- const runtime_metadata_1 = require("./runtime-metadata");
41
+ const runtime_metadata_1 = require("../daemon/runtime-metadata");
42
42
  function normalizeOutput(output) {
43
43
  return (typeof output === "string" ? output : output.toString("utf-8")).trim();
44
44
  }
@@ -35,7 +35,7 @@ var __importStar = (this && this.__importStar) || (function () {
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.runOuroBotWrapper = runOuroBotWrapper;
37
37
  const runtime_1 = require("../../nerves/runtime");
38
- const daemon_cli_1 = require("./daemon-cli");
38
+ const daemon_cli_1 = require("../daemon/daemon-cli");
39
39
  async function defaultLoadCanonicalRunner() {
40
40
  // Use the subpath export so we get the daemon-cli module directly,
41
41
  // NOT the root entry point which has side-effects (immediately runs the CLI).
@@ -58,7 +58,7 @@ exports.buildSystem = buildSystem;
58
58
  const fs = __importStar(require("fs"));
59
59
  const path = __importStar(require("path"));
60
60
  const core_1 = require("../heart/core");
61
- const ouro_version_manager_1 = require("../heart/daemon/ouro-version-manager");
61
+ const ouro_version_manager_1 = require("../heart/versioning/ouro-version-manager");
62
62
  const tools_1 = require("../repertoire/tools");
63
63
  const skills_1 = require("../repertoire/skills");
64
64
  const identity_1 = require("../heart/identity");
@@ -45,9 +45,9 @@ function isTypeOnlyFile(source) {
45
45
  }
46
46
  return true;
47
47
  }
48
- // Tool handler sub-modules that are dispatched through a centralized
49
- // execTool pattern (tools.ts handles all tool.start/end/error events).
50
- // These files don't need independent observability.
48
+ // Sub-modules dispatched through a centralized pattern where the router
49
+ // handles all observability events. These files don't need independent
50
+ // emitNervesEvent calls.
51
51
  const DISPATCH_EXEMPT_PATTERNS = [
52
52
  "repertoire/tools-files",
53
53
  "repertoire/tools-shell",
@@ -57,6 +57,10 @@ const DISPATCH_EXEMPT_PATTERNS = [
57
57
  "repertoire/tools-continuity",
58
58
  "repertoire/tools-surface",
59
59
  "repertoire/tools-config",
60
+ // CLI sub-modules: cli-exec.ts is the router with emitNervesEvent calls;
61
+ // cli-parse and cli-render are pure functions with no side effects.
62
+ "daemon/cli-parse",
63
+ "daemon/cli-render",
60
64
  ];
61
65
  function isDispatchExempt(filePath) {
62
66
  return DISPATCH_EXEMPT_PATTERNS.some((pattern) => filePath.includes(pattern));
@@ -70,7 +70,7 @@ const trust_gate_1 = require("./trust-gate");
70
70
  const pipeline_1 = require("./pipeline");
71
71
  const channel_1 = require("../mind/friends/channel");
72
72
  const session_lock_1 = require("./session-lock");
73
- const update_hooks_1 = require("../heart/daemon/update-hooks");
73
+ const update_hooks_1 = require("../heart/versioning/update-hooks");
74
74
  const bundle_meta_1 = require("../heart/daemon/hooks/bundle-meta");
75
75
  const agent_config_v2_1 = require("../heart/daemon/hooks/agent-config-v2");
76
76
  const bundle_manifest_1 = require("../mind/bundle-manifest");
@@ -41,7 +41,7 @@ const inner_dialog_1 = require("./inner-dialog");
41
41
  const runtime_1 = require("../nerves/runtime");
42
42
  const identity_1 = require("../heart/identity");
43
43
  const pending_1 = require("../mind/pending");
44
- const habit_parser_1 = require("../heart/daemon/habit-parser");
44
+ const habit_parser_1 = require("../heart/habits/habit-parser");
45
45
  function createInnerDialogWorker(runTurn = (options) => (0, inner_dialog_1.runInnerDialogTurn)(options), hasPendingWork = () => (0, pending_1.hasPendingMessages)((0, pending_1.getInnerDialogPendingDir)((0, identity_1.getAgentName)()))) {
46
46
  let running = false;
47
47
  const queue = [];
@@ -68,7 +68,7 @@ const session_activity_1 = require("../heart/session-activity");
68
68
  const bluebubbles_1 = require("./bluebubbles");
69
69
  const habit_turn_message_1 = require("./habit-turn-message");
70
70
  const journal_index_1 = require("../mind/journal-index");
71
- const habit_parser_1 = require("../heart/daemon/habit-parser");
71
+ const habit_parser_1 = require("../heart/habits/habit-parser");
72
72
  const cadence_1 = require("../heart/daemon/cadence");
73
73
  const daemon_health_1 = require("../heart/daemon/daemon-health");
74
74
  const DEFAULT_INNER_DIALOG_INSTINCTS = [
@@ -53,7 +53,7 @@ const delegation_1 = require("../heart/delegation");
53
53
  const obligations_1 = require("../heart/obligations");
54
54
  const provider_failover_1 = require("../heart/provider-failover");
55
55
  const provider_ping_1 = require("../heart/provider-ping");
56
- const auth_flow_1 = require("../heart/daemon/auth-flow");
56
+ const auth_flow_1 = require("../heart/auth/auth-flow");
57
57
  const tempo_1 = require("../heart/tempo");
58
58
  const temporal_view_1 = require("../heart/temporal-view");
59
59
  const start_of_turn_packet_1 = require("../heart/start-of-turn-packet");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.207",
3
+ "version": "0.1.0-alpha.209",
4
4
  "main": "dist/heart/daemon/ouro-entry.js",
5
5
  "bin": {
6
6
  "cli": "dist/heart/daemon/ouro-bot-entry.js",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes