nolo-cli 0.163.0-alpha.1 → 0.164.0-alpha.2
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/{_executeModel-3FMHTHSS.js → _executeModel-LFPW52TC.js} +12 -12
- package/{agentDeleteCommand-VRHLJZKX.js → agentDeleteCommand-IMM5JJOZ.js} +10 -10
- package/{agentEmailCommands-YGBQXOL3.js → agentEmailCommands-7ILQ4X4X.js} +12 -12
- package/{agentMachineCommands-FBAWZYHI.js → agentMachineCommands-2EOGVRMN.js} +1 -1
- package/{agentRecordCommands-KAK2G56H.js → agentRecordCommands-5ECAWMGW.js} +11 -11
- package/{agentRunCommand-62P3AGJA.js → agentRunCommand-DE4WN2TT.js} +12 -12
- package/{agentRunControl-XBSNHHZE.js → agentRunControl-NQR3GB6H.js} +1 -1
- package/{agentSlice-IZFU3WWH.js → agentSlice-YDRAYF3Z.js} +1 -1
- package/{chunk-2QQ7D3P5.js → chunk-3WTD7IIQ.js} +8 -8
- package/{chunk-7YQQXP42.js → chunk-4BLKVQBS.js} +2 -2
- package/{chunk-HRZW3SQN.js → chunk-6WNJ2XSC.js} +1 -1
- package/{chunk-EDJND3FK.js → chunk-AOVELMYY.js} +3 -3
- package/{chunk-Q5LVXPGT.js → chunk-CAWIORRR.js} +2 -2
- package/{chunk-CI6YDDL2.js → chunk-DRZCUIYC.js} +2 -2
- package/{chunk-K3N2DWLT.js → chunk-FKBWA3NN.js} +2 -2
- package/{chunk-6QIBWOPT.js → chunk-HXFIFEBA.js} +2 -2
- package/{chunk-V67W64OY.js → chunk-JGFVMK3S.js} +7 -7
- package/{chunk-FTHF2P2I.js → chunk-KVDB4IIT.js} +1 -1
- package/{chunk-UUPXTEZA.js → chunk-NOFLIR3Z.js} +1 -1
- package/{chunk-PNACBSRF.js → chunk-ONA4OKNI.js} +194 -31
- package/{chunk-7PDNSQZC.js → chunk-QKBEFLMA.js} +2 -2
- package/{chunk-GXZZOTDM.js → chunk-RYM5SWKD.js} +4546 -3344
- package/{chunk-U5U4WAFS.js → chunk-S53PIA3G.js} +36 -3
- package/{chunk-36IWXF25.js → chunk-VNPUBOKQ.js} +5 -5
- package/{chunk-JIAZK434.js → chunk-VVRYD7UL.js} +2 -2
- package/{chunk-4FDDVVCE.js → chunk-WBRBIRDG.js} +2 -2
- package/{chunk-SNAWGDXT.js → chunk-WJJL7RMW.js} +518 -67
- package/{chunk-QFL42TMV.js → chunk-ZEOGFBR3.js} +90 -15
- package/{commandRegistry-2DDDET7G.js → commandRegistry-TNRRYS6G.js} +26 -26
- package/{contentThunks-5DNEHJ2Z.js → contentThunks-FXRH3TBV.js} +3 -3
- package/{createAgentAutomationAction-4SUS2EFX.js → createAgentAutomationAction-6M64V55C.js} +3 -3
- package/{createDialogAction-JSFXX6JE.js → createDialogAction-LTK2YJ7I.js} +4 -4
- package/{createPageAction-37HHOXZ2.js → createPageAction-IKFGJRKB.js} +3 -3
- package/{dialogCommands-ZJRMCP4S.js → dialogCommands-7FZEZ5DV.js} +2 -2
- package/{dialogSlice-2Z66AWEW.js → dialogSlice-TTJ74TZ2.js} +2 -2
- package/{docStore-XMTUF3GX.js → docStore-GZW6PV6J.js} +1 -1
- package/{handleSendMessageAction-4VFVXTF2.js → handleSendMessageAction-YICSRGEU.js} +7 -7
- package/index.js +3 -3
- package/{localRuntimeAdapter-KKIVRYVN.js → localRuntimeAdapter-MTZVCQW6.js} +10 -10
- package/{machineCommands-UHQVCOD3.js → machineCommands-4P6O4WJD.js} +11 -11
- package/{machineWsRunDispatch-TX4X7TOJ.js → machineWsRunDispatch-2OQB3YA3.js} +11 -11
- package/package.json +1 -1
- package/{readlineWorkspace-BFVB2ON5.js → readlineWorkspace-EB5D4MF6.js} +13 -13
- package/{runAgentClientLoop-HHLHNMBE.js → runAgentClientLoop-DROGF2SZ.js} +10 -10
- package/{streamAgentChatTurn-KNPOLET7.js → streamAgentChatTurn-PJ2L3P25.js} +12 -12
- package/{tools-ULA7XJQT.js → tools-2MFN4Z5Y.js} +7 -7
- package/{updateDialogTitleAction-VUIVBDAS.js → updateDialogTitleAction-VQFUSGRH.js} +3 -3
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
toolRunUpdated,
|
|
21
21
|
uiCardFallback,
|
|
22
22
|
waitForAbortableDelay
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-HXFIFEBA.js";
|
|
24
24
|
import {
|
|
25
25
|
isGatewayHttpStatus
|
|
26
26
|
} from "./chunk-NF64D32W.js";
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
} from "./chunk-VF4K2QE6.js";
|
|
65
65
|
import {
|
|
66
66
|
createDocState
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-FKBWA3NN.js";
|
|
68
68
|
import {
|
|
69
69
|
addMemberSpace,
|
|
70
70
|
fetchAuthoritativeRemoteSpace,
|
|
@@ -79,7 +79,7 @@ import {
|
|
|
79
79
|
} from "./chunk-BAWAKW7X.js";
|
|
80
80
|
import {
|
|
81
81
|
createDialogAction
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-WBRBIRDG.js";
|
|
83
83
|
import {
|
|
84
84
|
setDialogExtraReferencesAction
|
|
85
85
|
} from "./chunk-IF7V3CBU.js";
|
|
@@ -102,7 +102,7 @@ import {
|
|
|
102
102
|
updateContentCategory,
|
|
103
103
|
updateContentTitle,
|
|
104
104
|
writeStoredCollapsedCategories
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-KVDB4IIT.js";
|
|
106
106
|
import {
|
|
107
107
|
buildDatabaseFileContentUrl,
|
|
108
108
|
deleteDialog,
|
|
@@ -115,7 +115,7 @@ import {
|
|
|
115
115
|
selectMsgById,
|
|
116
116
|
uiAskChoiceFunc,
|
|
117
117
|
uiAskChoiceFunctionSchema
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-3WTD7IIQ.js";
|
|
119
119
|
import {
|
|
120
120
|
buildMediaToolConfirmation,
|
|
121
121
|
normalizeMediaConfirmExecutionRevision
|
|
@@ -126,7 +126,7 @@ import {
|
|
|
126
126
|
runLlm,
|
|
127
127
|
streamAgentChatTurn,
|
|
128
128
|
updateAgent
|
|
129
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-AOVELMYY.js";
|
|
130
130
|
import {
|
|
131
131
|
getCurrentSpaceId,
|
|
132
132
|
getCurrentSpaceIdRaw,
|
|
@@ -3882,7 +3882,7 @@ async function deleteDialogsFunc(args, thunkApi) {
|
|
|
3882
3882
|
const deletedDialogIds = [];
|
|
3883
3883
|
const deletedDialogKeys = [];
|
|
3884
3884
|
const failures = [];
|
|
3885
|
-
const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-
|
|
3885
|
+
const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-TTJ74TZ2.js");
|
|
3886
3886
|
for (const target of targets) {
|
|
3887
3887
|
try {
|
|
3888
3888
|
await thunkApi.dispatch(deleteDialog2(target.dbKey)).unwrap();
|
|
@@ -14818,9 +14818,29 @@ function buildRuntimeCatalog(deps) {
|
|
|
14818
14818
|
reason: dockerReadiness.reason ?? "not-configured",
|
|
14819
14819
|
...dockerReadiness.details ? { details: dockerReadiness.details } : {}
|
|
14820
14820
|
};
|
|
14821
|
+
const isInstaboxBound = deps.isInstaboxBound ? Boolean(deps.isInstaboxBound(ctx.owner)) : false;
|
|
14822
|
+
const instaboxReady = Boolean(isInstaboxBound && deps.instaboxReadiness?.ready === true);
|
|
14823
|
+
const instaboxKey = key(ctx.scope, ctx.owner, "instabox");
|
|
14824
|
+
const instaboxSummary = instaboxReady ? {
|
|
14825
|
+
runtimeKey: instaboxKey,
|
|
14826
|
+
kind: "instabox",
|
|
14827
|
+
name: "Instabox",
|
|
14828
|
+
status: "ready",
|
|
14829
|
+
selectable: true,
|
|
14830
|
+
...deps.instaboxReadiness?.quotaSnapshot ? { quotaSnapshot: deps.instaboxReadiness.quotaSnapshot } : {}
|
|
14831
|
+
} : {
|
|
14832
|
+
runtimeKey: instaboxKey,
|
|
14833
|
+
kind: "instabox",
|
|
14834
|
+
name: "Instabox",
|
|
14835
|
+
status: "unavailable",
|
|
14836
|
+
selectable: false,
|
|
14837
|
+
reason: isInstaboxBound ? deps.instaboxReadiness?.reason ?? "quota-unverifiable" : "not-configured",
|
|
14838
|
+
...isInstaboxBound && !deps.instaboxReadiness ? { details: "Instabox credentials configured but readiness not probed" } : deps.instaboxReadiness?.details ? { details: deps.instaboxReadiness.details } : {}
|
|
14839
|
+
};
|
|
14821
14840
|
runtimes.push(
|
|
14822
14841
|
summary("local", "Local (client only)", false, "unsupported-local"),
|
|
14823
14842
|
dockerSummary,
|
|
14843
|
+
instaboxSummary,
|
|
14824
14844
|
summary("cloudflare", "Cloudflare", false, "not-configured")
|
|
14825
14845
|
);
|
|
14826
14846
|
return { runtimes, selectableCount: runtimes.filter((runtime) => runtime.selectable).length };
|
|
@@ -14847,6 +14867,7 @@ function formatRuntimeSummaryCard(runtimes) {
|
|
|
14847
14867
|
return `Available Runtimes:
|
|
14848
14868
|
${lines.join("\n")}`;
|
|
14849
14869
|
}
|
|
14870
|
+
var serverHooks;
|
|
14850
14871
|
async function resolveTrustedDockerReadiness(thunkApi, trustedContext) {
|
|
14851
14872
|
const source = trustedContext?.dockerReadinessSource ?? thunkApi?.extra?.dockerReadinessSource;
|
|
14852
14873
|
if (source && typeof source.get === "function") {
|
|
@@ -14867,13 +14888,53 @@ async function resolveTrustedDockerReadiness(thunkApi, trustedContext) {
|
|
|
14867
14888
|
dockerQuotaSnapshot: trustedContext?.dockerQuotaSnapshot ?? thunkApi?.extra?.dockerQuotaSnapshot
|
|
14868
14889
|
});
|
|
14869
14890
|
}
|
|
14870
|
-
|
|
14871
|
-
|
|
14872
|
-
|
|
14873
|
-
|
|
14874
|
-
|
|
14875
|
-
|
|
14891
|
+
function loadDockerBindingIsBoundFallback() {
|
|
14892
|
+
if (serverHooks?.getDockerBindingAuthorizer) {
|
|
14893
|
+
try {
|
|
14894
|
+
const authorizer = serverHooks.getDockerBindingAuthorizer();
|
|
14895
|
+
return (caller) => Boolean(authorizer?.isBound?.(caller));
|
|
14896
|
+
} catch {
|
|
14897
|
+
return void 0;
|
|
14898
|
+
}
|
|
14899
|
+
}
|
|
14900
|
+
return void 0;
|
|
14901
|
+
}
|
|
14902
|
+
async function loadInstaboxBoundFallback(callerUserId) {
|
|
14903
|
+
if (!callerUserId) return false;
|
|
14904
|
+
if (serverHooks?.isInstaboxBound) {
|
|
14905
|
+
try {
|
|
14906
|
+
return await serverHooks.isInstaboxBound(callerUserId);
|
|
14907
|
+
} catch {
|
|
14908
|
+
return false;
|
|
14909
|
+
}
|
|
14876
14910
|
}
|
|
14911
|
+
return false;
|
|
14912
|
+
}
|
|
14913
|
+
async function resolveTrustedInstaboxReadiness(callerUserId, thunkApi, trustedContext, isInstaboxBound) {
|
|
14914
|
+
const source = trustedContext?.instaboxReadinessSource ?? thunkApi?.extra?.instaboxReadinessSource;
|
|
14915
|
+
if (source && typeof source.get === "function" && callerUserId) {
|
|
14916
|
+
try {
|
|
14917
|
+
return await source.get(callerUserId);
|
|
14918
|
+
} catch {
|
|
14919
|
+
return {
|
|
14920
|
+
ready: false,
|
|
14921
|
+
reason: "quota-unverifiable",
|
|
14922
|
+
details: "Instabox readiness source probe failed"
|
|
14923
|
+
};
|
|
14924
|
+
}
|
|
14925
|
+
}
|
|
14926
|
+
const injected = trustedContext?.instaboxReadiness ?? thunkApi?.extra?.instaboxReadiness;
|
|
14927
|
+
if (injected) return injected;
|
|
14928
|
+
if (callerUserId && isInstaboxBound?.(callerUserId)) {
|
|
14929
|
+
if (serverHooks?.getInstaboxReadiness) {
|
|
14930
|
+
try {
|
|
14931
|
+
return await serverHooks.getInstaboxReadiness(callerUserId);
|
|
14932
|
+
} catch {
|
|
14933
|
+
return void 0;
|
|
14934
|
+
}
|
|
14935
|
+
}
|
|
14936
|
+
}
|
|
14937
|
+
return void 0;
|
|
14877
14938
|
}
|
|
14878
14939
|
function resolveTrustedCallerUserId(thunkApi, trustedContext) {
|
|
14879
14940
|
const bound = trustedContext?.callerUserId;
|
|
@@ -14896,6 +14957,18 @@ async function listRuntimesToolFunc(_args, thunkApi, trustedContext) {
|
|
|
14896
14957
|
const connectorSurface = trustedContext?.connectorSurface ?? "cli";
|
|
14897
14958
|
const dockerReadiness = await resolveTrustedDockerReadiness(thunkApi, trustedContext);
|
|
14898
14959
|
const isDockerBound = trustedContext?.isDockerBound ?? thunkApi?.extra?.isDockerBound ?? (trustedContext?.dockerSelectable === true ? () => true : void 0) ?? (trustedContext?.dockerReadinessSource ? () => true : void 0) ?? await loadDockerBindingIsBoundFallback();
|
|
14960
|
+
const explicitInstaboxBound = trustedContext?.isInstaboxBound ?? thunkApi?.extra?.isInstaboxBound;
|
|
14961
|
+
let isInstaboxBound = explicitInstaboxBound;
|
|
14962
|
+
if (!isInstaboxBound && callerUserId) {
|
|
14963
|
+
const bound = await loadInstaboxBoundFallback(callerUserId);
|
|
14964
|
+
isInstaboxBound = (caller) => caller === callerUserId ? bound : false;
|
|
14965
|
+
}
|
|
14966
|
+
const instaboxReadiness = await resolveTrustedInstaboxReadiness(
|
|
14967
|
+
callerUserId,
|
|
14968
|
+
thunkApi,
|
|
14969
|
+
trustedContext,
|
|
14970
|
+
isInstaboxBound
|
|
14971
|
+
);
|
|
14899
14972
|
if (!callerUserId || !callerUserId.trim()) {
|
|
14900
14973
|
return {
|
|
14901
14974
|
rawData: {
|
|
@@ -14915,7 +14988,9 @@ async function listRuntimesToolFunc(_args, thunkApi, trustedContext) {
|
|
|
14915
14988
|
machineRegistry,
|
|
14916
14989
|
connectorConnections,
|
|
14917
14990
|
dockerReadiness,
|
|
14918
|
-
isDockerBound
|
|
14991
|
+
isDockerBound,
|
|
14992
|
+
isInstaboxBound,
|
|
14993
|
+
instaboxReadiness
|
|
14919
14994
|
});
|
|
14920
14995
|
return {
|
|
14921
14996
|
rawData: {
|
|
@@ -18481,7 +18556,7 @@ async function updateDocFunc(args, thunkApi) {
|
|
|
18481
18556
|
updated_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
18482
18557
|
};
|
|
18483
18558
|
await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
|
|
18484
|
-
const { getDocState, applyExternalDocUpdate } = await import("./docStore-
|
|
18559
|
+
const { getDocState, applyExternalDocUpdate } = await import("./docStore-GZW6PV6J.js");
|
|
18485
18560
|
if (getDocState().pageKey === id) {
|
|
18486
18561
|
applyExternalDocUpdate({
|
|
18487
18562
|
slateData: finalSlateData,
|
|
@@ -110,7 +110,7 @@ function createDaemonShortcutCommand(path, description, command) {
|
|
|
110
110
|
// packages/cli/agentInternalCommandEntries.ts
|
|
111
111
|
function getAgentInternalCommandEntries() {
|
|
112
112
|
const createAgentRunCommand = (path, description) => createContextCommand(path, description, async (args, ctx) => {
|
|
113
|
-
const { runAgentRunCommand } = await import("./agentRunCommand-
|
|
113
|
+
const { runAgentRunCommand } = await import("./agentRunCommand-DE4WN2TT.js");
|
|
114
114
|
return runAgentRunCommand(args, {
|
|
115
115
|
env: ctx.env,
|
|
116
116
|
scriptDir: ctx.scriptDir,
|
|
@@ -126,7 +126,7 @@ function getAgentInternalCommandEntries() {
|
|
|
126
126
|
return runAgentListCommand(args, deps);
|
|
127
127
|
}),
|
|
128
128
|
createEnvCommand(["agent", "create"], "Create a new agent", async (args, deps) => {
|
|
129
|
-
const { runAgentCreateCommand } = await import("./agentRecordCommands-
|
|
129
|
+
const { runAgentCreateCommand } = await import("./agentRecordCommands-5ECAWMGW.js");
|
|
130
130
|
return runAgentCreateCommand(args, deps);
|
|
131
131
|
}),
|
|
132
132
|
createEnvCommand(["agent", "models"], "List models: --preset <id> (server discovery, exit 1 on static fallback) or --url <base> --api-key <key> (OpenAI-compatible /models)", async (args, deps) => {
|
|
@@ -142,28 +142,28 @@ function getAgentInternalCommandEntries() {
|
|
|
142
142
|
return runAgentPullCommand(args, deps);
|
|
143
143
|
}),
|
|
144
144
|
createEnvCommand(["agent", "read"], "Read a single agent", async (args, deps) => {
|
|
145
|
-
const { runAgentReadCommand } = await import("./agentRecordCommands-
|
|
145
|
+
const { runAgentReadCommand } = await import("./agentRecordCommands-5ECAWMGW.js");
|
|
146
146
|
return runAgentReadCommand(args, deps);
|
|
147
147
|
}),
|
|
148
148
|
createAgentRunCommand(["agent", "run"], "Run an agent"),
|
|
149
149
|
createEnvCommand(["agent", "ps"], "List active and recent local agent runs (--json for machine-readable output)", async (_args, deps) => {
|
|
150
|
-
const { runAgentPsCommand } = await import("./agentRunControl-
|
|
150
|
+
const { runAgentPsCommand } = await import("./agentRunControl-NQR3GB6H.js");
|
|
151
151
|
return runAgentPsCommand(_args, { ...deps, output: process.stdout });
|
|
152
152
|
}),
|
|
153
153
|
createEnvCommand(["agent", "status"], "Show status of a local agent run (--json, --watch, --interval-ms N)", async (args, deps) => {
|
|
154
|
-
const { runAgentStatusCommand } = await import("./agentRunControl-
|
|
154
|
+
const { runAgentStatusCommand } = await import("./agentRunControl-NQR3GB6H.js");
|
|
155
155
|
return runAgentStatusCommand(args, { ...deps, output: process.stdout });
|
|
156
156
|
}),
|
|
157
157
|
createEnvCommand(["agent", "logs"], "Show logs of a local agent run", async (args, deps) => {
|
|
158
|
-
const { runAgentLogsCommand } = await import("./agentRunControl-
|
|
158
|
+
const { runAgentLogsCommand } = await import("./agentRunControl-NQR3GB6H.js");
|
|
159
159
|
return runAgentLogsCommand(args, { ...deps, output: process.stdout });
|
|
160
160
|
}),
|
|
161
161
|
createEnvCommand(["agent", "stop"], "Stop a local agent run", async (args, deps) => {
|
|
162
|
-
const { runAgentStopCommand } = await import("./agentRunControl-
|
|
162
|
+
const { runAgentStopCommand } = await import("./agentRunControl-NQR3GB6H.js");
|
|
163
163
|
return runAgentStopCommand(args, { ...deps, output: process.stdout });
|
|
164
164
|
}),
|
|
165
165
|
createEnvCommand(["agent", "kill"], "Kill a local agent run", async (args, deps) => {
|
|
166
|
-
const { runAgentKillCommand } = await import("./agentRunControl-
|
|
166
|
+
const { runAgentKillCommand } = await import("./agentRunControl-NQR3GB6H.js");
|
|
167
167
|
return runAgentKillCommand(args, { ...deps, output: process.stdout });
|
|
168
168
|
}),
|
|
169
169
|
createEnvCommand(["agent", "setup-offline-marxists"], "Create or update the Marxists.org offline book agent", async (args, deps) => {
|
|
@@ -171,31 +171,31 @@ function getAgentInternalCommandEntries() {
|
|
|
171
171
|
return runSetupOfflineMarxistsAgentCommand(args, deps);
|
|
172
172
|
}),
|
|
173
173
|
createEnvCommand(["agent", "update"], "Update agent fields", async (args, deps) => {
|
|
174
|
-
const { runAgentUpdateCommand } = await import("./agentRecordCommands-
|
|
174
|
+
const { runAgentUpdateCommand } = await import("./agentRecordCommands-5ECAWMGW.js");
|
|
175
175
|
return runAgentUpdateCommand(args, deps);
|
|
176
176
|
}),
|
|
177
177
|
createEnvCommand(["agent", "email", "provision"], "Provision a controlled inbox for an agent", async (args, deps) => {
|
|
178
|
-
const { runAgentEmailProvisionCommand } = await import("./agentEmailCommands-
|
|
178
|
+
const { runAgentEmailProvisionCommand } = await import("./agentEmailCommands-7ILQ4X4X.js");
|
|
179
179
|
return runAgentEmailProvisionCommand(args, deps);
|
|
180
180
|
}),
|
|
181
181
|
createEnvCommand(["agent", "email", "bind"], "Bind an existing email address to an agent", async (args, deps) => {
|
|
182
|
-
const { runAgentEmailBindCommand } = await import("./agentEmailCommands-
|
|
182
|
+
const { runAgentEmailBindCommand } = await import("./agentEmailCommands-7ILQ4X4X.js");
|
|
183
183
|
return runAgentEmailBindCommand(args, deps);
|
|
184
184
|
}),
|
|
185
185
|
createEnvCommand(["agent", "email", "transfer"], "Transfer an email identity from one agent to another (cross-account)", async (args, deps) => {
|
|
186
|
-
const { runAgentEmailTransferCommand } = await import("./agentEmailCommands-
|
|
186
|
+
const { runAgentEmailTransferCommand } = await import("./agentEmailCommands-7ILQ4X4X.js");
|
|
187
187
|
return runAgentEmailTransferCommand(args, deps);
|
|
188
188
|
}),
|
|
189
189
|
createEnvCommand(
|
|
190
190
|
["agent", "email", "create-and-provision"],
|
|
191
191
|
"Create an agent and provision its controlled inbox",
|
|
192
192
|
async (args, deps) => {
|
|
193
|
-
const { runAgentEmailCreateAndProvisionCommand } = await import("./agentEmailCommands-
|
|
193
|
+
const { runAgentEmailCreateAndProvisionCommand } = await import("./agentEmailCommands-7ILQ4X4X.js");
|
|
194
194
|
return runAgentEmailCreateAndProvisionCommand(args, deps);
|
|
195
195
|
}
|
|
196
196
|
),
|
|
197
197
|
createEnvCommand(["agent", "delete"], "Hard-delete an agent's private and public records", async (args, deps) => {
|
|
198
|
-
const { runAgentDeleteCommand } = await import("./agentDeleteCommand-
|
|
198
|
+
const { runAgentDeleteCommand } = await import("./agentDeleteCommand-IMM5JJOZ.js");
|
|
199
199
|
return runAgentDeleteCommand(args, deps);
|
|
200
200
|
}),
|
|
201
201
|
createEnvCommand(["agent", "grant"], "Grant another user access to this agent's owner credentials", async (args, deps) => {
|
|
@@ -211,15 +211,15 @@ function getAgentInternalCommandEntries() {
|
|
|
211
211
|
return runAgentRevokeGrantCommand(args, deps);
|
|
212
212
|
}),
|
|
213
213
|
createEnvCommand(["agent", "bind-current"], "Bind an agent to this machine", async (args, deps) => {
|
|
214
|
-
const { runAgentBindCurrentCommand } = await import("./agentMachineCommands-
|
|
214
|
+
const { runAgentBindCurrentCommand } = await import("./agentMachineCommands-2EOGVRMN.js");
|
|
215
215
|
return runAgentBindCurrentCommand(args, deps);
|
|
216
216
|
}),
|
|
217
217
|
createEnvCommand(["agent", "smoke-current"], "Smoke test a bound agent through this machine", async (args, deps) => {
|
|
218
|
-
const { runAgentSmokeCurrentCommand } = await import("./agentMachineCommands-
|
|
218
|
+
const { runAgentSmokeCurrentCommand } = await import("./agentMachineCommands-2EOGVRMN.js");
|
|
219
219
|
return runAgentSmokeCurrentCommand(args, deps);
|
|
220
220
|
}),
|
|
221
221
|
createEnvCommand(["agent", "runtime-doctor"], "Diagnose current machine runtime compatibility", async (args, deps) => {
|
|
222
|
-
const { runAgentRuntimeDoctorCommand } = await import("./agentMachineCommands-
|
|
222
|
+
const { runAgentRuntimeDoctorCommand } = await import("./agentMachineCommands-2EOGVRMN.js");
|
|
223
223
|
return runAgentRuntimeDoctorCommand(args, deps);
|
|
224
224
|
}),
|
|
225
225
|
createAgentRunCommand(["agent", "chat"], "Chat with an agent")
|
|
@@ -374,27 +374,27 @@ function getCiInternalCommandEntries() {
|
|
|
374
374
|
function getDialogInternalCommandEntries() {
|
|
375
375
|
return [
|
|
376
376
|
createEnvCommand(["dialog", "search"], "Search dialog messages across dialogs", async (args, deps) => {
|
|
377
|
-
const { runDialogSearchCommand } = await import("./dialogCommands-
|
|
377
|
+
const { runDialogSearchCommand } = await import("./dialogCommands-7FZEZ5DV.js");
|
|
378
378
|
return runDialogSearchCommand(args, deps);
|
|
379
379
|
}),
|
|
380
380
|
createEnvCommand(["dialog", "list"], "List dialogs (default --limit 50; --all/--limit 0 full; --jsonl streams)", async (args, deps) => {
|
|
381
|
-
const { runDialogListCommand } = await import("./dialogCommands-
|
|
381
|
+
const { runDialogListCommand } = await import("./dialogCommands-7FZEZ5DV.js");
|
|
382
382
|
return runDialogListCommand(args, deps);
|
|
383
383
|
}),
|
|
384
384
|
createEnvCommand(["dialog", "delete"], "Delete one or more dialogs", async (args, deps) => {
|
|
385
|
-
const { runDialogDeleteCommand } = await import("./dialogCommands-
|
|
385
|
+
const { runDialogDeleteCommand } = await import("./dialogCommands-7FZEZ5DV.js");
|
|
386
386
|
return runDialogDeleteCommand(args, deps);
|
|
387
387
|
}),
|
|
388
388
|
createEnvCommand(["dialog", "query"], "Query dialogs by subject refs (default --limit 50; --all full; --jsonl streams)", async (args, deps) => {
|
|
389
|
-
const { runDialogQueryCommand } = await import("./dialogCommands-
|
|
389
|
+
const { runDialogQueryCommand } = await import("./dialogCommands-7FZEZ5DV.js");
|
|
390
390
|
return runDialogQueryCommand(args, deps);
|
|
391
391
|
}),
|
|
392
392
|
createEnvCommand(["dialog", "read"], "Read a dialog", async (args, deps) => {
|
|
393
|
-
const { runDialogReadCommand } = await import("./dialogCommands-
|
|
393
|
+
const { runDialogReadCommand } = await import("./dialogCommands-7FZEZ5DV.js");
|
|
394
394
|
return runDialogReadCommand(args, deps);
|
|
395
395
|
}),
|
|
396
396
|
createEnvCommand(["dialog", "status"], "Read compact dialog status", async (args, deps) => {
|
|
397
|
-
const { runDialogStatusCommand } = await import("./dialogCommands-
|
|
397
|
+
const { runDialogStatusCommand } = await import("./dialogCommands-7FZEZ5DV.js");
|
|
398
398
|
return runDialogStatusCommand(args, deps);
|
|
399
399
|
})
|
|
400
400
|
];
|
|
@@ -530,15 +530,15 @@ function getSystemInternalCommandEntries(renderHelpText2) {
|
|
|
530
530
|
return runWhoamiCommand({ args, env: ctx.env });
|
|
531
531
|
}),
|
|
532
532
|
createEntrypointEnvCommand(["connect"], "Send machine heartbeats or hold a connector websocket", async (args, deps) => {
|
|
533
|
-
const { runMachineConnectCommand } = await import("./machineCommands-
|
|
533
|
+
const { runMachineConnectCommand } = await import("./machineCommands-4P6O4WJD.js");
|
|
534
534
|
return runMachineConnectCommand(args, deps);
|
|
535
535
|
}),
|
|
536
536
|
createDaemonShortcutCommand(["daemon"], "Run the connector daemon shortcut", async (args, deps) => {
|
|
537
|
-
const { runMachineConnectCommand } = await import("./machineCommands-
|
|
537
|
+
const { runMachineConnectCommand } = await import("./machineCommands-4P6O4WJD.js");
|
|
538
538
|
return runMachineConnectCommand(args, deps);
|
|
539
539
|
}),
|
|
540
540
|
createEnvCommand(["machine", "status"], "List machines registered to the current profile", async (args, deps) => {
|
|
541
|
-
const { runMachineStatusCommand } = await import("./machineCommands-
|
|
541
|
+
const { runMachineStatusCommand } = await import("./machineCommands-4P6O4WJD.js");
|
|
542
542
|
return runMachineStatusCommand(args, deps);
|
|
543
543
|
}),
|
|
544
544
|
createEnvCommand(["doctor", "runtime"], "Diagnose local-first agent runtime selection", async (args, deps) => {
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
updateContentPinned,
|
|
9
9
|
updateContentTitle,
|
|
10
10
|
uploadAndAddFileToSpace
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-KVDB4IIT.js";
|
|
12
|
+
import "./chunk-3WTD7IIQ.js";
|
|
13
13
|
import "./chunk-OFFL4DCR.js";
|
|
14
14
|
import "./chunk-523DITKR.js";
|
|
15
15
|
import "./chunk-QYPE3TS3.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-AOVELMYY.js";
|
|
17
17
|
import "./chunk-4JH2UMJR.js";
|
|
18
18
|
import "./chunk-ZJ7UHBJS.js";
|
|
19
19
|
import "./chunk-BYXBJQAS.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addContentToSpace
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-KVDB4IIT.js";
|
|
4
|
+
import "./chunk-3WTD7IIQ.js";
|
|
5
5
|
import "./chunk-OFFL4DCR.js";
|
|
6
6
|
import "./chunk-523DITKR.js";
|
|
7
7
|
import "./chunk-QYPE3TS3.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-AOVELMYY.js";
|
|
9
9
|
import "./chunk-4JH2UMJR.js";
|
|
10
10
|
import "./chunk-ZJ7UHBJS.js";
|
|
11
11
|
import "./chunk-BYXBJQAS.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createDialogAction,
|
|
3
3
|
isLocalOwnerDialogAgents
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-WBRBIRDG.js";
|
|
5
|
+
import "./chunk-KVDB4IIT.js";
|
|
6
|
+
import "./chunk-3WTD7IIQ.js";
|
|
7
7
|
import "./chunk-OFFL4DCR.js";
|
|
8
8
|
import "./chunk-523DITKR.js";
|
|
9
9
|
import "./chunk-QYPE3TS3.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-AOVELMYY.js";
|
|
11
11
|
import "./chunk-4JH2UMJR.js";
|
|
12
12
|
import "./chunk-ZJ7UHBJS.js";
|
|
13
13
|
import "./chunk-BYXBJQAS.js";
|
|
@@ -13,14 +13,14 @@ import {
|
|
|
13
13
|
} from "./chunk-VF4K2QE6.js";
|
|
14
14
|
import {
|
|
15
15
|
addContentToSpace
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-KVDB4IIT.js";
|
|
17
17
|
import {
|
|
18
18
|
runtime_default
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-3WTD7IIQ.js";
|
|
20
20
|
import "./chunk-OFFL4DCR.js";
|
|
21
21
|
import "./chunk-523DITKR.js";
|
|
22
22
|
import "./chunk-QYPE3TS3.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-AOVELMYY.js";
|
|
24
24
|
import "./chunk-4JH2UMJR.js";
|
|
25
25
|
import {
|
|
26
26
|
getCurrentSpaceId
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
runDialogSearchCommand,
|
|
16
16
|
runDialogStatusCommand,
|
|
17
17
|
sortDialogs
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-NOFLIR3Z.js";
|
|
19
19
|
import "./chunk-ID4G2MAR.js";
|
|
20
20
|
import "./chunk-W7FGZRLK.js";
|
|
21
21
|
import "./chunk-Y5GCAMGP.js";
|
|
@@ -66,7 +66,7 @@ import "./chunk-M2EJHDJP.js";
|
|
|
66
66
|
import "./chunk-5EMSBTQ6.js";
|
|
67
67
|
import "./chunk-I42VC5KR.js";
|
|
68
68
|
import "./chunk-U6VC4MU4.js";
|
|
69
|
-
import "./chunk-
|
|
69
|
+
import "./chunk-WJJL7RMW.js";
|
|
70
70
|
import "./chunk-PJNFNEJE.js";
|
|
71
71
|
import "./chunk-PSCNXBYA.js";
|
|
72
72
|
import "./chunk-GAGGEA7D.js";
|
|
@@ -20,11 +20,11 @@ import {
|
|
|
20
20
|
switchDialogAgent,
|
|
21
21
|
updateDialogTitle,
|
|
22
22
|
updateTokens
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-3WTD7IIQ.js";
|
|
24
24
|
import "./chunk-OFFL4DCR.js";
|
|
25
25
|
import "./chunk-523DITKR.js";
|
|
26
26
|
import "./chunk-QYPE3TS3.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-AOVELMYY.js";
|
|
28
28
|
import "./chunk-4JH2UMJR.js";
|
|
29
29
|
import "./chunk-BYXBJQAS.js";
|
|
30
30
|
import "./chunk-ESMZW5PE.js";
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
mergeAgentToolsWithRuntime,
|
|
8
8
|
projectDesktopToolUiContent,
|
|
9
9
|
resolveTurnToolContext
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-VNPUBOKQ.js";
|
|
11
11
|
import "./chunk-INFHX73M.js";
|
|
12
12
|
import {
|
|
13
13
|
CONTEXT_OVERFLOW_ACTIONS,
|
|
@@ -15,12 +15,12 @@ import {
|
|
|
15
15
|
extractErrorDiagnostics,
|
|
16
16
|
isContextOverflowText,
|
|
17
17
|
performServerProxyFetchWithRetry
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-VVRYD7UL.js";
|
|
19
19
|
import {
|
|
20
20
|
createSSEParser,
|
|
21
21
|
resolveAgentRequiredPackIds,
|
|
22
22
|
waitForAbortableDelay
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-HXFIFEBA.js";
|
|
24
24
|
import "./chunk-NF64D32W.js";
|
|
25
25
|
import "./chunk-3L2WKC3W.js";
|
|
26
26
|
import "./chunk-VYNMQ6HW.js";
|
|
@@ -29,8 +29,8 @@ import "./chunk-3L5MSPWX.js";
|
|
|
29
29
|
import "./chunk-ZPKUJROL.js";
|
|
30
30
|
import "./chunk-VIDPVFP3.js";
|
|
31
31
|
import "./chunk-AGIM7IMJ.js";
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-FKBWA3NN.js";
|
|
33
|
+
import "./chunk-KVDB4IIT.js";
|
|
34
34
|
import {
|
|
35
35
|
clearForegroundTurnSettledVisible,
|
|
36
36
|
initMsgs,
|
|
@@ -47,13 +47,13 @@ import {
|
|
|
47
47
|
setStreamingMessageId,
|
|
48
48
|
toolResultNeedsUserConfirmation,
|
|
49
49
|
updateToolMessage
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-3WTD7IIQ.js";
|
|
51
51
|
import "./chunk-OFFL4DCR.js";
|
|
52
52
|
import "./chunk-523DITKR.js";
|
|
53
53
|
import "./chunk-QYPE3TS3.js";
|
|
54
54
|
import {
|
|
55
55
|
streamAgentChatTurn
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-AOVELMYY.js";
|
|
57
57
|
import "./chunk-4JH2UMJR.js";
|
|
58
58
|
import "./chunk-ZJ7UHBJS.js";
|
|
59
59
|
import "./chunk-BYXBJQAS.js";
|
package/index.js
CHANGED
|
@@ -71,9 +71,9 @@ async function runScript(script, forwardedArgs, env) {
|
|
|
71
71
|
return proc.exited;
|
|
72
72
|
}
|
|
73
73
|
async function launchTuiWorkspace(args2) {
|
|
74
|
-
const { startTuiWorkspace } = await import("./readlineWorkspace-
|
|
74
|
+
const { startTuiWorkspace } = await import("./readlineWorkspace-EB5D4MF6.js");
|
|
75
75
|
const { createTuiSummaryLlmCaller } = await import("./tuiSummaryLlmCaller-FESHBDTT.js");
|
|
76
|
-
const { setCliAutoCompactionSummaryFallback } = await import("./localRuntimeAdapter-
|
|
76
|
+
const { setCliAutoCompactionSummaryFallback } = await import("./localRuntimeAdapter-MTZVCQW6.js");
|
|
77
77
|
setCliAutoCompactionSummaryFallback(
|
|
78
78
|
createTuiSummaryLlmCaller(args2.env, { timeoutMs: 3e4 })
|
|
79
79
|
);
|
|
@@ -85,7 +85,7 @@ async function launchTuiWorkspace(args2) {
|
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
87
|
async function main() {
|
|
88
|
-
const { createCliRuntimeContext, looksLikeDaemonShortcut, renderHelpText, resolveCommand, runResolvedCommand } = await import("./commandRegistry-
|
|
88
|
+
const { createCliRuntimeContext, looksLikeDaemonShortcut, renderHelpText, resolveCommand, runResolvedCommand } = await import("./commandRegistry-TNRRYS6G.js");
|
|
89
89
|
const { buildCliRuntimeEnv, loadProfileConfig } = await import("./profileConfig-KN3N2BLF.js");
|
|
90
90
|
const { resolveTuiLaunchMode } = await import("./runtimeModeArgs-2Y7BALTO.js");
|
|
91
91
|
const runtimeEnv = {
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
withRuntimeEnabledPacksAndPrompt,
|
|
46
46
|
writeDialog,
|
|
47
47
|
writeLocalTokenRecord
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-RYM5SWKD.js";
|
|
49
49
|
import "./chunk-G3VYRPTV.js";
|
|
50
50
|
import "./chunk-6MXDOUMH.js";
|
|
51
51
|
import "./chunk-2AB2HA4M.js";
|
|
@@ -63,15 +63,15 @@ import "./chunk-BU2YQBV4.js";
|
|
|
63
63
|
import "./chunk-MFVOJ6KF.js";
|
|
64
64
|
import "./chunk-ATNTHIZI.js";
|
|
65
65
|
import "./chunk-INFHX73M.js";
|
|
66
|
-
import "./chunk-
|
|
66
|
+
import "./chunk-CAWIORRR.js";
|
|
67
67
|
import "./chunk-HS7MLR74.js";
|
|
68
|
-
import "./chunk-
|
|
68
|
+
import "./chunk-ZEOGFBR3.js";
|
|
69
69
|
import "./chunk-WYJTNSVL.js";
|
|
70
70
|
import {
|
|
71
71
|
fetchWithTransientRetry
|
|
72
72
|
} from "./chunk-KFHREHUQ.js";
|
|
73
73
|
import "./chunk-OXME3PEE.js";
|
|
74
|
-
import "./chunk-
|
|
74
|
+
import "./chunk-HXFIFEBA.js";
|
|
75
75
|
import "./chunk-NF64D32W.js";
|
|
76
76
|
import "./chunk-3L2WKC3W.js";
|
|
77
77
|
import "./chunk-VYNMQ6HW.js";
|
|
@@ -83,17 +83,17 @@ import "./chunk-CNWKLQRL.js";
|
|
|
83
83
|
import "./chunk-AGIM7IMJ.js";
|
|
84
84
|
import "./chunk-63W5N6P3.js";
|
|
85
85
|
import "./chunk-VF4K2QE6.js";
|
|
86
|
-
import "./chunk-
|
|
86
|
+
import "./chunk-FKBWA3NN.js";
|
|
87
87
|
import "./chunk-BAWAKW7X.js";
|
|
88
|
-
import "./chunk-
|
|
88
|
+
import "./chunk-WBRBIRDG.js";
|
|
89
89
|
import "./chunk-IF7V3CBU.js";
|
|
90
90
|
import "./chunk-YPG7TUQD.js";
|
|
91
|
-
import "./chunk-
|
|
92
|
-
import "./chunk-
|
|
91
|
+
import "./chunk-KVDB4IIT.js";
|
|
92
|
+
import "./chunk-3WTD7IIQ.js";
|
|
93
93
|
import "./chunk-OFFL4DCR.js";
|
|
94
94
|
import "./chunk-523DITKR.js";
|
|
95
95
|
import "./chunk-QYPE3TS3.js";
|
|
96
|
-
import "./chunk-
|
|
96
|
+
import "./chunk-AOVELMYY.js";
|
|
97
97
|
import "./chunk-4JH2UMJR.js";
|
|
98
98
|
import "./chunk-ZJ7UHBJS.js";
|
|
99
99
|
import "./chunk-BYXBJQAS.js";
|
|
@@ -163,7 +163,7 @@ import "./chunk-I42VC5KR.js";
|
|
|
163
163
|
import "./chunk-U6VC4MU4.js";
|
|
164
164
|
import {
|
|
165
165
|
setRemoteDialogSyncTimeoutForTest
|
|
166
|
-
} from "./chunk-
|
|
166
|
+
} from "./chunk-WJJL7RMW.js";
|
|
167
167
|
import "./chunk-PJNFNEJE.js";
|
|
168
168
|
import "./chunk-PSCNXBYA.js";
|
|
169
169
|
import "./chunk-FDLDMJTM.js";
|