nolo-cli 0.8.0-alpha.2 → 0.8.0-alpha.21
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 +1 -1
- package/_executeModel-42U3VOVZ.js +205 -0
- package/action-TLI3V62L.js +28 -0
- package/addContentAction-57RSIIMR.js +26 -0
- package/addDialogAgentAction-G3VWEA6E.js +68 -0
- package/agentDeleteCommand-5DD2IM3J.js +327 -0
- package/agentEmailCommands-6FACJBU4.js +628 -0
- package/agentListCommands-I6KZYCIG.js +223 -0
- package/agentMachineCommands-VKLIGMZA.js +425 -0
- package/agentPullCommand-O2MTUAFR.js +122 -0
- package/agentRecordCommands-7TZICYDT.js +96 -0
- package/agentRunCommand-L4OM23KV.js +114 -0
- package/agentRunControl-K4VKNEHF.js +57 -0
- package/agentRuntimeLocal-ZYEIPTY4.js +104 -0
- package/agentSlice-BX7GXSNO.js +42 -0
- package/authCommand-EB5JSOX5.js +581 -0
- package/authCommands-XPEHTKSM.js +35 -0
- package/chunk-25LCXTML.js +175 -0
- package/chunk-2ECQG4YX.js +22296 -0
- package/chunk-2FTTDCD4.js +675 -0
- package/chunk-2JCXITPK.js +1078 -0
- package/chunk-3ASDTTEI.js +1774 -0
- package/chunk-3EUW3WEO.js +8 -0
- package/chunk-3LY4F7SV.js +9293 -0
- package/chunk-4CQLVGRV.js +50 -0
- package/chunk-4IJYA27C.js +342 -0
- package/chunk-4O3CARJ4.js +231 -0
- package/chunk-4QEWT7KD.js +933 -0
- package/chunk-4SN6J65J.js +38 -0
- package/chunk-4VNS5WPM.js +42 -0
- package/chunk-4XENYTF5.js +222 -0
- package/chunk-4ZDM73SD.js +34 -0
- package/chunk-5CS33IBL.js +301 -0
- package/chunk-5EFXE3O7.js +138 -0
- package/chunk-5KLGBAAR.js +386 -0
- package/chunk-5MIDPSSK.js +206 -0
- package/chunk-5MMAK75Q.js +15 -0
- package/chunk-63W5N6P3.js +150 -0
- package/chunk-6HYVJV7B.js +102 -0
- package/chunk-6KHNO3SK.js +1948 -0
- package/chunk-6WD3OOJS.js +20 -0
- package/chunk-7DAJ4AI4.js +191 -0
- package/chunk-7GNGZRLZ.js +1939 -0
- package/chunk-7KCUSYT2.js +354 -0
- package/chunk-7U44LYTR.js +238 -0
- package/chunk-AFON4QUU.js +112 -0
- package/chunk-AGFH73SK.js +239 -0
- package/chunk-AL2KDGR2.js +27339 -0
- package/chunk-AS4PVWA4.js +221 -0
- package/chunk-ATNTHIZI.js +13 -0
- package/chunk-AVMKZHBC.js +85 -0
- package/chunk-AZPCASRE.js +36 -0
- package/chunk-BBYVOSU2.js +792 -0
- package/chunk-C3RUNRHT.js +51 -0
- package/chunk-C4FTUXVF.js +146 -0
- package/chunk-CF2WZF4N.js +134 -0
- package/chunk-CF7PE763.js +10 -0
- package/chunk-CKOJQDKR.js +198 -0
- package/chunk-CMKUBIGW.js +1550 -0
- package/chunk-CWMSB67P.js +34 -0
- package/chunk-DCOA4QSN.js +105 -0
- package/chunk-DFFIZ25G.js +30 -0
- package/chunk-DSZUWUYB.js +478 -0
- package/chunk-DWLEOOGR.js +8 -0
- package/chunk-DZ3XJVET.js +231 -0
- package/chunk-EHLHSX7R.js +1433 -0
- package/chunk-ENOG22KJ.js +939 -0
- package/chunk-FSO5B7GH.js +171 -0
- package/chunk-FVYY6MCS.js +1447 -0
- package/chunk-G3SUCT4W.js +8 -0
- package/chunk-GAKEBQD6.js +30 -0
- package/chunk-GBRG75BQ.js +86 -0
- package/chunk-GU3PEVGZ.js +4723 -0
- package/chunk-H33743XH.js +25 -0
- package/chunk-HNMXYYJR.js +12 -0
- package/chunk-HNW7IJSK.js +71 -0
- package/chunk-I42VC5KR.js +15 -0
- package/chunk-I6XMPTMR.js +113 -0
- package/chunk-IDZTNRP2.js +85 -0
- package/chunk-ISNCLGUZ.js +146 -0
- package/chunk-IWX4UW2E.js +548 -0
- package/chunk-JBTJAPUF.js +35 -0
- package/chunk-JEXVIMYZ.js +55 -0
- package/chunk-JRKKFRAV.js +537 -0
- package/chunk-JZPBVBIY.js +94 -0
- package/chunk-KKY4B2Q2.js +21 -0
- package/chunk-KQHGZWSV.js +63 -0
- package/chunk-KUG52IAP.js +8 -0
- package/chunk-KX6YBIHG.js +8 -0
- package/chunk-LCBAMY2M.js +60 -0
- package/chunk-LM6IYQ3F.js +16 -0
- package/chunk-LTRXGFMS.js +83 -0
- package/chunk-M76ECQRD.js +13658 -0
- package/chunk-MRC4Q34M.js +188 -0
- package/chunk-MTU75CZ2.js +91 -0
- package/chunk-N54XAP77.js +19 -0
- package/chunk-O2ZNTTET.js +3272 -0
- package/chunk-O4BU24WZ.js +3212 -0
- package/chunk-OLZBQWZU.js +6 -0
- package/chunk-OOSFSFMA.js +271 -0
- package/chunk-OPZYGHUC.js +89 -0
- package/chunk-OWOHNGCN.js +50 -0
- package/chunk-P3PKED2I.js +962 -0
- package/chunk-QSJ3HFEF.js +8 -0
- package/chunk-RCSJFQPB.js +9036 -0
- package/chunk-RL776AGR.js +190 -0
- package/chunk-ROWQEJRP.js +139 -0
- package/chunk-S7Z2HMCN.js +25 -0
- package/chunk-SDJDLO5W.js +628 -0
- package/chunk-SOTZ6RDN.js +69 -0
- package/chunk-TILFE6LV.js +381 -0
- package/chunk-U4TRT5V4.js +246 -0
- package/chunk-U6VC4MU4.js +8 -0
- package/chunk-UAD2WT54.js +64 -0
- package/chunk-UB6SN4NJ.js +421 -0
- package/chunk-URUUZLPA.js +807 -0
- package/chunk-UTLZINAP.js +3066 -0
- package/chunk-VC6OZXO5.js +298 -0
- package/chunk-VF4K2QE6.js +21 -0
- package/chunk-VHBWHNVT.js +59 -0
- package/chunk-VIDPVFP3.js +20 -0
- package/chunk-VP4WJWKW.js +8882 -0
- package/chunk-VUW5FBDB.js +573 -0
- package/chunk-VVX233PH.js +482 -0
- package/chunk-VX3SXJ3N.js +2052 -0
- package/chunk-W4NVOSFF.js +37 -0
- package/chunk-WWC7I6TA.js +8 -0
- package/chunk-WZSRQNQG.js +2587 -0
- package/chunk-XBUBEFNX.js +34 -0
- package/chunk-XENYHRUE.js +104 -0
- package/chunk-Y5GCAMGP.js +9 -0
- package/chunk-YPRZSPF3.js +148 -0
- package/chunk-Z4NR32XR.js +50 -0
- package/chunk-ZNFJWEN4.js +56 -0
- package/cliExecutor-K3F7DMRO.js +36 -0
- package/clipboardy-BVE3LVEH.js +12001 -0
- package/createAgentAutomationAction-RJF3N2QY.js +866 -0
- package/createDialogAction-DRSPS6CE.js +55 -0
- package/createPageAction-6B2WMNO3.js +172 -0
- package/db-HCJ5PRB5.js +271 -0
- package/dbSlice-Q3TM2FJV.js +60 -0
- package/deleteFile-OW53A6BX.js +41 -0
- package/dialogCommands-4IX4XIZE.js +63 -0
- package/dialogSlice-3M7KX2TX.js +148 -0
- package/docCreateCommands-SIL3NPGT.js +220 -0
- package/docDeleteCommands-7IOMLUS4.js +181 -0
- package/docReadCommands-FNFXUA5L.js +134 -0
- package/docStore-SV7E34D4.js +98 -0
- package/docUpdateCommands-X2HNDVUC.js +318 -0
- package/fetchMessages-KTNM7QAR.js +17 -0
- package/getPricing-3E6UNPKL.js +30 -0
- package/handleSendMessageAction-JYETO5RZ.js +185 -0
- package/index.js +188 -112958
- package/lib-FYYBQIXS.js +19839 -0
- package/localDialogRead-2VRI24F4.js +26 -0
- package/localFirstLog-DHNOY2NA.js +19 -0
- package/localRuntimeAuthority-TEGCOWX4.js +471 -0
- package/localRuntimeDb-LGDF6FQP.js +12 -0
- package/machineCommands-RIO3RP5Q.js +781 -0
- package/machineInfo-M6KB6HZN.js +10 -0
- package/machineWsRunDispatch-W7UYLGB5.js +112 -0
- package/memoryCommands-O4MIPIWQ.js +476 -0
- package/models-4OPOOLFS.js +9 -0
- package/offlineMarxistsAgentCommand-BCPJITJL.js +242 -0
- package/package.json +4 -24
- package/read-GW7ZEI23.js +17 -0
- package/readDocTool-HUFU6OCT.js +16 -0
- package/readlineWorkspace-27JR7WPW.js +5682 -0
- package/removeDialogAgentAction-CXKR4NJI.js +73 -0
- package/runAgentClientLoop-HZFAPJHS.js +293 -0
- package/runtimeDoctorCommands-LRHLPDRC.js +289 -0
- package/setDialogExtraReferencesAction-6RKUSXHX.js +60 -0
- package/setPrimaryDialogAgentAction-T3UTBEFG.js +80 -0
- package/settingSlice-IVKXJXMG.js +199 -0
- package/skillDiscovery-UGSQGX2U.js +16 -0
- package/skillSummaryMarker-42HKSXYY.js +9 -0
- package/slateToRenderMarkdown-Y5IYN73U.js +7 -0
- package/slateUtils-2M7MUTWX.js +19 -0
- package/spaceCommands-E7VOF4LO.js +450 -0
- package/spaceSlice-TSVROA5U.js +149 -0
- package/streamAgentChatTurn-3C5RQZJF.js +4510 -0
- package/tableCommands-O7O2LBEG.js +1286 -0
- package/toolApiClient-QI3YBNWB.js +26 -0
- package/tools-EQDEKR6N.js +87 -0
- package/tuiSummaryLlmCaller-RV3THLZF.js +78 -0
- package/understanding-3CUQQ6SV.js +271 -0
- package/updateCommands-VOSPKXFF.js +31 -0
- package/updateDialogTitleAction-3XV7VWSZ.js +188 -0
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import {
|
|
2
|
+
resolveCliAgentKeyInput
|
|
3
|
+
} from "./chunk-VHBWHNVT.js";
|
|
4
|
+
import {
|
|
5
|
+
resolveAuthToken,
|
|
6
|
+
resolveServerUrl
|
|
7
|
+
} from "./chunk-ISNCLGUZ.js";
|
|
8
|
+
import "./chunk-OLZBQWZU.js";
|
|
9
|
+
import {
|
|
10
|
+
toErrorMessage
|
|
11
|
+
} from "./chunk-HNMXYYJR.js";
|
|
12
|
+
import {
|
|
13
|
+
getDefaultCliLocalRuntimeDb
|
|
14
|
+
} from "./chunk-H33743XH.js";
|
|
15
|
+
import "./chunk-LM6IYQ3F.js";
|
|
16
|
+
import "./chunk-QSJ3HFEF.js";
|
|
17
|
+
import "./chunk-4SN6J65J.js";
|
|
18
|
+
import "./chunk-LCBAMY2M.js";
|
|
19
|
+
import "./chunk-CF7PE763.js";
|
|
20
|
+
import "./chunk-G3SUCT4W.js";
|
|
21
|
+
import "./chunk-4VNS5WPM.js";
|
|
22
|
+
|
|
23
|
+
// packages/cli/agentPullCommand.ts
|
|
24
|
+
function readFlagValue(args, flag) {
|
|
25
|
+
const index = args.indexOf(flag);
|
|
26
|
+
return index >= 0 ? args[index + 1] : void 0;
|
|
27
|
+
}
|
|
28
|
+
function positionalArgs(args) {
|
|
29
|
+
const values = [];
|
|
30
|
+
for (let index = 0; index < args.length; index += 1) {
|
|
31
|
+
const arg = args[index];
|
|
32
|
+
if (arg.startsWith("--")) {
|
|
33
|
+
index += 1;
|
|
34
|
+
continue;
|
|
35
|
+
}
|
|
36
|
+
values.push(arg);
|
|
37
|
+
}
|
|
38
|
+
return values;
|
|
39
|
+
}
|
|
40
|
+
function parseAgentPullArgs(args) {
|
|
41
|
+
const agentKey = readFlagValue(args, "--agent") ?? positionalArgs(args)[0];
|
|
42
|
+
if (!agentKey?.trim()) return null;
|
|
43
|
+
return { agentKey: resolveCliAgentKeyInput(agentKey) };
|
|
44
|
+
}
|
|
45
|
+
function extractToolNames(record) {
|
|
46
|
+
if (Array.isArray(record?.toolNames)) return record.toolNames.filter((tool) => typeof tool === "string");
|
|
47
|
+
if (!Array.isArray(record?.tools)) return [];
|
|
48
|
+
return record.tools.map((tool) => typeof tool === "string" ? tool : tool?.name || tool?.function?.name).filter((tool) => typeof tool === "string" && tool.length > 0);
|
|
49
|
+
}
|
|
50
|
+
function normalizeAgentRecord(agentKey, record) {
|
|
51
|
+
return {
|
|
52
|
+
...record,
|
|
53
|
+
dbKey: record?.dbKey || record?.key || agentKey,
|
|
54
|
+
key: record?.key || record?.dbKey || agentKey,
|
|
55
|
+
...typeof record?.provider === "string" ? { provider: record.provider } : typeof record?.apiSource === "string" ? { provider: record.apiSource } : {},
|
|
56
|
+
toolNames: extractToolNames(record),
|
|
57
|
+
cachedBy: "nolo-cli",
|
|
58
|
+
cachedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
async function readRemoteAgent(args) {
|
|
62
|
+
const res = await args.fetchImpl(
|
|
63
|
+
`${args.serverUrl}/api/v1/db/read/${encodeURIComponent(args.agentKey)}`,
|
|
64
|
+
{
|
|
65
|
+
headers: {
|
|
66
|
+
...args.authToken ? { Authorization: `Bearer ${args.authToken}` } : {}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
);
|
|
70
|
+
const data = await res.json().catch(() => ({}));
|
|
71
|
+
if (!res.ok) {
|
|
72
|
+
throw new Error(`HTTP ${res.status} ${JSON.stringify(data)}`);
|
|
73
|
+
}
|
|
74
|
+
return data?.data ?? data;
|
|
75
|
+
}
|
|
76
|
+
function writeUsage(output) {
|
|
77
|
+
output.write(
|
|
78
|
+
"Usage: nolo agent pull <agent>\n nolo agent pull --agent <agent>\n"
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
async function runAgentPullCommand(args, deps = {}) {
|
|
82
|
+
const output = deps.output ?? process.stdout;
|
|
83
|
+
const env = deps.env ?? process.env;
|
|
84
|
+
const parsed = parseAgentPullArgs(args);
|
|
85
|
+
if (!parsed) {
|
|
86
|
+
writeUsage(output);
|
|
87
|
+
return 1;
|
|
88
|
+
}
|
|
89
|
+
const serverUrl = resolveServerUrl(args, env);
|
|
90
|
+
const authToken = readFlagValue(args, "--token") || readFlagValue(args, "--machine-key") || resolveAuthToken(env, ["BENCHMARK_AUTH_TOKEN"]);
|
|
91
|
+
const fetchImpl = deps.fetchImpl ?? fetch;
|
|
92
|
+
const db = deps.db ?? await getDefaultCliLocalRuntimeDb();
|
|
93
|
+
let record;
|
|
94
|
+
try {
|
|
95
|
+
record = await readRemoteAgent({
|
|
96
|
+
agentKey: parsed.agentKey,
|
|
97
|
+
serverUrl,
|
|
98
|
+
authToken,
|
|
99
|
+
fetchImpl
|
|
100
|
+
});
|
|
101
|
+
} catch (error) {
|
|
102
|
+
output.write(
|
|
103
|
+
`[nolo] Failed to pull ${parsed.agentKey} from ${serverUrl}: ${toErrorMessage(error)}
|
|
104
|
+
`
|
|
105
|
+
);
|
|
106
|
+
return 1;
|
|
107
|
+
}
|
|
108
|
+
if (!record || typeof record !== "object") {
|
|
109
|
+
output.write(`[nolo] Server returned an empty agent record for ${parsed.agentKey}.
|
|
110
|
+
`);
|
|
111
|
+
return 1;
|
|
112
|
+
}
|
|
113
|
+
const localRecord = normalizeAgentRecord(parsed.agentKey, record);
|
|
114
|
+
await db.put(parsed.agentKey, localRecord);
|
|
115
|
+
output.write(`[nolo] cached ${parsed.agentKey} in local LevelDB
|
|
116
|
+
`);
|
|
117
|
+
return 0;
|
|
118
|
+
}
|
|
119
|
+
export {
|
|
120
|
+
parseAgentPullArgs,
|
|
121
|
+
runAgentPullCommand
|
|
122
|
+
};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import {
|
|
2
|
+
runAgentCreateCommand,
|
|
3
|
+
runAgentReadCommand,
|
|
4
|
+
runAgentUpdateCommand
|
|
5
|
+
} from "./chunk-4XENYTF5.js";
|
|
6
|
+
import "./chunk-RCSJFQPB.js";
|
|
7
|
+
import "./chunk-EHLHSX7R.js";
|
|
8
|
+
import "./chunk-W4NVOSFF.js";
|
|
9
|
+
import "./chunk-SDJDLO5W.js";
|
|
10
|
+
import "./chunk-N54XAP77.js";
|
|
11
|
+
import "./chunk-VHBWHNVT.js";
|
|
12
|
+
import "./chunk-4O3CARJ4.js";
|
|
13
|
+
import "./chunk-CMKUBIGW.js";
|
|
14
|
+
import "./chunk-JBTJAPUF.js";
|
|
15
|
+
import "./chunk-ATNTHIZI.js";
|
|
16
|
+
import "./chunk-FSO5B7GH.js";
|
|
17
|
+
import "./chunk-C3RUNRHT.js";
|
|
18
|
+
import "./chunk-AL2KDGR2.js";
|
|
19
|
+
import "./chunk-GAKEBQD6.js";
|
|
20
|
+
import "./chunk-KQHGZWSV.js";
|
|
21
|
+
import "./chunk-AS4PVWA4.js";
|
|
22
|
+
import "./chunk-3LY4F7SV.js";
|
|
23
|
+
import "./chunk-VP4WJWKW.js";
|
|
24
|
+
import "./chunk-63W5N6P3.js";
|
|
25
|
+
import "./chunk-VF4K2QE6.js";
|
|
26
|
+
import "./chunk-UB6SN4NJ.js";
|
|
27
|
+
import "./chunk-ENOG22KJ.js";
|
|
28
|
+
import "./chunk-VC6OZXO5.js";
|
|
29
|
+
import "./chunk-OWOHNGCN.js";
|
|
30
|
+
import "./chunk-25LCXTML.js";
|
|
31
|
+
import "./chunk-XENYHRUE.js";
|
|
32
|
+
import "./chunk-2ECQG4YX.js";
|
|
33
|
+
import "./chunk-4ZDM73SD.js";
|
|
34
|
+
import "./chunk-MRC4Q34M.js";
|
|
35
|
+
import "./chunk-MTU75CZ2.js";
|
|
36
|
+
import "./chunk-CWMSB67P.js";
|
|
37
|
+
import "./chunk-VUW5FBDB.js";
|
|
38
|
+
import "./chunk-5EFXE3O7.js";
|
|
39
|
+
import "./chunk-Z4NR32XR.js";
|
|
40
|
+
import "./chunk-M76ECQRD.js";
|
|
41
|
+
import "./chunk-SOTZ6RDN.js";
|
|
42
|
+
import "./chunk-I6XMPTMR.js";
|
|
43
|
+
import "./chunk-UAD2WT54.js";
|
|
44
|
+
import "./chunk-DCOA4QSN.js";
|
|
45
|
+
import "./chunk-IDZTNRP2.js";
|
|
46
|
+
import "./chunk-ISNCLGUZ.js";
|
|
47
|
+
import "./chunk-OLZBQWZU.js";
|
|
48
|
+
import "./chunk-WZSRQNQG.js";
|
|
49
|
+
import "./chunk-O2ZNTTET.js";
|
|
50
|
+
import "./chunk-5KLGBAAR.js";
|
|
51
|
+
import "./chunk-ZNFJWEN4.js";
|
|
52
|
+
import "./chunk-TILFE6LV.js";
|
|
53
|
+
import "./chunk-4QEWT7KD.js";
|
|
54
|
+
import "./chunk-OPZYGHUC.js";
|
|
55
|
+
import "./chunk-AGFH73SK.js";
|
|
56
|
+
import "./chunk-JRKKFRAV.js";
|
|
57
|
+
import "./chunk-P3PKED2I.js";
|
|
58
|
+
import "./chunk-5MMAK75Q.js";
|
|
59
|
+
import "./chunk-BBYVOSU2.js";
|
|
60
|
+
import "./chunk-5CS33IBL.js";
|
|
61
|
+
import "./chunk-JZPBVBIY.js";
|
|
62
|
+
import "./chunk-IWX4UW2E.js";
|
|
63
|
+
import "./chunk-5MIDPSSK.js";
|
|
64
|
+
import "./chunk-DFFIZ25G.js";
|
|
65
|
+
import "./chunk-3ASDTTEI.js";
|
|
66
|
+
import "./chunk-DWLEOOGR.js";
|
|
67
|
+
import "./chunk-HNMXYYJR.js";
|
|
68
|
+
import "./chunk-H33743XH.js";
|
|
69
|
+
import "./chunk-LM6IYQ3F.js";
|
|
70
|
+
import "./chunk-VX3SXJ3N.js";
|
|
71
|
+
import "./chunk-Y5GCAMGP.js";
|
|
72
|
+
import "./chunk-URUUZLPA.js";
|
|
73
|
+
import "./chunk-AZPCASRE.js";
|
|
74
|
+
import "./chunk-7U44LYTR.js";
|
|
75
|
+
import "./chunk-KX6YBIHG.js";
|
|
76
|
+
import "./chunk-O4BU24WZ.js";
|
|
77
|
+
import "./chunk-I42VC5KR.js";
|
|
78
|
+
import "./chunk-WWC7I6TA.js";
|
|
79
|
+
import "./chunk-QSJ3HFEF.js";
|
|
80
|
+
import "./chunk-DSZUWUYB.js";
|
|
81
|
+
import "./chunk-UTLZINAP.js";
|
|
82
|
+
import "./chunk-OOSFSFMA.js";
|
|
83
|
+
import "./chunk-GBRG75BQ.js";
|
|
84
|
+
import "./chunk-4SN6J65J.js";
|
|
85
|
+
import "./chunk-LCBAMY2M.js";
|
|
86
|
+
import "./chunk-3EUW3WEO.js";
|
|
87
|
+
import "./chunk-U6VC4MU4.js";
|
|
88
|
+
import "./chunk-CF7PE763.js";
|
|
89
|
+
import "./chunk-G3SUCT4W.js";
|
|
90
|
+
import "./chunk-KUG52IAP.js";
|
|
91
|
+
import "./chunk-4VNS5WPM.js";
|
|
92
|
+
export {
|
|
93
|
+
runAgentCreateCommand,
|
|
94
|
+
runAgentReadCommand,
|
|
95
|
+
runAgentUpdateCommand
|
|
96
|
+
};
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import {
|
|
2
|
+
inspectLocalRunWorkspace,
|
|
3
|
+
isQuotaExhaustedError,
|
|
4
|
+
normalizeCliImageInput,
|
|
5
|
+
prependSubjectDialogMarker,
|
|
6
|
+
resolveWorkflowReference,
|
|
7
|
+
runAgentRunCommand
|
|
8
|
+
} from "./chunk-GU3PEVGZ.js";
|
|
9
|
+
import "./chunk-6HYVJV7B.js";
|
|
10
|
+
import "./chunk-2FTTDCD4.js";
|
|
11
|
+
import {
|
|
12
|
+
parseAgentRunArgs
|
|
13
|
+
} from "./chunk-DZ3XJVET.js";
|
|
14
|
+
import "./chunk-RCSJFQPB.js";
|
|
15
|
+
import "./chunk-EHLHSX7R.js";
|
|
16
|
+
import "./chunk-W4NVOSFF.js";
|
|
17
|
+
import "./chunk-SDJDLO5W.js";
|
|
18
|
+
import "./chunk-N54XAP77.js";
|
|
19
|
+
import "./chunk-VHBWHNVT.js";
|
|
20
|
+
import "./chunk-LTRXGFMS.js";
|
|
21
|
+
import "./chunk-4O3CARJ4.js";
|
|
22
|
+
import "./chunk-CMKUBIGW.js";
|
|
23
|
+
import "./chunk-JBTJAPUF.js";
|
|
24
|
+
import "./chunk-ATNTHIZI.js";
|
|
25
|
+
import "./chunk-JEXVIMYZ.js";
|
|
26
|
+
import "./chunk-FSO5B7GH.js";
|
|
27
|
+
import "./chunk-C3RUNRHT.js";
|
|
28
|
+
import "./chunk-AL2KDGR2.js";
|
|
29
|
+
import "./chunk-GAKEBQD6.js";
|
|
30
|
+
import "./chunk-KQHGZWSV.js";
|
|
31
|
+
import "./chunk-AS4PVWA4.js";
|
|
32
|
+
import "./chunk-3LY4F7SV.js";
|
|
33
|
+
import "./chunk-VP4WJWKW.js";
|
|
34
|
+
import "./chunk-63W5N6P3.js";
|
|
35
|
+
import "./chunk-VF4K2QE6.js";
|
|
36
|
+
import "./chunk-UB6SN4NJ.js";
|
|
37
|
+
import "./chunk-ENOG22KJ.js";
|
|
38
|
+
import "./chunk-VC6OZXO5.js";
|
|
39
|
+
import "./chunk-OWOHNGCN.js";
|
|
40
|
+
import "./chunk-25LCXTML.js";
|
|
41
|
+
import "./chunk-HNW7IJSK.js";
|
|
42
|
+
import "./chunk-XENYHRUE.js";
|
|
43
|
+
import "./chunk-2ECQG4YX.js";
|
|
44
|
+
import "./chunk-4ZDM73SD.js";
|
|
45
|
+
import "./chunk-MRC4Q34M.js";
|
|
46
|
+
import "./chunk-MTU75CZ2.js";
|
|
47
|
+
import "./chunk-CWMSB67P.js";
|
|
48
|
+
import "./chunk-VUW5FBDB.js";
|
|
49
|
+
import "./chunk-5EFXE3O7.js";
|
|
50
|
+
import "./chunk-Z4NR32XR.js";
|
|
51
|
+
import "./chunk-M76ECQRD.js";
|
|
52
|
+
import "./chunk-SOTZ6RDN.js";
|
|
53
|
+
import "./chunk-I6XMPTMR.js";
|
|
54
|
+
import "./chunk-UAD2WT54.js";
|
|
55
|
+
import "./chunk-DCOA4QSN.js";
|
|
56
|
+
import "./chunk-IDZTNRP2.js";
|
|
57
|
+
import "./chunk-ISNCLGUZ.js";
|
|
58
|
+
import "./chunk-OLZBQWZU.js";
|
|
59
|
+
import "./chunk-AFON4QUU.js";
|
|
60
|
+
import "./chunk-C4FTUXVF.js";
|
|
61
|
+
import "./chunk-KKY4B2Q2.js";
|
|
62
|
+
import "./chunk-WZSRQNQG.js";
|
|
63
|
+
import "./chunk-O2ZNTTET.js";
|
|
64
|
+
import "./chunk-5KLGBAAR.js";
|
|
65
|
+
import "./chunk-ZNFJWEN4.js";
|
|
66
|
+
import "./chunk-TILFE6LV.js";
|
|
67
|
+
import "./chunk-4QEWT7KD.js";
|
|
68
|
+
import "./chunk-OPZYGHUC.js";
|
|
69
|
+
import "./chunk-AGFH73SK.js";
|
|
70
|
+
import "./chunk-JRKKFRAV.js";
|
|
71
|
+
import "./chunk-P3PKED2I.js";
|
|
72
|
+
import "./chunk-5MMAK75Q.js";
|
|
73
|
+
import "./chunk-BBYVOSU2.js";
|
|
74
|
+
import "./chunk-5CS33IBL.js";
|
|
75
|
+
import "./chunk-JZPBVBIY.js";
|
|
76
|
+
import "./chunk-IWX4UW2E.js";
|
|
77
|
+
import "./chunk-5MIDPSSK.js";
|
|
78
|
+
import "./chunk-DFFIZ25G.js";
|
|
79
|
+
import "./chunk-3ASDTTEI.js";
|
|
80
|
+
import "./chunk-DWLEOOGR.js";
|
|
81
|
+
import "./chunk-HNMXYYJR.js";
|
|
82
|
+
import "./chunk-H33743XH.js";
|
|
83
|
+
import "./chunk-LM6IYQ3F.js";
|
|
84
|
+
import "./chunk-VX3SXJ3N.js";
|
|
85
|
+
import "./chunk-Y5GCAMGP.js";
|
|
86
|
+
import "./chunk-URUUZLPA.js";
|
|
87
|
+
import "./chunk-AZPCASRE.js";
|
|
88
|
+
import "./chunk-7U44LYTR.js";
|
|
89
|
+
import "./chunk-KX6YBIHG.js";
|
|
90
|
+
import "./chunk-O4BU24WZ.js";
|
|
91
|
+
import "./chunk-I42VC5KR.js";
|
|
92
|
+
import "./chunk-WWC7I6TA.js";
|
|
93
|
+
import "./chunk-QSJ3HFEF.js";
|
|
94
|
+
import "./chunk-DSZUWUYB.js";
|
|
95
|
+
import "./chunk-UTLZINAP.js";
|
|
96
|
+
import "./chunk-OOSFSFMA.js";
|
|
97
|
+
import "./chunk-GBRG75BQ.js";
|
|
98
|
+
import "./chunk-4SN6J65J.js";
|
|
99
|
+
import "./chunk-LCBAMY2M.js";
|
|
100
|
+
import "./chunk-3EUW3WEO.js";
|
|
101
|
+
import "./chunk-U6VC4MU4.js";
|
|
102
|
+
import "./chunk-CF7PE763.js";
|
|
103
|
+
import "./chunk-G3SUCT4W.js";
|
|
104
|
+
import "./chunk-KUG52IAP.js";
|
|
105
|
+
import "./chunk-4VNS5WPM.js";
|
|
106
|
+
export {
|
|
107
|
+
inspectLocalRunWorkspace,
|
|
108
|
+
isQuotaExhaustedError,
|
|
109
|
+
normalizeCliImageInput,
|
|
110
|
+
parseAgentRunArgs,
|
|
111
|
+
prependSubjectDialogMarker,
|
|
112
|
+
resolveWorkflowReference,
|
|
113
|
+
runAgentRunCommand
|
|
114
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import {
|
|
2
|
+
absolutizeSkillArgs,
|
|
3
|
+
checkStaleRun,
|
|
4
|
+
createRunActivityTracker,
|
|
5
|
+
defaultGenerateRunId,
|
|
6
|
+
finalizeRunRecord,
|
|
7
|
+
findRunRecord,
|
|
8
|
+
findRunRecordByPid,
|
|
9
|
+
isPidGone,
|
|
10
|
+
listRunRecords,
|
|
11
|
+
readRunRecord,
|
|
12
|
+
resolveNoloHome,
|
|
13
|
+
resolveRunLogPath,
|
|
14
|
+
resolveRunRecordPath,
|
|
15
|
+
resolveRunsDir,
|
|
16
|
+
rewriteMsgFileArg,
|
|
17
|
+
runAgentKillCommand,
|
|
18
|
+
runAgentLogsCommand,
|
|
19
|
+
runAgentPsCommand,
|
|
20
|
+
runAgentStatusCommand,
|
|
21
|
+
runAgentStopCommand,
|
|
22
|
+
spawnLocalBackgroundRun,
|
|
23
|
+
stripBackgroundFlag,
|
|
24
|
+
writeRunRecord
|
|
25
|
+
} from "./chunk-2FTTDCD4.js";
|
|
26
|
+
import "./chunk-ISNCLGUZ.js";
|
|
27
|
+
import "./chunk-OLZBQWZU.js";
|
|
28
|
+
import "./chunk-4SN6J65J.js";
|
|
29
|
+
import "./chunk-LCBAMY2M.js";
|
|
30
|
+
import "./chunk-CF7PE763.js";
|
|
31
|
+
import "./chunk-G3SUCT4W.js";
|
|
32
|
+
import "./chunk-4VNS5WPM.js";
|
|
33
|
+
export {
|
|
34
|
+
absolutizeSkillArgs,
|
|
35
|
+
checkStaleRun,
|
|
36
|
+
createRunActivityTracker,
|
|
37
|
+
defaultGenerateRunId,
|
|
38
|
+
finalizeRunRecord,
|
|
39
|
+
findRunRecord,
|
|
40
|
+
findRunRecordByPid,
|
|
41
|
+
isPidGone,
|
|
42
|
+
listRunRecords,
|
|
43
|
+
readRunRecord,
|
|
44
|
+
resolveNoloHome,
|
|
45
|
+
resolveRunLogPath,
|
|
46
|
+
resolveRunRecordPath,
|
|
47
|
+
resolveRunsDir,
|
|
48
|
+
rewriteMsgFileArg,
|
|
49
|
+
runAgentKillCommand,
|
|
50
|
+
runAgentLogsCommand,
|
|
51
|
+
runAgentPsCommand,
|
|
52
|
+
runAgentStatusCommand,
|
|
53
|
+
runAgentStopCommand,
|
|
54
|
+
spawnLocalBackgroundRun,
|
|
55
|
+
stripBackgroundFlag,
|
|
56
|
+
writeRunRecord
|
|
57
|
+
};
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import {
|
|
2
|
+
buildAgentRuntimeAgentLookupKeys,
|
|
3
|
+
buildAgentRuntimeDialogWritePlan,
|
|
4
|
+
buildLocalWorkspaceOpenAiTools,
|
|
5
|
+
buildLocalWorkspacePolicyToolNames,
|
|
6
|
+
buildLocalWorkspaceToolset,
|
|
7
|
+
buildOpenAiCompatibleChatCompletionRequest,
|
|
8
|
+
createHybridRecordStore,
|
|
9
|
+
createLocalWorkspaceToolExecutors,
|
|
10
|
+
dialogMessageRecordToAgentRuntimeMessage,
|
|
11
|
+
evaluateShellCommandPolicy,
|
|
12
|
+
executeLocalToolWithPolicy,
|
|
13
|
+
executeOpenAiCompatibleChatCompletion,
|
|
14
|
+
isDestructiveShellCommand,
|
|
15
|
+
parseOpenAiCompatibleChatCompletionResponse,
|
|
16
|
+
readOpenAiCompatibleSseCompletion,
|
|
17
|
+
resolveLocalToolPolicy,
|
|
18
|
+
resolveOpenAiCompatibleProviderConfig,
|
|
19
|
+
shouldCacheHybridRemoteRecord,
|
|
20
|
+
shouldFetchAgentRuntimeRecordRemotely
|
|
21
|
+
} from "./chunk-O2ZNTTET.js";
|
|
22
|
+
import {
|
|
23
|
+
buildPlatformChatCompletionRequest,
|
|
24
|
+
canUsePlatformChatProvider,
|
|
25
|
+
hasDirectOpenAiCompatibleProvider,
|
|
26
|
+
parsePlatformChatCompletionData,
|
|
27
|
+
parsePlatformChatCompletionResponse,
|
|
28
|
+
resolvePlatformChatProviderConfig,
|
|
29
|
+
shouldUsePlatformChatProvider
|
|
30
|
+
} from "./chunk-5KLGBAAR.js";
|
|
31
|
+
import "./chunk-ZNFJWEN4.js";
|
|
32
|
+
import {
|
|
33
|
+
resolveAgentRuntimeConfigFromRecord
|
|
34
|
+
} from "./chunk-TILFE6LV.js";
|
|
35
|
+
import {
|
|
36
|
+
runLocalAgentTurn
|
|
37
|
+
} from "./chunk-4QEWT7KD.js";
|
|
38
|
+
import "./chunk-OPZYGHUC.js";
|
|
39
|
+
import "./chunk-AGFH73SK.js";
|
|
40
|
+
import {
|
|
41
|
+
pickAgentRuntimeInferenceOptions
|
|
42
|
+
} from "./chunk-JRKKFRAV.js";
|
|
43
|
+
import {
|
|
44
|
+
resolveRuntimeToolSurfaceForAgent
|
|
45
|
+
} from "./chunk-P3PKED2I.js";
|
|
46
|
+
import "./chunk-5MMAK75Q.js";
|
|
47
|
+
import "./chunk-BBYVOSU2.js";
|
|
48
|
+
import {
|
|
49
|
+
resolveCurrentRunRuntimeToolPolicy,
|
|
50
|
+
resolveLocalRuntimeEnvFromPolicy,
|
|
51
|
+
resolveLocalWorkspaceExecutorOptionsFromPolicy,
|
|
52
|
+
resolveRequestedRuntimeToolNames
|
|
53
|
+
} from "./chunk-5CS33IBL.js";
|
|
54
|
+
import "./chunk-JZPBVBIY.js";
|
|
55
|
+
import "./chunk-IWX4UW2E.js";
|
|
56
|
+
import "./chunk-DWLEOOGR.js";
|
|
57
|
+
import "./chunk-HNMXYYJR.js";
|
|
58
|
+
import "./chunk-KX6YBIHG.js";
|
|
59
|
+
import "./chunk-O4BU24WZ.js";
|
|
60
|
+
import "./chunk-I42VC5KR.js";
|
|
61
|
+
import "./chunk-WWC7I6TA.js";
|
|
62
|
+
import "./chunk-QSJ3HFEF.js";
|
|
63
|
+
import "./chunk-3EUW3WEO.js";
|
|
64
|
+
import "./chunk-U6VC4MU4.js";
|
|
65
|
+
import "./chunk-CF7PE763.js";
|
|
66
|
+
import "./chunk-G3SUCT4W.js";
|
|
67
|
+
import "./chunk-KUG52IAP.js";
|
|
68
|
+
import "./chunk-4VNS5WPM.js";
|
|
69
|
+
export {
|
|
70
|
+
buildAgentRuntimeAgentLookupKeys,
|
|
71
|
+
buildAgentRuntimeDialogWritePlan,
|
|
72
|
+
buildLocalWorkspaceOpenAiTools,
|
|
73
|
+
buildLocalWorkspacePolicyToolNames,
|
|
74
|
+
buildLocalWorkspaceToolset,
|
|
75
|
+
buildOpenAiCompatibleChatCompletionRequest,
|
|
76
|
+
buildPlatformChatCompletionRequest,
|
|
77
|
+
canUsePlatformChatProvider,
|
|
78
|
+
createHybridRecordStore,
|
|
79
|
+
createLocalWorkspaceToolExecutors,
|
|
80
|
+
dialogMessageRecordToAgentRuntimeMessage,
|
|
81
|
+
evaluateShellCommandPolicy,
|
|
82
|
+
executeLocalToolWithPolicy,
|
|
83
|
+
executeOpenAiCompatibleChatCompletion,
|
|
84
|
+
hasDirectOpenAiCompatibleProvider,
|
|
85
|
+
isDestructiveShellCommand,
|
|
86
|
+
parseOpenAiCompatibleChatCompletionResponse,
|
|
87
|
+
parsePlatformChatCompletionData,
|
|
88
|
+
parsePlatformChatCompletionResponse,
|
|
89
|
+
pickAgentRuntimeInferenceOptions,
|
|
90
|
+
readOpenAiCompatibleSseCompletion,
|
|
91
|
+
resolveAgentRuntimeConfigFromRecord,
|
|
92
|
+
resolveCurrentRunRuntimeToolPolicy,
|
|
93
|
+
resolveLocalRuntimeEnvFromPolicy,
|
|
94
|
+
resolveLocalToolPolicy,
|
|
95
|
+
resolveLocalWorkspaceExecutorOptionsFromPolicy,
|
|
96
|
+
resolveOpenAiCompatibleProviderConfig,
|
|
97
|
+
resolvePlatformChatProviderConfig,
|
|
98
|
+
resolveRequestedRuntimeToolNames,
|
|
99
|
+
resolveRuntimeToolSurfaceForAgent,
|
|
100
|
+
runLocalAgentTurn,
|
|
101
|
+
shouldCacheHybridRemoteRecord,
|
|
102
|
+
shouldFetchAgentRuntimeRecordRemotely,
|
|
103
|
+
shouldUsePlatformChatProvider
|
|
104
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import {
|
|
2
|
+
agentSlice_default,
|
|
3
|
+
createAgent,
|
|
4
|
+
runAgent,
|
|
5
|
+
runLlm,
|
|
6
|
+
setAgentCredentialBrokerFactoryForTests,
|
|
7
|
+
slice,
|
|
8
|
+
streamAgentChatTurn,
|
|
9
|
+
updateAgent
|
|
10
|
+
} from "./chunk-VUW5FBDB.js";
|
|
11
|
+
import "./chunk-5CS33IBL.js";
|
|
12
|
+
import "./chunk-JZPBVBIY.js";
|
|
13
|
+
import "./chunk-URUUZLPA.js";
|
|
14
|
+
import "./chunk-AZPCASRE.js";
|
|
15
|
+
import "./chunk-7U44LYTR.js";
|
|
16
|
+
import "./chunk-KX6YBIHG.js";
|
|
17
|
+
import "./chunk-O4BU24WZ.js";
|
|
18
|
+
import "./chunk-I42VC5KR.js";
|
|
19
|
+
import "./chunk-WWC7I6TA.js";
|
|
20
|
+
import "./chunk-QSJ3HFEF.js";
|
|
21
|
+
import "./chunk-DSZUWUYB.js";
|
|
22
|
+
import "./chunk-UTLZINAP.js";
|
|
23
|
+
import "./chunk-OOSFSFMA.js";
|
|
24
|
+
import "./chunk-GBRG75BQ.js";
|
|
25
|
+
import "./chunk-4SN6J65J.js";
|
|
26
|
+
import "./chunk-LCBAMY2M.js";
|
|
27
|
+
import "./chunk-3EUW3WEO.js";
|
|
28
|
+
import "./chunk-U6VC4MU4.js";
|
|
29
|
+
import "./chunk-CF7PE763.js";
|
|
30
|
+
import "./chunk-G3SUCT4W.js";
|
|
31
|
+
import "./chunk-KUG52IAP.js";
|
|
32
|
+
import "./chunk-4VNS5WPM.js";
|
|
33
|
+
export {
|
|
34
|
+
createAgent,
|
|
35
|
+
agentSlice_default as default,
|
|
36
|
+
runAgent,
|
|
37
|
+
runLlm,
|
|
38
|
+
setAgentCredentialBrokerFactoryForTests,
|
|
39
|
+
slice,
|
|
40
|
+
streamAgentChatTurn,
|
|
41
|
+
updateAgent
|
|
42
|
+
};
|