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.
- package/README.md +0 -6
- package/agent-runtime/agentRecordConfig.ts +2 -0
- package/agent-runtime/hostAdapter.ts +1 -0
- package/agent-runtime/index.ts +0 -21
- package/agent-runtime/localToolPolicy.ts +6 -13
- package/agent-runtime/localWorkspaceTools.ts +30 -333
- package/agent-runtime/platformChatProvider.ts +1 -4
- package/agent-runtime/runtimeToolPolicy.ts +47 -32
- package/agentAliases.ts +14 -83
- package/agentCommandSupport.ts +3 -6
- package/agentInternalCommandEntries.ts +2 -13
- package/agentListCommands.ts +19 -28
- package/agentMachineCommands.ts +40 -336
- package/agentPullCommand.ts +36 -56
- package/agentRecordCommands.ts +3 -5
- package/agentRecordHelpers.ts +22 -189
- package/agentRunCommand.ts +438 -107
- package/agentRuntimeLocal.ts +0 -10
- package/ai/agent/cliExecutor.ts +19 -323
- package/authCommands.ts +2 -36
- package/cli/agentAliases.ts +14 -83
- package/cli/agentCommandSupport.ts +3 -6
- package/cli/agentInternalCommandEntries.ts +2 -13
- package/cli/agentListCommands.ts +19 -28
- package/cli/agentMachineCommands.ts +40 -336
- package/cli/agentPullCommand.ts +36 -56
- package/cli/agentRecordCommands.ts +3 -5
- package/cli/agentRecordHelpers.ts +22 -189
- package/cli/agentRunCommand.ts +438 -107
- package/cli/agentRuntimeLocal.ts +0 -10
- package/cli/authCommands.ts +2 -36
- package/cli/cliEnvHelpers.ts +21 -162
- package/cli/client/agentRun.ts +853 -57
- package/cli/client/localRuntimeAdapter.ts +22 -159
- package/cli/client/streamingOutput.ts +3 -1
- package/cli/client/taskRunPrompt.ts +24 -7
- package/cli/commandRegistry.ts +2 -3
- package/cli/connectorRunArtifact.ts +10 -34
- package/cli/connectorWebSocketTarget.ts +6 -10
- package/cli/internalCommandEntries.ts +0 -8
- package/cli/localRuntimeDb.ts +2 -39
- package/cli/machineCommands.ts +189 -190
- package/cli/machineDaemonCommands.ts +165 -9
- package/cli/machineHeartbeatCommands.ts +2 -1
- package/cli/machineStatusCommands.ts +13 -5
- package/cli/machineWatchCommands.ts +1 -1
- package/cli/machineWsRunDispatch.ts +14 -48
- package/cli/machineWsSession.ts +0 -2
- package/cli/offlineMarxistsAgentCommand.ts +314 -0
- package/cli/runtimeDoctorCommands.ts +69 -18
- package/cli/scriptCommandEntries.ts +45 -5
- package/cli/tableCommands.ts +133 -33
- package/cli/taskRunCommand.ts +211 -16
- package/cli/tui/session.ts +372 -43
- package/cli/workflowInternalCommandEntries.ts +0 -20
- package/cliEnvHelpers.ts +21 -162
- package/client/agentConfigResolver.test.ts +2 -0
- package/client/agentRun.test.ts +12 -208
- package/client/agentRun.ts +853 -57
- package/client/localRuntimeAdapter.test.ts +9 -168
- package/client/localRuntimeAdapter.ts +22 -159
- package/client/localToolPolicy.test.ts +4 -28
- package/client/streamingOutput.ts +3 -1
- package/client/taskRunPrompt.ts +24 -7
- package/commandRegistry.ts +2 -3
- package/connectorRunArtifact.ts +10 -34
- package/connectorWebSocketTarget.ts +6 -10
- package/database/server/db.ts +34 -15
- package/internalCommandEntries.ts +0 -8
- package/localRuntimeDb.ts +2 -39
- package/machineCommands.ts +189 -190
- package/machineDaemonCommands.ts +165 -9
- package/machineHeartbeatCommands.ts +2 -1
- package/machineStatusCommands.ts +13 -5
- package/machineWatchCommands.ts +1 -1
- package/machineWsRunDispatch.ts +14 -48
- package/machineWsSession.ts +0 -2
- package/offlineMarxistsAgentCommand.ts +314 -0
- package/package.json +49 -193
- package/runtimeDoctorCommands.ts +69 -18
- package/scriptCommandEntries.ts +45 -5
- package/tableCommands.ts +133 -33
- package/taskRunCommand.ts +211 -16
- package/tui/session.ts +372 -43
- package/workflowInternalCommandEntries.ts +0 -20
- package/agent-runtime/dialogStatus.ts +0 -139
- package/agent-runtime/hostRuntimeConfig.ts +0 -86
- package/agentCreateCustomCommands.ts +0 -278
- package/agentDialogsCommands.ts +0 -227
- package/agentDoctorCommands.ts +0 -203
- package/agentRunLocalWorkspace.ts +0 -182
- package/agentRunParsing.ts +0 -298
- package/agentSuperviseCommands.ts +0 -8
- package/agentUnpublishCommands.ts +0 -113
- package/ai/agent/agentRunDialogLineage.ts +0 -56
- package/ai/policy/types.ts +0 -64
- package/ai/skills/skillSummaryMarker.ts +0 -26
- package/app/types.ts +0 -358
- package/build.ts +0 -16
- package/buildPublish.ts +0 -138
- package/buildPublishArtifactAssembly.ts +0 -724
- package/buildPublishImportAnalysis.ts +0 -242
- package/chat/messages/fetchMessages.ts +0 -84
- package/chat/messages/types.ts +0 -185
- package/cli/agentCreateCustomCommands.ts +0 -278
- package/cli/agentDialogsCommands.ts +0 -227
- package/cli/agentDoctorCommands.ts +0 -203
- package/cli/agentRunLocalWorkspace.ts +0 -182
- package/cli/agentRunParsing.ts +0 -298
- package/cli/agentSuperviseCommands.ts +0 -8
- package/cli/agentUnpublishCommands.ts +0 -113
- package/cli/buildPublish.ts +0 -138
- package/cli/buildPublishArtifactAssembly.ts +0 -724
- package/cli/buildPublishImportAnalysis.ts +0 -242
- package/cli/cliIoTypes.ts +0 -3
- package/cli/cliRuntimeDoctorReport.ts +0 -193
- package/cli/client/agentRunInput.ts +0 -10
- package/cli/client/agentRunLocalExecution.ts +0 -124
- package/cli/client/agentRunLocalExecutor.ts +0 -179
- package/cli/client/agentRunRuntimeSelection.ts +0 -145
- package/cli/client/agentRunServerTransport.ts +0 -397
- package/cli/client/agentRunTaskRunRecorder.ts +0 -176
- package/cli/customCodingAgentFlow.ts +0 -208
- package/cli/customCodingAgentRecord.ts +0 -179
- package/cli/dialogDataAccess.ts +0 -186
- package/cli/dialogInternalCommandEntries.ts +0 -11
- package/cli/dialogReadCommands.ts +0 -180
- package/cli/dialogReadHelpers.ts +0 -226
- package/cli/dialogStatusCommands.ts +0 -123
- package/cli/docInternalCommandEntries.ts +0 -20
- package/cli/hybridReadHelpers.ts +0 -109
- package/cli/machineCommandPrompts.ts +0 -79
- package/cli/machineCommandResolution.ts +0 -43
- package/cli/noloReadBridgePrompt.ts +0 -16
- package/cli/pageCreateCommands.ts +0 -219
- package/cli/pageDeleteCommands.ts +0 -167
- package/cli/pageReadCommands.ts +0 -151
- package/cli/pageUpdateCommands.ts +0 -249
- package/cli/pageWriteHelpers.ts +0 -209
- package/cli/publishPackage.ts +0 -36
- package/cli/runtimeInternalCommandEntries.ts +0 -15
- package/cli/runtimePassthroughCommands.ts +0 -22
- package/cli/scriptPassthroughHelpers.ts +0 -28
- package/cli/secretScanHelpers.ts +0 -31
- package/cli/spaceAttachCommands.ts +0 -134
- package/cli/spaceCategoryCommands.ts +0 -263
- package/cli/spaceCommands.ts +0 -295
- package/cli/spaceDeleteCommands.ts +0 -312
- package/cli/spaceInternalCommandEntries.ts +0 -21
- package/cli/spaceMutationHelpers.ts +0 -135
- package/cli/spaceReadCommands.ts +0 -323
- package/cli/tableDataOutput.ts +0 -41
- package/cli/tableDataSafety.ts +0 -26
- package/cli/tableMetaCommands.ts +0 -307
- package/cli/tableMutationCommands.ts +0 -266
- package/cli/tableQueryParsing.ts +0 -90
- package/cli/tableQueryRequest.ts +0 -53
- package/cli/taskRunActions.ts +0 -122
- package/cli/taskRunParsing.ts +0 -86
- package/cli/taskRunPromptShared.ts +0 -55
- package/cli/tui/tuiCatalog.ts +0 -22
- package/cli/tui/tuiCommandInterpreter.ts +0 -253
- package/cli/tui/tuiPresentation.ts +0 -146
- package/cliIoTypes.ts +0 -3
- package/cliRuntimeDoctorReport.ts +0 -193
- package/client/agentRunInput.ts +0 -10
- package/client/agentRunLocalExecution.test.ts +0 -123
- package/client/agentRunLocalExecution.ts +0 -124
- package/client/agentRunLocalExecutor.ts +0 -179
- package/client/agentRunRuntimeSelection.test.ts +0 -159
- package/client/agentRunRuntimeSelection.ts +0 -145
- package/client/agentRunServerTransport.ts +0 -397
- package/client/agentRunTaskRunRecorder.ts +0 -176
- package/connector-experimental/daemonLauncher.ts +0 -223
- package/create/space/spaceKeys.ts +0 -65
- package/create/types.ts +0 -21
- package/customCodingAgentFlow.ts +0 -208
- package/customCodingAgentRecord.ts +0 -179
- package/database/keys.ts +0 -765
- package/database/server/authorityStoreTypes.ts +0 -31
- package/database/server/legacyServerDb.ts +0 -58
- package/database/server/levelAuthorityStore.ts +0 -75
- package/database/server/memoryAuthorityStore.ts +0 -133
- package/database/server/serverStoreFactory.ts +0 -124
- package/database/tombstones.ts +0 -52
- package/database/utils/ulid.ts +0 -1
- package/dialogDataAccess.ts +0 -186
- package/dialogInternalCommandEntries.ts +0 -11
- package/dialogReadCommands.ts +0 -180
- package/dialogReadHelpers.ts +0 -226
- package/dialogStatusCommands.ts +0 -123
- package/docInternalCommandEntries.ts +0 -20
- package/hybridReadHelpers.ts +0 -109
- package/machineCommandPrompts.ts +0 -79
- package/machineCommandResolution.ts +0 -43
- package/noloReadBridgePrompt.ts +0 -16
- package/pageCreateCommands.ts +0 -219
- package/pageDeleteCommands.ts +0 -167
- package/pageReadCommands.ts +0 -151
- package/pageUpdateCommands.ts +0 -249
- package/pageWriteHelpers.ts +0 -209
- package/publishPackage.ts +0 -36
- package/runtimeInternalCommandEntries.ts +0 -15
- package/runtimePassthroughCommands.ts +0 -22
- package/scriptPassthroughHelpers.ts +0 -28
- package/secretScanHelpers.ts +0 -31
- package/share/helpers.ts +0 -302
- package/share/keys.ts +0 -243
- package/share/types.ts +0 -100
- package/spaceAttachCommands.ts +0 -134
- package/spaceCategoryCommands.ts +0 -263
- package/spaceCommands.ts +0 -295
- package/spaceDeleteCommands.ts +0 -312
- package/spaceInternalCommandEntries.ts +0 -21
- package/spaceMutationHelpers.ts +0 -135
- package/spaceReadCommands.ts +0 -323
- package/tableDataOutput.ts +0 -41
- package/tableDataSafety.ts +0 -26
- package/tableMetaCommands.ts +0 -307
- package/tableMutationCommands.ts +0 -266
- package/tableQueryParsing.ts +0 -90
- package/tableQueryRequest.ts +0 -53
- package/taskRunActions.ts +0 -122
- package/taskRunParsing.ts +0 -86
- package/taskRunPromptShared.ts +0 -55
- package/tui/tuiCatalog.ts +0 -22
- package/tui/tuiCommandInterpreter.test.ts +0 -169
- package/tui/tuiCommandInterpreter.ts +0 -253
- package/tui/tuiPresentation.test.ts +0 -154
- 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.
|
|
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
|
-
"
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
133
|
-
"client/
|
|
134
|
-
"client/
|
|
135
|
-
"
|
|
136
|
-
"
|
|
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/
|
|
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
|
-
"
|
|
151
|
-
"
|
|
152
|
-
"
|
|
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/
|
|
176
|
-
"cli/
|
|
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/
|
|
183
|
-
"cli/
|
|
184
|
-
"cli/
|
|
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/
|
|
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/
|
|
249
|
-
"cli/client/
|
|
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/
|
|
258
|
-
"cli/client/
|
|
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/
|
|
266
|
-
"cli/
|
|
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/
|
|
174
|
+
"ai/tools/agent/taskRunTool.ts",
|
|
312
175
|
"ai/agent/cliPrompt.ts",
|
|
313
|
-
"
|
|
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
|
}
|
package/runtimeDoctorCommands.ts
CHANGED
|
@@ -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
|
-
|
|
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(
|
|
54
|
-
const serverUrl = resolveServerUrl(
|
|
72
|
+
const authToken = resolveAuthToken(env);
|
|
73
|
+
const serverUrl = resolveServerUrl(env);
|
|
55
74
|
const localProbe = await (deps.localRuntimeProbe ?? defaultLocalRuntimeProbe)(env);
|
|
56
|
-
const
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
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
|
|
117
|
+
return decision.runnable ? 0 : 1;
|
|
67
118
|
}
|
package/scriptCommandEntries.ts
CHANGED
|
@@ -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[] {
|