nolo-cli 0.252.0-alpha.3 → 0.253.0-alpha.1

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 (108) hide show
  1. package/{_executeModel-RXHY2BDR.js → _executeModel-VUXEWLLQ.js} +29 -29
  2. package/{addContentAction-F4XO3VRF.js → addContentAction-MT4BECXT.js} +6 -6
  3. package/{addDialogAgentAction-NSCVHTZJ.js → addDialogAgentAction-ZZTJ5GBD.js} +5 -5
  4. package/{agentDeleteCommand-OKR6IDGK.js → agentDeleteCommand-SU5IKIW3.js} +36 -36
  5. package/{agentEmailCommands-UKPURCCI.js → agentEmailCommands-SHLVY627.js} +36 -36
  6. package/{agentListCommands-CTY7WAMN.js → agentListCommands-3NTMYMVI.js} +16 -16
  7. package/{agentMachineCommands-WTCQHXHZ.js → agentMachineCommands-MYXLAKQF.js} +12 -11
  8. package/{agentRecordCommands-IM2WIFKB.js → agentRecordCommands-EIZTKSWW.js} +36 -36
  9. package/{agentRunCommand-7MCCRUJY.js → agentRunCommand-RB3EIT4I.js} +36 -36
  10. package/{agentRunControl-KNNDEEDI.js → agentRunControl-5ABAIBQT.js} +2 -2
  11. package/{agentRuntimeLocal-EOW6FFXL.js → agentRuntimeLocal-IO3GGTCJ.js} +7 -7
  12. package/{agentSlice-PVFGBJXB.js → agentSlice-TQVS23WV.js} +6 -6
  13. package/{appDeleteCommands-3VCRRWUX.js → appDeleteCommands-ZQ4ZEKTC.js} +13 -12
  14. package/{appDeployCommands-XN6IEMYK.js → appDeployCommands-4XT7PFW5.js} +13 -12
  15. package/{appDeployStatusCommands-ZSJJXMVR.js → appDeployStatusCommands-5RVMRYQW.js} +13 -12
  16. package/{appGetCommands-DJ7YQCEE.js → appGetCommands-VH5W3RFK.js} +13 -12
  17. package/{appListCommands-4KU5CV5H.js → appListCommands-TAHZLAL3.js} +13 -12
  18. package/{builtinSkillRegistry-PQWEXSFW.js → builtinSkillRegistry-66PEOD4Y.js} +1 -1
  19. package/{chunk-25GCVHBZ.js → chunk-25BDZGD7.js} +1 -1
  20. package/{chunk-2HF6DINU.js → chunk-2BJ53346.js} +6 -6
  21. package/{chunk-VZWYP7LD.js → chunk-2RCMFPUZ.js} +2 -2
  22. package/{chunk-OQOXDQLB.js → chunk-2VYX3ZCR.js} +3 -3
  23. package/{chunk-UDQZ5JT7.js → chunk-3SEBCWLD.js} +17394 -17306
  24. package/{chunk-NWZRCUHM.js → chunk-4AFKLWZP.js} +101 -192
  25. package/{chunk-GUFTHWDO.js → chunk-4BQ5QKIG.js} +9 -9
  26. package/{chunk-YWLMUFZ5.js → chunk-4GWNEPY6.js} +1 -1
  27. package/{chunk-GJ4UTSAW.js → chunk-53UOBNTI.js} +4 -4
  28. package/{chunk-V644LXPC.js → chunk-7STRX24O.js} +3 -3
  29. package/chunk-AIHNB5QH.js +1394 -0
  30. package/{chunk-BVCCRSGK.js → chunk-ANQ544EU.js} +5 -5
  31. package/{chunk-4KBKOG2L.js → chunk-CF7U32BX.js} +2 -2
  32. package/{chunk-MOAVLCCM.js → chunk-CMYZT2XN.js} +3 -3
  33. package/{chunk-U3ZK2MXG.js → chunk-CUQNRU4X.js} +3 -3
  34. package/{chunk-EQJK6LSN.js → chunk-D4CUS6NT.js} +3 -3
  35. package/{chunk-SBBSUBY3.js → chunk-DNY33GGQ.js} +1 -1
  36. package/{chunk-RE32BIKY.js → chunk-FZSGYLFV.js} +3 -3
  37. package/{chunk-N2ZAY2DK.js → chunk-GFXPPQZN.js} +1 -1
  38. package/{chunk-BTQU2PRC.js → chunk-GK772DEV.js} +1 -1
  39. package/{chunk-N7UXTVAR.js → chunk-HEQJ5XND.js} +1 -1
  40. package/{chunk-BLBGVSLB.js → chunk-HEUHCHAR.js} +5 -5
  41. package/{chunk-WNIBQBOR.js → chunk-HS4JGZQH.js} +1 -1
  42. package/{chunk-N2MDL5AZ.js → chunk-IRORRPH2.js} +9 -9
  43. package/chunk-JJABK3QO.js +321 -0
  44. package/{chunk-64ACTEAE.js → chunk-JKO32CCL.js} +1 -1
  45. package/{chunk-ZMXO5G3E.js → chunk-K4LLTJUO.js} +4 -2
  46. package/{chunk-MDWHMQON.js → chunk-M7GMJBQJ.js} +1 -1
  47. package/{chunk-FJPVVLP3.js → chunk-MARF3TN2.js} +4 -4
  48. package/{chunk-KO6JNZCF.js → chunk-MPOUZIF4.js} +21 -8
  49. package/{chunk-WJOC3AEM.js → chunk-MRYKRL2V.js} +1 -1
  50. package/{chunk-Z47UZT27.js → chunk-NMGG3NUB.js} +1 -1
  51. package/{chunk-EPBEZKYK.js → chunk-O3WZMJAN.js} +2 -2
  52. package/{chunk-3LL5HRIJ.js → chunk-OLS2J3WE.js} +1 -1
  53. package/{chunk-7XO73H5X.js → chunk-P4JX7YMQ.js} +1 -1
  54. package/{chunk-Q5M27DUE.js → chunk-PR25J652.js} +1 -1
  55. package/{chunk-JX2IG37T.js → chunk-PTY2VZM5.js} +1 -1
  56. package/{chunk-OTNPEE4G.js → chunk-SID2TFMV.js} +87 -63
  57. package/{chunk-26KL6533.js → chunk-TI2JIXK4.js} +18 -18
  58. package/{chunk-RGWYRTSY.js → chunk-TOHMK27J.js} +21 -23
  59. package/{chunk-SE7UURHT.js → chunk-UHTT23PH.js} +12 -12
  60. package/{chunk-IQXMWBI6.js → chunk-UMI4NNZP.js} +2 -2
  61. package/{chunk-CSTCYYCR.js → chunk-VKAITWPC.js} +9 -9
  62. package/{chunk-UGHNYYOE.js → chunk-VPSPVLCM.js} +2 -2
  63. package/{chunk-OTOPQXP5.js → chunk-XWR2YD4L.js} +1 -1
  64. package/{chunk-K7RWY7JH.js → chunk-YQYSQUP3.js} +7 -7
  65. package/{chunk-ZMWDHPNG.js → chunk-Z2ZCKNKX.js} +1 -5
  66. package/{cliLocalAgentRecordReader-OHAC4JTY.js → cliLocalAgentRecordReader-2WBUVRVD.js} +9 -9
  67. package/{commandRegistry-YSV6ZWPO.js → commandRegistry-JDCGWIWD.js} +46 -117
  68. package/{contentThunks-GSMUNWBA.js → contentThunks-B6BY7GS3.js} +11 -11
  69. package/{createAgentAutomationAction-RMADR4LG.js → createAgentAutomationAction-TQ6IA5SV.js} +11 -11
  70. package/{createDialogAction-CM5CBQVH.js → createDialogAction-QKMGD2TS.js} +12 -12
  71. package/{createPageAction-JMGVMCTH.js → createPageAction-7EEVGWGG.js} +12 -12
  72. package/{dbSlice-Q637QR4L.js → dbSlice-HXFRXGI3.js} +5 -5
  73. package/{deleteFile-TP6MKFUX.js → deleteFile-QDSZVTUJ.js} +3 -3
  74. package/{dialogCommands-IZSD4CQM.js → dialogCommands-MEH4CVRL.js} +15 -14
  75. package/{dialogSlice-ARQKXXTD.js → dialogSlice-6WIME53P.js} +9 -9
  76. package/{docCreateCommands-ZJFHCZV4.js → docCreateCommands-MVAYVGQ5.js} +12 -11
  77. package/{docDeleteCommands-LY5MF2BI.js → docDeleteCommands-TKXPRA3O.js} +13 -12
  78. package/{docReadCommands-4X2DHCNZ.js → docReadCommands-MR2YKCZP.js} +12 -11
  79. package/{docStore-QWRVKIRI.js → docStore-VEHQHXRM.js} +6 -6
  80. package/{docUpdateCommands-5TIT7DAJ.js → docUpdateCommands-VJ6A6F7F.js} +12 -11
  81. package/{handleSendMessageAction-TVR55KVT.js → handleSendMessageAction-X5LGNJX5.js} +22 -22
  82. package/{hostCredentialCreate-T33O7WLA.js → hostCredentialCreate-AQYSWUKA.js} +36 -36
  83. package/index.js +4 -4
  84. package/{localRuntimeAdapter-CNFP7ZEP.js → localRuntimeAdapter-FA4OGZGU.js} +35 -35
  85. package/{machineCommands-TGA5EH2G.js → machineCommands-VKU6MAFA.js} +36 -36
  86. package/{machineWsRunDispatch-LMJPGTTZ.js → machineWsRunDispatch-XQQHHOX4.js} +36 -36
  87. package/{memberThunks-IGYRMEQC.js → memberThunks-ZXEUM6DH.js} +7 -7
  88. package/package.json +1 -1
  89. package/{projectArchive-Q46BYZQ6.js → projectArchive-674NJOYI.js} +12 -12
  90. package/{read-MPPXZHAO.js → read-T5WPCAY7.js} +3 -3
  91. package/{readDocTool-PKZ35PCR.js → readDocTool-DW4DCRQG.js} +1 -1
  92. package/{readlineWorkspace-HA6DWK4N.js → readlineWorkspace-HFPEDOHN.js} +46 -64
  93. package/{removeDialogAgentAction-H6S7VLNA.js → removeDialogAgentAction-MXJEB77K.js} +6 -6
  94. package/{runAgentClientLoop-WZJ4HXOH.js → runAgentClientLoop-NU3JNHSH.js} +27 -27
  95. package/{setDialogExtraReferencesAction-CARUTAWS.js → setDialogExtraReferencesAction-BILVMHM7.js} +6 -6
  96. package/{setPrimaryDialogAgentAction-VRV56MLG.js → setPrimaryDialogAgentAction-CUBBWACR.js} +6 -6
  97. package/{settingThunks-4FC4HXGN.js → settingThunks-BRBBAGEK.js} +5 -5
  98. package/{spaceCommands-27Z5JAU3.js → spaceCommands-K4HHG7OO.js} +12 -11
  99. package/{streamAgentChatTurn-JKMBFM2O.js → streamAgentChatTurn-7FDXIRMB.js} +35 -35
  100. package/{switchDialogAgentAction-O236K6HB.js → switchDialogAgentAction-SSI2CSNE.js} +5 -5
  101. package/{tools-4RFLNHUW.js → tools-GC45557U.js} +23 -23
  102. package/{tuiRestart-GF4DGAAN.js → tuiRestart-7IKI6JZK.js} +3 -3
  103. package/{updateDialogTitleAction-F3ONQM3N.js → updateDialogTitleAction-OAC5MWMS.js} +11 -11
  104. package/chunk-CGSIW2KI.js +0 -594
  105. package/chunk-HF4C5WIU.js +0 -980
  106. package/chunk-U5LOKQ2R.js +0 -176
  107. package/{chunk-REINTCQF.js → chunk-4CL6QIQZ.js} +3 -3
  108. package/{chunk-5BRVDQTX.js → chunk-KWARDHBI.js} +7 -7
package/chunk-U5LOKQ2R.js DELETED
@@ -1,176 +0,0 @@
1
- // packages/cli/tui/ciStatus.ts
2
- import { execFile } from "node:child_process";
3
-
4
- // packages/core/infraHosts.ts
5
- var ALPHA_ORIGIN_IP = "62.83.99.45";
6
-
7
- // packages/cli/tui/ciStatus.ts
8
- var DEFAULT_SSH_HOST = `root@${ALPHA_ORIGIN_IP}`;
9
- var DEFAULT_CI_PORT = "3900";
10
- function resolveCiSshTarget(env = process.env) {
11
- const override = env.NOLO_CI_SSH_HOST?.trim();
12
- if (override) return override;
13
- const raw = env.NOLO_CI_RAW_HOST?.trim() ?? env.NOLO_ALPHA_RAW_HOST?.trim();
14
- if (raw) return `${env.NOLO_CI_SSH_USER?.trim() ?? env.NOLO_ALPHA_SSH_USER?.trim() ?? "nolotus"}@${raw}`;
15
- return env.NOLO_ALPHA_SSH_CONFIG_HOST?.trim() || DEFAULT_SSH_HOST;
16
- }
17
- function resolveCiPort(env = process.env) {
18
- const raw = env.NOLO_CI_PORT?.trim() ?? "";
19
- return /^\d{1,5}$/.test(raw) && Number(raw) > 0 && Number(raw) <= 65535 ? raw : DEFAULT_CI_PORT;
20
- }
21
- function compactStatusBeforeTransport(command) {
22
- const projection = 'import json,sys; d=json.load(sys.stdin); jobs=d.get("jobs",[d]); [j.get("source",{}).pop("push",None) for j in jobs]; print(json.dumps(d,separators=(",",":")))';
23
- return `${command} | python3 -c '${projection}'`;
24
- }
25
- function buildCiStatusCommand(limit, env = process.env) {
26
- const safeLimit = Math.max(1, Math.min(20, Math.trunc(limit) || 5));
27
- return compactStatusBeforeTransport(`curl -s -m 3 "http://127.0.0.1:${resolveCiPort(env)}/status?limit=${safeLimit}"`);
28
- }
29
- function isCiStatusTestOrCiEnvironment(env = process.env) {
30
- return env.NODE_ENV === "test" || process.env.NODE_ENV === "test" || env.BUN_ENV === "test" || process.env.BUN_ENV === "test" || Boolean(
31
- env.CI || process.env.CI || env.GITHUB_ACTIONS || process.env.GITHUB_ACTIONS
32
- );
33
- }
34
- function shouldBlockRealSsh(env, execFileImpl) {
35
- if (execFileImpl !== execFile) return false;
36
- if (env.NOLO_CI_STATUS_ALLOW_SSH === "1") return false;
37
- return isCiStatusTestOrCiEnvironment(env);
38
- }
39
- function asRecord(value) {
40
- return typeof value === "object" && value !== null ? value : void 0;
41
- }
42
- function asString(value) {
43
- return typeof value === "string" && value.trim() ? value.trim() : void 0;
44
- }
45
- function extractFailedPhase(raw) {
46
- if (!Array.isArray(raw)) return void 0;
47
- for (const entry of raw) {
48
- const timing = asRecord(entry);
49
- if (!timing) continue;
50
- const status = timing.status;
51
- const phase = asString(timing.phase);
52
- if (phase && typeof status === "number" && status !== 0) return phase;
53
- }
54
- return void 0;
55
- }
56
- function toCiJob(value) {
57
- const record = asRecord(value);
58
- if (!record) return void 0;
59
- const jobId = asString(record.jobId);
60
- const status = asString(record.status);
61
- if (!jobId || !status) return void 0;
62
- const durationMs = typeof record.durationMs === "number" ? record.durationMs : void 0;
63
- return {
64
- jobId,
65
- kind: asString(record.kind) ?? "unknown",
66
- status,
67
- shortSha: asString(record.shortSha) ?? asString(record.sha) ?? "",
68
- startedAt: asString(record.startedAt),
69
- durationMs,
70
- failedPhase: extractFailedPhase(record.phaseTimings)
71
- };
72
- }
73
- function parseCiStatusPayload(raw) {
74
- let parsed;
75
- try {
76
- parsed = JSON.parse(raw);
77
- } catch {
78
- return void 0;
79
- }
80
- const root = asRecord(parsed);
81
- if (!root) return void 0;
82
- const jobs = root.jobs;
83
- if (Array.isArray(jobs)) {
84
- return jobs.map(toCiJob).filter((job) => job !== void 0);
85
- }
86
- const single = toCiJob(parsed);
87
- return single ? [single] : void 0;
88
- }
89
- function buildRemoteCommand(limit, env = process.env) {
90
- return buildCiStatusCommand(limit, env);
91
- }
92
- function fetchCiStatus(limit = 5, timeoutMs = 4e3, signal, env = process.env, execFileImpl = execFile) {
93
- return fetchCiPayload(buildRemoteCommand(limit, env), parseCiStatusPayload, timeoutMs, resolveCiSshTarget(env), signal, execFileImpl, env);
94
- }
95
- function fetchCiPayload(command, parse, timeoutMs, sshTarget, signal, execFileImpl = execFile, env = process.env) {
96
- if (shouldBlockRealSsh(env, execFileImpl)) {
97
- return Promise.resolve(void 0);
98
- }
99
- return new Promise((resolve) => {
100
- let settled = false;
101
- let guard;
102
- const finish = (value) => {
103
- if (settled) return;
104
- settled = true;
105
- if (guard) clearTimeout(guard);
106
- signal?.removeEventListener("abort", onAbort);
107
- resolve(value);
108
- };
109
- const onAbort = () => finish(void 0);
110
- if (signal?.aborted) {
111
- finish(void 0);
112
- return;
113
- }
114
- signal?.addEventListener("abort", onAbort, { once: true });
115
- guard = setTimeout(() => finish(void 0), timeoutMs + 500);
116
- guard.unref?.();
117
- try {
118
- execFileImpl(
119
- "ssh",
120
- ["-o", "BatchMode=yes", "-o", `ConnectTimeout=3`, sshTarget, command],
121
- { timeout: timeoutMs, signal, encoding: "utf8", maxBuffer: 1024 * 1024 },
122
- (error, stdout) => {
123
- if (error) {
124
- finish(void 0);
125
- return;
126
- }
127
- try {
128
- finish(parse(stdout ?? ""));
129
- } catch {
130
- finish(void 0);
131
- }
132
- }
133
- );
134
- } catch {
135
- finish(void 0);
136
- }
137
- });
138
- }
139
- function summarizeLatest(jobs) {
140
- const latest = jobs?.[0];
141
- if (!latest) return void 0;
142
- const sha = latest.shortSha ? latest.shortSha.slice(0, 7) : "???????";
143
- if (latest.status === "running") return `ci:${sha} \u2026`;
144
- if (latest.status === "succeeded") return `ci:${sha} \u2713`;
145
- if (latest.status === "failed" || latest.status === "orphaned") {
146
- return `ci:${sha} \u2717${latest.failedPhase ? ` ${latest.failedPhase}` : ""}`;
147
- }
148
- return `ci:${sha} ${latest.status}`;
149
- }
150
- function buildCancelCommand(jobId, env = process.env) {
151
- const port = resolveCiPort(env);
152
- const body = JSON.stringify({ jobId }).replace(/'/g, "'\\''");
153
- const endpoint = `http://127.0.0.1:${port}/cancel`;
154
- const tokenRef = `$(grep -m1 '^NOLO_CI_ADMIN_TOKEN=' "$HOME/.config/nolo-ci.env" 2>/dev/null | cut -d= -f2-)`;
155
- return `curl -s -m 110 -H "Authorization: Bearer ${tokenRef}" -H 'Content-Type: application/json' -X POST --data '${body}' "${endpoint}"`;
156
- }
157
- function fetchCiCancel(jobId, timeoutMs = 12e4, execFileImpl = execFile, env = process.env) {
158
- return fetchCiPayload(
159
- buildCancelCommand(jobId, env),
160
- (stdout) => {
161
- const response = JSON.parse(stdout);
162
- return response?.ok === true && response?.cancelled === true && response?.jobId === jobId ? true : false;
163
- },
164
- timeoutMs,
165
- resolveCiSshTarget(env),
166
- void 0,
167
- execFileImpl,
168
- env
169
- );
170
- }
171
-
172
- export {
173
- fetchCiStatus,
174
- summarizeLatest,
175
- fetchCiCancel
176
- };
@@ -1,6 +1,3 @@
1
- import {
2
- fnv1a32
3
- } from "./chunk-UEILX4EV.js";
4
1
  import {
5
2
  createSelector,
6
3
  noloDeleteRequest,
@@ -15,6 +12,9 @@ import {
15
12
  googleSessionServer,
16
13
  scopeGoogleSessionServers
17
14
  } from "./chunk-VYRTLHIT.js";
15
+ import {
16
+ fnv1a32
17
+ } from "./chunk-UEILX4EV.js";
18
18
  import {
19
19
  selectIdentityToken,
20
20
  selectIdentityUser,
@@ -2109,13 +2109,6 @@ ${stderr.trim()}` : "",
2109
2109
  }
2110
2110
 
2111
2111
  export {
2112
- countLines,
2113
- spillToolOutput,
2114
- formatToolOverflowMarker,
2115
- TOOL_OUTPUT_SPILL_BYTES,
2116
- TOOL_OUTPUT_SPILL_LINES,
2117
- isSpilledToolOutput,
2118
- spillLargeToolOutput,
2119
2112
  resolveExecutableOnPath,
2120
2113
  createGlob,
2121
2114
  spawnToWebStreams,
@@ -2123,6 +2116,13 @@ export {
2123
2116
  reportedTaskStatus,
2124
2117
  toProcessTaskView,
2125
2118
  getProcessRegistry,
2119
+ countLines,
2120
+ spillToolOutput,
2121
+ formatToolOverflowMarker,
2122
+ TOOL_OUTPUT_SPILL_BYTES,
2123
+ TOOL_OUTPUT_SPILL_LINES,
2124
+ isSpilledToolOutput,
2125
+ spillLargeToolOutput,
2126
2126
  buildProcessTaskResultCapsule,
2127
2127
  withShellChildEnvironment,
2128
2128
  workspaceChildEnv,