@myagentroam/node 0.9.9 → 0.9.11

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 (214) hide show
  1. package/dist/capabilities.js +2 -92
  2. package/dist/claude-agent-sdk.js +2 -330
  3. package/dist/claude-channel.js +2 -44
  4. package/dist/codex-app-server.js +2 -503
  5. package/dist/config.js +2 -56
  6. package/dist/connector/node-connector-options.js +2 -1
  7. package/dist/connector/node-operation-router.js +2 -22
  8. package/dist/connector.js +2 -845
  9. package/dist/control-outbound-scheduler.js +2 -154
  10. package/dist/database.js +2 -1418
  11. package/dist/event-buffer.js +2 -19
  12. package/dist/fake-runner.js +2 -129
  13. package/dist/health.js +2 -3
  14. package/dist/main.js +2 -54
  15. package/dist/migrations/v001.js +3 -144
  16. package/dist/migrations/v002.js +2 -143
  17. package/dist/migrations/v003.js +2 -44
  18. package/dist/migrations/v004.js +34 -30
  19. package/dist/native-jsonl-reader.js +2 -186
  20. package/dist/native-session-history.js +2 -1119
  21. package/dist/opencode-runtime.js +2 -80
  22. package/dist/opencode-server.js +2 -263
  23. package/dist/operational.js +2 -122
  24. package/dist/process-tree.js +2 -18
  25. package/dist/rotating-log.js +2 -67
  26. package/dist/runner/abstract-runner.js +2 -232
  27. package/dist/runner/claude/managed-run-controller.js +2 -345
  28. package/dist/runner/claude-code-runner.js +2 -303
  29. package/dist/runner/codex/composer-image-markers.js +2 -0
  30. package/dist/runner/codex/conversation-parser.js +2 -861
  31. package/dist/runner/codex/managed-run-controller.js +2 -460
  32. package/dist/runner/codex-runner.js +2 -628
  33. package/dist/runner/fake-test-runner.js +2 -47
  34. package/dist/runner/opencode/conversation-parser.js +2 -221
  35. package/dist/runner/opencode/managed-run-controller.js +2 -537
  36. package/dist/runner/opencode-runner.js +2 -448
  37. package/dist/runner/runner-registry.js +2 -90
  38. package/dist/runner-command-engine.js +2 -70
  39. package/dist/runner-profiles.js +2 -215
  40. package/dist/runner-usage.js +2 -190
  41. package/dist/runtime-command-detector.js +2 -73
  42. package/dist/runtime-state.js +2 -982
  43. package/dist/service/attachment-domain-state.js +2 -7
  44. package/dist/service/conversation-history-service.js +2 -457
  45. package/dist/service/conversation-segment-service.js +2 -162
  46. package/dist/service/external-session-resume-service.js +2 -118
  47. package/dist/service/fake-managed-run-service.js +2 -60
  48. package/dist/service/managed-runner-session-service.js +2 -35
  49. package/dist/service/mcp-installation-verifier.js +2 -87
  50. package/dist/service/mcp-node-operation-service.js +2 -90
  51. package/dist/service/mcp-package-installer.js +2 -136
  52. package/dist/service/native-session-projection-service.js +2 -280
  53. package/dist/service/native-session-watch-service.js +2 -383
  54. package/dist/service/node-connection-lifecycle-service.js +2 -84
  55. package/dist/service/node-control-channel.js +2 -85
  56. package/dist/service/node-control-message-service.js +2 -107
  57. package/dist/service/node-request-service.js +2 -52
  58. package/dist/service/node-run-event-bridge.js +2 -83
  59. package/dist/service/node-terminal-channel.js +2 -182
  60. package/dist/service/node-upgrade-coordinator.js +2 -137
  61. package/dist/service/node-workspace-coordinator.js +2 -70
  62. package/dist/service/recent-run-projection-service.js +2 -78
  63. package/dist/service/run-attachment-service.js +2 -194
  64. package/dist/service/run-domain-state.js +2 -4
  65. package/dist/service/run-event-service.js +2 -193
  66. package/dist/service/run-workbench-service.js +2 -104
  67. package/dist/service/runner-channel-message-service.js +2 -20
  68. package/dist/service/runner-interaction-service.js +2 -243
  69. package/dist/service/runner-service.js +2 -71
  70. package/dist/service/session-catalog-service.js +2 -224
  71. package/dist/service/session-command-service.js +2 -76
  72. package/dist/service/session-context-service.js +2 -101
  73. package/dist/service/session-domain-state.js +2 -9
  74. package/dist/service/session-identity-service.js +2 -86
  75. package/dist/service/session-lifecycle-service.js +2 -240
  76. package/dist/service/session-message-service.js +2 -173
  77. package/dist/service/session-presentation-service.js +2 -43
  78. package/dist/service/session-query-service.js +2 -82
  79. package/dist/service/skill-directory-service.js +2 -238
  80. package/dist/service/skill-install-service.js +2 -434
  81. package/dist/service/skill-node-operation-service.js +2 -206
  82. package/dist/service/terminal-relay-state.js +2 -3
  83. package/dist/service/terminal-service.js +2 -52
  84. package/dist/service/workbench-event-service.js +2 -19
  85. package/dist/service/workbench-manifest-service.js +2 -69
  86. package/dist/service/workspace-change-service.js +2 -86
  87. package/dist/service/workspace-content-search-service.js +2 -477
  88. package/dist/service/workspace-domain-state.js +2 -41
  89. package/dist/service/workspace-file-service.js +2 -122
  90. package/dist/service/workspace-git-exclude-service.js +2 -119
  91. package/dist/service/workspace-queue-workbench-service.js +2 -304
  92. package/dist/service/workspace-service.js +2 -69
  93. package/dist/service/workspace-session-service.js +2 -139
  94. package/dist/service/workspace-upload-service.js +2 -262
  95. package/dist/service/workspace-watch-service.js +2 -146
  96. package/dist/service/workspace-workbench-service.js +2 -405
  97. package/dist/service.js +2 -38
  98. package/dist/storage.js +2 -32
  99. package/dist/supervisor.js +2 -136
  100. package/dist/terminal.js +2 -416
  101. package/dist/util/node-operation-parsers.js +2 -382
  102. package/dist/util/personal-instructions.js +2 -31
  103. package/dist/util/runner-error.js +2 -52
  104. package/dist/util/runner-native-session-parsers.js +2 -490
  105. package/dist/util/safe-error.js +2 -5
  106. package/dist/util/secret-environment.js +2 -25
  107. package/dist/workspace.js +2 -1519
  108. package/package.json +3 -3
  109. package/dist/capabilities.d.ts +0 -12
  110. package/dist/claude-agent-sdk.d.ts +0 -92
  111. package/dist/claude-channel.d.ts +0 -28
  112. package/dist/codex-app-server.d.ts +0 -133
  113. package/dist/config.d.ts +0 -18
  114. package/dist/connector/node-connector-options.d.ts +0 -27
  115. package/dist/connector/node-operation-router.d.ts +0 -9
  116. package/dist/connector.d.ts +0 -94
  117. package/dist/control-outbound-scheduler.d.ts +0 -29
  118. package/dist/database.d.ts +0 -305
  119. package/dist/event-buffer.d.ts +0 -9
  120. package/dist/fake-runner.d.ts +0 -42
  121. package/dist/health.d.ts +0 -4
  122. package/dist/main.d.ts +0 -2
  123. package/dist/migrations/v001.d.ts +0 -3
  124. package/dist/migrations/v002.d.ts +0 -4
  125. package/dist/migrations/v003.d.ts +0 -4
  126. package/dist/migrations/v004.d.ts +0 -4
  127. package/dist/native-jsonl-reader.d.ts +0 -35
  128. package/dist/native-session-history.d.ts +0 -126
  129. package/dist/opencode-runtime.d.ts +0 -33
  130. package/dist/opencode-server.d.ts +0 -49
  131. package/dist/operational.d.ts +0 -39
  132. package/dist/process-tree.d.ts +0 -9
  133. package/dist/rotating-log.d.ts +0 -17
  134. package/dist/runner/abstract-runner.d.ts +0 -172
  135. package/dist/runner/claude/managed-run-controller.d.ts +0 -51
  136. package/dist/runner/claude-code-runner.d.ts +0 -72
  137. package/dist/runner/codex/conversation-parser.d.ts +0 -59
  138. package/dist/runner/codex/managed-run-controller.d.ts +0 -90
  139. package/dist/runner/codex-runner.d.ts +0 -103
  140. package/dist/runner/fake-test-runner.d.ts +0 -26
  141. package/dist/runner/opencode/conversation-parser.d.ts +0 -31
  142. package/dist/runner/opencode/managed-run-controller.d.ts +0 -82
  143. package/dist/runner/opencode-runner.d.ts +0 -71
  144. package/dist/runner/runner-registry.d.ts +0 -19
  145. package/dist/runner-command-engine.d.ts +0 -28
  146. package/dist/runner-profiles.d.ts +0 -15
  147. package/dist/runner-usage.d.ts +0 -33
  148. package/dist/runtime-command-detector.d.ts +0 -3
  149. package/dist/runtime-state.d.ts +0 -171
  150. package/dist/service/attachment-domain-state.d.ts +0 -7
  151. package/dist/service/conversation-history-service.d.ts +0 -43
  152. package/dist/service/conversation-segment-service.d.ts +0 -20
  153. package/dist/service/external-session-resume-service.d.ts +0 -34
  154. package/dist/service/fake-managed-run-service.d.ts +0 -28
  155. package/dist/service/managed-runner-session-service.d.ts +0 -12
  156. package/dist/service/mcp-installation-verifier.d.ts +0 -9
  157. package/dist/service/mcp-node-operation-service.d.ts +0 -11
  158. package/dist/service/mcp-package-installer.d.ts +0 -8
  159. package/dist/service/native-session-projection-service.d.ts +0 -52
  160. package/dist/service/native-session-watch-service.d.ts +0 -62
  161. package/dist/service/node-connection-lifecycle-service.d.ts +0 -36
  162. package/dist/service/node-control-channel.d.ts +0 -32
  163. package/dist/service/node-control-message-service.d.ts +0 -27
  164. package/dist/service/node-request-service.d.ts +0 -14
  165. package/dist/service/node-run-event-bridge.d.ts +0 -40
  166. package/dist/service/node-terminal-channel.d.ts +0 -29
  167. package/dist/service/node-upgrade-coordinator.d.ts +0 -29
  168. package/dist/service/node-workspace-coordinator.d.ts +0 -29
  169. package/dist/service/recent-run-projection-service.d.ts +0 -14
  170. package/dist/service/run-attachment-service.d.ts +0 -38
  171. package/dist/service/run-domain-state.d.ts +0 -4
  172. package/dist/service/run-event-service.d.ts +0 -33
  173. package/dist/service/run-workbench-service.d.ts +0 -25
  174. package/dist/service/runner-channel-message-service.d.ts +0 -13
  175. package/dist/service/runner-interaction-service.d.ts +0 -39
  176. package/dist/service/runner-service.d.ts +0 -46
  177. package/dist/service/session-catalog-service.d.ts +0 -45
  178. package/dist/service/session-command-service.d.ts +0 -24
  179. package/dist/service/session-context-service.d.ts +0 -35
  180. package/dist/service/session-domain-state.d.ts +0 -9
  181. package/dist/service/session-identity-service.d.ts +0 -24
  182. package/dist/service/session-lifecycle-service.d.ts +0 -31
  183. package/dist/service/session-message-service.d.ts +0 -33
  184. package/dist/service/session-presentation-service.d.ts +0 -34
  185. package/dist/service/session-query-service.d.ts +0 -35
  186. package/dist/service/skill-directory-service.d.ts +0 -20
  187. package/dist/service/skill-install-service.d.ts +0 -21
  188. package/dist/service/skill-node-operation-service.d.ts +0 -44
  189. package/dist/service/terminal-relay-state.d.ts +0 -6
  190. package/dist/service/terminal-service.d.ts +0 -12
  191. package/dist/service/workbench-event-service.d.ts +0 -9
  192. package/dist/service/workbench-manifest-service.d.ts +0 -90
  193. package/dist/service/workspace-change-service.d.ts +0 -9
  194. package/dist/service/workspace-content-search-service.d.ts +0 -14
  195. package/dist/service/workspace-domain-state.d.ts +0 -79
  196. package/dist/service/workspace-file-service.d.ts +0 -18
  197. package/dist/service/workspace-git-exclude-service.d.ts +0 -4
  198. package/dist/service/workspace-queue-workbench-service.d.ts +0 -86
  199. package/dist/service/workspace-service.d.ts +0 -15
  200. package/dist/service/workspace-session-service.d.ts +0 -23
  201. package/dist/service/workspace-upload-service.d.ts +0 -39
  202. package/dist/service/workspace-watch-service.d.ts +0 -23
  203. package/dist/service/workspace-workbench-service.d.ts +0 -58
  204. package/dist/service.d.ts +0 -4
  205. package/dist/storage.d.ts +0 -2
  206. package/dist/supervisor.d.ts +0 -1
  207. package/dist/terminal.d.ts +0 -133
  208. package/dist/util/node-operation-parsers.d.ts +0 -92
  209. package/dist/util/personal-instructions.d.ts +0 -2
  210. package/dist/util/runner-error.d.ts +0 -6
  211. package/dist/util/runner-native-session-parsers.d.ts +0 -74
  212. package/dist/util/safe-error.d.ts +0 -2
  213. package/dist/util/secret-environment.d.ts +0 -1
  214. package/dist/workspace.d.ts +0 -217
@@ -1,217 +0,0 @@
1
- import type { GitSummary, WorkspaceKind } from '@myagentroam/protocol';
2
- export interface WorkspaceInspection {
3
- readonly path: string;
4
- readonly kind: WorkspaceKind;
5
- readonly gitSummary?: GitSummary;
6
- }
7
- export interface WorkspaceFileEntry {
8
- readonly path: string;
9
- readonly name: string;
10
- readonly kind: 'FILE' | 'DIRECTORY';
11
- readonly size: number | null;
12
- readonly modifiedAt: number | null;
13
- }
14
- export interface WorkspaceFilePage {
15
- readonly entries: readonly WorkspaceFileEntry[];
16
- readonly nextCursor: string | null;
17
- readonly truncated: boolean;
18
- }
19
- export interface WorkspaceFileSearchPage {
20
- readonly entries: readonly WorkspaceFileEntry[];
21
- readonly nextCursor: string | null;
22
- readonly truncated: boolean;
23
- }
24
- export type WorkspaceUploadPreflightStatus = 'READY' | 'EXISTS_FILE' | 'EXISTS_DIRECTORY' | 'INVALID_NAME';
25
- export interface WorkspaceUploadTarget {
26
- readonly path: string;
27
- readonly absolutePath: string;
28
- readonly status: WorkspaceUploadPreflightStatus;
29
- }
30
- export interface WorkspaceDirectoryEntry {
31
- readonly path: string;
32
- readonly name: string;
33
- readonly selectable: boolean;
34
- }
35
- export interface WorkspaceDirectoryListing {
36
- readonly homePath: string;
37
- readonly currentPath: string;
38
- readonly parentPath: string | null;
39
- readonly browseRoots: readonly string[];
40
- readonly selectable: boolean;
41
- readonly entries: readonly WorkspaceDirectoryEntry[];
42
- readonly truncated: boolean;
43
- }
44
- export declare function createWorkspaceDirectory(parentPath: string, directoryName: string, allowedRoots: readonly string[]): Promise<string>;
45
- /** A per-workspace, process-local index for the Quick Open file picker. */
46
- export declare class WorkspaceFileIndex {
47
- private readonly workspaceRoot;
48
- private readonly limits;
49
- private entries;
50
- private truncated;
51
- private root;
52
- private loading;
53
- private stale;
54
- private watcher;
55
- private expiryTimer;
56
- private fallbackTimer;
57
- private signature;
58
- constructor(workspaceRoot: string, limits?: {
59
- readonly entryLimit?: number;
60
- readonly idleTtlMs?: number;
61
- readonly onInvalidated?: () => void;
62
- });
63
- /** Starts/renews the lightweight index observer without exposing file data. */
64
- observe(): Promise<void>;
65
- contentCandidates(): Promise<{
66
- readonly entries: readonly WorkspaceFileEntry[];
67
- readonly truncated: boolean;
68
- }>;
69
- dispose(): void;
70
- search(query: string, cursor?: string, limit?: number, includeDirectories?: boolean): Promise<WorkspaceFileSearchPage>;
71
- private ensureLoaded;
72
- private touch;
73
- private rebuild;
74
- private startFallbackPolling;
75
- private pollFallback;
76
- private invalidate;
77
- }
78
- /**
79
- * Lists directory names only for the Workspace picker. Browsing begins at the
80
- * first allowed root when configured, while the Node account home remains a
81
- * browse boundary and terminal default.
82
- */
83
- export declare function listWorkspaceDirectories(requestedPath: string | undefined, allowedRoots: readonly string[], homePath?: string): Promise<WorkspaceDirectoryListing>;
84
- export declare function listWorkspaceFiles(workspaceRoot: string, requestedPath?: string, cursor?: string, limit?: number): Promise<WorkspaceFilePage>;
85
- export type WorkspaceFileMutation = {
86
- readonly action: 'CREATE_FILE';
87
- readonly path: string;
88
- } | {
89
- readonly action: 'CREATE_DIRECTORY';
90
- readonly path: string;
91
- } | {
92
- readonly action: 'MOVE';
93
- readonly path: string;
94
- readonly destination: string;
95
- } | {
96
- readonly action: 'DELETE';
97
- readonly path: string;
98
- };
99
- export declare function mutateWorkspaceFile(workspaceRoot: string, mutation: WorkspaceFileMutation): Promise<{
100
- readonly path?: string;
101
- readonly deleted?: true;
102
- }>;
103
- /** Validates an upload destination without following an existing target symlink. */
104
- export declare function preflightWorkspaceUpload(workspaceRoot: string, requestedDirectory: string, name: string): Promise<WorkspaceUploadTarget>;
105
- export declare function workspaceUploadTemporaryName(uploadId: string): string;
106
- export declare function readWorkspaceTextFile(workspaceRoot: string, requestedPath: string, offset?: number, limit?: number): Promise<{
107
- readonly path: string;
108
- readonly encoding: 'utf-8' | 'base64';
109
- readonly size: number;
110
- readonly content: string;
111
- readonly truncated: boolean;
112
- readonly nextOffset: number | null;
113
- }>;
114
- export declare function readWorkspaceFileContentRange(workspaceRoot: string, requestedPath: string, offset?: number, limit?: number): Promise<{
115
- readonly path: string;
116
- readonly size: number;
117
- readonly offset: number;
118
- readonly contentBase64: string;
119
- readonly nextOffset: number | null;
120
- }>;
121
- /** Reads one absolute file only when the resolved target remains within a Node allowed root. */
122
- export declare function readAllowedTextFile(requestedPath: string, allowedRoots: readonly string[], offset?: number, limit?: number): Promise<{
123
- readonly path: string;
124
- readonly encoding: 'utf-8' | 'base64';
125
- readonly size: number;
126
- readonly content: string;
127
- readonly truncated: boolean;
128
- readonly nextOffset: number | null;
129
- }>;
130
- /** Searches file names only, so an exploratory request cannot exfiltrate file contents. */
131
- export declare function searchWorkspaceFiles(workspaceRoot: string, query: string, cursor?: string, limit?: number, includeDirectories?: boolean): Promise<WorkspaceFileSearchPage>;
132
- export declare function normalizeWorkspacePath(input: string, platform?: NodeJS.Platform): string;
133
- export declare function isWithinAllowedRoot(target: string, roots: readonly string[], platform?: NodeJS.Platform): boolean;
134
- /** Resolving both candidate and roots rejects Linux symlinks which point outside a root. */
135
- export declare function inspectWorkspace(requestedPath: string, allowedRoots: readonly string[]): Promise<WorkspaceInspection>;
136
- export declare function readGitSummary(workspacePath: string): Promise<GitSummary>;
137
- export declare function assertSafeGitRef(ref: string): void;
138
- export declare function readRestrictedDiff(workspacePath: string, fromRef: string, toRef: string): Promise<{
139
- readonly binary: boolean;
140
- readonly text?: string;
141
- readonly summary?: string;
142
- readonly truncated: boolean;
143
- }>;
144
- export type CurrentChange = {
145
- readonly path: string;
146
- readonly state: 'STAGED' | 'UNSTAGED' | 'UNTRACKED';
147
- readonly change: 'ADDED' | 'MODIFIED' | 'DELETED' | 'RENAMED' | 'COPIED' | 'TYPE_CHANGED';
148
- };
149
- export interface CurrentChangesRepository {
150
- readonly repositoryPath: string;
151
- readonly repositoryName: string;
152
- readonly branch: string | null;
153
- readonly changes: readonly CurrentChange[];
154
- }
155
- export declare function readCurrentChangesSummary(workspacePath: string): Promise<{
156
- readonly branch: string | null;
157
- readonly changes: readonly CurrentChange[];
158
- }>;
159
- export declare function listInitializedSubmodulePaths(workspacePath: string): Promise<readonly string[]>;
160
- export declare function resolveGitRepository(workspacePath: string, repositoryPath: string): Promise<string>;
161
- export interface GitHistoryRefEntry {
162
- readonly name: string;
163
- readonly displayName: string;
164
- readonly kind: 'LOCAL' | 'REMOTE';
165
- readonly hash: string;
166
- readonly current: boolean;
167
- }
168
- export declare function listGitHistoryRefs(repository: string): Promise<readonly GitHistoryRefEntry[]>;
169
- export declare function readGitHistory(repository: string, input: {
170
- readonly refs?: readonly string[];
171
- readonly cursor?: string;
172
- readonly limit?: number;
173
- }): Promise<{
174
- readonly commits: readonly object[];
175
- readonly nextCursor: string | null;
176
- }>;
177
- export declare function readGitHistoryFiles(repository: string, commit: string, refs?: readonly string[]): Promise<readonly {
178
- path: string;
179
- previousPath?: string;
180
- change: ReturnType<typeof gitChange>;
181
- }[]>;
182
- export declare function readGitHistoryFileDiff(repository: string, commit: string, requestedPath: string, refs?: readonly string[], requestedPreviousPath?: string): Promise<{
183
- readonly binary: boolean;
184
- readonly text?: string;
185
- readonly summary?: string;
186
- readonly truncated: boolean;
187
- }>;
188
- export declare function readGitHistoryFileContentRange(repository: string, commit: string, requestedPath: string, offset: number, limit: number, refs?: readonly string[]): Promise<{
189
- readonly path: string;
190
- readonly size: number;
191
- readonly offset: number;
192
- readonly contentBase64: string;
193
- readonly nextOffset: number | null;
194
- }>;
195
- export declare function readCurrentChanges(workspacePath: string): Promise<readonly {
196
- readonly path: string;
197
- readonly state: 'STAGED' | 'UNSTAGED' | 'UNTRACKED';
198
- readonly change: 'ADDED' | 'MODIFIED' | 'DELETED' | 'RENAMED' | 'COPIED' | 'TYPE_CHANGED';
199
- }[]>;
200
- export declare function readCurrentChangeDiff(workspacePath: string, requestedPath: string): Promise<{
201
- readonly binary: boolean;
202
- readonly text?: string;
203
- readonly summary?: string;
204
- readonly truncated: boolean;
205
- readonly afterText?: string;
206
- readonly afterTruncated?: boolean;
207
- }>;
208
- /** Current Changes must not expose an external link. */
209
- export declare function isWorkspaceChangeVisible(workspacePath: string, requestedPath: string): Promise<boolean>;
210
- export declare function restoreCurrentChange(workspacePath: string, requestedPath: string, state: 'STAGED' | 'UNSTAGED' | 'UNTRACKED'): Promise<void>;
211
- declare function gitChange(status: string): 'ADDED' | 'MODIFIED' | 'DELETED' | 'RENAMED' | 'COPIED' | 'TYPE_CHANGED';
212
- export declare class GitCommandError extends Error {
213
- readonly code: number;
214
- readonly stderr: string;
215
- constructor(code: number, stderr: string);
216
- }
217
- export {};