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/cli/buildPublish.ts
DELETED
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
import { existsSync, readFileSync, writeFileSync } from "node:fs";
|
|
2
|
-
import { join } from "node:path";
|
|
3
|
-
import {
|
|
4
|
-
buildPublishArtifactAssembly,
|
|
5
|
-
inlineWorkspaceDependencies,
|
|
6
|
-
} from "./buildPublishArtifactAssembly";
|
|
7
|
-
import {
|
|
8
|
-
collectTypeScriptSourceFiles,
|
|
9
|
-
collectWorkspaceDependencies,
|
|
10
|
-
extractExternalImports,
|
|
11
|
-
rewriteCrossPackageImports,
|
|
12
|
-
} from "./buildPublishImportAnalysis";
|
|
13
|
-
import { buildPublishManifest } from "./publishPackage";
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Build a publish-safe CLI artifact in the dist directory.
|
|
17
|
-
*
|
|
18
|
-
* This function:
|
|
19
|
-
* 1. Creates a dist directory
|
|
20
|
-
* 2. Copies source files specified in package.json "files" array
|
|
21
|
-
* 3. Generates a publish-safe package.json (no workspace deps)
|
|
22
|
-
* 4. Inlines workspace dependencies from monorepo packages
|
|
23
|
-
*
|
|
24
|
-
* The output can be published to npm and installed outside the monorepo.
|
|
25
|
-
*
|
|
26
|
-
* @param sourceDir - The CLI package source directory (packages/cli)
|
|
27
|
-
* @param distDir - The output directory (packages/cli/dist)
|
|
28
|
-
*/
|
|
29
|
-
export async function buildPublishArtifact(
|
|
30
|
-
sourceDir: string,
|
|
31
|
-
distDir: string
|
|
32
|
-
): Promise<void> {
|
|
33
|
-
const pkgPath = join(sourceDir, "package.json");
|
|
34
|
-
if (!existsSync(pkgPath)) {
|
|
35
|
-
throw new Error(`package.json not found at ${pkgPath}`);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
const sourceManifest = JSON.parse(readFileSync(pkgPath, "utf8"));
|
|
39
|
-
const filesToCopy = sourceManifest.files || [];
|
|
40
|
-
const warn = (message: string, error?: unknown): void => {
|
|
41
|
-
if (error === undefined) {
|
|
42
|
-
console.warn(message);
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
console.warn(message, error);
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
const {
|
|
49
|
-
resolvedFilesToCopy,
|
|
50
|
-
inlinedDeps,
|
|
51
|
-
inlinedFiles = [],
|
|
52
|
-
externalDeps,
|
|
53
|
-
} = await buildPublishArtifactAssembly({
|
|
54
|
-
sourceDir,
|
|
55
|
-
distDir,
|
|
56
|
-
filesToCopy,
|
|
57
|
-
extractExternalImports,
|
|
58
|
-
rewriteCrossPackageImports,
|
|
59
|
-
collectWorkspaceDependencies: (entrySourceDir, resolvedFiles) =>
|
|
60
|
-
collectWorkspaceDependencies(entrySourceDir, sourceManifest, resolvedFiles),
|
|
61
|
-
inlineWorkspaceDependencies,
|
|
62
|
-
warn,
|
|
63
|
-
});
|
|
64
|
-
|
|
65
|
-
const publishManifest = buildPublishManifest(sourceManifest);
|
|
66
|
-
const repoRoot = join(sourceDir, "..", "..");
|
|
67
|
-
const rootManifest = existsSync(join(repoRoot, "package.json"))
|
|
68
|
-
? JSON.parse(readFileSync(join(repoRoot, "package.json"), "utf8"))
|
|
69
|
-
: {};
|
|
70
|
-
const cliExternalDeps = discoverExternalImportsFromCliSourceFiles(
|
|
71
|
-
sourceDir,
|
|
72
|
-
resolvedFilesToCopy,
|
|
73
|
-
rootManifest
|
|
74
|
-
);
|
|
75
|
-
|
|
76
|
-
if (inlinedFiles.length > 0) {
|
|
77
|
-
publishManifest.files = Array.from(new Set([...resolvedFilesToCopy, ...inlinedFiles]));
|
|
78
|
-
} else if (inlinedDeps.length > 0) {
|
|
79
|
-
publishManifest.files = Array.from(new Set(resolvedFilesToCopy));
|
|
80
|
-
for (const dep of inlinedDeps) {
|
|
81
|
-
publishManifest.files.push(`${dep}/**/*.ts`);
|
|
82
|
-
}
|
|
83
|
-
} else {
|
|
84
|
-
publishManifest.files = Array.from(new Set(resolvedFilesToCopy));
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
if (Object.keys(externalDeps).length > 0) {
|
|
88
|
-
publishManifest.dependencies = publishManifest.dependencies || {};
|
|
89
|
-
for (const [name, version] of Object.entries(externalDeps)) {
|
|
90
|
-
if (!publishManifest.dependencies[name]) {
|
|
91
|
-
publishManifest.dependencies[name] = version;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
if (Object.keys(cliExternalDeps).length > 0) {
|
|
97
|
-
publishManifest.dependencies = publishManifest.dependencies || {};
|
|
98
|
-
for (const [name, version] of Object.entries(cliExternalDeps)) {
|
|
99
|
-
if (!publishManifest.dependencies[name]) {
|
|
100
|
-
publishManifest.dependencies[name] = version;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
writeFileSync(
|
|
106
|
-
join(distDir, "package.json"),
|
|
107
|
-
JSON.stringify(publishManifest, null, 2) + "\n"
|
|
108
|
-
);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
function discoverExternalImportsFromCliSourceFiles(
|
|
112
|
-
sourceDir: string,
|
|
113
|
-
filesToCopy: string[],
|
|
114
|
-
rootManifest: Record<string, any>
|
|
115
|
-
): Record<string, string> {
|
|
116
|
-
const rootDeps: Record<string, string> = {};
|
|
117
|
-
if (rootManifest.dependencies) {
|
|
118
|
-
for (const [name, version] of Object.entries(rootManifest.dependencies)) {
|
|
119
|
-
if (typeof version === "string" && !version.startsWith("workspace:")) {
|
|
120
|
-
rootDeps[name] = version;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
const externalDeps: Record<string, string> = {};
|
|
126
|
-
for (const filePath of collectTypeScriptSourceFiles(sourceDir, filesToCopy)) {
|
|
127
|
-
const content = readFileSync(filePath, "utf8");
|
|
128
|
-
for (const importName of extractExternalImports(content)) {
|
|
129
|
-
if (rootDeps[importName]) {
|
|
130
|
-
externalDeps[importName] = rootDeps[importName];
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
return externalDeps;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
export { rewriteCrossPackageImports } from "./buildPublishImportAnalysis";
|