@adhdev/daemon-core 0.9.82-rc.21 → 0.9.82-rc.211
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/dist/boot/daemon-lifecycle.d.ts +1 -0
- package/dist/boot/process-hardening.d.ts +50 -0
- package/dist/chat/source-machine.d.ts +166 -0
- package/dist/chat/source-resolver.d.ts +104 -0
- package/dist/chat/subscription-updates.d.ts +1 -0
- package/dist/cli-adapter-types.d.ts +23 -2
- package/dist/cli-adapters/cli-script-runner.d.ts +117 -0
- package/dist/cli-adapters/cli-state-engine.d.ts +178 -0
- package/dist/cli-adapters/provider-cli-adapter.d.ts +106 -63
- package/dist/cli-adapters/provider-cli-parse.d.ts +4 -0
- package/dist/cli-adapters/provider-cli-shared.d.ts +29 -0
- package/dist/cli-adapters/raw-terminal-io.d.ts +37 -0
- package/dist/cli-adapters/terminal-backends/ghostty-vt-backend.d.ts +3 -3
- package/dist/cli-adapters/terminal-backends/types.d.ts +1 -2
- package/dist/cli-adapters/terminal-screen.d.ts +2 -11
- package/dist/commands/cli-manager.d.ts +2 -1
- package/dist/commands/handler.d.ts +110 -0
- package/dist/commands/mesh-coordinator.d.ts +85 -1
- package/dist/commands/router.d.ts +32 -1
- package/dist/config/chat-history.d.ts +9 -0
- package/dist/config/config.d.ts +5 -0
- package/dist/config/mesh-config.d.ts +72 -1
- package/dist/git/git-commands.d.ts +9 -1
- package/dist/git/git-diff.d.ts +6 -0
- package/dist/git/git-types.d.ts +2 -0
- package/dist/index.d.ts +46 -11
- package/dist/index.js +35173 -15756
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +34880 -15556
- package/dist/index.mjs.map +1 -1
- package/dist/installer.d.ts +1 -4
- package/dist/ipc/local-ipc-server.d.ts +91 -0
- package/dist/launch.d.ts +1 -1
- package/dist/logging/async-batch-writer.d.ts +10 -0
- package/dist/mesh/contracts.d.ts +164 -0
- package/dist/mesh/coordinator-prompt.d.ts +36 -0
- package/dist/mesh/coordinator-registry.d.ts +59 -0
- package/dist/mesh/mesh-active-work.d.ts +90 -0
- package/dist/mesh/mesh-delivery-policy.d.ts +131 -0
- package/dist/mesh/mesh-events-coordinator.d.ts +151 -0
- package/dist/mesh/mesh-events-pending.d.ts +33 -0
- package/dist/mesh/mesh-events-stale.d.ts +40 -0
- package/dist/mesh/mesh-events-utils.d.ts +14 -0
- package/dist/mesh/mesh-events.d.ts +5 -40
- package/dist/mesh/mesh-fast-forward.d.ts +41 -0
- package/dist/mesh/mesh-host-ownership.d.ts +9 -0
- package/dist/mesh/mesh-ledger-reconciliation.d.ts +23 -3
- package/dist/mesh/mesh-ledger.d.ts +77 -1
- package/dist/mesh/mesh-missions.d.ts +58 -0
- package/dist/mesh/mesh-refine-status.d.ts +26 -0
- package/dist/mesh/mesh-review-inbox.d.ts +90 -0
- package/dist/mesh/mesh-runtime-store.d.ts +324 -0
- package/dist/mesh/mesh-task-stats.d.ts +49 -0
- package/dist/mesh/mesh-work-queue.d.ts +137 -6
- package/dist/mesh/preview-freshness.d.ts +18 -0
- package/dist/mesh/refine-config.d.ts +215 -0
- package/dist/mesh/worktree-bootstrap-config.d.ts +135 -0
- package/dist/providers/acp-provider-instance.d.ts +2 -0
- package/dist/providers/approval-utils.d.ts +13 -0
- package/dist/providers/cli-provider-instance.d.ts +39 -3
- package/dist/providers/contracts.d.ts +130 -6
- package/dist/providers/external-sources.d.ts +71 -0
- package/dist/providers/native-history/antigravity-cli-transcript.d.ts +100 -0
- package/dist/providers/native-history/claude-cli-transcript.d.ts +70 -0
- package/dist/providers/native-history/codex-cli-transcript.d.ts +73 -0
- package/dist/providers/native-history/dispatcher.d.ts +27 -0
- package/dist/providers/native-history/hermes-cli-transcript.d.ts +30 -0
- package/dist/providers/native-history/index.d.ts +13 -0
- package/dist/providers/provider-instance-manager.d.ts +12 -0
- package/dist/providers/provider-instance.d.ts +13 -1
- package/dist/providers/provider-loader.d.ts +26 -4
- package/dist/providers/provider-trust.d.ts +31 -0
- package/dist/providers/read-chat-contract.d.ts +29 -0
- package/dist/providers/sdk/v1/builders/acp/detect-status.d.ts +68 -0
- package/dist/providers/sdk/v1/builders/cli/detect-status.d.ts +85 -0
- package/dist/providers/sdk/v1/builders/cli/parse-approval-squash.d.ts +59 -0
- package/dist/providers/sdk/v1/builders/cli/parse-approval.d.ts +65 -0
- package/dist/providers/sdk/v1/builders/cli/parse-session.d.ts +91 -0
- package/dist/providers/sdk/v1/builders/cli/visible-region.d.ts +42 -0
- package/dist/providers/sdk/v1/fixture-tooling/format.d.ts +126 -0
- package/dist/providers/sdk/v1/fixture-tooling/index.d.ts +8 -0
- package/dist/providers/sdk/v1/fixture-tooling/replay.d.ts +38 -0
- package/dist/providers/sdk/v1/index.d.ts +30 -0
- package/dist/providers/sdk/v1/sandbox/README-design.d.ts +193 -0
- package/dist/providers/sdk/v1/sandbox/require-whitelist.d.ts +74 -0
- package/dist/providers/sdk/v1/sandbox/script-runner.d.ts +98 -0
- package/dist/providers/sdk/v1/types/cli/index.d.ts +277 -0
- package/dist/providers/sdk/v1/types/common/index.d.ts +203 -0
- package/dist/providers/sdk/v1/validators/index.d.ts +5 -0
- package/dist/providers/sdk/v1/validators/manifest.d.ts +40 -0
- package/dist/providers/sdk/v1/validators/taint.d.ts +52 -0
- package/dist/providers/spec/adapter.d.ts +52 -0
- package/dist/providers/spec/cli-adapter.d.ts +101 -0
- package/dist/providers/spec/driver.d.ts +225 -0
- package/dist/providers/spec/evaluator.d.ts +54 -0
- package/dist/providers/spec/loader.d.ts +15 -0
- package/dist/providers/spec/native-history-executor.d.ts +41 -0
- package/dist/providers/spec/route.d.ts +4 -0
- package/dist/providers/spec/schema.gen.d.ts +2025 -0
- package/dist/providers/spec/types.d.ts +302 -0
- package/dist/providers/transcript-v2.d.ts +176 -0
- package/dist/providers/types/interactive-prompt.d.ts +48 -0
- package/dist/repo-mesh-types.d.ts +109 -1
- package/dist/sessions/registry.d.ts +3 -0
- package/dist/shared-types-extra.d.ts +2 -4
- package/dist/shared-types.d.ts +42 -1
- package/dist/status/normalize.d.ts +1 -1
- package/dist/status/normalize.js +1 -0
- package/dist/status/normalize.js.map +1 -1
- package/dist/status/normalize.mjs +1 -0
- package/dist/status/normalize.mjs.map +1 -1
- package/dist/status/reporter.d.ts +2 -0
- package/dist/status/snapshot.d.ts +1 -0
- package/dist/types.d.ts +5 -0
- package/package.json +6 -3
- package/src/agent-stream/poller.ts +2 -3
- package/src/boot/daemon-lifecycle.ts +22 -10
- package/src/boot/process-hardening.ts +89 -0
- package/src/chat/source-machine.ts +534 -0
- package/src/chat/source-resolver.ts +0 -0
- package/src/chat/subscription-updates.ts +20 -1
- package/src/cli-adapter-types.d.ts +1 -0
- package/src/cli-adapter-types.ts +22 -2
- package/src/cli-adapters/cli-script-runner.ts +421 -0
- package/src/cli-adapters/cli-state-engine.ts +1138 -0
- package/src/cli-adapters/provider-cli-adapter.d.ts +1 -1
- package/src/cli-adapters/provider-cli-adapter.ts +673 -1139
- package/src/cli-adapters/provider-cli-parse.d.ts +1 -0
- package/src/cli-adapters/provider-cli-parse.ts +13 -0
- package/src/cli-adapters/provider-cli-runtime.ts +3 -1
- package/src/cli-adapters/provider-cli-shared.d.ts +2 -0
- package/src/cli-adapters/provider-cli-shared.ts +59 -11
- package/src/cli-adapters/raw-terminal-io.ts +252 -0
- package/src/cli-adapters/terminal-backends/ghostty-vt-backend.ts +35 -29
- package/src/cli-adapters/terminal-backends/types.ts +1 -3
- package/src/cli-adapters/terminal-screen.ts +11 -81
- package/src/commands/chat-commands.ts +1787 -60
- package/src/commands/cli-manager.ts +283 -14
- package/src/commands/handler.ts +809 -2
- package/src/commands/mesh-coordinator.ts +332 -122
- package/src/commands/router.ts +4198 -557
- package/src/config/chat-history.ts +95 -24
- package/src/config/config.ts +12 -0
- package/src/config/mesh-config.ts +280 -2
- package/src/config/recent-activity.ts +8 -2
- package/src/daemon/dev-auto-implement.ts +3 -2
- package/src/daemon/dev-cli-debug.ts +10 -1
- package/src/detection/ide-detector.ts +26 -16
- package/src/git/git-commands.ts +42 -12
- package/src/git/git-diff.ts +53 -0
- package/src/git/git-status.ts +35 -6
- package/src/git/git-types.ts +2 -0
- package/src/git/git-worktree.ts +8 -1
- package/src/index.ts +126 -10
- package/src/installer.d.ts +1 -1
- package/src/installer.ts +8 -6
- package/src/ipc/local-ipc-server.ts +278 -0
- package/src/launch.d.ts +1 -1
- package/src/launch.ts +37 -28
- package/src/logging/async-batch-writer.ts +55 -0
- package/src/logging/logger.ts +2 -1
- package/src/mesh/contracts.ts +329 -0
- package/src/mesh/coordinator-prompt.ts +218 -31
- package/src/mesh/coordinator-registry.ts +121 -0
- package/src/mesh/mesh-active-work.ts +437 -0
- package/src/mesh/mesh-delivery-policy.ts +315 -0
- package/src/mesh/mesh-events-coordinator.ts +1404 -0
- package/src/mesh/mesh-events-pending.ts +371 -0
- package/src/mesh/mesh-events-stale.ts +283 -0
- package/src/mesh/mesh-events-utils.ts +161 -0
- package/src/mesh/mesh-events.ts +24 -908
- package/src/mesh/mesh-fast-forward.ts +438 -0
- package/src/mesh/mesh-host-ownership.ts +73 -0
- package/src/mesh/mesh-ledger-reconciliation.ts +12 -5
- package/src/mesh/mesh-ledger.ts +587 -102
- package/src/mesh/mesh-missions.ts +151 -0
- package/src/mesh/mesh-refine-status.ts +144 -0
- package/src/mesh/mesh-review-inbox.ts +307 -0
- package/src/mesh/mesh-runtime-store.ts +1305 -0
- package/src/mesh/mesh-task-stats.ts +154 -0
- package/src/mesh/mesh-work-queue.ts +490 -166
- package/src/mesh/preview-freshness.ts +118 -0
- package/src/mesh/refine-config.ts +403 -0
- package/src/mesh/worktree-bootstrap-config.ts +326 -0
- package/src/providers/acp-provider-instance.ts +15 -1
- package/src/providers/approval-utils.d.ts +4 -0
- package/src/providers/approval-utils.ts +47 -5
- package/src/providers/chat-message-normalization.ts +4 -11
- package/src/providers/cli-provider-instance.ts +833 -64
- package/src/providers/contracts.d.ts +55 -0
- package/src/providers/contracts.ts +141 -6
- package/src/providers/external-sources.ts +218 -0
- package/src/providers/ide-provider-instance.ts +19 -5
- package/src/providers/native-history/antigravity-cli-transcript.ts +643 -0
- package/src/providers/native-history/claude-cli-transcript.ts +396 -0
- package/src/providers/native-history/codex-cli-transcript.ts +419 -0
- package/src/providers/native-history/dispatcher.ts +340 -0
- package/src/providers/native-history/hermes-cli-transcript.ts +230 -0
- package/src/providers/native-history/index.ts +30 -0
- package/src/providers/provider-instance-manager.ts +30 -0
- package/src/providers/provider-instance.ts +10 -1
- package/src/providers/provider-loader.ts +582 -50
- package/src/providers/provider-schema.ts +87 -14
- package/src/providers/provider-trust.ts +114 -0
- package/src/providers/read-chat-contract.ts +76 -16
- package/src/providers/sdk/README.md +49 -0
- package/src/providers/sdk/v1/builders/acp/detect-status.ts +144 -0
- package/src/providers/sdk/v1/builders/cli/detect-status.ts +262 -0
- package/src/providers/sdk/v1/builders/cli/parse-approval-squash.ts +158 -0
- package/src/providers/sdk/v1/builders/cli/parse-approval.ts +250 -0
- package/src/providers/sdk/v1/builders/cli/parse-session.ts +276 -0
- package/src/providers/sdk/v1/builders/cli/visible-region.ts +143 -0
- package/src/providers/sdk/v1/fixture-tooling/format.ts +130 -0
- package/src/providers/sdk/v1/fixture-tooling/index.ts +22 -0
- package/src/providers/sdk/v1/fixture-tooling/replay.ts +352 -0
- package/src/providers/sdk/v1/index.ts +152 -0
- package/src/providers/sdk/v1/sandbox/README-design.ts +195 -0
- package/src/providers/sdk/v1/sandbox/require-whitelist.ts +472 -0
- package/src/providers/sdk/v1/sandbox/script-runner.ts +150 -0
- package/src/providers/sdk/v1/schemas/cli/provider.schema.json +504 -0
- package/src/providers/sdk/v1/schemas/primitives/acp-session-protocol-v1.json +131 -0
- package/src/providers/sdk/v1/schemas/primitives/native-history-codex-rollout-v1.json +66 -0
- package/src/providers/sdk/v1/schemas/primitives/tui-approval-squash-v1.json +91 -0
- package/src/providers/sdk/v1/schemas/primitives/tui-assistant-block-v1.json +91 -0
- package/src/providers/sdk/v1/schemas/primitives/tui-cue-ordering-v1.json +47 -0
- package/src/providers/sdk/v1/schemas/primitives/tui-dispatch-order-v1.json +32 -0
- package/src/providers/sdk/v1/schemas/primitives/tui-footer-chrome-v1.json +42 -0
- package/src/providers/sdk/v1/schemas/primitives/tui-index-finder-v1.json +27 -0
- package/src/providers/sdk/v1/schemas/primitives/tui-modal-v1.json +125 -0
- package/src/providers/sdk/v1/schemas/primitives/tui-prompt-marker-v1.json +45 -0
- package/src/providers/sdk/v1/schemas/primitives/tui-session-id-extraction-v1.json +46 -0
- package/src/providers/sdk/v1/schemas/primitives/tui-settled-prompt-v1.json +71 -0
- package/src/providers/sdk/v1/schemas/primitives/tui-spinner-v1.json +83 -0
- package/src/providers/sdk/v1/schemas/primitives/tui-transcript-pty-v1.json +83 -0
- package/src/providers/sdk/v1/schemas/primitives/tui-visible-region-v1.json +57 -0
- package/src/providers/sdk/v1/schemas/primitives/tui-welcome-screen-v1.json +35 -0
- package/src/providers/sdk/v1/types/cli/index.ts +365 -0
- package/src/providers/sdk/v1/types/common/index.ts +229 -0
- package/src/providers/sdk/v1/validators/index.ts +19 -0
- package/src/providers/sdk/v1/validators/manifest.ts +110 -0
- package/src/providers/sdk/v1/validators/taint.ts +309 -0
- package/src/providers/spec/adapter.ts +138 -0
- package/src/providers/spec/cli-adapter.ts +626 -0
- package/src/providers/spec/driver.ts +922 -0
- package/src/providers/spec/evaluator.ts +597 -0
- package/src/providers/spec/loader.ts +324 -0
- package/src/providers/spec/native-history-executor.ts +939 -0
- package/src/providers/spec/route.ts +51 -0
- package/src/providers/spec/schema.gen.ts +691 -0
- package/src/providers/spec/schema.json +341 -0
- package/src/providers/spec/types.ts +356 -0
- package/src/providers/transcript-v2.ts +567 -0
- package/src/providers/types/interactive-prompt.ts +425 -0
- package/src/providers/version-archive.ts +38 -20
- package/src/repo-mesh-types.ts +119 -1
- package/src/sessions/registry.ts +3 -0
- package/src/shared-types-extra.ts +2 -4
- package/src/shared-types.ts +45 -1
- package/src/status/builders.ts +24 -6
- package/src/status/normalize.ts +2 -0
- package/src/status/reporter.ts +15 -0
- package/src/status/snapshot.ts +84 -25
- package/src/system/host-memory.ts +29 -12
- package/src/types.ts +5 -0
- package/dist/cli-adapters/terminal-backends/xterm-backend.d.ts +0 -17
- package/dist/mesh/mesh-sync.d.ts +0 -53
- package/src/cli-adapters/terminal-backends/ghostty-vt-backend.d.ts +0 -16
- package/src/cli-adapters/terminal-backends/xterm-backend.ts +0 -97
- package/src/mesh/mesh-sync.ts +0 -111
|
@@ -0,0 +1,2025 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Auto-generated. Mirrors schema.json — regenerate after editing.
|
|
3
|
+
*
|
|
4
|
+
* SCHEMA_V1: validates adhdev:cli/spec@1 (legacy). Used for migration.
|
|
5
|
+
* SCHEMA_V3: validates adhdev:cli/spec@3 (current). Used after migration.
|
|
6
|
+
* SCHEMA: alias for SCHEMA_V3 (default export for loader.ts).
|
|
7
|
+
*/
|
|
8
|
+
export declare const SCHEMA_V1: {
|
|
9
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
10
|
+
readonly $id: "adhdev:cli/spec@1";
|
|
11
|
+
readonly title: "ADHDev CLI provider spec v1";
|
|
12
|
+
readonly type: "object";
|
|
13
|
+
readonly additionalProperties: false;
|
|
14
|
+
readonly required: readonly ["$schema", "id", "name", "binary", "send_message", "layout", "states", "default_state"];
|
|
15
|
+
readonly properties: {
|
|
16
|
+
readonly $schema: {
|
|
17
|
+
readonly type: "string";
|
|
18
|
+
readonly const: "adhdev:cli/spec@1";
|
|
19
|
+
};
|
|
20
|
+
readonly id: {
|
|
21
|
+
readonly type: "string";
|
|
22
|
+
readonly minLength: 1;
|
|
23
|
+
readonly pattern: "^[a-z][a-z0-9-]*$";
|
|
24
|
+
};
|
|
25
|
+
readonly name: {
|
|
26
|
+
readonly type: "string";
|
|
27
|
+
readonly minLength: 1;
|
|
28
|
+
};
|
|
29
|
+
readonly binary: {
|
|
30
|
+
readonly type: "string";
|
|
31
|
+
readonly minLength: 1;
|
|
32
|
+
};
|
|
33
|
+
readonly spawn_args: {
|
|
34
|
+
readonly type: "array";
|
|
35
|
+
readonly items: {
|
|
36
|
+
readonly type: "string";
|
|
37
|
+
};
|
|
38
|
+
readonly default: readonly [];
|
|
39
|
+
};
|
|
40
|
+
readonly env: {
|
|
41
|
+
readonly type: "object";
|
|
42
|
+
readonly additionalProperties: {
|
|
43
|
+
readonly type: "string";
|
|
44
|
+
};
|
|
45
|
+
readonly default: {};
|
|
46
|
+
};
|
|
47
|
+
readonly send_message: {
|
|
48
|
+
readonly type: "object";
|
|
49
|
+
readonly additionalProperties: false;
|
|
50
|
+
readonly required: readonly ["submit_key"];
|
|
51
|
+
readonly properties: {
|
|
52
|
+
readonly submit_key: {
|
|
53
|
+
readonly type: "string";
|
|
54
|
+
readonly minLength: 1;
|
|
55
|
+
};
|
|
56
|
+
readonly delay_ms_before_submit: {
|
|
57
|
+
readonly type: "integer";
|
|
58
|
+
readonly minimum: 0;
|
|
59
|
+
};
|
|
60
|
+
readonly delay_ms_per_char: {
|
|
61
|
+
readonly type: "integer";
|
|
62
|
+
readonly minimum: 0;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
readonly layout: {
|
|
67
|
+
readonly type: "object";
|
|
68
|
+
readonly additionalProperties: false;
|
|
69
|
+
readonly required: readonly ["sections"];
|
|
70
|
+
readonly properties: {
|
|
71
|
+
readonly sections: {
|
|
72
|
+
readonly type: "array";
|
|
73
|
+
readonly minItems: 1;
|
|
74
|
+
readonly items: {
|
|
75
|
+
readonly $ref: "#/definitions/sectionV1";
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
readonly states: {
|
|
81
|
+
readonly type: "array";
|
|
82
|
+
readonly minItems: 1;
|
|
83
|
+
readonly items: {
|
|
84
|
+
readonly $ref: "#/definitions/stateV1";
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
readonly default_state: {
|
|
88
|
+
readonly type: "string";
|
|
89
|
+
readonly minLength: 1;
|
|
90
|
+
};
|
|
91
|
+
readonly control_bar: {
|
|
92
|
+
readonly type: "array";
|
|
93
|
+
readonly default: readonly [];
|
|
94
|
+
readonly items: {
|
|
95
|
+
readonly $ref: "#/definitions/control";
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
readonly notifications: {
|
|
99
|
+
readonly type: "array";
|
|
100
|
+
readonly default: readonly [];
|
|
101
|
+
readonly items: {
|
|
102
|
+
readonly $ref: "#/definitions/notification";
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
readonly delegate: {
|
|
106
|
+
readonly type: "array";
|
|
107
|
+
readonly default: readonly [];
|
|
108
|
+
readonly items: {
|
|
109
|
+
readonly $ref: "#/definitions/delegateTrigger";
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
readonly native_history: {
|
|
113
|
+
readonly $ref: "#/definitions/nativeHistory";
|
|
114
|
+
};
|
|
115
|
+
readonly cli_version_range: {
|
|
116
|
+
readonly type: "string";
|
|
117
|
+
readonly minLength: 1;
|
|
118
|
+
};
|
|
119
|
+
readonly requiresFinalAssistantBeforeIdle: {
|
|
120
|
+
readonly type: "boolean";
|
|
121
|
+
};
|
|
122
|
+
readonly debounce: {
|
|
123
|
+
readonly type: "object";
|
|
124
|
+
readonly additionalProperties: false;
|
|
125
|
+
readonly properties: {
|
|
126
|
+
readonly busy_hold_ms: {
|
|
127
|
+
readonly type: "integer";
|
|
128
|
+
readonly minimum: 0;
|
|
129
|
+
};
|
|
130
|
+
readonly idle_hold_ms: {
|
|
131
|
+
readonly type: "integer";
|
|
132
|
+
readonly minimum: 0;
|
|
133
|
+
};
|
|
134
|
+
readonly startup_grace_ms: {
|
|
135
|
+
readonly type: "integer";
|
|
136
|
+
readonly minimum: 0;
|
|
137
|
+
};
|
|
138
|
+
readonly completion_idle_after: {
|
|
139
|
+
readonly type: "object";
|
|
140
|
+
readonly additionalProperties: false;
|
|
141
|
+
readonly required: readonly ["regex", "hold_ms"];
|
|
142
|
+
readonly properties: {
|
|
143
|
+
readonly section: {
|
|
144
|
+
readonly type: "string";
|
|
145
|
+
readonly minLength: 1;
|
|
146
|
+
};
|
|
147
|
+
readonly regex: {
|
|
148
|
+
readonly type: "string";
|
|
149
|
+
readonly minLength: 1;
|
|
150
|
+
};
|
|
151
|
+
readonly flags: {
|
|
152
|
+
readonly type: "string";
|
|
153
|
+
};
|
|
154
|
+
readonly hold_ms: {
|
|
155
|
+
readonly type: "integer";
|
|
156
|
+
readonly minimum: 0;
|
|
157
|
+
};
|
|
158
|
+
readonly force_after_ms: {
|
|
159
|
+
readonly type: "integer";
|
|
160
|
+
readonly minimum: 0;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
readonly definitions: {
|
|
168
|
+
readonly size: {
|
|
169
|
+
readonly oneOf: readonly [{
|
|
170
|
+
readonly type: "integer";
|
|
171
|
+
readonly minimum: 0;
|
|
172
|
+
}, {
|
|
173
|
+
readonly type: "string";
|
|
174
|
+
readonly pattern: "^\\d+(\\.\\d+)?%$";
|
|
175
|
+
}];
|
|
176
|
+
};
|
|
177
|
+
readonly sectionV1: {
|
|
178
|
+
readonly type: "object";
|
|
179
|
+
readonly additionalProperties: false;
|
|
180
|
+
readonly required: readonly ["id"];
|
|
181
|
+
readonly properties: {
|
|
182
|
+
readonly id: {
|
|
183
|
+
readonly type: "string";
|
|
184
|
+
readonly minLength: 1;
|
|
185
|
+
readonly pattern: "^[a-z][a-z0-9_]*$";
|
|
186
|
+
};
|
|
187
|
+
readonly from_top: {
|
|
188
|
+
readonly $ref: "#/definitions/size";
|
|
189
|
+
};
|
|
190
|
+
readonly from_bottom: {
|
|
191
|
+
readonly $ref: "#/definitions/size";
|
|
192
|
+
};
|
|
193
|
+
readonly until: {
|
|
194
|
+
readonly type: "object";
|
|
195
|
+
readonly additionalProperties: false;
|
|
196
|
+
readonly required: readonly ["section"];
|
|
197
|
+
readonly properties: {
|
|
198
|
+
readonly section: {
|
|
199
|
+
readonly type: "string";
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
readonly anchor_regex: {
|
|
204
|
+
readonly type: "string";
|
|
205
|
+
readonly minLength: 1;
|
|
206
|
+
};
|
|
207
|
+
readonly anchor_flags: {
|
|
208
|
+
readonly type: "string";
|
|
209
|
+
};
|
|
210
|
+
readonly anchor_last: {
|
|
211
|
+
readonly type: "boolean";
|
|
212
|
+
};
|
|
213
|
+
readonly anchor_context: {
|
|
214
|
+
readonly type: "object";
|
|
215
|
+
readonly additionalProperties: false;
|
|
216
|
+
readonly properties: {
|
|
217
|
+
readonly prev: {
|
|
218
|
+
readonly type: "string";
|
|
219
|
+
};
|
|
220
|
+
readonly prev_flags: {
|
|
221
|
+
readonly type: "string";
|
|
222
|
+
};
|
|
223
|
+
readonly next: {
|
|
224
|
+
readonly type: "string";
|
|
225
|
+
};
|
|
226
|
+
readonly next_flags: {
|
|
227
|
+
readonly type: "string";
|
|
228
|
+
};
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
readonly lines: {
|
|
232
|
+
readonly type: "integer";
|
|
233
|
+
readonly minimum: 1;
|
|
234
|
+
};
|
|
235
|
+
readonly until_regex: {
|
|
236
|
+
readonly type: "string";
|
|
237
|
+
readonly minLength: 1;
|
|
238
|
+
};
|
|
239
|
+
readonly until_regex_flags: {
|
|
240
|
+
readonly type: "string";
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
readonly sectionRegex: {
|
|
245
|
+
readonly type: "object";
|
|
246
|
+
readonly additionalProperties: false;
|
|
247
|
+
readonly required: readonly ["regex"];
|
|
248
|
+
readonly properties: {
|
|
249
|
+
readonly section: {
|
|
250
|
+
readonly type: "string";
|
|
251
|
+
};
|
|
252
|
+
readonly regex: {
|
|
253
|
+
readonly type: "string";
|
|
254
|
+
readonly minLength: 1;
|
|
255
|
+
};
|
|
256
|
+
readonly flags: {
|
|
257
|
+
readonly type: "string";
|
|
258
|
+
readonly default: "i";
|
|
259
|
+
};
|
|
260
|
+
readonly cursor_row_min: {
|
|
261
|
+
readonly type: "integer";
|
|
262
|
+
readonly minimum: 0;
|
|
263
|
+
};
|
|
264
|
+
readonly cursor_row_max: {
|
|
265
|
+
readonly type: "integer";
|
|
266
|
+
readonly minimum: 0;
|
|
267
|
+
};
|
|
268
|
+
readonly cursor_col_min: {
|
|
269
|
+
readonly type: "integer";
|
|
270
|
+
readonly minimum: 0;
|
|
271
|
+
};
|
|
272
|
+
readonly cursor_col_max: {
|
|
273
|
+
readonly type: "integer";
|
|
274
|
+
readonly minimum: 0;
|
|
275
|
+
};
|
|
276
|
+
readonly cursor_above_lines: {
|
|
277
|
+
readonly type: "integer";
|
|
278
|
+
readonly minimum: 1;
|
|
279
|
+
};
|
|
280
|
+
readonly changed: {
|
|
281
|
+
readonly type: "boolean";
|
|
282
|
+
readonly const: true;
|
|
283
|
+
};
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
readonly sectionPattern: {
|
|
287
|
+
readonly type: "object";
|
|
288
|
+
readonly additionalProperties: false;
|
|
289
|
+
readonly required: readonly ["pattern"];
|
|
290
|
+
readonly properties: {
|
|
291
|
+
readonly section: {
|
|
292
|
+
readonly type: "string";
|
|
293
|
+
};
|
|
294
|
+
readonly pattern: {
|
|
295
|
+
readonly type: "string";
|
|
296
|
+
readonly minLength: 1;
|
|
297
|
+
};
|
|
298
|
+
readonly flags: {
|
|
299
|
+
readonly type: "string";
|
|
300
|
+
readonly default: "";
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
readonly stateV1: {
|
|
305
|
+
readonly type: "object";
|
|
306
|
+
readonly additionalProperties: false;
|
|
307
|
+
readonly required: readonly ["id", "label", "when"];
|
|
308
|
+
readonly properties: {
|
|
309
|
+
readonly id: {
|
|
310
|
+
readonly type: "string";
|
|
311
|
+
readonly minLength: 1;
|
|
312
|
+
readonly pattern: "^[a-z][a-z0-9_]*$";
|
|
313
|
+
};
|
|
314
|
+
readonly label: {
|
|
315
|
+
readonly type: "string";
|
|
316
|
+
readonly minLength: 1;
|
|
317
|
+
};
|
|
318
|
+
readonly when: {
|
|
319
|
+
readonly $ref: "#/definitions/sectionRegex";
|
|
320
|
+
};
|
|
321
|
+
readonly extract_title: {
|
|
322
|
+
readonly $ref: "#/definitions/sectionRegex";
|
|
323
|
+
};
|
|
324
|
+
readonly modal_buttons: {
|
|
325
|
+
readonly type: "object";
|
|
326
|
+
readonly additionalProperties: false;
|
|
327
|
+
readonly required: readonly ["key_for_index"];
|
|
328
|
+
readonly oneOf: readonly [{
|
|
329
|
+
readonly required: readonly ["pattern"];
|
|
330
|
+
}, {
|
|
331
|
+
readonly required: readonly ["patterns"];
|
|
332
|
+
}];
|
|
333
|
+
readonly properties: {
|
|
334
|
+
readonly section: {
|
|
335
|
+
readonly type: "string";
|
|
336
|
+
};
|
|
337
|
+
readonly pattern: {
|
|
338
|
+
readonly type: "string";
|
|
339
|
+
readonly minLength: 1;
|
|
340
|
+
};
|
|
341
|
+
readonly flags: {
|
|
342
|
+
readonly type: "string";
|
|
343
|
+
};
|
|
344
|
+
readonly patterns: {
|
|
345
|
+
readonly type: "array";
|
|
346
|
+
readonly minItems: 1;
|
|
347
|
+
readonly items: {
|
|
348
|
+
readonly type: "object";
|
|
349
|
+
readonly additionalProperties: false;
|
|
350
|
+
readonly required: readonly ["pattern"];
|
|
351
|
+
readonly properties: {
|
|
352
|
+
readonly pattern: {
|
|
353
|
+
readonly type: "string";
|
|
354
|
+
readonly minLength: 1;
|
|
355
|
+
};
|
|
356
|
+
readonly flags: {
|
|
357
|
+
readonly type: "string";
|
|
358
|
+
};
|
|
359
|
+
};
|
|
360
|
+
};
|
|
361
|
+
};
|
|
362
|
+
readonly key_for_index: {
|
|
363
|
+
readonly type: "string";
|
|
364
|
+
readonly minLength: 1;
|
|
365
|
+
};
|
|
366
|
+
readonly min_count: {
|
|
367
|
+
readonly type: "integer";
|
|
368
|
+
readonly minimum: 1;
|
|
369
|
+
readonly default: 2;
|
|
370
|
+
};
|
|
371
|
+
readonly continuation_lines: {
|
|
372
|
+
readonly type: "boolean";
|
|
373
|
+
readonly default: false;
|
|
374
|
+
};
|
|
375
|
+
};
|
|
376
|
+
};
|
|
377
|
+
};
|
|
378
|
+
};
|
|
379
|
+
readonly control: {
|
|
380
|
+
readonly type: "object";
|
|
381
|
+
readonly additionalProperties: false;
|
|
382
|
+
readonly required: readonly ["id", "label", "action"];
|
|
383
|
+
readonly properties: {
|
|
384
|
+
readonly id: {
|
|
385
|
+
readonly type: "string";
|
|
386
|
+
readonly minLength: 1;
|
|
387
|
+
readonly pattern: "^[a-z][a-z0-9_]*$";
|
|
388
|
+
};
|
|
389
|
+
readonly label: {
|
|
390
|
+
readonly type: "string";
|
|
391
|
+
readonly minLength: 1;
|
|
392
|
+
};
|
|
393
|
+
readonly visible_when_state: {
|
|
394
|
+
readonly type: "array";
|
|
395
|
+
readonly items: {
|
|
396
|
+
readonly type: "string";
|
|
397
|
+
};
|
|
398
|
+
};
|
|
399
|
+
readonly action: {
|
|
400
|
+
readonly $ref: "#/definitions/controlAction";
|
|
401
|
+
};
|
|
402
|
+
};
|
|
403
|
+
};
|
|
404
|
+
readonly controlAction: {
|
|
405
|
+
readonly oneOf: readonly [{
|
|
406
|
+
readonly type: "object";
|
|
407
|
+
readonly additionalProperties: false;
|
|
408
|
+
readonly required: readonly ["type", "keys"];
|
|
409
|
+
readonly properties: {
|
|
410
|
+
readonly type: {
|
|
411
|
+
readonly const: "send_keys";
|
|
412
|
+
};
|
|
413
|
+
readonly keys: {
|
|
414
|
+
readonly type: "string";
|
|
415
|
+
readonly minLength: 1;
|
|
416
|
+
};
|
|
417
|
+
};
|
|
418
|
+
}, {
|
|
419
|
+
readonly type: "object";
|
|
420
|
+
readonly additionalProperties: false;
|
|
421
|
+
readonly required: readonly ["type", "trigger_keys", "wait_for", "extract_choices", "submit_key"];
|
|
422
|
+
readonly properties: {
|
|
423
|
+
readonly type: {
|
|
424
|
+
readonly const: "open_picker";
|
|
425
|
+
};
|
|
426
|
+
readonly trigger_keys: {
|
|
427
|
+
readonly type: "string";
|
|
428
|
+
readonly minLength: 1;
|
|
429
|
+
};
|
|
430
|
+
readonly wait_for: {
|
|
431
|
+
readonly $ref: "#/definitions/sectionRegex";
|
|
432
|
+
};
|
|
433
|
+
readonly extract_choices: {
|
|
434
|
+
readonly $ref: "#/definitions/sectionPattern";
|
|
435
|
+
};
|
|
436
|
+
readonly submit_key: {
|
|
437
|
+
readonly type: "string";
|
|
438
|
+
readonly minLength: 1;
|
|
439
|
+
};
|
|
440
|
+
};
|
|
441
|
+
}, {
|
|
442
|
+
readonly type: "object";
|
|
443
|
+
readonly additionalProperties: false;
|
|
444
|
+
readonly required: readonly ["type", "method", "keys_template"];
|
|
445
|
+
readonly properties: {
|
|
446
|
+
readonly type: {
|
|
447
|
+
readonly const: "attach_image";
|
|
448
|
+
};
|
|
449
|
+
readonly method: {
|
|
450
|
+
readonly const: "tempfile_then_keys";
|
|
451
|
+
};
|
|
452
|
+
readonly keys_template: {
|
|
453
|
+
readonly type: "string";
|
|
454
|
+
readonly minLength: 1;
|
|
455
|
+
};
|
|
456
|
+
};
|
|
457
|
+
}];
|
|
458
|
+
};
|
|
459
|
+
readonly notification: {
|
|
460
|
+
readonly type: "object";
|
|
461
|
+
readonly additionalProperties: false;
|
|
462
|
+
readonly required: readonly ["id", "when_state", "title"];
|
|
463
|
+
readonly properties: {
|
|
464
|
+
readonly id: {
|
|
465
|
+
readonly type: "string";
|
|
466
|
+
readonly minLength: 1;
|
|
467
|
+
readonly pattern: "^[a-z][a-z0-9_]*$";
|
|
468
|
+
};
|
|
469
|
+
readonly when_state: {
|
|
470
|
+
readonly type: "string";
|
|
471
|
+
readonly minLength: 1;
|
|
472
|
+
};
|
|
473
|
+
readonly title: {
|
|
474
|
+
readonly type: "string";
|
|
475
|
+
readonly minLength: 1;
|
|
476
|
+
};
|
|
477
|
+
readonly body: {
|
|
478
|
+
readonly type: "string";
|
|
479
|
+
};
|
|
480
|
+
};
|
|
481
|
+
};
|
|
482
|
+
readonly nativeHistory: {
|
|
483
|
+
readonly type: "object";
|
|
484
|
+
readonly additionalProperties: false;
|
|
485
|
+
readonly properties: {
|
|
486
|
+
readonly reader: {
|
|
487
|
+
readonly type: "string";
|
|
488
|
+
readonly enum: readonly ["claude-cli", "codex-cli", "antigravity-cli", "hermes-cli"];
|
|
489
|
+
};
|
|
490
|
+
readonly source: {
|
|
491
|
+
readonly oneOf: readonly [{
|
|
492
|
+
readonly $ref: "#/definitions/nativeHistoryJsonlSource";
|
|
493
|
+
}, {
|
|
494
|
+
readonly $ref: "#/definitions/nativeHistorySqliteSource";
|
|
495
|
+
}];
|
|
496
|
+
};
|
|
497
|
+
readonly override_path: {
|
|
498
|
+
readonly type: "string";
|
|
499
|
+
readonly minLength: 1;
|
|
500
|
+
};
|
|
501
|
+
};
|
|
502
|
+
};
|
|
503
|
+
readonly nativeHistoryMessageMap: {
|
|
504
|
+
readonly type: "object";
|
|
505
|
+
readonly additionalProperties: false;
|
|
506
|
+
readonly required: readonly ["role", "content"];
|
|
507
|
+
readonly properties: {
|
|
508
|
+
readonly role: {
|
|
509
|
+
readonly type: "string";
|
|
510
|
+
readonly minLength: 1;
|
|
511
|
+
};
|
|
512
|
+
readonly content: {
|
|
513
|
+
readonly type: "string";
|
|
514
|
+
readonly minLength: 1;
|
|
515
|
+
};
|
|
516
|
+
readonly content_strip: {
|
|
517
|
+
readonly type: "array";
|
|
518
|
+
readonly items: {
|
|
519
|
+
readonly type: "string";
|
|
520
|
+
readonly minLength: 1;
|
|
521
|
+
};
|
|
522
|
+
};
|
|
523
|
+
readonly content_unwrap: {
|
|
524
|
+
readonly type: "array";
|
|
525
|
+
readonly items: {
|
|
526
|
+
readonly type: "string";
|
|
527
|
+
readonly minLength: 1;
|
|
528
|
+
};
|
|
529
|
+
};
|
|
530
|
+
readonly timestamp_ms: {
|
|
531
|
+
readonly type: "string";
|
|
532
|
+
readonly minLength: 1;
|
|
533
|
+
};
|
|
534
|
+
readonly kind: {
|
|
535
|
+
readonly type: "string";
|
|
536
|
+
readonly minLength: 1;
|
|
537
|
+
};
|
|
538
|
+
};
|
|
539
|
+
};
|
|
540
|
+
readonly nativeHistoryJsonlSource: {
|
|
541
|
+
readonly type: "object";
|
|
542
|
+
readonly additionalProperties: false;
|
|
543
|
+
readonly required: readonly ["kind", "path", "message_map"];
|
|
544
|
+
readonly properties: {
|
|
545
|
+
readonly kind: {
|
|
546
|
+
readonly const: "jsonl";
|
|
547
|
+
};
|
|
548
|
+
readonly path: {
|
|
549
|
+
readonly type: "string";
|
|
550
|
+
readonly minLength: 1;
|
|
551
|
+
};
|
|
552
|
+
readonly file_pattern: {
|
|
553
|
+
readonly type: "string";
|
|
554
|
+
readonly minLength: 1;
|
|
555
|
+
};
|
|
556
|
+
readonly recent_window_ms: {
|
|
557
|
+
readonly type: "integer";
|
|
558
|
+
readonly minimum: 0;
|
|
559
|
+
};
|
|
560
|
+
readonly session_id_from: {
|
|
561
|
+
readonly type: "string";
|
|
562
|
+
readonly enum: readonly ["filename_uuid", "first_record"];
|
|
563
|
+
};
|
|
564
|
+
readonly session_id_path: {
|
|
565
|
+
readonly type: "string";
|
|
566
|
+
readonly minLength: 1;
|
|
567
|
+
};
|
|
568
|
+
readonly message_filter: {
|
|
569
|
+
readonly type: "object";
|
|
570
|
+
readonly additionalProperties: false;
|
|
571
|
+
readonly required: readonly ["where"];
|
|
572
|
+
readonly properties: {
|
|
573
|
+
readonly where: {
|
|
574
|
+
readonly type: "string";
|
|
575
|
+
readonly minLength: 1;
|
|
576
|
+
};
|
|
577
|
+
};
|
|
578
|
+
};
|
|
579
|
+
readonly message_map: {
|
|
580
|
+
readonly $ref: "#/definitions/nativeHistoryMessageMap";
|
|
581
|
+
};
|
|
582
|
+
};
|
|
583
|
+
};
|
|
584
|
+
readonly nativeHistorySqliteSource: {
|
|
585
|
+
readonly type: "object";
|
|
586
|
+
readonly additionalProperties: false;
|
|
587
|
+
readonly required: readonly ["kind", "path", "session_query", "message_query", "message_map"];
|
|
588
|
+
readonly properties: {
|
|
589
|
+
readonly kind: {
|
|
590
|
+
readonly const: "sqlite";
|
|
591
|
+
};
|
|
592
|
+
readonly path: {
|
|
593
|
+
readonly type: "string";
|
|
594
|
+
readonly minLength: 1;
|
|
595
|
+
};
|
|
596
|
+
readonly session_query: {
|
|
597
|
+
readonly type: "string";
|
|
598
|
+
readonly minLength: 1;
|
|
599
|
+
};
|
|
600
|
+
readonly message_query: {
|
|
601
|
+
readonly type: "string";
|
|
602
|
+
readonly minLength: 1;
|
|
603
|
+
};
|
|
604
|
+
readonly message_map: {
|
|
605
|
+
readonly $ref: "#/definitions/nativeHistoryMessageMap";
|
|
606
|
+
};
|
|
607
|
+
};
|
|
608
|
+
};
|
|
609
|
+
readonly delegateTrigger: {
|
|
610
|
+
readonly type: "object";
|
|
611
|
+
readonly additionalProperties: false;
|
|
612
|
+
readonly required: readonly ["id", "when_state", "task_template"];
|
|
613
|
+
readonly properties: {
|
|
614
|
+
readonly id: {
|
|
615
|
+
readonly type: "string";
|
|
616
|
+
readonly minLength: 1;
|
|
617
|
+
readonly pattern: "^[a-z][a-z0-9_]*$";
|
|
618
|
+
};
|
|
619
|
+
readonly when_state: {
|
|
620
|
+
readonly type: "string";
|
|
621
|
+
readonly minLength: 1;
|
|
622
|
+
};
|
|
623
|
+
readonly after_duration_ms: {
|
|
624
|
+
readonly type: "integer";
|
|
625
|
+
readonly minimum: 0;
|
|
626
|
+
};
|
|
627
|
+
readonly task_template: {
|
|
628
|
+
readonly type: "string";
|
|
629
|
+
readonly minLength: 1;
|
|
630
|
+
};
|
|
631
|
+
};
|
|
632
|
+
};
|
|
633
|
+
};
|
|
634
|
+
};
|
|
635
|
+
export declare const SCHEMA_V3: {
|
|
636
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
637
|
+
readonly $id: "adhdev:cli/spec@3";
|
|
638
|
+
readonly title: "ADHDev CLI provider spec v3";
|
|
639
|
+
readonly type: "object";
|
|
640
|
+
readonly additionalProperties: false;
|
|
641
|
+
readonly required: readonly ["$schema", "id", "name", "binary", "send_message", "sections", "states", "default_state"];
|
|
642
|
+
readonly properties: {
|
|
643
|
+
readonly $schema: {
|
|
644
|
+
readonly type: "string";
|
|
645
|
+
readonly const: "adhdev:cli/spec@3";
|
|
646
|
+
};
|
|
647
|
+
readonly id: {
|
|
648
|
+
readonly type: "string";
|
|
649
|
+
readonly minLength: 1;
|
|
650
|
+
readonly pattern: "^[a-z][a-z0-9-]*$";
|
|
651
|
+
};
|
|
652
|
+
readonly name: {
|
|
653
|
+
readonly type: "string";
|
|
654
|
+
readonly minLength: 1;
|
|
655
|
+
};
|
|
656
|
+
readonly binary: {
|
|
657
|
+
readonly type: "string";
|
|
658
|
+
readonly minLength: 1;
|
|
659
|
+
};
|
|
660
|
+
readonly spawn_args: {
|
|
661
|
+
readonly type: "array";
|
|
662
|
+
readonly items: {
|
|
663
|
+
readonly type: "string";
|
|
664
|
+
};
|
|
665
|
+
readonly default: readonly [];
|
|
666
|
+
};
|
|
667
|
+
readonly env: {
|
|
668
|
+
readonly type: "object";
|
|
669
|
+
readonly additionalProperties: {
|
|
670
|
+
readonly type: "string";
|
|
671
|
+
};
|
|
672
|
+
readonly default: {};
|
|
673
|
+
};
|
|
674
|
+
readonly cli_version_range: {
|
|
675
|
+
readonly type: "string";
|
|
676
|
+
readonly minLength: 1;
|
|
677
|
+
};
|
|
678
|
+
readonly send_message: {
|
|
679
|
+
readonly type: "object";
|
|
680
|
+
readonly additionalProperties: false;
|
|
681
|
+
readonly required: readonly ["submit_key"];
|
|
682
|
+
readonly properties: {
|
|
683
|
+
readonly submit_key: {
|
|
684
|
+
readonly type: "string";
|
|
685
|
+
readonly minLength: 1;
|
|
686
|
+
};
|
|
687
|
+
readonly delay_ms_before_submit: {
|
|
688
|
+
readonly type: "integer";
|
|
689
|
+
readonly minimum: 0;
|
|
690
|
+
};
|
|
691
|
+
readonly delay_ms_per_char: {
|
|
692
|
+
readonly type: "integer";
|
|
693
|
+
readonly minimum: 0;
|
|
694
|
+
};
|
|
695
|
+
};
|
|
696
|
+
};
|
|
697
|
+
readonly sections: {
|
|
698
|
+
readonly type: "object";
|
|
699
|
+
readonly minProperties: 1;
|
|
700
|
+
readonly additionalProperties: {
|
|
701
|
+
readonly $ref: "#/definitions/sectionDef";
|
|
702
|
+
};
|
|
703
|
+
};
|
|
704
|
+
readonly states: {
|
|
705
|
+
readonly type: "array";
|
|
706
|
+
readonly minItems: 1;
|
|
707
|
+
readonly items: {
|
|
708
|
+
readonly $ref: "#/definitions/stateV3";
|
|
709
|
+
};
|
|
710
|
+
};
|
|
711
|
+
readonly default_state: {
|
|
712
|
+
readonly type: "string";
|
|
713
|
+
readonly minLength: 1;
|
|
714
|
+
};
|
|
715
|
+
readonly control_bar: {
|
|
716
|
+
readonly type: "array";
|
|
717
|
+
readonly default: readonly [];
|
|
718
|
+
readonly items: {
|
|
719
|
+
readonly $ref: "#/definitions/control";
|
|
720
|
+
};
|
|
721
|
+
};
|
|
722
|
+
readonly notifications: {
|
|
723
|
+
readonly type: "array";
|
|
724
|
+
readonly default: readonly [];
|
|
725
|
+
readonly items: {
|
|
726
|
+
readonly $ref: "#/definitions/notification";
|
|
727
|
+
};
|
|
728
|
+
};
|
|
729
|
+
readonly delegate: {
|
|
730
|
+
readonly type: "array";
|
|
731
|
+
readonly default: readonly [];
|
|
732
|
+
readonly items: {
|
|
733
|
+
readonly $ref: "#/definitions/delegateTrigger";
|
|
734
|
+
};
|
|
735
|
+
};
|
|
736
|
+
readonly native_history: {
|
|
737
|
+
readonly $ref: "#/definitions/nativeHistory";
|
|
738
|
+
};
|
|
739
|
+
readonly requiresFinalAssistantBeforeIdle: {
|
|
740
|
+
readonly type: "boolean";
|
|
741
|
+
};
|
|
742
|
+
readonly timing: {
|
|
743
|
+
readonly type: "object";
|
|
744
|
+
readonly additionalProperties: false;
|
|
745
|
+
readonly properties: {
|
|
746
|
+
readonly busy_hold_ms: {
|
|
747
|
+
readonly type: "integer";
|
|
748
|
+
readonly minimum: 0;
|
|
749
|
+
};
|
|
750
|
+
readonly idle_hold_ms: {
|
|
751
|
+
readonly type: "integer";
|
|
752
|
+
readonly minimum: 0;
|
|
753
|
+
};
|
|
754
|
+
readonly startup_grace_ms: {
|
|
755
|
+
readonly type: "integer";
|
|
756
|
+
readonly minimum: 0;
|
|
757
|
+
};
|
|
758
|
+
readonly completion_marker: {
|
|
759
|
+
readonly type: "object";
|
|
760
|
+
readonly additionalProperties: false;
|
|
761
|
+
readonly required: readonly ["matches", "hold_ms"];
|
|
762
|
+
readonly properties: {
|
|
763
|
+
readonly section: {
|
|
764
|
+
readonly type: "string";
|
|
765
|
+
readonly minLength: 1;
|
|
766
|
+
};
|
|
767
|
+
readonly matches: {
|
|
768
|
+
readonly type: "string";
|
|
769
|
+
readonly minLength: 1;
|
|
770
|
+
};
|
|
771
|
+
readonly flags: {
|
|
772
|
+
readonly type: "string";
|
|
773
|
+
};
|
|
774
|
+
readonly hold_ms: {
|
|
775
|
+
readonly type: "integer";
|
|
776
|
+
readonly minimum: 0;
|
|
777
|
+
};
|
|
778
|
+
readonly force_after_ms: {
|
|
779
|
+
readonly type: "integer";
|
|
780
|
+
readonly minimum: 0;
|
|
781
|
+
};
|
|
782
|
+
};
|
|
783
|
+
};
|
|
784
|
+
};
|
|
785
|
+
};
|
|
786
|
+
};
|
|
787
|
+
readonly definitions: {
|
|
788
|
+
readonly size: {
|
|
789
|
+
readonly oneOf: readonly [{
|
|
790
|
+
readonly type: "integer";
|
|
791
|
+
readonly minimum: 0;
|
|
792
|
+
}, {
|
|
793
|
+
readonly type: "string";
|
|
794
|
+
readonly pattern: "^\\d+(\\.\\d+)?%$";
|
|
795
|
+
}];
|
|
796
|
+
};
|
|
797
|
+
readonly sectionDef: {
|
|
798
|
+
readonly type: "object";
|
|
799
|
+
readonly additionalProperties: false;
|
|
800
|
+
readonly properties: {
|
|
801
|
+
readonly from_top: {
|
|
802
|
+
readonly $ref: "#/definitions/size";
|
|
803
|
+
};
|
|
804
|
+
readonly from_bottom: {
|
|
805
|
+
readonly $ref: "#/definitions/size";
|
|
806
|
+
};
|
|
807
|
+
readonly until: {
|
|
808
|
+
readonly type: "string";
|
|
809
|
+
readonly minLength: 1;
|
|
810
|
+
};
|
|
811
|
+
readonly anchor: {
|
|
812
|
+
readonly type: "string";
|
|
813
|
+
readonly minLength: 1;
|
|
814
|
+
};
|
|
815
|
+
readonly anchor_flags: {
|
|
816
|
+
readonly type: "string";
|
|
817
|
+
};
|
|
818
|
+
readonly anchor_last: {
|
|
819
|
+
readonly type: "boolean";
|
|
820
|
+
};
|
|
821
|
+
readonly anchor_context: {
|
|
822
|
+
readonly type: "object";
|
|
823
|
+
readonly additionalProperties: false;
|
|
824
|
+
readonly properties: {
|
|
825
|
+
readonly prev: {
|
|
826
|
+
readonly type: "string";
|
|
827
|
+
};
|
|
828
|
+
readonly prev_flags: {
|
|
829
|
+
readonly type: "string";
|
|
830
|
+
};
|
|
831
|
+
readonly next: {
|
|
832
|
+
readonly type: "string";
|
|
833
|
+
};
|
|
834
|
+
readonly next_flags: {
|
|
835
|
+
readonly type: "string";
|
|
836
|
+
};
|
|
837
|
+
};
|
|
838
|
+
};
|
|
839
|
+
readonly lines: {
|
|
840
|
+
readonly type: "integer";
|
|
841
|
+
readonly minimum: 1;
|
|
842
|
+
};
|
|
843
|
+
readonly until_regex: {
|
|
844
|
+
readonly type: "string";
|
|
845
|
+
readonly minLength: 1;
|
|
846
|
+
};
|
|
847
|
+
readonly until_regex_flags: {
|
|
848
|
+
readonly type: "string";
|
|
849
|
+
};
|
|
850
|
+
};
|
|
851
|
+
};
|
|
852
|
+
readonly condition: {
|
|
853
|
+
readonly oneOf: readonly [{
|
|
854
|
+
readonly $ref: "#/definitions/regexCondition";
|
|
855
|
+
}, {
|
|
856
|
+
readonly $ref: "#/definitions/changedCondition";
|
|
857
|
+
}, {
|
|
858
|
+
readonly $ref: "#/definitions/allCondition";
|
|
859
|
+
}, {
|
|
860
|
+
readonly $ref: "#/definitions/anyCondition";
|
|
861
|
+
}];
|
|
862
|
+
};
|
|
863
|
+
readonly regexCondition: {
|
|
864
|
+
readonly type: "object";
|
|
865
|
+
readonly additionalProperties: false;
|
|
866
|
+
readonly required: readonly ["matches"];
|
|
867
|
+
readonly properties: {
|
|
868
|
+
readonly section: {
|
|
869
|
+
readonly type: "string";
|
|
870
|
+
};
|
|
871
|
+
readonly matches: {
|
|
872
|
+
readonly type: "string";
|
|
873
|
+
readonly minLength: 1;
|
|
874
|
+
};
|
|
875
|
+
readonly flags: {
|
|
876
|
+
readonly type: "string";
|
|
877
|
+
};
|
|
878
|
+
readonly cursor_row_min: {
|
|
879
|
+
readonly type: "integer";
|
|
880
|
+
readonly minimum: 0;
|
|
881
|
+
};
|
|
882
|
+
readonly cursor_row_max: {
|
|
883
|
+
readonly type: "integer";
|
|
884
|
+
readonly minimum: 0;
|
|
885
|
+
};
|
|
886
|
+
readonly cursor_col_min: {
|
|
887
|
+
readonly type: "integer";
|
|
888
|
+
readonly minimum: 0;
|
|
889
|
+
};
|
|
890
|
+
readonly cursor_col_max: {
|
|
891
|
+
readonly type: "integer";
|
|
892
|
+
readonly minimum: 0;
|
|
893
|
+
};
|
|
894
|
+
};
|
|
895
|
+
};
|
|
896
|
+
readonly changedCondition: {
|
|
897
|
+
readonly type: "object";
|
|
898
|
+
readonly additionalProperties: false;
|
|
899
|
+
readonly required: readonly ["cursor_above", "changed"];
|
|
900
|
+
readonly properties: {
|
|
901
|
+
readonly cursor_above: {
|
|
902
|
+
readonly type: "integer";
|
|
903
|
+
readonly minimum: 1;
|
|
904
|
+
};
|
|
905
|
+
readonly changed: {
|
|
906
|
+
readonly type: "boolean";
|
|
907
|
+
readonly const: true;
|
|
908
|
+
};
|
|
909
|
+
};
|
|
910
|
+
};
|
|
911
|
+
readonly allCondition: {
|
|
912
|
+
readonly type: "object";
|
|
913
|
+
readonly additionalProperties: false;
|
|
914
|
+
readonly required: readonly ["all"];
|
|
915
|
+
readonly properties: {
|
|
916
|
+
readonly all: {
|
|
917
|
+
readonly type: "array";
|
|
918
|
+
readonly items: {
|
|
919
|
+
readonly $ref: "#/definitions/condition";
|
|
920
|
+
};
|
|
921
|
+
};
|
|
922
|
+
};
|
|
923
|
+
};
|
|
924
|
+
readonly anyCondition: {
|
|
925
|
+
readonly type: "object";
|
|
926
|
+
readonly additionalProperties: false;
|
|
927
|
+
readonly required: readonly ["any"];
|
|
928
|
+
readonly properties: {
|
|
929
|
+
readonly any: {
|
|
930
|
+
readonly type: "array";
|
|
931
|
+
readonly items: {
|
|
932
|
+
readonly $ref: "#/definitions/condition";
|
|
933
|
+
};
|
|
934
|
+
};
|
|
935
|
+
};
|
|
936
|
+
};
|
|
937
|
+
readonly extractTitle: {
|
|
938
|
+
readonly type: "object";
|
|
939
|
+
readonly additionalProperties: false;
|
|
940
|
+
readonly properties: {
|
|
941
|
+
readonly section: {
|
|
942
|
+
readonly type: "string";
|
|
943
|
+
};
|
|
944
|
+
readonly regex: {
|
|
945
|
+
readonly type: "string";
|
|
946
|
+
readonly minLength: 1;
|
|
947
|
+
};
|
|
948
|
+
readonly flags: {
|
|
949
|
+
readonly type: "string";
|
|
950
|
+
};
|
|
951
|
+
readonly first_line: {
|
|
952
|
+
readonly type: "boolean";
|
|
953
|
+
readonly const: true;
|
|
954
|
+
};
|
|
955
|
+
};
|
|
956
|
+
};
|
|
957
|
+
readonly extractButtons: {
|
|
958
|
+
readonly type: "object";
|
|
959
|
+
readonly additionalProperties: false;
|
|
960
|
+
readonly required: readonly ["pattern", "key_for_index"];
|
|
961
|
+
readonly properties: {
|
|
962
|
+
readonly section: {
|
|
963
|
+
readonly type: "string";
|
|
964
|
+
};
|
|
965
|
+
readonly pattern: {
|
|
966
|
+
readonly type: "string";
|
|
967
|
+
readonly minLength: 1;
|
|
968
|
+
};
|
|
969
|
+
readonly flags: {
|
|
970
|
+
readonly type: "string";
|
|
971
|
+
};
|
|
972
|
+
readonly key_for_index: {
|
|
973
|
+
readonly type: "string";
|
|
974
|
+
readonly minLength: 1;
|
|
975
|
+
};
|
|
976
|
+
readonly min_count: {
|
|
977
|
+
readonly type: "integer";
|
|
978
|
+
readonly minimum: 1;
|
|
979
|
+
readonly default: 2;
|
|
980
|
+
};
|
|
981
|
+
readonly continuation_lines: {
|
|
982
|
+
readonly type: "boolean";
|
|
983
|
+
readonly default: false;
|
|
984
|
+
};
|
|
985
|
+
};
|
|
986
|
+
};
|
|
987
|
+
readonly stateV3: {
|
|
988
|
+
readonly type: "object";
|
|
989
|
+
readonly additionalProperties: false;
|
|
990
|
+
readonly required: readonly ["id", "label", "when"];
|
|
991
|
+
readonly properties: {
|
|
992
|
+
readonly id: {
|
|
993
|
+
readonly type: "string";
|
|
994
|
+
readonly minLength: 1;
|
|
995
|
+
readonly pattern: "^[a-z][a-z0-9_]*$";
|
|
996
|
+
};
|
|
997
|
+
readonly label: {
|
|
998
|
+
readonly type: "string";
|
|
999
|
+
readonly minLength: 1;
|
|
1000
|
+
};
|
|
1001
|
+
readonly when: {
|
|
1002
|
+
readonly oneOf: readonly [{
|
|
1003
|
+
readonly $ref: "#/definitions/allCondition";
|
|
1004
|
+
}, {
|
|
1005
|
+
readonly $ref: "#/definitions/anyCondition";
|
|
1006
|
+
}];
|
|
1007
|
+
};
|
|
1008
|
+
readonly extract: {
|
|
1009
|
+
readonly type: "object";
|
|
1010
|
+
readonly additionalProperties: false;
|
|
1011
|
+
readonly properties: {
|
|
1012
|
+
readonly title: {
|
|
1013
|
+
readonly $ref: "#/definitions/extractTitle";
|
|
1014
|
+
};
|
|
1015
|
+
readonly buttons: {
|
|
1016
|
+
readonly $ref: "#/definitions/extractButtons";
|
|
1017
|
+
};
|
|
1018
|
+
};
|
|
1019
|
+
};
|
|
1020
|
+
};
|
|
1021
|
+
};
|
|
1022
|
+
readonly sectionRegex: {
|
|
1023
|
+
readonly type: "object";
|
|
1024
|
+
readonly additionalProperties: false;
|
|
1025
|
+
readonly required: readonly ["regex"];
|
|
1026
|
+
readonly properties: {
|
|
1027
|
+
readonly section: {
|
|
1028
|
+
readonly type: "string";
|
|
1029
|
+
};
|
|
1030
|
+
readonly regex: {
|
|
1031
|
+
readonly type: "string";
|
|
1032
|
+
readonly minLength: 1;
|
|
1033
|
+
};
|
|
1034
|
+
readonly flags: {
|
|
1035
|
+
readonly type: "string";
|
|
1036
|
+
readonly default: "i";
|
|
1037
|
+
};
|
|
1038
|
+
readonly cursor_row_min: {
|
|
1039
|
+
readonly type: "integer";
|
|
1040
|
+
readonly minimum: 0;
|
|
1041
|
+
};
|
|
1042
|
+
readonly cursor_row_max: {
|
|
1043
|
+
readonly type: "integer";
|
|
1044
|
+
readonly minimum: 0;
|
|
1045
|
+
};
|
|
1046
|
+
readonly cursor_col_min: {
|
|
1047
|
+
readonly type: "integer";
|
|
1048
|
+
readonly minimum: 0;
|
|
1049
|
+
};
|
|
1050
|
+
readonly cursor_col_max: {
|
|
1051
|
+
readonly type: "integer";
|
|
1052
|
+
readonly minimum: 0;
|
|
1053
|
+
};
|
|
1054
|
+
};
|
|
1055
|
+
};
|
|
1056
|
+
readonly sectionPattern: {
|
|
1057
|
+
readonly type: "object";
|
|
1058
|
+
readonly additionalProperties: false;
|
|
1059
|
+
readonly required: readonly ["pattern"];
|
|
1060
|
+
readonly properties: {
|
|
1061
|
+
readonly section: {
|
|
1062
|
+
readonly type: "string";
|
|
1063
|
+
};
|
|
1064
|
+
readonly pattern: {
|
|
1065
|
+
readonly type: "string";
|
|
1066
|
+
readonly minLength: 1;
|
|
1067
|
+
};
|
|
1068
|
+
readonly flags: {
|
|
1069
|
+
readonly type: "string";
|
|
1070
|
+
readonly default: "";
|
|
1071
|
+
};
|
|
1072
|
+
};
|
|
1073
|
+
};
|
|
1074
|
+
readonly control: {
|
|
1075
|
+
readonly type: "object";
|
|
1076
|
+
readonly additionalProperties: false;
|
|
1077
|
+
readonly required: readonly ["id", "label", "action"];
|
|
1078
|
+
readonly properties: {
|
|
1079
|
+
readonly id: {
|
|
1080
|
+
readonly type: "string";
|
|
1081
|
+
readonly minLength: 1;
|
|
1082
|
+
readonly pattern: "^[a-z][a-z0-9_]*$";
|
|
1083
|
+
};
|
|
1084
|
+
readonly label: {
|
|
1085
|
+
readonly type: "string";
|
|
1086
|
+
readonly minLength: 1;
|
|
1087
|
+
};
|
|
1088
|
+
readonly visible_when_state: {
|
|
1089
|
+
readonly type: "array";
|
|
1090
|
+
readonly items: {
|
|
1091
|
+
readonly type: "string";
|
|
1092
|
+
};
|
|
1093
|
+
};
|
|
1094
|
+
readonly action: {
|
|
1095
|
+
readonly $ref: "#/definitions/controlAction";
|
|
1096
|
+
};
|
|
1097
|
+
};
|
|
1098
|
+
};
|
|
1099
|
+
readonly controlAction: {
|
|
1100
|
+
readonly oneOf: readonly [{
|
|
1101
|
+
readonly type: "object";
|
|
1102
|
+
readonly additionalProperties: false;
|
|
1103
|
+
readonly required: readonly ["type", "keys"];
|
|
1104
|
+
readonly properties: {
|
|
1105
|
+
readonly type: {
|
|
1106
|
+
readonly const: "send_keys";
|
|
1107
|
+
};
|
|
1108
|
+
readonly keys: {
|
|
1109
|
+
readonly type: "string";
|
|
1110
|
+
readonly minLength: 1;
|
|
1111
|
+
};
|
|
1112
|
+
};
|
|
1113
|
+
}, {
|
|
1114
|
+
readonly type: "object";
|
|
1115
|
+
readonly additionalProperties: false;
|
|
1116
|
+
readonly required: readonly ["type", "trigger_keys", "wait_for", "extract_choices", "submit_key"];
|
|
1117
|
+
readonly properties: {
|
|
1118
|
+
readonly type: {
|
|
1119
|
+
readonly const: "open_picker";
|
|
1120
|
+
};
|
|
1121
|
+
readonly trigger_keys: {
|
|
1122
|
+
readonly type: "string";
|
|
1123
|
+
readonly minLength: 1;
|
|
1124
|
+
};
|
|
1125
|
+
readonly wait_for: {
|
|
1126
|
+
readonly $ref: "#/definitions/sectionRegex";
|
|
1127
|
+
};
|
|
1128
|
+
readonly extract_choices: {
|
|
1129
|
+
readonly $ref: "#/definitions/sectionPattern";
|
|
1130
|
+
};
|
|
1131
|
+
readonly submit_key: {
|
|
1132
|
+
readonly type: "string";
|
|
1133
|
+
readonly minLength: 1;
|
|
1134
|
+
};
|
|
1135
|
+
};
|
|
1136
|
+
}, {
|
|
1137
|
+
readonly type: "object";
|
|
1138
|
+
readonly additionalProperties: false;
|
|
1139
|
+
readonly required: readonly ["type", "method", "keys_template"];
|
|
1140
|
+
readonly properties: {
|
|
1141
|
+
readonly type: {
|
|
1142
|
+
readonly const: "attach_image";
|
|
1143
|
+
};
|
|
1144
|
+
readonly method: {
|
|
1145
|
+
readonly const: "tempfile_then_keys";
|
|
1146
|
+
};
|
|
1147
|
+
readonly keys_template: {
|
|
1148
|
+
readonly type: "string";
|
|
1149
|
+
readonly minLength: 1;
|
|
1150
|
+
};
|
|
1151
|
+
};
|
|
1152
|
+
}];
|
|
1153
|
+
};
|
|
1154
|
+
readonly notification: {
|
|
1155
|
+
readonly type: "object";
|
|
1156
|
+
readonly additionalProperties: false;
|
|
1157
|
+
readonly required: readonly ["id", "when_state", "title"];
|
|
1158
|
+
readonly properties: {
|
|
1159
|
+
readonly id: {
|
|
1160
|
+
readonly type: "string";
|
|
1161
|
+
readonly minLength: 1;
|
|
1162
|
+
readonly pattern: "^[a-z][a-z0-9_]*$";
|
|
1163
|
+
};
|
|
1164
|
+
readonly when_state: {
|
|
1165
|
+
readonly type: "string";
|
|
1166
|
+
readonly minLength: 1;
|
|
1167
|
+
};
|
|
1168
|
+
readonly title: {
|
|
1169
|
+
readonly type: "string";
|
|
1170
|
+
readonly minLength: 1;
|
|
1171
|
+
};
|
|
1172
|
+
readonly body: {
|
|
1173
|
+
readonly type: "string";
|
|
1174
|
+
};
|
|
1175
|
+
};
|
|
1176
|
+
};
|
|
1177
|
+
readonly nativeHistory: {
|
|
1178
|
+
readonly type: "object";
|
|
1179
|
+
readonly additionalProperties: false;
|
|
1180
|
+
readonly properties: {
|
|
1181
|
+
readonly reader: {
|
|
1182
|
+
readonly type: "string";
|
|
1183
|
+
readonly enum: readonly ["claude-cli", "codex-cli", "antigravity-cli", "hermes-cli"];
|
|
1184
|
+
};
|
|
1185
|
+
readonly source: {
|
|
1186
|
+
readonly oneOf: readonly [{
|
|
1187
|
+
readonly $ref: "#/definitions/nativeHistoryJsonlSource";
|
|
1188
|
+
}, {
|
|
1189
|
+
readonly $ref: "#/definitions/nativeHistorySqliteSource";
|
|
1190
|
+
}];
|
|
1191
|
+
};
|
|
1192
|
+
readonly override_path: {
|
|
1193
|
+
readonly type: "string";
|
|
1194
|
+
readonly minLength: 1;
|
|
1195
|
+
};
|
|
1196
|
+
};
|
|
1197
|
+
};
|
|
1198
|
+
readonly nativeHistoryMessageMap: {
|
|
1199
|
+
readonly type: "object";
|
|
1200
|
+
readonly additionalProperties: false;
|
|
1201
|
+
readonly required: readonly ["role", "content"];
|
|
1202
|
+
readonly properties: {
|
|
1203
|
+
readonly role: {
|
|
1204
|
+
readonly type: "string";
|
|
1205
|
+
readonly minLength: 1;
|
|
1206
|
+
};
|
|
1207
|
+
readonly content: {
|
|
1208
|
+
readonly type: "string";
|
|
1209
|
+
readonly minLength: 1;
|
|
1210
|
+
};
|
|
1211
|
+
readonly content_strip: {
|
|
1212
|
+
readonly type: "array";
|
|
1213
|
+
readonly items: {
|
|
1214
|
+
readonly type: "string";
|
|
1215
|
+
readonly minLength: 1;
|
|
1216
|
+
};
|
|
1217
|
+
};
|
|
1218
|
+
readonly content_unwrap: {
|
|
1219
|
+
readonly type: "array";
|
|
1220
|
+
readonly items: {
|
|
1221
|
+
readonly type: "string";
|
|
1222
|
+
readonly minLength: 1;
|
|
1223
|
+
};
|
|
1224
|
+
};
|
|
1225
|
+
readonly timestamp_ms: {
|
|
1226
|
+
readonly type: "string";
|
|
1227
|
+
readonly minLength: 1;
|
|
1228
|
+
};
|
|
1229
|
+
readonly kind: {
|
|
1230
|
+
readonly type: "string";
|
|
1231
|
+
readonly minLength: 1;
|
|
1232
|
+
};
|
|
1233
|
+
};
|
|
1234
|
+
};
|
|
1235
|
+
readonly nativeHistoryJsonlSource: {
|
|
1236
|
+
readonly type: "object";
|
|
1237
|
+
readonly additionalProperties: false;
|
|
1238
|
+
readonly required: readonly ["kind", "path", "message_map"];
|
|
1239
|
+
readonly properties: {
|
|
1240
|
+
readonly kind: {
|
|
1241
|
+
readonly const: "jsonl";
|
|
1242
|
+
};
|
|
1243
|
+
readonly path: {
|
|
1244
|
+
readonly type: "string";
|
|
1245
|
+
readonly minLength: 1;
|
|
1246
|
+
};
|
|
1247
|
+
readonly file_pattern: {
|
|
1248
|
+
readonly type: "string";
|
|
1249
|
+
readonly minLength: 1;
|
|
1250
|
+
};
|
|
1251
|
+
readonly recent_window_ms: {
|
|
1252
|
+
readonly type: "integer";
|
|
1253
|
+
readonly minimum: 0;
|
|
1254
|
+
};
|
|
1255
|
+
readonly session_id_from: {
|
|
1256
|
+
readonly type: "string";
|
|
1257
|
+
readonly enum: readonly ["filename_uuid", "first_record"];
|
|
1258
|
+
};
|
|
1259
|
+
readonly session_id_path: {
|
|
1260
|
+
readonly type: "string";
|
|
1261
|
+
readonly minLength: 1;
|
|
1262
|
+
};
|
|
1263
|
+
readonly message_filter: {
|
|
1264
|
+
readonly type: "object";
|
|
1265
|
+
readonly additionalProperties: false;
|
|
1266
|
+
readonly required: readonly ["where"];
|
|
1267
|
+
readonly properties: {
|
|
1268
|
+
readonly where: {
|
|
1269
|
+
readonly type: "string";
|
|
1270
|
+
readonly minLength: 1;
|
|
1271
|
+
};
|
|
1272
|
+
};
|
|
1273
|
+
};
|
|
1274
|
+
readonly message_map: {
|
|
1275
|
+
readonly $ref: "#/definitions/nativeHistoryMessageMap";
|
|
1276
|
+
};
|
|
1277
|
+
};
|
|
1278
|
+
};
|
|
1279
|
+
readonly nativeHistorySqliteSource: {
|
|
1280
|
+
readonly type: "object";
|
|
1281
|
+
readonly additionalProperties: false;
|
|
1282
|
+
readonly required: readonly ["kind", "path", "session_query", "message_query", "message_map"];
|
|
1283
|
+
readonly properties: {
|
|
1284
|
+
readonly kind: {
|
|
1285
|
+
readonly const: "sqlite";
|
|
1286
|
+
};
|
|
1287
|
+
readonly path: {
|
|
1288
|
+
readonly type: "string";
|
|
1289
|
+
readonly minLength: 1;
|
|
1290
|
+
};
|
|
1291
|
+
readonly session_query: {
|
|
1292
|
+
readonly type: "string";
|
|
1293
|
+
readonly minLength: 1;
|
|
1294
|
+
};
|
|
1295
|
+
readonly message_query: {
|
|
1296
|
+
readonly type: "string";
|
|
1297
|
+
readonly minLength: 1;
|
|
1298
|
+
};
|
|
1299
|
+
readonly message_map: {
|
|
1300
|
+
readonly $ref: "#/definitions/nativeHistoryMessageMap";
|
|
1301
|
+
};
|
|
1302
|
+
};
|
|
1303
|
+
};
|
|
1304
|
+
readonly delegateTrigger: {
|
|
1305
|
+
readonly type: "object";
|
|
1306
|
+
readonly additionalProperties: false;
|
|
1307
|
+
readonly required: readonly ["id", "when_state", "task_template"];
|
|
1308
|
+
readonly properties: {
|
|
1309
|
+
readonly id: {
|
|
1310
|
+
readonly type: "string";
|
|
1311
|
+
readonly minLength: 1;
|
|
1312
|
+
readonly pattern: "^[a-z][a-z0-9_]*$";
|
|
1313
|
+
};
|
|
1314
|
+
readonly when_state: {
|
|
1315
|
+
readonly type: "string";
|
|
1316
|
+
readonly minLength: 1;
|
|
1317
|
+
};
|
|
1318
|
+
readonly after_duration_ms: {
|
|
1319
|
+
readonly type: "integer";
|
|
1320
|
+
readonly minimum: 0;
|
|
1321
|
+
};
|
|
1322
|
+
readonly task_template: {
|
|
1323
|
+
readonly type: "string";
|
|
1324
|
+
readonly minLength: 1;
|
|
1325
|
+
};
|
|
1326
|
+
};
|
|
1327
|
+
};
|
|
1328
|
+
};
|
|
1329
|
+
};
|
|
1330
|
+
/** Default schema export — v3 (current). */
|
|
1331
|
+
export declare const SCHEMA: {
|
|
1332
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
1333
|
+
readonly $id: "adhdev:cli/spec@3";
|
|
1334
|
+
readonly title: "ADHDev CLI provider spec v3";
|
|
1335
|
+
readonly type: "object";
|
|
1336
|
+
readonly additionalProperties: false;
|
|
1337
|
+
readonly required: readonly ["$schema", "id", "name", "binary", "send_message", "sections", "states", "default_state"];
|
|
1338
|
+
readonly properties: {
|
|
1339
|
+
readonly $schema: {
|
|
1340
|
+
readonly type: "string";
|
|
1341
|
+
readonly const: "adhdev:cli/spec@3";
|
|
1342
|
+
};
|
|
1343
|
+
readonly id: {
|
|
1344
|
+
readonly type: "string";
|
|
1345
|
+
readonly minLength: 1;
|
|
1346
|
+
readonly pattern: "^[a-z][a-z0-9-]*$";
|
|
1347
|
+
};
|
|
1348
|
+
readonly name: {
|
|
1349
|
+
readonly type: "string";
|
|
1350
|
+
readonly minLength: 1;
|
|
1351
|
+
};
|
|
1352
|
+
readonly binary: {
|
|
1353
|
+
readonly type: "string";
|
|
1354
|
+
readonly minLength: 1;
|
|
1355
|
+
};
|
|
1356
|
+
readonly spawn_args: {
|
|
1357
|
+
readonly type: "array";
|
|
1358
|
+
readonly items: {
|
|
1359
|
+
readonly type: "string";
|
|
1360
|
+
};
|
|
1361
|
+
readonly default: readonly [];
|
|
1362
|
+
};
|
|
1363
|
+
readonly env: {
|
|
1364
|
+
readonly type: "object";
|
|
1365
|
+
readonly additionalProperties: {
|
|
1366
|
+
readonly type: "string";
|
|
1367
|
+
};
|
|
1368
|
+
readonly default: {};
|
|
1369
|
+
};
|
|
1370
|
+
readonly cli_version_range: {
|
|
1371
|
+
readonly type: "string";
|
|
1372
|
+
readonly minLength: 1;
|
|
1373
|
+
};
|
|
1374
|
+
readonly send_message: {
|
|
1375
|
+
readonly type: "object";
|
|
1376
|
+
readonly additionalProperties: false;
|
|
1377
|
+
readonly required: readonly ["submit_key"];
|
|
1378
|
+
readonly properties: {
|
|
1379
|
+
readonly submit_key: {
|
|
1380
|
+
readonly type: "string";
|
|
1381
|
+
readonly minLength: 1;
|
|
1382
|
+
};
|
|
1383
|
+
readonly delay_ms_before_submit: {
|
|
1384
|
+
readonly type: "integer";
|
|
1385
|
+
readonly minimum: 0;
|
|
1386
|
+
};
|
|
1387
|
+
readonly delay_ms_per_char: {
|
|
1388
|
+
readonly type: "integer";
|
|
1389
|
+
readonly minimum: 0;
|
|
1390
|
+
};
|
|
1391
|
+
};
|
|
1392
|
+
};
|
|
1393
|
+
readonly sections: {
|
|
1394
|
+
readonly type: "object";
|
|
1395
|
+
readonly minProperties: 1;
|
|
1396
|
+
readonly additionalProperties: {
|
|
1397
|
+
readonly $ref: "#/definitions/sectionDef";
|
|
1398
|
+
};
|
|
1399
|
+
};
|
|
1400
|
+
readonly states: {
|
|
1401
|
+
readonly type: "array";
|
|
1402
|
+
readonly minItems: 1;
|
|
1403
|
+
readonly items: {
|
|
1404
|
+
readonly $ref: "#/definitions/stateV3";
|
|
1405
|
+
};
|
|
1406
|
+
};
|
|
1407
|
+
readonly default_state: {
|
|
1408
|
+
readonly type: "string";
|
|
1409
|
+
readonly minLength: 1;
|
|
1410
|
+
};
|
|
1411
|
+
readonly control_bar: {
|
|
1412
|
+
readonly type: "array";
|
|
1413
|
+
readonly default: readonly [];
|
|
1414
|
+
readonly items: {
|
|
1415
|
+
readonly $ref: "#/definitions/control";
|
|
1416
|
+
};
|
|
1417
|
+
};
|
|
1418
|
+
readonly notifications: {
|
|
1419
|
+
readonly type: "array";
|
|
1420
|
+
readonly default: readonly [];
|
|
1421
|
+
readonly items: {
|
|
1422
|
+
readonly $ref: "#/definitions/notification";
|
|
1423
|
+
};
|
|
1424
|
+
};
|
|
1425
|
+
readonly delegate: {
|
|
1426
|
+
readonly type: "array";
|
|
1427
|
+
readonly default: readonly [];
|
|
1428
|
+
readonly items: {
|
|
1429
|
+
readonly $ref: "#/definitions/delegateTrigger";
|
|
1430
|
+
};
|
|
1431
|
+
};
|
|
1432
|
+
readonly native_history: {
|
|
1433
|
+
readonly $ref: "#/definitions/nativeHistory";
|
|
1434
|
+
};
|
|
1435
|
+
readonly requiresFinalAssistantBeforeIdle: {
|
|
1436
|
+
readonly type: "boolean";
|
|
1437
|
+
};
|
|
1438
|
+
readonly timing: {
|
|
1439
|
+
readonly type: "object";
|
|
1440
|
+
readonly additionalProperties: false;
|
|
1441
|
+
readonly properties: {
|
|
1442
|
+
readonly busy_hold_ms: {
|
|
1443
|
+
readonly type: "integer";
|
|
1444
|
+
readonly minimum: 0;
|
|
1445
|
+
};
|
|
1446
|
+
readonly idle_hold_ms: {
|
|
1447
|
+
readonly type: "integer";
|
|
1448
|
+
readonly minimum: 0;
|
|
1449
|
+
};
|
|
1450
|
+
readonly startup_grace_ms: {
|
|
1451
|
+
readonly type: "integer";
|
|
1452
|
+
readonly minimum: 0;
|
|
1453
|
+
};
|
|
1454
|
+
readonly completion_marker: {
|
|
1455
|
+
readonly type: "object";
|
|
1456
|
+
readonly additionalProperties: false;
|
|
1457
|
+
readonly required: readonly ["matches", "hold_ms"];
|
|
1458
|
+
readonly properties: {
|
|
1459
|
+
readonly section: {
|
|
1460
|
+
readonly type: "string";
|
|
1461
|
+
readonly minLength: 1;
|
|
1462
|
+
};
|
|
1463
|
+
readonly matches: {
|
|
1464
|
+
readonly type: "string";
|
|
1465
|
+
readonly minLength: 1;
|
|
1466
|
+
};
|
|
1467
|
+
readonly flags: {
|
|
1468
|
+
readonly type: "string";
|
|
1469
|
+
};
|
|
1470
|
+
readonly hold_ms: {
|
|
1471
|
+
readonly type: "integer";
|
|
1472
|
+
readonly minimum: 0;
|
|
1473
|
+
};
|
|
1474
|
+
readonly force_after_ms: {
|
|
1475
|
+
readonly type: "integer";
|
|
1476
|
+
readonly minimum: 0;
|
|
1477
|
+
};
|
|
1478
|
+
};
|
|
1479
|
+
};
|
|
1480
|
+
};
|
|
1481
|
+
};
|
|
1482
|
+
};
|
|
1483
|
+
readonly definitions: {
|
|
1484
|
+
readonly size: {
|
|
1485
|
+
readonly oneOf: readonly [{
|
|
1486
|
+
readonly type: "integer";
|
|
1487
|
+
readonly minimum: 0;
|
|
1488
|
+
}, {
|
|
1489
|
+
readonly type: "string";
|
|
1490
|
+
readonly pattern: "^\\d+(\\.\\d+)?%$";
|
|
1491
|
+
}];
|
|
1492
|
+
};
|
|
1493
|
+
readonly sectionDef: {
|
|
1494
|
+
readonly type: "object";
|
|
1495
|
+
readonly additionalProperties: false;
|
|
1496
|
+
readonly properties: {
|
|
1497
|
+
readonly from_top: {
|
|
1498
|
+
readonly $ref: "#/definitions/size";
|
|
1499
|
+
};
|
|
1500
|
+
readonly from_bottom: {
|
|
1501
|
+
readonly $ref: "#/definitions/size";
|
|
1502
|
+
};
|
|
1503
|
+
readonly until: {
|
|
1504
|
+
readonly type: "string";
|
|
1505
|
+
readonly minLength: 1;
|
|
1506
|
+
};
|
|
1507
|
+
readonly anchor: {
|
|
1508
|
+
readonly type: "string";
|
|
1509
|
+
readonly minLength: 1;
|
|
1510
|
+
};
|
|
1511
|
+
readonly anchor_flags: {
|
|
1512
|
+
readonly type: "string";
|
|
1513
|
+
};
|
|
1514
|
+
readonly anchor_last: {
|
|
1515
|
+
readonly type: "boolean";
|
|
1516
|
+
};
|
|
1517
|
+
readonly anchor_context: {
|
|
1518
|
+
readonly type: "object";
|
|
1519
|
+
readonly additionalProperties: false;
|
|
1520
|
+
readonly properties: {
|
|
1521
|
+
readonly prev: {
|
|
1522
|
+
readonly type: "string";
|
|
1523
|
+
};
|
|
1524
|
+
readonly prev_flags: {
|
|
1525
|
+
readonly type: "string";
|
|
1526
|
+
};
|
|
1527
|
+
readonly next: {
|
|
1528
|
+
readonly type: "string";
|
|
1529
|
+
};
|
|
1530
|
+
readonly next_flags: {
|
|
1531
|
+
readonly type: "string";
|
|
1532
|
+
};
|
|
1533
|
+
};
|
|
1534
|
+
};
|
|
1535
|
+
readonly lines: {
|
|
1536
|
+
readonly type: "integer";
|
|
1537
|
+
readonly minimum: 1;
|
|
1538
|
+
};
|
|
1539
|
+
readonly until_regex: {
|
|
1540
|
+
readonly type: "string";
|
|
1541
|
+
readonly minLength: 1;
|
|
1542
|
+
};
|
|
1543
|
+
readonly until_regex_flags: {
|
|
1544
|
+
readonly type: "string";
|
|
1545
|
+
};
|
|
1546
|
+
};
|
|
1547
|
+
};
|
|
1548
|
+
readonly condition: {
|
|
1549
|
+
readonly oneOf: readonly [{
|
|
1550
|
+
readonly $ref: "#/definitions/regexCondition";
|
|
1551
|
+
}, {
|
|
1552
|
+
readonly $ref: "#/definitions/changedCondition";
|
|
1553
|
+
}, {
|
|
1554
|
+
readonly $ref: "#/definitions/allCondition";
|
|
1555
|
+
}, {
|
|
1556
|
+
readonly $ref: "#/definitions/anyCondition";
|
|
1557
|
+
}];
|
|
1558
|
+
};
|
|
1559
|
+
readonly regexCondition: {
|
|
1560
|
+
readonly type: "object";
|
|
1561
|
+
readonly additionalProperties: false;
|
|
1562
|
+
readonly required: readonly ["matches"];
|
|
1563
|
+
readonly properties: {
|
|
1564
|
+
readonly section: {
|
|
1565
|
+
readonly type: "string";
|
|
1566
|
+
};
|
|
1567
|
+
readonly matches: {
|
|
1568
|
+
readonly type: "string";
|
|
1569
|
+
readonly minLength: 1;
|
|
1570
|
+
};
|
|
1571
|
+
readonly flags: {
|
|
1572
|
+
readonly type: "string";
|
|
1573
|
+
};
|
|
1574
|
+
readonly cursor_row_min: {
|
|
1575
|
+
readonly type: "integer";
|
|
1576
|
+
readonly minimum: 0;
|
|
1577
|
+
};
|
|
1578
|
+
readonly cursor_row_max: {
|
|
1579
|
+
readonly type: "integer";
|
|
1580
|
+
readonly minimum: 0;
|
|
1581
|
+
};
|
|
1582
|
+
readonly cursor_col_min: {
|
|
1583
|
+
readonly type: "integer";
|
|
1584
|
+
readonly minimum: 0;
|
|
1585
|
+
};
|
|
1586
|
+
readonly cursor_col_max: {
|
|
1587
|
+
readonly type: "integer";
|
|
1588
|
+
readonly minimum: 0;
|
|
1589
|
+
};
|
|
1590
|
+
};
|
|
1591
|
+
};
|
|
1592
|
+
readonly changedCondition: {
|
|
1593
|
+
readonly type: "object";
|
|
1594
|
+
readonly additionalProperties: false;
|
|
1595
|
+
readonly required: readonly ["cursor_above", "changed"];
|
|
1596
|
+
readonly properties: {
|
|
1597
|
+
readonly cursor_above: {
|
|
1598
|
+
readonly type: "integer";
|
|
1599
|
+
readonly minimum: 1;
|
|
1600
|
+
};
|
|
1601
|
+
readonly changed: {
|
|
1602
|
+
readonly type: "boolean";
|
|
1603
|
+
readonly const: true;
|
|
1604
|
+
};
|
|
1605
|
+
};
|
|
1606
|
+
};
|
|
1607
|
+
readonly allCondition: {
|
|
1608
|
+
readonly type: "object";
|
|
1609
|
+
readonly additionalProperties: false;
|
|
1610
|
+
readonly required: readonly ["all"];
|
|
1611
|
+
readonly properties: {
|
|
1612
|
+
readonly all: {
|
|
1613
|
+
readonly type: "array";
|
|
1614
|
+
readonly items: {
|
|
1615
|
+
readonly $ref: "#/definitions/condition";
|
|
1616
|
+
};
|
|
1617
|
+
};
|
|
1618
|
+
};
|
|
1619
|
+
};
|
|
1620
|
+
readonly anyCondition: {
|
|
1621
|
+
readonly type: "object";
|
|
1622
|
+
readonly additionalProperties: false;
|
|
1623
|
+
readonly required: readonly ["any"];
|
|
1624
|
+
readonly properties: {
|
|
1625
|
+
readonly any: {
|
|
1626
|
+
readonly type: "array";
|
|
1627
|
+
readonly items: {
|
|
1628
|
+
readonly $ref: "#/definitions/condition";
|
|
1629
|
+
};
|
|
1630
|
+
};
|
|
1631
|
+
};
|
|
1632
|
+
};
|
|
1633
|
+
readonly extractTitle: {
|
|
1634
|
+
readonly type: "object";
|
|
1635
|
+
readonly additionalProperties: false;
|
|
1636
|
+
readonly properties: {
|
|
1637
|
+
readonly section: {
|
|
1638
|
+
readonly type: "string";
|
|
1639
|
+
};
|
|
1640
|
+
readonly regex: {
|
|
1641
|
+
readonly type: "string";
|
|
1642
|
+
readonly minLength: 1;
|
|
1643
|
+
};
|
|
1644
|
+
readonly flags: {
|
|
1645
|
+
readonly type: "string";
|
|
1646
|
+
};
|
|
1647
|
+
readonly first_line: {
|
|
1648
|
+
readonly type: "boolean";
|
|
1649
|
+
readonly const: true;
|
|
1650
|
+
};
|
|
1651
|
+
};
|
|
1652
|
+
};
|
|
1653
|
+
readonly extractButtons: {
|
|
1654
|
+
readonly type: "object";
|
|
1655
|
+
readonly additionalProperties: false;
|
|
1656
|
+
readonly required: readonly ["pattern", "key_for_index"];
|
|
1657
|
+
readonly properties: {
|
|
1658
|
+
readonly section: {
|
|
1659
|
+
readonly type: "string";
|
|
1660
|
+
};
|
|
1661
|
+
readonly pattern: {
|
|
1662
|
+
readonly type: "string";
|
|
1663
|
+
readonly minLength: 1;
|
|
1664
|
+
};
|
|
1665
|
+
readonly flags: {
|
|
1666
|
+
readonly type: "string";
|
|
1667
|
+
};
|
|
1668
|
+
readonly key_for_index: {
|
|
1669
|
+
readonly type: "string";
|
|
1670
|
+
readonly minLength: 1;
|
|
1671
|
+
};
|
|
1672
|
+
readonly min_count: {
|
|
1673
|
+
readonly type: "integer";
|
|
1674
|
+
readonly minimum: 1;
|
|
1675
|
+
readonly default: 2;
|
|
1676
|
+
};
|
|
1677
|
+
readonly continuation_lines: {
|
|
1678
|
+
readonly type: "boolean";
|
|
1679
|
+
readonly default: false;
|
|
1680
|
+
};
|
|
1681
|
+
};
|
|
1682
|
+
};
|
|
1683
|
+
readonly stateV3: {
|
|
1684
|
+
readonly type: "object";
|
|
1685
|
+
readonly additionalProperties: false;
|
|
1686
|
+
readonly required: readonly ["id", "label", "when"];
|
|
1687
|
+
readonly properties: {
|
|
1688
|
+
readonly id: {
|
|
1689
|
+
readonly type: "string";
|
|
1690
|
+
readonly minLength: 1;
|
|
1691
|
+
readonly pattern: "^[a-z][a-z0-9_]*$";
|
|
1692
|
+
};
|
|
1693
|
+
readonly label: {
|
|
1694
|
+
readonly type: "string";
|
|
1695
|
+
readonly minLength: 1;
|
|
1696
|
+
};
|
|
1697
|
+
readonly when: {
|
|
1698
|
+
readonly oneOf: readonly [{
|
|
1699
|
+
readonly $ref: "#/definitions/allCondition";
|
|
1700
|
+
}, {
|
|
1701
|
+
readonly $ref: "#/definitions/anyCondition";
|
|
1702
|
+
}];
|
|
1703
|
+
};
|
|
1704
|
+
readonly extract: {
|
|
1705
|
+
readonly type: "object";
|
|
1706
|
+
readonly additionalProperties: false;
|
|
1707
|
+
readonly properties: {
|
|
1708
|
+
readonly title: {
|
|
1709
|
+
readonly $ref: "#/definitions/extractTitle";
|
|
1710
|
+
};
|
|
1711
|
+
readonly buttons: {
|
|
1712
|
+
readonly $ref: "#/definitions/extractButtons";
|
|
1713
|
+
};
|
|
1714
|
+
};
|
|
1715
|
+
};
|
|
1716
|
+
};
|
|
1717
|
+
};
|
|
1718
|
+
readonly sectionRegex: {
|
|
1719
|
+
readonly type: "object";
|
|
1720
|
+
readonly additionalProperties: false;
|
|
1721
|
+
readonly required: readonly ["regex"];
|
|
1722
|
+
readonly properties: {
|
|
1723
|
+
readonly section: {
|
|
1724
|
+
readonly type: "string";
|
|
1725
|
+
};
|
|
1726
|
+
readonly regex: {
|
|
1727
|
+
readonly type: "string";
|
|
1728
|
+
readonly minLength: 1;
|
|
1729
|
+
};
|
|
1730
|
+
readonly flags: {
|
|
1731
|
+
readonly type: "string";
|
|
1732
|
+
readonly default: "i";
|
|
1733
|
+
};
|
|
1734
|
+
readonly cursor_row_min: {
|
|
1735
|
+
readonly type: "integer";
|
|
1736
|
+
readonly minimum: 0;
|
|
1737
|
+
};
|
|
1738
|
+
readonly cursor_row_max: {
|
|
1739
|
+
readonly type: "integer";
|
|
1740
|
+
readonly minimum: 0;
|
|
1741
|
+
};
|
|
1742
|
+
readonly cursor_col_min: {
|
|
1743
|
+
readonly type: "integer";
|
|
1744
|
+
readonly minimum: 0;
|
|
1745
|
+
};
|
|
1746
|
+
readonly cursor_col_max: {
|
|
1747
|
+
readonly type: "integer";
|
|
1748
|
+
readonly minimum: 0;
|
|
1749
|
+
};
|
|
1750
|
+
};
|
|
1751
|
+
};
|
|
1752
|
+
readonly sectionPattern: {
|
|
1753
|
+
readonly type: "object";
|
|
1754
|
+
readonly additionalProperties: false;
|
|
1755
|
+
readonly required: readonly ["pattern"];
|
|
1756
|
+
readonly properties: {
|
|
1757
|
+
readonly section: {
|
|
1758
|
+
readonly type: "string";
|
|
1759
|
+
};
|
|
1760
|
+
readonly pattern: {
|
|
1761
|
+
readonly type: "string";
|
|
1762
|
+
readonly minLength: 1;
|
|
1763
|
+
};
|
|
1764
|
+
readonly flags: {
|
|
1765
|
+
readonly type: "string";
|
|
1766
|
+
readonly default: "";
|
|
1767
|
+
};
|
|
1768
|
+
};
|
|
1769
|
+
};
|
|
1770
|
+
readonly control: {
|
|
1771
|
+
readonly type: "object";
|
|
1772
|
+
readonly additionalProperties: false;
|
|
1773
|
+
readonly required: readonly ["id", "label", "action"];
|
|
1774
|
+
readonly properties: {
|
|
1775
|
+
readonly id: {
|
|
1776
|
+
readonly type: "string";
|
|
1777
|
+
readonly minLength: 1;
|
|
1778
|
+
readonly pattern: "^[a-z][a-z0-9_]*$";
|
|
1779
|
+
};
|
|
1780
|
+
readonly label: {
|
|
1781
|
+
readonly type: "string";
|
|
1782
|
+
readonly minLength: 1;
|
|
1783
|
+
};
|
|
1784
|
+
readonly visible_when_state: {
|
|
1785
|
+
readonly type: "array";
|
|
1786
|
+
readonly items: {
|
|
1787
|
+
readonly type: "string";
|
|
1788
|
+
};
|
|
1789
|
+
};
|
|
1790
|
+
readonly action: {
|
|
1791
|
+
readonly $ref: "#/definitions/controlAction";
|
|
1792
|
+
};
|
|
1793
|
+
};
|
|
1794
|
+
};
|
|
1795
|
+
readonly controlAction: {
|
|
1796
|
+
readonly oneOf: readonly [{
|
|
1797
|
+
readonly type: "object";
|
|
1798
|
+
readonly additionalProperties: false;
|
|
1799
|
+
readonly required: readonly ["type", "keys"];
|
|
1800
|
+
readonly properties: {
|
|
1801
|
+
readonly type: {
|
|
1802
|
+
readonly const: "send_keys";
|
|
1803
|
+
};
|
|
1804
|
+
readonly keys: {
|
|
1805
|
+
readonly type: "string";
|
|
1806
|
+
readonly minLength: 1;
|
|
1807
|
+
};
|
|
1808
|
+
};
|
|
1809
|
+
}, {
|
|
1810
|
+
readonly type: "object";
|
|
1811
|
+
readonly additionalProperties: false;
|
|
1812
|
+
readonly required: readonly ["type", "trigger_keys", "wait_for", "extract_choices", "submit_key"];
|
|
1813
|
+
readonly properties: {
|
|
1814
|
+
readonly type: {
|
|
1815
|
+
readonly const: "open_picker";
|
|
1816
|
+
};
|
|
1817
|
+
readonly trigger_keys: {
|
|
1818
|
+
readonly type: "string";
|
|
1819
|
+
readonly minLength: 1;
|
|
1820
|
+
};
|
|
1821
|
+
readonly wait_for: {
|
|
1822
|
+
readonly $ref: "#/definitions/sectionRegex";
|
|
1823
|
+
};
|
|
1824
|
+
readonly extract_choices: {
|
|
1825
|
+
readonly $ref: "#/definitions/sectionPattern";
|
|
1826
|
+
};
|
|
1827
|
+
readonly submit_key: {
|
|
1828
|
+
readonly type: "string";
|
|
1829
|
+
readonly minLength: 1;
|
|
1830
|
+
};
|
|
1831
|
+
};
|
|
1832
|
+
}, {
|
|
1833
|
+
readonly type: "object";
|
|
1834
|
+
readonly additionalProperties: false;
|
|
1835
|
+
readonly required: readonly ["type", "method", "keys_template"];
|
|
1836
|
+
readonly properties: {
|
|
1837
|
+
readonly type: {
|
|
1838
|
+
readonly const: "attach_image";
|
|
1839
|
+
};
|
|
1840
|
+
readonly method: {
|
|
1841
|
+
readonly const: "tempfile_then_keys";
|
|
1842
|
+
};
|
|
1843
|
+
readonly keys_template: {
|
|
1844
|
+
readonly type: "string";
|
|
1845
|
+
readonly minLength: 1;
|
|
1846
|
+
};
|
|
1847
|
+
};
|
|
1848
|
+
}];
|
|
1849
|
+
};
|
|
1850
|
+
readonly notification: {
|
|
1851
|
+
readonly type: "object";
|
|
1852
|
+
readonly additionalProperties: false;
|
|
1853
|
+
readonly required: readonly ["id", "when_state", "title"];
|
|
1854
|
+
readonly properties: {
|
|
1855
|
+
readonly id: {
|
|
1856
|
+
readonly type: "string";
|
|
1857
|
+
readonly minLength: 1;
|
|
1858
|
+
readonly pattern: "^[a-z][a-z0-9_]*$";
|
|
1859
|
+
};
|
|
1860
|
+
readonly when_state: {
|
|
1861
|
+
readonly type: "string";
|
|
1862
|
+
readonly minLength: 1;
|
|
1863
|
+
};
|
|
1864
|
+
readonly title: {
|
|
1865
|
+
readonly type: "string";
|
|
1866
|
+
readonly minLength: 1;
|
|
1867
|
+
};
|
|
1868
|
+
readonly body: {
|
|
1869
|
+
readonly type: "string";
|
|
1870
|
+
};
|
|
1871
|
+
};
|
|
1872
|
+
};
|
|
1873
|
+
readonly nativeHistory: {
|
|
1874
|
+
readonly type: "object";
|
|
1875
|
+
readonly additionalProperties: false;
|
|
1876
|
+
readonly properties: {
|
|
1877
|
+
readonly reader: {
|
|
1878
|
+
readonly type: "string";
|
|
1879
|
+
readonly enum: readonly ["claude-cli", "codex-cli", "antigravity-cli", "hermes-cli"];
|
|
1880
|
+
};
|
|
1881
|
+
readonly source: {
|
|
1882
|
+
readonly oneOf: readonly [{
|
|
1883
|
+
readonly $ref: "#/definitions/nativeHistoryJsonlSource";
|
|
1884
|
+
}, {
|
|
1885
|
+
readonly $ref: "#/definitions/nativeHistorySqliteSource";
|
|
1886
|
+
}];
|
|
1887
|
+
};
|
|
1888
|
+
readonly override_path: {
|
|
1889
|
+
readonly type: "string";
|
|
1890
|
+
readonly minLength: 1;
|
|
1891
|
+
};
|
|
1892
|
+
};
|
|
1893
|
+
};
|
|
1894
|
+
readonly nativeHistoryMessageMap: {
|
|
1895
|
+
readonly type: "object";
|
|
1896
|
+
readonly additionalProperties: false;
|
|
1897
|
+
readonly required: readonly ["role", "content"];
|
|
1898
|
+
readonly properties: {
|
|
1899
|
+
readonly role: {
|
|
1900
|
+
readonly type: "string";
|
|
1901
|
+
readonly minLength: 1;
|
|
1902
|
+
};
|
|
1903
|
+
readonly content: {
|
|
1904
|
+
readonly type: "string";
|
|
1905
|
+
readonly minLength: 1;
|
|
1906
|
+
};
|
|
1907
|
+
readonly content_strip: {
|
|
1908
|
+
readonly type: "array";
|
|
1909
|
+
readonly items: {
|
|
1910
|
+
readonly type: "string";
|
|
1911
|
+
readonly minLength: 1;
|
|
1912
|
+
};
|
|
1913
|
+
};
|
|
1914
|
+
readonly content_unwrap: {
|
|
1915
|
+
readonly type: "array";
|
|
1916
|
+
readonly items: {
|
|
1917
|
+
readonly type: "string";
|
|
1918
|
+
readonly minLength: 1;
|
|
1919
|
+
};
|
|
1920
|
+
};
|
|
1921
|
+
readonly timestamp_ms: {
|
|
1922
|
+
readonly type: "string";
|
|
1923
|
+
readonly minLength: 1;
|
|
1924
|
+
};
|
|
1925
|
+
readonly kind: {
|
|
1926
|
+
readonly type: "string";
|
|
1927
|
+
readonly minLength: 1;
|
|
1928
|
+
};
|
|
1929
|
+
};
|
|
1930
|
+
};
|
|
1931
|
+
readonly nativeHistoryJsonlSource: {
|
|
1932
|
+
readonly type: "object";
|
|
1933
|
+
readonly additionalProperties: false;
|
|
1934
|
+
readonly required: readonly ["kind", "path", "message_map"];
|
|
1935
|
+
readonly properties: {
|
|
1936
|
+
readonly kind: {
|
|
1937
|
+
readonly const: "jsonl";
|
|
1938
|
+
};
|
|
1939
|
+
readonly path: {
|
|
1940
|
+
readonly type: "string";
|
|
1941
|
+
readonly minLength: 1;
|
|
1942
|
+
};
|
|
1943
|
+
readonly file_pattern: {
|
|
1944
|
+
readonly type: "string";
|
|
1945
|
+
readonly minLength: 1;
|
|
1946
|
+
};
|
|
1947
|
+
readonly recent_window_ms: {
|
|
1948
|
+
readonly type: "integer";
|
|
1949
|
+
readonly minimum: 0;
|
|
1950
|
+
};
|
|
1951
|
+
readonly session_id_from: {
|
|
1952
|
+
readonly type: "string";
|
|
1953
|
+
readonly enum: readonly ["filename_uuid", "first_record"];
|
|
1954
|
+
};
|
|
1955
|
+
readonly session_id_path: {
|
|
1956
|
+
readonly type: "string";
|
|
1957
|
+
readonly minLength: 1;
|
|
1958
|
+
};
|
|
1959
|
+
readonly message_filter: {
|
|
1960
|
+
readonly type: "object";
|
|
1961
|
+
readonly additionalProperties: false;
|
|
1962
|
+
readonly required: readonly ["where"];
|
|
1963
|
+
readonly properties: {
|
|
1964
|
+
readonly where: {
|
|
1965
|
+
readonly type: "string";
|
|
1966
|
+
readonly minLength: 1;
|
|
1967
|
+
};
|
|
1968
|
+
};
|
|
1969
|
+
};
|
|
1970
|
+
readonly message_map: {
|
|
1971
|
+
readonly $ref: "#/definitions/nativeHistoryMessageMap";
|
|
1972
|
+
};
|
|
1973
|
+
};
|
|
1974
|
+
};
|
|
1975
|
+
readonly nativeHistorySqliteSource: {
|
|
1976
|
+
readonly type: "object";
|
|
1977
|
+
readonly additionalProperties: false;
|
|
1978
|
+
readonly required: readonly ["kind", "path", "session_query", "message_query", "message_map"];
|
|
1979
|
+
readonly properties: {
|
|
1980
|
+
readonly kind: {
|
|
1981
|
+
readonly const: "sqlite";
|
|
1982
|
+
};
|
|
1983
|
+
readonly path: {
|
|
1984
|
+
readonly type: "string";
|
|
1985
|
+
readonly minLength: 1;
|
|
1986
|
+
};
|
|
1987
|
+
readonly session_query: {
|
|
1988
|
+
readonly type: "string";
|
|
1989
|
+
readonly minLength: 1;
|
|
1990
|
+
};
|
|
1991
|
+
readonly message_query: {
|
|
1992
|
+
readonly type: "string";
|
|
1993
|
+
readonly minLength: 1;
|
|
1994
|
+
};
|
|
1995
|
+
readonly message_map: {
|
|
1996
|
+
readonly $ref: "#/definitions/nativeHistoryMessageMap";
|
|
1997
|
+
};
|
|
1998
|
+
};
|
|
1999
|
+
};
|
|
2000
|
+
readonly delegateTrigger: {
|
|
2001
|
+
readonly type: "object";
|
|
2002
|
+
readonly additionalProperties: false;
|
|
2003
|
+
readonly required: readonly ["id", "when_state", "task_template"];
|
|
2004
|
+
readonly properties: {
|
|
2005
|
+
readonly id: {
|
|
2006
|
+
readonly type: "string";
|
|
2007
|
+
readonly minLength: 1;
|
|
2008
|
+
readonly pattern: "^[a-z][a-z0-9_]*$";
|
|
2009
|
+
};
|
|
2010
|
+
readonly when_state: {
|
|
2011
|
+
readonly type: "string";
|
|
2012
|
+
readonly minLength: 1;
|
|
2013
|
+
};
|
|
2014
|
+
readonly after_duration_ms: {
|
|
2015
|
+
readonly type: "integer";
|
|
2016
|
+
readonly minimum: 0;
|
|
2017
|
+
};
|
|
2018
|
+
readonly task_template: {
|
|
2019
|
+
readonly type: "string";
|
|
2020
|
+
readonly minLength: 1;
|
|
2021
|
+
};
|
|
2022
|
+
};
|
|
2023
|
+
};
|
|
2024
|
+
};
|
|
2025
|
+
};
|