nolo-cli 0.1.32 → 0.1.34

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 (234) hide show
  1. package/README.md +4 -10
  2. package/agent-runtime/agentRecordConfig.ts +10 -0
  3. package/agent-runtime/hostAdapter.ts +10 -1
  4. package/agent-runtime/index.ts +9 -20
  5. package/agent-runtime/localLoop.ts +49 -2
  6. package/agent-runtime/localToolPolicy.ts +76 -34
  7. package/agent-runtime/localWorkspaceTools.ts +30 -333
  8. package/agent-runtime/openAiCompatibleProvider.ts +7 -3
  9. package/agent-runtime/openAiCompatibleProviderConfig.ts +15 -26
  10. package/agent-runtime/platformChatProvider.ts +47 -73
  11. package/agent-runtime/providerResolution.ts +244 -0
  12. package/agent-runtime/runtimeToolPolicy.ts +77 -29
  13. package/agent-runtime/shellCommandPolicy.ts +120 -0
  14. package/agentAliases.ts +14 -83
  15. package/agentCommandSupport.ts +3 -6
  16. package/agentInternalCommandEntries.ts +4 -13
  17. package/agentListCommands.ts +18 -27
  18. package/agentMachineCommands.ts +40 -336
  19. package/agentPullCommand.ts +30 -55
  20. package/agentRecordCommands.ts +84 -1
  21. package/agentRecordHelpers.ts +102 -186
  22. package/agentRunCommand.ts +438 -107
  23. package/agentRuntimeLocal.ts +2 -9
  24. package/ai/agent/cliExecutor.ts +19 -323
  25. package/ai/tools/toolNameAliases.ts +70 -0
  26. package/authCommands.ts +2 -36
  27. package/cli/agentAliases.ts +14 -83
  28. package/cli/agentCommandSupport.ts +3 -6
  29. package/cli/agentInternalCommandEntries.ts +4 -13
  30. package/cli/agentListCommands.ts +18 -27
  31. package/cli/agentMachineCommands.ts +40 -336
  32. package/cli/agentPullCommand.ts +30 -55
  33. package/cli/agentRecordCommands.ts +84 -1
  34. package/cli/agentRecordHelpers.ts +102 -186
  35. package/cli/agentRunCommand.ts +438 -107
  36. package/cli/agentRuntimeLocal.ts +2 -9
  37. package/cli/authCommands.ts +2 -36
  38. package/cli/cliCommandDispatch.ts +2 -2
  39. package/cli/cliEnvHelpers.ts +34 -107
  40. package/cli/client/agentRun.ts +854 -57
  41. package/cli/client/localRuntimeAdapter.ts +59 -159
  42. package/cli/client/streamingOutput.ts +3 -1
  43. package/cli/client/taskRunPrompt.ts +24 -7
  44. package/cli/commandRegistry.ts +4 -5
  45. package/cli/connectorRunArtifact.ts +10 -34
  46. package/cli/connectorWebSocketTarget.ts +6 -10
  47. package/cli/internalCommandEntries.ts +0 -8
  48. package/cli/localRuntimeDb.ts +2 -39
  49. package/cli/machineCommands.ts +189 -190
  50. package/cli/machineDaemonCommands.ts +165 -9
  51. package/cli/machineHeartbeatCommands.ts +2 -1
  52. package/cli/machineStatusCommands.ts +13 -5
  53. package/cli/machineWatchCommands.ts +1 -1
  54. package/cli/machineWsRunDispatch.ts +30 -44
  55. package/cli/machineWsSession.ts +0 -2
  56. package/cli/offlineMarxistsAgentCommand.ts +314 -0
  57. package/cli/runtimeDoctorCommands.ts +72 -15
  58. package/cli/scriptCommandEntries.ts +45 -5
  59. package/cli/tableCommands.ts +133 -33
  60. package/cli/taskRunCommand.ts +211 -16
  61. package/cli/tui/session.ts +372 -43
  62. package/cli/workflowInternalCommandEntries.ts +0 -20
  63. package/cliCommandDispatch.ts +2 -2
  64. package/cliEnvHelpers.ts +34 -107
  65. package/client/agentConfigResolver.test.ts +2 -0
  66. package/client/agentRun.test.ts +12 -208
  67. package/client/agentRun.ts +854 -57
  68. package/client/localProviderResolver.test.ts +26 -2
  69. package/client/localRuntimeAdapter.test.ts +296 -171
  70. package/client/localRuntimeAdapter.ts +59 -159
  71. package/client/localToolPolicy.test.ts +4 -28
  72. package/client/streamingOutput.ts +3 -1
  73. package/client/taskRunPrompt.ts +24 -7
  74. package/commandRegistry.ts +4 -5
  75. package/connectorRunArtifact.ts +10 -34
  76. package/connectorWebSocketTarget.ts +6 -10
  77. package/database/server/serverStoreFactory.ts +2 -8
  78. package/internalCommandEntries.ts +0 -8
  79. package/localRuntimeDb.ts +2 -39
  80. package/machineCommands.ts +189 -190
  81. package/machineDaemonCommands.ts +165 -9
  82. package/machineHeartbeatCommands.ts +2 -1
  83. package/machineStatusCommands.ts +13 -5
  84. package/machineWatchCommands.ts +1 -1
  85. package/machineWsRunDispatch.ts +30 -44
  86. package/machineWsSession.ts +0 -2
  87. package/offlineMarxistsAgentCommand.ts +314 -0
  88. package/package.json +52 -188
  89. package/runtimeDoctorCommands.ts +72 -15
  90. package/scriptCommandEntries.ts +45 -5
  91. package/tableCommands.ts +133 -33
  92. package/taskRunCommand.ts +211 -16
  93. package/tui/session.ts +372 -43
  94. package/workflowInternalCommandEntries.ts +0 -20
  95. package/agent-runtime/dialogStatus.ts +0 -139
  96. package/agent-runtime/hostRuntimeConfig.ts +0 -86
  97. package/agentCreateCustomCommands.ts +0 -278
  98. package/agentDialogsCommands.ts +0 -227
  99. package/agentDoctorCommands.ts +0 -203
  100. package/agentRunLocalWorkspace.ts +0 -182
  101. package/agentRunParsing.ts +0 -298
  102. package/agentSuperviseCommands.ts +0 -8
  103. package/agentUnpublishCommands.ts +0 -113
  104. package/ai/agent/agentRunDialogLineage.ts +0 -56
  105. package/ai/policy/types.ts +0 -64
  106. package/ai/skills/skillSummaryMarker.ts +0 -26
  107. package/app/types.ts +0 -358
  108. package/build.ts +0 -16
  109. package/buildPublish.ts +0 -138
  110. package/buildPublishArtifactAssembly.ts +0 -724
  111. package/buildPublishImportAnalysis.ts +0 -242
  112. package/chat/messages/fetchMessages.ts +0 -84
  113. package/chat/messages/types.ts +0 -185
  114. package/cli/agentCreateCustomCommands.ts +0 -278
  115. package/cli/agentDialogsCommands.ts +0 -227
  116. package/cli/agentDoctorCommands.ts +0 -203
  117. package/cli/agentRunLocalWorkspace.ts +0 -182
  118. package/cli/agentRunParsing.ts +0 -298
  119. package/cli/agentSuperviseCommands.ts +0 -8
  120. package/cli/agentUnpublishCommands.ts +0 -113
  121. package/cli/buildPublish.ts +0 -138
  122. package/cli/buildPublishArtifactAssembly.ts +0 -724
  123. package/cli/buildPublishImportAnalysis.ts +0 -242
  124. package/cli/cliIoTypes.ts +0 -3
  125. package/cli/cliRuntimeDoctorReport.ts +0 -193
  126. package/cli/client/agentRunInput.ts +0 -10
  127. package/cli/client/agentRunLocalExecution.ts +0 -124
  128. package/cli/client/agentRunLocalExecutor.ts +0 -179
  129. package/cli/client/agentRunRuntimeSelection.ts +0 -145
  130. package/cli/client/agentRunServerTransport.ts +0 -397
  131. package/cli/client/agentRunTaskRunRecorder.ts +0 -176
  132. package/cli/customCodingAgentFlow.ts +0 -208
  133. package/cli/customCodingAgentRecord.ts +0 -179
  134. package/cli/dialogDataAccess.ts +0 -186
  135. package/cli/dialogInternalCommandEntries.ts +0 -11
  136. package/cli/dialogReadCommands.ts +0 -180
  137. package/cli/dialogReadHelpers.ts +0 -226
  138. package/cli/dialogStatusCommands.ts +0 -123
  139. package/cli/docInternalCommandEntries.ts +0 -20
  140. package/cli/hybridReadHelpers.ts +0 -109
  141. package/cli/machineCommandPrompts.ts +0 -79
  142. package/cli/machineCommandResolution.ts +0 -43
  143. package/cli/noloReadBridgePrompt.ts +0 -16
  144. package/cli/pageCreateCommands.ts +0 -219
  145. package/cli/pageDeleteCommands.ts +0 -167
  146. package/cli/pageReadCommands.ts +0 -151
  147. package/cli/pageUpdateCommands.ts +0 -249
  148. package/cli/pageWriteHelpers.ts +0 -209
  149. package/cli/publishPackage.ts +0 -36
  150. package/cli/runtimeInternalCommandEntries.ts +0 -15
  151. package/cli/runtimePassthroughCommands.ts +0 -22
  152. package/cli/scriptPassthroughHelpers.ts +0 -28
  153. package/cli/secretScanHelpers.ts +0 -31
  154. package/cli/spaceAttachCommands.ts +0 -134
  155. package/cli/spaceCategoryCommands.ts +0 -263
  156. package/cli/spaceCommands.ts +0 -295
  157. package/cli/spaceDeleteCommands.ts +0 -312
  158. package/cli/spaceInternalCommandEntries.ts +0 -21
  159. package/cli/spaceMutationHelpers.ts +0 -135
  160. package/cli/spaceReadCommands.ts +0 -323
  161. package/cli/tableDataOutput.ts +0 -41
  162. package/cli/tableDataSafety.ts +0 -26
  163. package/cli/tableMetaCommands.ts +0 -307
  164. package/cli/tableMutationCommands.ts +0 -266
  165. package/cli/tableQueryParsing.ts +0 -90
  166. package/cli/tableQueryRequest.ts +0 -53
  167. package/cli/taskRunActions.ts +0 -122
  168. package/cli/taskRunParsing.ts +0 -86
  169. package/cli/taskRunPromptShared.ts +0 -55
  170. package/cli/tui/tuiCatalog.ts +0 -22
  171. package/cli/tui/tuiCommandInterpreter.ts +0 -253
  172. package/cli/tui/tuiPresentation.ts +0 -146
  173. package/cliIoTypes.ts +0 -3
  174. package/cliRuntimeDoctorReport.ts +0 -193
  175. package/client/agentRunInput.ts +0 -10
  176. package/client/agentRunLocalExecution.test.ts +0 -123
  177. package/client/agentRunLocalExecution.ts +0 -124
  178. package/client/agentRunLocalExecutor.ts +0 -179
  179. package/client/agentRunRuntimeSelection.test.ts +0 -159
  180. package/client/agentRunRuntimeSelection.ts +0 -145
  181. package/client/agentRunServerTransport.ts +0 -397
  182. package/client/agentRunTaskRunRecorder.ts +0 -176
  183. package/connector-experimental/daemonLauncher.ts +0 -223
  184. package/create/space/spaceKeys.ts +0 -65
  185. package/create/types.ts +0 -21
  186. package/customCodingAgentFlow.ts +0 -208
  187. package/customCodingAgentRecord.ts +0 -179
  188. package/database/keys.ts +0 -765
  189. package/database/tombstones.ts +0 -52
  190. package/database/utils/ulid.ts +0 -1
  191. package/dialogDataAccess.ts +0 -186
  192. package/dialogInternalCommandEntries.ts +0 -11
  193. package/dialogReadCommands.ts +0 -180
  194. package/dialogReadHelpers.ts +0 -226
  195. package/dialogStatusCommands.ts +0 -123
  196. package/docInternalCommandEntries.ts +0 -20
  197. package/hybridReadHelpers.ts +0 -109
  198. package/machineCommandPrompts.ts +0 -79
  199. package/machineCommandResolution.ts +0 -43
  200. package/noloReadBridgePrompt.ts +0 -16
  201. package/pageCreateCommands.ts +0 -219
  202. package/pageDeleteCommands.ts +0 -167
  203. package/pageReadCommands.ts +0 -151
  204. package/pageUpdateCommands.ts +0 -249
  205. package/pageWriteHelpers.ts +0 -209
  206. package/publishPackage.ts +0 -36
  207. package/runtimeInternalCommandEntries.ts +0 -15
  208. package/runtimePassthroughCommands.ts +0 -22
  209. package/scriptPassthroughHelpers.ts +0 -28
  210. package/secretScanHelpers.ts +0 -31
  211. package/share/helpers.ts +0 -302
  212. package/share/keys.ts +0 -243
  213. package/share/types.ts +0 -100
  214. package/spaceAttachCommands.ts +0 -134
  215. package/spaceCategoryCommands.ts +0 -263
  216. package/spaceCommands.ts +0 -295
  217. package/spaceDeleteCommands.ts +0 -312
  218. package/spaceInternalCommandEntries.ts +0 -21
  219. package/spaceMutationHelpers.ts +0 -135
  220. package/spaceReadCommands.ts +0 -323
  221. package/tableDataOutput.ts +0 -41
  222. package/tableDataSafety.ts +0 -26
  223. package/tableMetaCommands.ts +0 -307
  224. package/tableMutationCommands.ts +0 -266
  225. package/tableQueryParsing.ts +0 -90
  226. package/tableQueryRequest.ts +0 -53
  227. package/taskRunActions.ts +0 -122
  228. package/taskRunParsing.ts +0 -86
  229. package/taskRunPromptShared.ts +0 -55
  230. package/tui/tuiCatalog.ts +0 -22
  231. package/tui/tuiCommandInterpreter.test.ts +0 -169
  232. package/tui/tuiCommandInterpreter.ts +0 -253
  233. package/tui/tuiPresentation.test.ts +0 -154
  234. 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.34",
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,126 +93,67 @@
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",
179
107
  "cli/client/localAgentRecords.ts",
180
- "cli/spaceMutationHelpers.ts",
181
- "cli/client/agentRun.ts",
182
- "cli/agentRunLocalWorkspace.ts",
183
- "cli/agentRunParsing.ts",
184
- "cli/scriptPassthroughHelpers.ts",
185
108
  "cli/defaultServer.ts",
186
- "cli/buildPublish.ts",
187
- "cli/buildPublishArtifactAssembly.ts",
188
- "cli/buildPublishImportAnalysis.ts",
189
- "cli/publishPackage.ts",
109
+ "cli/client/agentRun.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",
278
154
  "agent-runtime/openAiCompatibleProvider.ts",
279
155
  "agent-runtime/openAiCompatibleProviderConfig.ts",
156
+ "agent-runtime/providerResolution.ts",
280
157
  "agent-runtime/platformChatProvider.ts",
281
158
  "agent-runtime/runtimeFacts.ts",
282
159
  "agent-runtime/agentRecordKeys.ts",
@@ -285,38 +162,26 @@
285
162
  "agent-runtime/dialogWritePlan.ts",
286
163
  "agent-runtime/hybridRecordStore.ts",
287
164
  "agent-runtime/localToolPolicy.ts",
165
+ "agent-runtime/shellCommandPolicy.ts",
288
166
  "agent-runtime/runtimeToolPolicy.ts",
289
167
  "connector-experimental/heartbeatLoop.ts",
290
- "connector-experimental/daemonLauncher.ts",
291
168
  "connector-experimental/capabilities.ts",
292
169
  "connector-experimental/codexBinary.ts",
293
- "app/types.ts",
294
- "create/space/spaceKeys.ts",
295
- "create/types.ts",
296
- "database/keys.ts",
297
170
  "database/server/dbPath.ts",
298
171
  "database/server/db.ts",
299
172
  "database/config.ts",
300
- "database/tombstones.ts",
301
173
  "database/server/ensureDbOpen.ts",
302
174
  "database/server/legacyServerDb.ts",
303
175
  "database/server/authorityStoreTypes.ts",
304
176
  "database/server/serverStoreFactory.ts",
305
177
  "database/server/levelAuthorityStore.ts",
306
178
  "database/server/memoryAuthorityStore.ts",
307
- "database/utils/ulid.ts",
308
179
  "ai/agent/cliExecutor.ts",
309
- "ai/agent/agentRunDialogLineage.ts",
310
180
  "ai/skills/skillDocProtocol.ts",
311
- "ai/skills/skillSummaryMarker.ts",
181
+ "ai/tools/agent/taskRunTool.ts",
312
182
  "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"
183
+ "ai/tools/toolNameAliases.ts",
184
+ "render/table/activityColumns.ts"
320
185
  ],
321
186
  "publishConfig": {
322
187
  "access": "public"
@@ -329,7 +194,6 @@
329
194
  },
330
195
  "dependencies": {
331
196
  "ulid": "^2.3.0",
332
- "rambda": "^8.6.0",
333
197
  "level": "^10.0.0",
334
198
  "js-yaml": "^4.1.0"
335
199
  }
@@ -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 });
@@ -53,15 +72,53 @@ export async function runDoctorRuntimeCommand(
53
72
  const authToken = resolveAuthToken(args, env);
54
73
  const serverUrl = resolveServerUrl(args, 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(
92
+ authToken ||
93
+ args.includes("--server") ||
94
+ args.includes("--server-url") ||
95
+ env.NOLO_SERVER ||
96
+ env.BASE_URL
97
+ ),
98
+ });
99
+
100
+ output.write(`Runtime: ${decision.mode}\n`);
101
+ output.write(`Reason: ${decision.reason}\n`);
102
+ output.write(`LevelDB: ${localProbe.ok ? "ok" : "failed"}\n`);
103
+ output.write(`DB path: ${localProbe.dbPath}\n`);
104
+ if (!localProbe.ok && localProbe.error) {
105
+ output.write(`DB error: ${localProbe.error}\n`);
106
+ }
107
+ if (localProbe.agentKey) {
108
+ output.write(`Agent config: ${localProbe.agentFound ? "found" : "missing"} (${localProbe.agentKey})\n`);
109
+ } else {
110
+ output.write("Agent config: missing (no local agent key)\n");
111
+ }
112
+ output.write(`Provider: ${hasLocalProvider ? "available" : "missing"} (${detectProviderLabel(env)})\n`);
113
+ output.write("Persistence: LevelDB local store\n");
114
+ output.write(`Sync: ${authToken ? "available" : "unavailable"}${authToken ? "" : " (not authenticated)"}\n`);
115
+ output.write(`Server fallback: ${decision.runnable && decision.mode === "server" ? serverUrl : authToken || env.NOLO_SERVER || env.BASE_URL ? serverUrl : "unavailable"}\n`);
116
+ if (decision.missingLocalCapabilities.length > 0) {
117
+ output.write("Missing local capabilities:\n");
118
+ for (const capability of decision.missingLocalCapabilities) {
119
+ output.write(`- ${capability}\n`);
120
+ }
121
+ }
65
122
 
66
- return report.decision.runnable ? 0 : 1;
123
+ return decision.runnable ? 0 : 1;
67
124
  }
@@ -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[] {