nolo-cli 0.1.32 → 0.1.33

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 (230) hide show
  1. package/README.md +0 -6
  2. package/agent-runtime/agentRecordConfig.ts +2 -0
  3. package/agent-runtime/hostAdapter.ts +1 -0
  4. package/agent-runtime/index.ts +0 -21
  5. package/agent-runtime/localToolPolicy.ts +6 -13
  6. package/agent-runtime/localWorkspaceTools.ts +30 -333
  7. package/agent-runtime/platformChatProvider.ts +1 -4
  8. package/agent-runtime/runtimeToolPolicy.ts +47 -32
  9. package/agentAliases.ts +14 -83
  10. package/agentCommandSupport.ts +3 -6
  11. package/agentInternalCommandEntries.ts +2 -13
  12. package/agentListCommands.ts +19 -28
  13. package/agentMachineCommands.ts +40 -336
  14. package/agentPullCommand.ts +36 -56
  15. package/agentRecordCommands.ts +3 -5
  16. package/agentRecordHelpers.ts +22 -189
  17. package/agentRunCommand.ts +438 -107
  18. package/agentRuntimeLocal.ts +0 -10
  19. package/ai/agent/cliExecutor.ts +19 -323
  20. package/authCommands.ts +2 -36
  21. package/cli/agentAliases.ts +14 -83
  22. package/cli/agentCommandSupport.ts +3 -6
  23. package/cli/agentInternalCommandEntries.ts +2 -13
  24. package/cli/agentListCommands.ts +19 -28
  25. package/cli/agentMachineCommands.ts +40 -336
  26. package/cli/agentPullCommand.ts +36 -56
  27. package/cli/agentRecordCommands.ts +3 -5
  28. package/cli/agentRecordHelpers.ts +22 -189
  29. package/cli/agentRunCommand.ts +438 -107
  30. package/cli/agentRuntimeLocal.ts +0 -10
  31. package/cli/authCommands.ts +2 -36
  32. package/cli/cliEnvHelpers.ts +21 -162
  33. package/cli/client/agentRun.ts +853 -57
  34. package/cli/client/localRuntimeAdapter.ts +22 -159
  35. package/cli/client/streamingOutput.ts +3 -1
  36. package/cli/client/taskRunPrompt.ts +24 -7
  37. package/cli/commandRegistry.ts +2 -3
  38. package/cli/connectorRunArtifact.ts +10 -34
  39. package/cli/connectorWebSocketTarget.ts +6 -10
  40. package/cli/internalCommandEntries.ts +0 -8
  41. package/cli/localRuntimeDb.ts +2 -39
  42. package/cli/machineCommands.ts +189 -190
  43. package/cli/machineDaemonCommands.ts +165 -9
  44. package/cli/machineHeartbeatCommands.ts +2 -1
  45. package/cli/machineStatusCommands.ts +13 -5
  46. package/cli/machineWatchCommands.ts +1 -1
  47. package/cli/machineWsRunDispatch.ts +14 -48
  48. package/cli/machineWsSession.ts +0 -2
  49. package/cli/offlineMarxistsAgentCommand.ts +314 -0
  50. package/cli/runtimeDoctorCommands.ts +69 -18
  51. package/cli/scriptCommandEntries.ts +45 -5
  52. package/cli/tableCommands.ts +133 -33
  53. package/cli/taskRunCommand.ts +211 -16
  54. package/cli/tui/session.ts +372 -43
  55. package/cli/workflowInternalCommandEntries.ts +0 -20
  56. package/cliEnvHelpers.ts +21 -162
  57. package/client/agentConfigResolver.test.ts +2 -0
  58. package/client/agentRun.test.ts +12 -208
  59. package/client/agentRun.ts +853 -57
  60. package/client/localRuntimeAdapter.test.ts +9 -168
  61. package/client/localRuntimeAdapter.ts +22 -159
  62. package/client/localToolPolicy.test.ts +4 -28
  63. package/client/streamingOutput.ts +3 -1
  64. package/client/taskRunPrompt.ts +24 -7
  65. package/commandRegistry.ts +2 -3
  66. package/connectorRunArtifact.ts +10 -34
  67. package/connectorWebSocketTarget.ts +6 -10
  68. package/database/server/db.ts +34 -15
  69. package/internalCommandEntries.ts +0 -8
  70. package/localRuntimeDb.ts +2 -39
  71. package/machineCommands.ts +189 -190
  72. package/machineDaemonCommands.ts +165 -9
  73. package/machineHeartbeatCommands.ts +2 -1
  74. package/machineStatusCommands.ts +13 -5
  75. package/machineWatchCommands.ts +1 -1
  76. package/machineWsRunDispatch.ts +14 -48
  77. package/machineWsSession.ts +0 -2
  78. package/offlineMarxistsAgentCommand.ts +314 -0
  79. package/package.json +49 -193
  80. package/runtimeDoctorCommands.ts +69 -18
  81. package/scriptCommandEntries.ts +45 -5
  82. package/tableCommands.ts +133 -33
  83. package/taskRunCommand.ts +211 -16
  84. package/tui/session.ts +372 -43
  85. package/workflowInternalCommandEntries.ts +0 -20
  86. package/agent-runtime/dialogStatus.ts +0 -139
  87. package/agent-runtime/hostRuntimeConfig.ts +0 -86
  88. package/agentCreateCustomCommands.ts +0 -278
  89. package/agentDialogsCommands.ts +0 -227
  90. package/agentDoctorCommands.ts +0 -203
  91. package/agentRunLocalWorkspace.ts +0 -182
  92. package/agentRunParsing.ts +0 -298
  93. package/agentSuperviseCommands.ts +0 -8
  94. package/agentUnpublishCommands.ts +0 -113
  95. package/ai/agent/agentRunDialogLineage.ts +0 -56
  96. package/ai/policy/types.ts +0 -64
  97. package/ai/skills/skillSummaryMarker.ts +0 -26
  98. package/app/types.ts +0 -358
  99. package/build.ts +0 -16
  100. package/buildPublish.ts +0 -138
  101. package/buildPublishArtifactAssembly.ts +0 -724
  102. package/buildPublishImportAnalysis.ts +0 -242
  103. package/chat/messages/fetchMessages.ts +0 -84
  104. package/chat/messages/types.ts +0 -185
  105. package/cli/agentCreateCustomCommands.ts +0 -278
  106. package/cli/agentDialogsCommands.ts +0 -227
  107. package/cli/agentDoctorCommands.ts +0 -203
  108. package/cli/agentRunLocalWorkspace.ts +0 -182
  109. package/cli/agentRunParsing.ts +0 -298
  110. package/cli/agentSuperviseCommands.ts +0 -8
  111. package/cli/agentUnpublishCommands.ts +0 -113
  112. package/cli/buildPublish.ts +0 -138
  113. package/cli/buildPublishArtifactAssembly.ts +0 -724
  114. package/cli/buildPublishImportAnalysis.ts +0 -242
  115. package/cli/cliIoTypes.ts +0 -3
  116. package/cli/cliRuntimeDoctorReport.ts +0 -193
  117. package/cli/client/agentRunInput.ts +0 -10
  118. package/cli/client/agentRunLocalExecution.ts +0 -124
  119. package/cli/client/agentRunLocalExecutor.ts +0 -179
  120. package/cli/client/agentRunRuntimeSelection.ts +0 -145
  121. package/cli/client/agentRunServerTransport.ts +0 -397
  122. package/cli/client/agentRunTaskRunRecorder.ts +0 -176
  123. package/cli/customCodingAgentFlow.ts +0 -208
  124. package/cli/customCodingAgentRecord.ts +0 -179
  125. package/cli/dialogDataAccess.ts +0 -186
  126. package/cli/dialogInternalCommandEntries.ts +0 -11
  127. package/cli/dialogReadCommands.ts +0 -180
  128. package/cli/dialogReadHelpers.ts +0 -226
  129. package/cli/dialogStatusCommands.ts +0 -123
  130. package/cli/docInternalCommandEntries.ts +0 -20
  131. package/cli/hybridReadHelpers.ts +0 -109
  132. package/cli/machineCommandPrompts.ts +0 -79
  133. package/cli/machineCommandResolution.ts +0 -43
  134. package/cli/noloReadBridgePrompt.ts +0 -16
  135. package/cli/pageCreateCommands.ts +0 -219
  136. package/cli/pageDeleteCommands.ts +0 -167
  137. package/cli/pageReadCommands.ts +0 -151
  138. package/cli/pageUpdateCommands.ts +0 -249
  139. package/cli/pageWriteHelpers.ts +0 -209
  140. package/cli/publishPackage.ts +0 -36
  141. package/cli/runtimeInternalCommandEntries.ts +0 -15
  142. package/cli/runtimePassthroughCommands.ts +0 -22
  143. package/cli/scriptPassthroughHelpers.ts +0 -28
  144. package/cli/secretScanHelpers.ts +0 -31
  145. package/cli/spaceAttachCommands.ts +0 -134
  146. package/cli/spaceCategoryCommands.ts +0 -263
  147. package/cli/spaceCommands.ts +0 -295
  148. package/cli/spaceDeleteCommands.ts +0 -312
  149. package/cli/spaceInternalCommandEntries.ts +0 -21
  150. package/cli/spaceMutationHelpers.ts +0 -135
  151. package/cli/spaceReadCommands.ts +0 -323
  152. package/cli/tableDataOutput.ts +0 -41
  153. package/cli/tableDataSafety.ts +0 -26
  154. package/cli/tableMetaCommands.ts +0 -307
  155. package/cli/tableMutationCommands.ts +0 -266
  156. package/cli/tableQueryParsing.ts +0 -90
  157. package/cli/tableQueryRequest.ts +0 -53
  158. package/cli/taskRunActions.ts +0 -122
  159. package/cli/taskRunParsing.ts +0 -86
  160. package/cli/taskRunPromptShared.ts +0 -55
  161. package/cli/tui/tuiCatalog.ts +0 -22
  162. package/cli/tui/tuiCommandInterpreter.ts +0 -253
  163. package/cli/tui/tuiPresentation.ts +0 -146
  164. package/cliIoTypes.ts +0 -3
  165. package/cliRuntimeDoctorReport.ts +0 -193
  166. package/client/agentRunInput.ts +0 -10
  167. package/client/agentRunLocalExecution.test.ts +0 -123
  168. package/client/agentRunLocalExecution.ts +0 -124
  169. package/client/agentRunLocalExecutor.ts +0 -179
  170. package/client/agentRunRuntimeSelection.test.ts +0 -159
  171. package/client/agentRunRuntimeSelection.ts +0 -145
  172. package/client/agentRunServerTransport.ts +0 -397
  173. package/client/agentRunTaskRunRecorder.ts +0 -176
  174. package/connector-experimental/daemonLauncher.ts +0 -223
  175. package/create/space/spaceKeys.ts +0 -65
  176. package/create/types.ts +0 -21
  177. package/customCodingAgentFlow.ts +0 -208
  178. package/customCodingAgentRecord.ts +0 -179
  179. package/database/keys.ts +0 -765
  180. package/database/server/authorityStoreTypes.ts +0 -31
  181. package/database/server/legacyServerDb.ts +0 -58
  182. package/database/server/levelAuthorityStore.ts +0 -75
  183. package/database/server/memoryAuthorityStore.ts +0 -133
  184. package/database/server/serverStoreFactory.ts +0 -124
  185. package/database/tombstones.ts +0 -52
  186. package/database/utils/ulid.ts +0 -1
  187. package/dialogDataAccess.ts +0 -186
  188. package/dialogInternalCommandEntries.ts +0 -11
  189. package/dialogReadCommands.ts +0 -180
  190. package/dialogReadHelpers.ts +0 -226
  191. package/dialogStatusCommands.ts +0 -123
  192. package/docInternalCommandEntries.ts +0 -20
  193. package/hybridReadHelpers.ts +0 -109
  194. package/machineCommandPrompts.ts +0 -79
  195. package/machineCommandResolution.ts +0 -43
  196. package/noloReadBridgePrompt.ts +0 -16
  197. package/pageCreateCommands.ts +0 -219
  198. package/pageDeleteCommands.ts +0 -167
  199. package/pageReadCommands.ts +0 -151
  200. package/pageUpdateCommands.ts +0 -249
  201. package/pageWriteHelpers.ts +0 -209
  202. package/publishPackage.ts +0 -36
  203. package/runtimeInternalCommandEntries.ts +0 -15
  204. package/runtimePassthroughCommands.ts +0 -22
  205. package/scriptPassthroughHelpers.ts +0 -28
  206. package/secretScanHelpers.ts +0 -31
  207. package/share/helpers.ts +0 -302
  208. package/share/keys.ts +0 -243
  209. package/share/types.ts +0 -100
  210. package/spaceAttachCommands.ts +0 -134
  211. package/spaceCategoryCommands.ts +0 -263
  212. package/spaceCommands.ts +0 -295
  213. package/spaceDeleteCommands.ts +0 -312
  214. package/spaceInternalCommandEntries.ts +0 -21
  215. package/spaceMutationHelpers.ts +0 -135
  216. package/spaceReadCommands.ts +0 -323
  217. package/tableDataOutput.ts +0 -41
  218. package/tableDataSafety.ts +0 -26
  219. package/tableMetaCommands.ts +0 -307
  220. package/tableMutationCommands.ts +0 -266
  221. package/tableQueryParsing.ts +0 -90
  222. package/tableQueryRequest.ts +0 -53
  223. package/taskRunActions.ts +0 -122
  224. package/taskRunParsing.ts +0 -86
  225. package/taskRunPromptShared.ts +0 -55
  226. package/tui/tuiCatalog.ts +0 -22
  227. package/tui/tuiCommandInterpreter.test.ts +0 -169
  228. package/tui/tuiCommandInterpreter.ts +0 -253
  229. package/tui/tuiPresentation.test.ts +0 -154
  230. package/tui/tuiPresentation.ts +0 -146
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nolo-cli",
3
- "version": "0.1.32",
3
+ "version": "0.1.33",
4
4
  "type": "module",
5
5
  "description": "Agent-first terminal workspace for Nolo",
6
6
  "bin": {
@@ -12,144 +12,80 @@
12
12
  "agentRuntimeLocal.ts",
13
13
  "agentAliases.ts",
14
14
  "agentCommandSupport.ts",
15
- "agentCreateCustomCommands.ts",
16
- "agentDialogsCommands.ts",
17
- "agentDoctorCommands.ts",
18
15
  "agentListCommands.ts",
19
16
  "localRuntimeDb.ts",
20
17
  "agentRuntimeCommands.ts",
21
18
  "agentListHelpers.ts",
22
19
  "agentMachineCommands.ts",
23
20
  "agentPullCommand.ts",
24
- "agentRunLocalWorkspace.ts",
25
- "agentRunParsing.ts",
26
21
  "agentRecordCommands.ts",
27
22
  "agentRecordHelpers.ts",
28
23
  "agentRunCommand.ts",
29
- "agentSuperviseCommands.ts",
30
- "agentUnpublishCommands.ts",
31
24
  "authCommands.ts",
32
- "build.ts",
33
- "buildPublish.ts",
34
- "buildPublishArtifactAssembly.ts",
35
- "buildPublishImportAnalysis.ts",
36
25
  "cliCommandAdapters.ts",
37
26
  "cliCommandFactories.ts",
38
27
  "cliCommandDispatch.ts",
39
28
  "cliCommandTypes.ts",
40
29
  "cliEnvHelpers.ts",
41
- "cliIoTypes.ts",
42
- "hybridReadHelpers.ts",
43
30
  "commandRegistry.ts",
44
31
  "connectorRunArtifact.ts",
45
32
  "connectorWebSocketTarget.ts",
46
- "customCodingAgentFlow.ts",
47
- "customCodingAgentRecord.ts",
48
33
  "defaultServer.ts",
49
34
  "agentInternalCommandEntries.ts",
50
- "dialogInternalCommandEntries.ts",
51
- "dialogDataAccess.ts",
52
- "dialogReadCommands.ts",
53
- "dialogReadHelpers.ts",
54
- "dialogStatusCommands.ts",
55
- "docInternalCommandEntries.ts",
56
35
  "internalCommandEntries.ts",
57
- "machineCommandPrompts.ts",
58
- "machineCommandResolution.ts",
59
36
  "machineCommands.ts",
60
- "machineDaemonCommands.ts",
61
- "machineHeartbeatCommands.ts",
62
- "machineStatusCommands.ts",
63
- "machineWatchCommands.ts",
64
- "machineWsPromptMaterialization.ts",
65
- "machineWsRunDispatch.ts",
66
- "machineWsSession.ts",
67
- "pageCreateCommands.ts",
68
- "pageDeleteCommands.ts",
69
- "pageReadCommands.ts",
70
- "pageUpdateCommands.ts",
71
- "pageWriteHelpers.ts",
72
- "publishPackage.ts",
73
- "runtimeInternalCommandEntries.ts",
37
+ "offlineMarxistsAgentCommand.ts",
74
38
  "runtimeDoctorCommands.ts",
75
- "runtimePassthroughCommands.ts",
76
39
  "scriptCommandEntries.ts",
77
- "scriptPassthroughHelpers.ts",
78
- "secretScanHelpers.ts",
79
- "spaceCategoryCommands.ts",
80
- "spaceCommands.ts",
81
- "spaceDeleteCommands.ts",
82
- "spaceInternalCommandEntries.ts",
83
- "spaceMutationHelpers.ts",
84
- "spaceReadCommands.ts",
85
40
  "systemInternalCommandEntries.ts",
86
- "tableDataOutput.ts",
87
- "tableQueryParsing.ts",
88
- "tableQueryRequest.ts",
89
- "tableDataSafety.ts",
90
- "tableMetaCommands.ts",
91
- "tableMutationCommands.ts",
92
41
  "taskRunCommand.ts",
93
- "taskRunPromptShared.ts",
94
- "taskRunActions.ts",
95
- "taskRunParsing.ts",
96
42
  "workflowInternalCommandEntries.ts",
97
43
  "runtimeModeArgs.ts",
98
44
  "tableCommands.ts",
99
45
  "updateCommands.ts",
46
+ "client/agentRun.ts",
47
+ "client/streamingOutput.ts",
48
+ "client/localRuntimeAdapter.ts",
100
49
  "client/compactDialog.test.ts",
101
- "client/localAgentRecords.test.ts",
102
- "client/localRuntimeDryRun.test.ts",
103
- "client/agentRunTaskRunRecorder.ts",
104
- "client/workspaceSession.test.ts",
105
- "client/localProviderResolver.test.ts",
50
+ "client/localProviderResolver.ts",
106
51
  "client/localDialogRecords.ts",
107
- "client/agentRunLocalExecutor.ts",
108
- "client/localDialogRecords.test.ts",
109
- "client/profileConfig.test.ts",
110
- "client/profileConfig.ts",
111
- "client/agentRunRuntimeSelection.ts",
112
- "client/localAgentRecords.ts",
113
- "client/taskWorktree.ts",
114
- "client/localToolPolicy.test.ts",
115
- "client/streamingOutput.test.ts",
116
- "client/streamingOutput.ts",
117
- "client/localToolPolicy.ts",
52
+ "client/localAgentRecords.test.ts",
118
53
  "client/compactDialog.ts",
119
- "client/hybridRecordStore.test.ts",
120
- "client/agentRun.ts",
121
- "client/localRuntimeAdapter.test.ts",
122
- "client/agentRunRuntimeSelection.test.ts",
123
- "client/agentRunLocalExecution.test.ts",
124
- "client/agentRunInput.ts",
125
- "client/localProviderResolver.ts",
126
- "client/taskRunPrompt.ts",
127
54
  "client/hybridRecordStore.ts",
128
55
  "client/agentConfigResolver.test.ts",
129
- "client/agentRunServerTransport.ts",
56
+ "client/localAgentRecords.ts",
57
+ "client/localProviderResolver.test.ts",
58
+ "client/taskRunPrompt.ts",
59
+ "client/localToolPolicy.test.ts",
60
+ "client/localRuntimeDryRun.test.ts",
61
+ "client/agentConfigResolver.ts",
62
+ "client/localToolPolicy.ts",
63
+ "client/localDialogRecords.test.ts",
130
64
  "client/workspaceSession.ts",
131
65
  "client/agentRun.test.ts",
132
- "client/agentConfigResolver.ts",
133
- "client/agentRunLocalExecution.ts",
134
- "client/localRuntimeAdapter.ts",
135
- "tui/tuiPresentation.ts",
136
- "tui/readlineWorkspace.ts",
66
+ "client/streamingOutput.test.ts",
67
+ "client/hybridRecordStore.test.ts",
68
+ "client/taskWorktree.ts",
69
+ "client/workspaceSession.test.ts",
70
+ "client/profileConfig.ts",
71
+ "client/profileConfig.test.ts",
72
+ "client/localRuntimeAdapter.test.ts",
137
73
  "tui/session.ts",
138
- "tui/tuiPresentation.test.ts",
139
- "tui/tuiCommandInterpreter.test.ts",
140
- "tui/tuiCommandInterpreter.ts",
141
- "tui/tuiCatalog.ts",
74
+ "tui/readlineWorkspace.ts",
142
75
  "README.md",
76
+ "ai/index.ts",
143
77
  "ai/agent.ts",
144
- "ai/tools/agent/taskRunTool.ts",
145
78
  "ai/agent/agentSlice.ts",
146
79
  "ai/agent/machineRunPermissions.ts",
147
- "ai/index.ts",
148
80
  "connector-experimental/protocol.ts",
149
81
  "connector-experimental/machineInfo.ts",
150
- "spaceAttachCommands.ts",
151
- "cliRuntimeDoctorReport.ts",
152
- "noloReadBridgePrompt.ts",
82
+ "machineDaemonCommands.ts",
83
+ "machineHeartbeatCommands.ts",
84
+ "machineWatchCommands.ts",
85
+ "machineWsRunDispatch.ts",
86
+ "machineWsSession.ts",
87
+ "machineStatusCommands.ts",
88
+ "machineWsPromptMaterialization.ts",
153
89
  "cli/commandRegistry.ts",
154
90
  "cli/client/profileConfig.ts",
155
91
  "cli/runtimeModeArgs.ts",
@@ -157,121 +93,61 @@
157
93
  "cli/updateCommands.ts",
158
94
  "cli/client/hybridRecordStore.ts",
159
95
  "cli/cliEnvHelpers.ts",
160
- "cli/cliIoTypes.ts",
161
- "cli/machineWsRunDispatch.ts",
162
96
  "cli/localRuntimeDb.ts",
163
- "cli/agentRecordHelpers.ts",
164
- "cli/customCodingAgentFlow.ts",
165
- "cli/customCodingAgentRecord.ts",
166
97
  "cli/agentCommandSupport.ts",
167
- "cli/hybridReadHelpers.ts",
168
98
  "cli/agentListHelpers.ts",
99
+ "cli/agentRecordHelpers.ts",
169
100
  "cli/client/localRuntimeAdapter.ts",
170
101
  "cli/agentListCommands.ts",
171
102
  "cli/agentMachineCommands.ts",
172
103
  "cli/runtimeDoctorCommands.ts",
173
104
  "cli/connectorWebSocketTarget.ts",
174
105
  "cli/agentAliases.ts",
175
- "cli/machineCommandPrompts.ts",
176
- "cli/client/taskWorktree.ts",
177
- "cli/agentRuntimeLocal.ts",
178
- "cli/client/taskRunPrompt.ts",
106
+ "cli/machineCommands.ts",
107
+ "cli/defaultServer.ts",
179
108
  "cli/client/localAgentRecords.ts",
180
- "cli/spaceMutationHelpers.ts",
181
109
  "cli/client/agentRun.ts",
182
- "cli/agentRunLocalWorkspace.ts",
183
- "cli/agentRunParsing.ts",
184
- "cli/scriptPassthroughHelpers.ts",
185
- "cli/defaultServer.ts",
186
- "cli/buildPublish.ts",
187
- "cli/buildPublishArtifactAssembly.ts",
188
- "cli/buildPublishImportAnalysis.ts",
189
- "cli/publishPackage.ts",
110
+ "cli/agentRuntimeLocal.ts",
111
+ "cli/client/taskWorktree.ts",
112
+ "cli/client/taskRunPrompt.ts",
190
113
  "cli/cliCommandTypes.ts",
191
114
  "cli/cliCommandAdapters.ts",
192
115
  "cli/cliCommandDispatch.ts",
193
116
  "cli/internalCommandEntries.ts",
194
117
  "cli/scriptCommandEntries.ts",
195
- "cli/agentCreateCustomCommands.ts",
196
- "cli/agentDialogsCommands.ts",
197
- "cli/agentDoctorCommands.ts",
198
- "cli/agentUnpublishCommands.ts",
199
- "cli/agentSuperviseCommands.ts",
200
118
  "cli/agentPullCommand.ts",
201
119
  "cli/agentRecordCommands.ts",
202
120
  "cli/agentRunCommand.ts",
203
121
  "cli/cliCommandFactories.ts",
204
- "cli/dialogReadCommands.ts",
205
- "cli/dialogStatusCommands.ts",
206
- "cli/dialogReadHelpers.ts",
207
- "cli/dialogDataAccess.ts",
208
- "cli/pageCreateCommands.ts",
209
- "cli/pageDeleteCommands.ts",
210
- "cli/pageReadCommands.ts",
211
- "cli/pageUpdateCommands.ts",
122
+ "cli/offlineMarxistsAgentCommand.ts",
212
123
  "cli/agentInternalCommandEntries.ts",
213
- "cli/dialogInternalCommandEntries.ts",
214
- "cli/docInternalCommandEntries.ts",
215
- "cli/runtimeInternalCommandEntries.ts",
216
- "cli/spaceInternalCommandEntries.ts",
217
124
  "cli/systemInternalCommandEntries.ts",
218
125
  "cli/workflowInternalCommandEntries.ts",
219
- "cli/noloReadBridgePrompt.ts",
220
126
  "cli/machineDaemonCommands.ts",
221
127
  "cli/machineHeartbeatCommands.ts",
222
128
  "cli/machineWatchCommands.ts",
129
+ "cli/machineWsRunDispatch.ts",
223
130
  "cli/machineWsSession.ts",
224
- "cli/machineCommandResolution.ts",
225
131
  "cli/machineStatusCommands.ts",
226
- "cli/connectorRunArtifact.ts",
227
- "cli/machineWsPromptMaterialization.ts",
228
- "cli/pageWriteHelpers.ts",
229
- "cli/secretScanHelpers.ts",
230
- "cli/runtimePassthroughCommands.ts",
231
- "cli/cliRuntimeDoctorReport.ts",
232
- "cli/spaceAttachCommands.ts",
233
- "cli/spaceCategoryCommands.ts",
234
- "cli/spaceDeleteCommands.ts",
235
- "cli/spaceCommands.ts",
236
- "cli/spaceReadCommands.ts",
237
132
  "cli/authCommands.ts",
238
- "cli/machineCommands.ts",
239
- "cli/tableDataOutput.ts",
240
- "cli/tableQueryParsing.ts",
241
- "cli/tableDataSafety.ts",
242
- "cli/taskRunParsing.ts",
243
- "cli/taskRunActions.ts",
244
- "cli/tableMetaCommands.ts",
245
- "cli/tableMutationCommands.ts",
246
133
  "cli/tableCommands.ts",
247
134
  "cli/taskRunCommand.ts",
248
- "cli/tableQueryRequest.ts",
249
- "cli/client/compactDialog.ts",
250
- "cli/client/agentRunLocalExecution.ts",
251
- "cli/client/workspaceSession.ts",
135
+ "cli/client/streamingOutput.ts",
136
+ "cli/client/agentConfigResolver.ts",
252
137
  "cli/client/localProviderResolver.ts",
253
- "cli/client/agentRunInput.ts",
254
- "cli/client/agentRunTaskRunRecorder.ts",
255
138
  "cli/client/localDialogRecords.ts",
256
139
  "cli/client/localToolPolicy.ts",
257
- "cli/client/streamingOutput.ts",
258
- "cli/client/agentRunRuntimeSelection.ts",
259
- "cli/client/agentRunLocalExecutor.ts",
260
- "cli/client/agentRunServerTransport.ts",
261
- "cli/taskRunPromptShared.ts",
262
- "cli/client/agentConfigResolver.ts",
263
- "cli/tui/tuiCatalog.ts",
140
+ "cli/client/workspaceSession.ts",
141
+ "cli/client/compactDialog.ts",
264
142
  "cli/tui/session.ts",
265
- "cli/tui/tuiCommandInterpreter.ts",
266
- "cli/tui/tuiPresentation.ts",
143
+ "cli/connectorRunArtifact.ts",
144
+ "cli/machineWsPromptMaterialization.ts",
267
145
  "agent-runtime/index.ts",
268
146
  "agent-runtime/localLoop.ts",
269
147
  "agent-runtime/localWorkspaceTools.ts",
270
- "agent-runtime/dialogStatus.ts",
271
- "agent-runtime/hostRuntimeConfig.ts",
272
- "agent-runtime/taskWorkspace.ts",
273
- "agent-runtime/workspaceSession.ts",
274
148
  "agent-runtime/runtimeDecision.ts",
149
+ "agent-runtime/workspaceSession.ts",
150
+ "agent-runtime/taskWorkspace.ts",
275
151
  "agent-runtime/types.ts",
276
152
  "agent-runtime/hostAdapter.ts",
277
153
  "agent-runtime/agentConfigOptions.ts",
@@ -287,36 +163,17 @@
287
163
  "agent-runtime/localToolPolicy.ts",
288
164
  "agent-runtime/runtimeToolPolicy.ts",
289
165
  "connector-experimental/heartbeatLoop.ts",
290
- "connector-experimental/daemonLauncher.ts",
291
166
  "connector-experimental/capabilities.ts",
292
167
  "connector-experimental/codexBinary.ts",
293
- "app/types.ts",
294
- "create/space/spaceKeys.ts",
295
- "create/types.ts",
296
- "database/keys.ts",
297
168
  "database/server/dbPath.ts",
298
169
  "database/server/db.ts",
299
170
  "database/config.ts",
300
- "database/tombstones.ts",
301
171
  "database/server/ensureDbOpen.ts",
302
- "database/server/legacyServerDb.ts",
303
- "database/server/authorityStoreTypes.ts",
304
- "database/server/serverStoreFactory.ts",
305
- "database/server/levelAuthorityStore.ts",
306
- "database/server/memoryAuthorityStore.ts",
307
- "database/utils/ulid.ts",
308
172
  "ai/agent/cliExecutor.ts",
309
- "ai/agent/agentRunDialogLineage.ts",
310
173
  "ai/skills/skillDocProtocol.ts",
311
- "ai/skills/skillSummaryMarker.ts",
174
+ "ai/tools/agent/taskRunTool.ts",
312
175
  "ai/agent/cliPrompt.ts",
313
- "ai/policy/types.ts",
314
- "chat/messages/fetchMessages.ts",
315
- "chat/messages/types.ts",
316
- "render/table/activityColumns.ts",
317
- "share/keys.ts",
318
- "share/helpers.ts",
319
- "share/types.ts"
176
+ "render/table/activityColumns.ts"
320
177
  ],
321
178
  "publishConfig": {
322
179
  "access": "public"
@@ -329,7 +186,6 @@
329
186
  },
330
187
  "dependencies": {
331
188
  "ulid": "^2.3.0",
332
- "rambda": "^8.6.0",
333
189
  "level": "^10.0.0",
334
190
  "js-yaml": "^4.1.0"
335
191
  }
@@ -1,22 +1,41 @@
1
+ import { resolveAgentRuntimeDecision } from "./agent-runtime/runtimeDecision";
1
2
  import {
2
3
  type AgentCommandDeps,
3
4
  type LocalRuntimeProbeResult,
4
5
  } from "./agentCommandSupport";
5
- import {
6
- buildCliRuntimeDoctorProbe,
7
- buildCliRuntimeDoctorReport,
8
- formatCliRuntimeDoctorReport,
9
- } from "./cliRuntimeDoctorReport";
10
6
  import {
11
7
  resolveAuthToken,
12
8
  resolveServerUrl,
13
9
  type EnvLike,
14
10
  } from "./cliEnvHelpers";
15
11
 
12
+ function detectLocalAgentConfig(env: EnvLike) {
13
+ return Boolean(readLocalAgentKey(env) || env.NOLO_AGENT_CACHE_READY);
14
+ }
15
+
16
16
  function readLocalAgentKey(env: EnvLike) {
17
17
  return env.NOLO_LOCAL_AGENT_KEY || env.NOLO_AGENT || "";
18
18
  }
19
19
 
20
+ function detectLocalProvider(env: EnvLike) {
21
+ return Boolean(
22
+ env.OPENAI_API_KEY ||
23
+ env.ANTHROPIC_API_KEY ||
24
+ env.GOOGLE_API_KEY ||
25
+ env.NOLO_LOCAL_OPENAI_BASE_URL ||
26
+ env.OLLAMA_BASE_URL
27
+ );
28
+ }
29
+
30
+ function detectProviderLabel(env: EnvLike) {
31
+ if (env.NOLO_LOCAL_OPENAI_BASE_URL) return `openai-compatible endpoint ${env.NOLO_LOCAL_OPENAI_BASE_URL}`;
32
+ if (env.OLLAMA_BASE_URL) return `ollama-compatible endpoint ${env.OLLAMA_BASE_URL}`;
33
+ if (env.OPENAI_API_KEY) return "openai via env OPENAI_API_KEY";
34
+ if (env.ANTHROPIC_API_KEY) return "anthropic via env ANTHROPIC_API_KEY";
35
+ if (env.GOOGLE_API_KEY) return "google via env GOOGLE_API_KEY";
36
+ return "missing";
37
+ }
38
+
20
39
  async function defaultLocalRuntimeProbe(env: EnvLike): Promise<LocalRuntimeProbeResult> {
21
40
  const { resolveCliLocalRuntimeDbPath } = await import("./localRuntimeDb");
22
41
  const dbPath = resolveCliLocalRuntimeDbPath({ env });
@@ -45,23 +64,55 @@ async function defaultLocalRuntimeProbe(env: EnvLike): Promise<LocalRuntimeProbe
45
64
  }
46
65
 
47
66
  export async function runDoctorRuntimeCommand(
48
- args: string[],
67
+ _args: string[],
49
68
  deps: AgentCommandDeps = {}
50
69
  ) {
51
70
  const env = deps.env ?? process.env;
52
71
  const output = deps.output ?? process.stdout;
53
- const authToken = resolveAuthToken(args, env);
54
- const serverUrl = resolveServerUrl(args, env);
72
+ const authToken = resolveAuthToken(env);
73
+ const serverUrl = resolveServerUrl(env);
55
74
  const localProbe = await (deps.localRuntimeProbe ?? defaultLocalRuntimeProbe)(env);
56
- const report = buildCliRuntimeDoctorReport(
57
- buildCliRuntimeDoctorProbe({
58
- env,
59
- localProbe,
60
- authToken,
61
- serverUrl,
62
- })
63
- );
64
- output.write(formatCliRuntimeDoctorReport(report));
75
+ const hasLocalAgentConfig = detectLocalAgentConfig(env) && localProbe.ok && localProbe.agentFound;
76
+ const hasLocalProvider = detectLocalProvider(env);
77
+ const missingLocalCapabilities = [
78
+ ...(localProbe.ok ? [] : ["leveldb"]),
79
+ ...(hasLocalAgentConfig ? [] : ["agent-config"]),
80
+ ...(hasLocalProvider ? [] : ["provider"]),
81
+ ];
82
+ const decision = resolveAgentRuntimeDecision({
83
+ requestedMode: "auto",
84
+ syncRequested: false,
85
+ host: "cli",
86
+ hasLocalAgentConfig,
87
+ hasLocalProvider,
88
+ hasLocalPersistence: true,
89
+ missingLocalCapabilities,
90
+ requiresServer: false,
91
+ serverFallbackAvailable: Boolean(authToken || env.NOLO_SERVER || env.BASE_URL),
92
+ });
93
+
94
+ output.write(`Runtime: ${decision.mode}\n`);
95
+ output.write(`Reason: ${decision.reason}\n`);
96
+ output.write(`LevelDB: ${localProbe.ok ? "ok" : "failed"}\n`);
97
+ output.write(`DB path: ${localProbe.dbPath}\n`);
98
+ if (!localProbe.ok && localProbe.error) {
99
+ output.write(`DB error: ${localProbe.error}\n`);
100
+ }
101
+ if (localProbe.agentKey) {
102
+ output.write(`Agent config: ${localProbe.agentFound ? "found" : "missing"} (${localProbe.agentKey})\n`);
103
+ } else {
104
+ output.write("Agent config: missing (no local agent key)\n");
105
+ }
106
+ output.write(`Provider: ${hasLocalProvider ? "available" : "missing"} (${detectProviderLabel(env)})\n`);
107
+ output.write("Persistence: LevelDB local store\n");
108
+ output.write(`Sync: ${authToken ? "available" : "unavailable"}${authToken ? "" : " (not authenticated)"}\n`);
109
+ output.write(`Server fallback: ${decision.runnable && decision.mode === "server" ? serverUrl : authToken || env.NOLO_SERVER || env.BASE_URL ? serverUrl : "unavailable"}\n`);
110
+ if (decision.missingLocalCapabilities.length > 0) {
111
+ output.write("Missing local capabilities:\n");
112
+ for (const capability of decision.missingLocalCapabilities) {
113
+ output.write(`- ${capability}\n`);
114
+ }
115
+ }
65
116
 
66
- return report.decision.runnable ? 0 : 1;
117
+ return decision.runnable ? 0 : 1;
67
118
  }
@@ -1,23 +1,63 @@
1
1
  import { createScriptCommand, type CommandEntry } from "./cliCommandTypes";
2
2
 
3
3
  function getDocScriptCommands(): CommandEntry[] {
4
- return [];
4
+ return [
5
+ createScriptCommand(["doc", "create"], "createDoc.ts", "Create a normal doc"),
6
+ createScriptCommand(["doc", "read"], "readDoc.ts", "Read a normal doc"),
7
+ createScriptCommand(["doc", "update"], "updateDoc.ts", "Update a normal doc"),
8
+ createScriptCommand(["doc", "delete"], "deleteDoc.ts", "Delete a normal doc"),
9
+ createScriptCommand(["skill-doc", "create"], "createSkillDoc.ts", "Create a skill doc"),
10
+ createScriptCommand(["skill-doc", "read"], "readSkillDoc.ts", "Read a skill doc"),
11
+ createScriptCommand(["skill-doc", "update"], "updateSkillDoc.ts", "Update a skill doc"),
12
+ createScriptCommand(["skill-doc", "delete"], "deleteSkillDoc.ts", "Delete a skill doc"),
13
+ createScriptCommand(["skill", "create-doc"], "createSkillDoc.ts", "Create a skill-backed doc"),
14
+ ];
5
15
  }
6
16
 
7
17
  function getSpaceScriptCommands(): CommandEntry[] {
8
- return [];
18
+ return [
19
+ createScriptCommand(["dialog", "read"], "readDialog.ts", "Read a dialog"),
20
+ createScriptCommand(["dialog", "status"], "dialogStatus.ts", "Read compact dialog status"),
21
+ createScriptCommand(["space", "list"], "listSpaces.ts", "List joined spaces"),
22
+ createScriptCommand(["space", "read"], "readSpace.ts", "Read a space"),
23
+ createScriptCommand(["space", "delete"], "deleteSpaces.ts", "Delete spaces by safe filters"),
24
+ createScriptCommand(["space", "category"], "upsertSpaceCategory.ts", "Create or update a space category"),
25
+ createScriptCommand(["space", "content-category"], "setSpaceContentCategory.ts", "Move content into a space category"),
26
+ ];
9
27
  }
10
28
 
11
29
  function getTableScriptCommands(): CommandEntry[] {
12
- return [];
30
+ return [
31
+ createScriptCommand(["table", "add-column"], "tableData.ts", "Add one table column", ["--action", "add-column"]),
32
+ createScriptCommand(["table", "add-row"], "tableData.ts", "Add one table row", ["--action", "add-row"]),
33
+ createScriptCommand(["table", "add-rows"], "tableData.ts", "Add table rows", ["--action", "add-rows"]),
34
+ createScriptCommand(["table", "update-row"], "tableData.ts", "Update one table row", ["--action", "update-row"]),
35
+ createScriptCommand(["table", "update-rows"], "tableData.ts", "Update table rows", ["--action", "update-rows"]),
36
+ createScriptCommand(["table", "delete-row"], "tableData.ts", "Delete one table row", ["--action", "delete-row"]),
37
+ createScriptCommand(["table", "delete-rows"], "tableData.ts", "Delete table rows", ["--action", "delete-rows"]),
38
+ createScriptCommand(["table", "data"], "tableData.ts", "Low-level table row script bridge"),
39
+ createScriptCommand(["table", "meta"], "upsertTableMeta.ts", "Create or update table metadata"),
40
+ ];
13
41
  }
14
42
 
15
43
  function getAgentScriptCommands(): CommandEntry[] {
16
- return [];
44
+ return [
45
+ createScriptCommand(["agent", "unpublish"], "unpublishAgent.ts", "Remove an agent's public record"),
46
+ createScriptCommand(["agent", "dialogs"], "queryAgentDialogs.ts", "Inspect recent dialogs for an agent"),
47
+ createScriptCommand(["agent", "doctor"], "doctorAgentWorkspace.ts", "Audit agent workspace health"),
48
+ createScriptCommand(["agent", "create-custom"], "createCustomCodingAgent.ts", "Create a custom coding agent"),
49
+ createScriptCommand(["agent", "create-space"], "createSpaceAgents.ts", "Create or attach shared-space agents"),
50
+ createScriptCommand(["agent", "setup-demo"], "setupDemoAgent.ts", "Bootstrap demo publisher agents"),
51
+ createScriptCommand(["agent", "supervise"], "runAutonomousAgent.ts", "Run an agent in autonomous cycles"),
52
+ ];
17
53
  }
18
54
 
19
55
  function getRuntimeScriptCommands(): CommandEntry[] {
20
- return [];
56
+ return [
57
+ createScriptCommand(["llama"], "llamaServerSupervisor.ts", "Manage the llama.cpp runtime"),
58
+ createScriptCommand(["model-runtime"], "localModelRuntimeSupervisor.ts", "Manage local model runtime processes"),
59
+ createScriptCommand(["dev"], "devControl.ts", "Manage the local dev environment"),
60
+ ];
21
61
  }
22
62
 
23
63
  export function getScriptCommandEntries(): CommandEntry[] {