nolo-cli 0.109.0-alpha.3 → 0.111.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.
- package/{_executeModel-OXVCJ2BM.js → _executeModel-S7OU2QIO.js} +13 -13
- package/{agentDeleteCommand-QJAHAZ4T.js → agentDeleteCommand-XWLL2PMB.js} +6 -6
- package/{agentEmailCommands-3SCPUF33.js → agentEmailCommands-PNEZCF6T.js} +15 -15
- package/{agentListCommands-QXGSCIV4.js → agentListCommands-MQVMQVOE.js} +17 -10
- package/{agentMachineCommands-E4NUTGI6.js → agentMachineCommands-SIVJRNKN.js} +6 -6
- package/{agentRecordCommands-OMWI6OH5.js → agentRecordCommands-6POMYCA7.js} +15 -15
- package/{agentRunCommand-GMSUBYF6.js → agentRunCommand-A5JN2A55.js} +15 -15
- package/{agentRuntimeLocal-7MO5IJV6.js → agentRuntimeLocal-73R544NQ.js} +3 -3
- package/{agentSlice-5H7MTCE7.js → agentSlice-UTLXHAFW.js} +1 -1
- package/{appDeleteCommands-UQ5YMNLP.js → appDeleteCommands-WOSWEWOC.js} +7 -7
- package/{appDeployCommands-QX6BL5XL.js → appDeployCommands-KSOWMHCG.js} +7 -7
- package/{appDeployStatusCommands-QHQVLR3J.js → appDeployStatusCommands-JCMJMYK4.js} +7 -7
- package/{appGetCommands-GY4NGSF4.js → appGetCommands-7LIJCRZ3.js} +7 -7
- package/{appListCommands-IZCYPSKI.js → appListCommands-T4JTSWDD.js} +7 -7
- package/{chatQueueReduxAdapter-LO7EUBKJ.js → chatQueueReduxAdapter-LXYPUM6T.js} +2 -2
- package/{chunk-Z77CRGTW.js → chunk-3AMA42ZI.js} +1 -1
- package/{chunk-IQPFGYO3.js → chunk-3YIAR5UI.js} +1 -1
- package/{chunk-LXATDEM7.js → chunk-4RMFGFRH.js} +3 -3
- package/{chunk-3OD2OTTR.js → chunk-5PJTI4EP.js} +1 -1
- package/{chunk-CQ5TTXPU.js → chunk-6S3QIHMN.js} +5 -5
- package/{chunk-2OASQKU2.js → chunk-CWQINZEA.js} +112 -2
- package/{chunk-DNAF7JC6.js → chunk-FBFEKY73.js} +94 -15
- package/{chunk-PHXD6JTX.js → chunk-FKNWP6SG.js} +1 -1
- package/{chunk-MRIHM22T.js → chunk-FORUBDQQ.js} +1 -1
- package/{chunk-APB6ES6B.js → chunk-FZK3Z2MJ.js} +1 -1
- package/{chunk-KZJP33ZK.js → chunk-HAFJ3NDE.js} +2 -2
- package/{chunk-IIVGDG4I.js → chunk-HCT7U36O.js} +3 -0
- package/{chunk-HSSRGGXJ.js → chunk-K36IXSCQ.js} +1 -1
- package/{chunk-PBF2K4ER.js → chunk-K4A446HZ.js} +2 -2
- package/{chunk-DGE5HEGA.js → chunk-L322LGOM.js} +2 -2
- package/{chunk-L6LNO27F.js → chunk-L4KM22WM.js} +10 -9
- package/{chunk-QHYC7W2Y.js → chunk-NJBXVHED.js} +2 -2
- package/{chunk-LWKP7AWH.js → chunk-QSHEEA5N.js} +1 -1
- package/{chunk-HQTMPHIS.js → chunk-TDGDSTGC.js} +29 -107
- package/{chunk-XA6KE2HD.js → chunk-WKWF4RJH.js} +8 -8
- package/{chunk-AODJ7WSF.js → chunk-WP5UXDA5.js} +4 -3
- package/{chunk-HLKK4S6U.js → chunk-WTDSXQIV.js} +2 -2
- package/{chunk-TJOYV65D.js → chunk-XRTLTE4O.js} +4 -4
- package/{chunk-HWGNS46C.js → chunk-YP7H6FE4.js} +4 -4
- package/{chunk-QPPZN3AA.js → chunk-YYYAN2NH.js} +2 -2
- package/{contentThunks-L4UB5RXR.js → contentThunks-BKHGW5JF.js} +3 -3
- package/{createAgentAutomationAction-FOXQWOJQ.js → createAgentAutomationAction-5VG5HN7Z.js} +3 -3
- package/{createDialogAction-YRAHHXWR.js → createDialogAction-MA7HM3BD.js} +4 -4
- package/{createPageAction-MVFMLE3N.js → createPageAction-G7IYJMTT.js} +3 -3
- package/{dialogCommands-HSLLNN4Y.js → dialogCommands-2PEE34TR.js} +7 -7
- package/{dialogSlice-VI4GR4PA.js → dialogSlice-ORVLG3AA.js} +2 -2
- package/{docCreateCommands-I2Y4IR2O.js → docCreateCommands-PZHUUFTX.js} +6 -6
- package/{docDeleteCommands-TLRPJXQ6.js → docDeleteCommands-CEWIA4CQ.js} +7 -7
- package/{docReadCommands-6AKGK2LU.js → docReadCommands-4TVEX6ZD.js} +6 -6
- package/{docStore-X75VCYIF.js → docStore-JFRTM66X.js} +1 -1
- package/{docUpdateCommands-54AZTMMH.js → docUpdateCommands-TW3PHXLY.js} +6 -6
- package/{handleSendMessageAction-E3B2YV3N.js → handleSendMessageAction-GALALRRM.js} +2 -2
- package/index.js +41 -41
- package/{machineCommands-MGVJGN3N.js → machineCommands-SLKZBMRB.js} +14 -14
- package/{machineWsRunDispatch-AHRZCOIG.js → machineWsRunDispatch-4JISAOO2.js} +14 -14
- package/package.json +1 -1
- package/{readlineWorkspace-2G3MDALM.js → readlineWorkspace-6USXFY6R.js} +49 -29
- package/{runAgentClientLoop-O4EDXPBJ.js → runAgentClientLoop-6DAWYFWZ.js} +11 -11
- package/{spaceCommands-ESJCQ5UY.js → spaceCommands-7Y5AUMLD.js} +6 -6
- package/{streamAgentChatTurn-OBSA4Z6K.js → streamAgentChatTurn-T7B7IVHX.js} +12 -12
- package/{tools-XBU2MRGG.js → tools-CGRUHWCA.js} +8 -8
- package/{updateDialogTitleAction-DATQ2KIC.js → updateDialogTitleAction-QMSKYS55.js} +3 -3
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
} from "./chunk-42V6BK2E.js";
|
|
42
42
|
import {
|
|
43
43
|
buildLocalAgentLookupKeys
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-3AMA42ZI.js";
|
|
45
45
|
import {
|
|
46
46
|
LOCAL_CODEX_AGENT_ID,
|
|
47
47
|
LOCAL_CODEX_AGENT_KEY,
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
import {
|
|
62
62
|
inlineImageUrlsForCustomProvider,
|
|
63
63
|
prepareTools
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-NJBXVHED.js";
|
|
65
65
|
import {
|
|
66
66
|
getServerProviderSecret
|
|
67
67
|
} from "./chunk-HS7MLR74.js";
|
|
@@ -80,7 +80,7 @@ import {
|
|
|
80
80
|
rememberMemoryFunctionSchema,
|
|
81
81
|
resolveAgentRequiredPackIds,
|
|
82
82
|
setTodoListFunc
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-TDGDSTGC.js";
|
|
84
84
|
import {
|
|
85
85
|
fetchWithTransientRetry,
|
|
86
86
|
isTransientFetchError
|
|
@@ -99,7 +99,7 @@ import {
|
|
|
99
99
|
} from "./chunk-3VNWWVKB.js";
|
|
100
100
|
import {
|
|
101
101
|
deriveCredentialGroup
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-CWQINZEA.js";
|
|
103
103
|
import {
|
|
104
104
|
getModelPricing
|
|
105
105
|
} from "./chunk-EYAQT56M.js";
|
|
@@ -109,14 +109,14 @@ import {
|
|
|
109
109
|
prepareTokenUsageData,
|
|
110
110
|
resolveBuiltinPlatformAgentConfig,
|
|
111
111
|
runKeyed
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-WKWF4RJH.js";
|
|
113
113
|
import {
|
|
114
114
|
BUILTIN_DIALOG_LLM_CHAT_FALLBACK_MODEL,
|
|
115
115
|
BUILTIN_TITLE_LLM_CONFIG
|
|
116
116
|
} from "./chunk-MC4XLIJ7.js";
|
|
117
117
|
import {
|
|
118
118
|
fetchServerSyncedCredential
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-4RMFGFRH.js";
|
|
120
120
|
import {
|
|
121
121
|
require_date_fns
|
|
122
122
|
} from "./chunk-M76ECQRD.js";
|
|
@@ -162,7 +162,7 @@ import {
|
|
|
162
162
|
readDevinUpstreamFailure,
|
|
163
163
|
resolveOpenAiCompatibleProviderConfig,
|
|
164
164
|
summarizeToolArguments
|
|
165
|
-
} from "./chunk-
|
|
165
|
+
} from "./chunk-L322LGOM.js";
|
|
166
166
|
import {
|
|
167
167
|
PlatformStreamInterruptedError,
|
|
168
168
|
buildPlatformChatCompletionRequest,
|
|
@@ -205,7 +205,7 @@ import {
|
|
|
205
205
|
buildNoloWorkspaceOpenAiTools,
|
|
206
206
|
parseNoloWorkspaceToolArguments,
|
|
207
207
|
resolveRuntimeToolSurfaceForAgent
|
|
208
|
-
} from "./chunk-
|
|
208
|
+
} from "./chunk-HCT7U36O.js";
|
|
209
209
|
import {
|
|
210
210
|
mergeAvailabilityDeadline,
|
|
211
211
|
resolveAvailabilityAction,
|
|
@@ -11589,7 +11589,8 @@ async function assertCredentialFanoutAllowed(deps, args) {
|
|
|
11589
11589
|
const verdict = checkCredentialFanout({
|
|
11590
11590
|
active,
|
|
11591
11591
|
candidate: { agentKey: args.agentKey, credentialGroup: candidateGroup },
|
|
11592
|
-
allowUnknownCredential: args.allowUnknownCredential === true
|
|
11592
|
+
allowUnknownCredential: args.allowUnknownCredential === true,
|
|
11593
|
+
allowCredentialConcurrency: args.allowCredentialConcurrency === true
|
|
11593
11594
|
});
|
|
11594
11595
|
if (!verdict.allowed) throw new Error(verdict.message);
|
|
11595
11596
|
return candidateGroup;
|
|
@@ -23,13 +23,10 @@ import {
|
|
|
23
23
|
resolveRunLabel
|
|
24
24
|
} from "./chunk-3VNWWVKB.js";
|
|
25
25
|
import {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
toSafeAgentSummary,
|
|
31
|
-
toUnavailableAgentSummary
|
|
32
|
-
} from "./chunk-2OASQKU2.js";
|
|
26
|
+
buildAgentDiscoveryResult,
|
|
27
|
+
resolveDiscoveryScope,
|
|
28
|
+
toSafeAgentSummary
|
|
29
|
+
} from "./chunk-CWQINZEA.js";
|
|
33
30
|
import {
|
|
34
31
|
getUserDataItemTimestamp,
|
|
35
32
|
mergeAndDedupUserData
|
|
@@ -81,10 +78,10 @@ import {
|
|
|
81
78
|
} from "./chunk-VF4K2QE6.js";
|
|
82
79
|
import {
|
|
83
80
|
createDocState
|
|
84
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-WTDSXQIV.js";
|
|
85
82
|
import {
|
|
86
83
|
createDialogAction
|
|
87
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-YYYAN2NH.js";
|
|
88
85
|
import {
|
|
89
86
|
DEFAULT_COLLAPSED_CATEGORIES,
|
|
90
87
|
addContentToSpace,
|
|
@@ -102,7 +99,7 @@ import {
|
|
|
102
99
|
updateContentCategory,
|
|
103
100
|
updateContentTitle,
|
|
104
101
|
writeStoredCollapsedCategories
|
|
105
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-FZK3Z2MJ.js";
|
|
106
103
|
import {
|
|
107
104
|
getCurrentSpaceId,
|
|
108
105
|
getCurrentSpaceIdRaw,
|
|
@@ -124,14 +121,14 @@ import {
|
|
|
124
121
|
selectMsgById,
|
|
125
122
|
uiAskChoiceFunc,
|
|
126
123
|
uiAskChoiceFunctionSchema
|
|
127
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-WKWF4RJH.js";
|
|
128
125
|
import {
|
|
129
126
|
createAgent,
|
|
130
127
|
deleteServerSyncedCredential,
|
|
131
128
|
runLlm,
|
|
132
129
|
streamAgentChatTurn,
|
|
133
130
|
updateAgent
|
|
134
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-4RMFGFRH.js";
|
|
135
132
|
import {
|
|
136
133
|
getActiveDialogKey,
|
|
137
134
|
selectCurrentDialogKey,
|
|
@@ -173,10 +170,7 @@ import {
|
|
|
173
170
|
redactAgentRecordForWorkspaceTool,
|
|
174
171
|
resolveNoloDialogInput,
|
|
175
172
|
verifyNoloDialogSubjectRefQuery
|
|
176
|
-
} from "./chunk-
|
|
177
|
-
import {
|
|
178
|
-
isAgentUnavailableNow
|
|
179
|
-
} from "./chunk-FDTR4QJ6.js";
|
|
173
|
+
} from "./chunk-HCT7U36O.js";
|
|
180
174
|
import {
|
|
181
175
|
buildDatabaseFileContentUrl
|
|
182
176
|
} from "./chunk-P5EVSOPA.js";
|
|
@@ -3494,92 +3488,6 @@ async function listUserSpacesFunc(args, thunkApi, context) {
|
|
|
3494
3488
|
}
|
|
3495
3489
|
}
|
|
3496
3490
|
|
|
3497
|
-
// packages/ai/agent/agentDiscovery.ts
|
|
3498
|
-
function isPreferredAgent(agent) {
|
|
3499
|
-
return agent.isFavorite === true || agent.isOwned === true || agent.isOAuth === true || agent.billingSource === "user_subscription" || agent.billingSource === "user_api" || agent.billingSource === "local";
|
|
3500
|
-
}
|
|
3501
|
-
function isPublicDiscoveryAgent(agent) {
|
|
3502
|
-
return agent.isPublic === true && !isPreferredAgent(agent);
|
|
3503
|
-
}
|
|
3504
|
-
function resolveDiscoveryScope(args) {
|
|
3505
|
-
const rawScope = typeof args?.scope === "string" ? args.scope.trim().toLowerCase() : void 0;
|
|
3506
|
-
const hasScope = rawScope !== void 0 && rawScope !== "";
|
|
3507
|
-
const hasPublicOnly = typeof args?.publicOnly === "boolean";
|
|
3508
|
-
const publicOnly = args?.publicOnly === true;
|
|
3509
|
-
if (hasScope) {
|
|
3510
|
-
if (rawScope !== "preferred" && rawScope !== "public" && rawScope !== "all") {
|
|
3511
|
-
throw new Error(`Invalid scope '${args?.scope}': must be 'preferred', 'public', or 'all'.`);
|
|
3512
|
-
}
|
|
3513
|
-
const scope = rawScope;
|
|
3514
|
-
if (hasPublicOnly) {
|
|
3515
|
-
if (publicOnly && scope !== "public") {
|
|
3516
|
-
throw new Error(
|
|
3517
|
-
`Conflicting arguments: scope='${args?.scope}' conflicts with publicOnly=true.`
|
|
3518
|
-
);
|
|
3519
|
-
}
|
|
3520
|
-
if (!publicOnly && scope === "public") {
|
|
3521
|
-
throw new Error(
|
|
3522
|
-
`Conflicting arguments: scope='${args?.scope}' conflicts with publicOnly=false.`
|
|
3523
|
-
);
|
|
3524
|
-
}
|
|
3525
|
-
}
|
|
3526
|
-
return scope;
|
|
3527
|
-
}
|
|
3528
|
-
if (hasPublicOnly && publicOnly) {
|
|
3529
|
-
return "public";
|
|
3530
|
-
}
|
|
3531
|
-
return "preferred";
|
|
3532
|
-
}
|
|
3533
|
-
function agentIdentityKeys(agent) {
|
|
3534
|
-
return [agent.agentKey, agent.publicKey, agent.id].filter(
|
|
3535
|
-
(key) => typeof key === "string" && key.length > 0
|
|
3536
|
-
);
|
|
3537
|
-
}
|
|
3538
|
-
function deduplicateAgentSummaries(agents) {
|
|
3539
|
-
const byIdentity = /* @__PURE__ */ new Map();
|
|
3540
|
-
for (const agent of agents) {
|
|
3541
|
-
const keys = agentIdentityKeys(agent);
|
|
3542
|
-
const existing = keys.map((key) => byIdentity.get(key)).find(Boolean);
|
|
3543
|
-
if (!existing) {
|
|
3544
|
-
for (const key of keys) byIdentity.set(key, agent);
|
|
3545
|
-
continue;
|
|
3546
|
-
}
|
|
3547
|
-
const winner = isPreferredAgent(agent) && !isPreferredAgent(existing) ? agent : existing;
|
|
3548
|
-
for (const key of /* @__PURE__ */ new Set([...agentIdentityKeys(existing), ...keys])) byIdentity.set(key, winner);
|
|
3549
|
-
}
|
|
3550
|
-
return [...new Set(byIdentity.values())];
|
|
3551
|
-
}
|
|
3552
|
-
function filterAgentsByScope(agents, scope) {
|
|
3553
|
-
const unique = deduplicateAgentSummaries(agents);
|
|
3554
|
-
if (scope === "preferred") return unique.filter((agent) => isPreferredAgent(agent));
|
|
3555
|
-
if (scope === "public") return unique.filter((agent) => isPublicDiscoveryAgent(agent));
|
|
3556
|
-
return unique.filter((agent) => isPreferredAgent(agent) || agent.isPublic === true);
|
|
3557
|
-
}
|
|
3558
|
-
function buildAgentDiscoveryResult(options) {
|
|
3559
|
-
const scope = resolveDiscoveryScope({
|
|
3560
|
-
scope: options.scope,
|
|
3561
|
-
publicOnly: options.publicOnly
|
|
3562
|
-
});
|
|
3563
|
-
const now = options.now ?? Date.now();
|
|
3564
|
-
let scopedAgents = filterAgentsByScope(options.agents, scope);
|
|
3565
|
-
const unavailableList = scopedAgents.filter((a) => isAgentUnavailableNow(a, now));
|
|
3566
|
-
const unavailableCount = unavailableList.length;
|
|
3567
|
-
const unavailableAgents = sortSafeAgentSummaries(unavailableList).map(toUnavailableAgentSummary);
|
|
3568
|
-
const credentialGroups = summarizeCredentialGroups(scopedAgents, now);
|
|
3569
|
-
if (options.showUnavailable !== true) {
|
|
3570
|
-
scopedAgents = scopedAgents.filter((a) => !isAgentUnavailableNow(a, now));
|
|
3571
|
-
}
|
|
3572
|
-
const sortedAgents = sortSafeAgentSummaries(scopedAgents);
|
|
3573
|
-
const projectedAgents = options.verbose === true ? sortedAgents.map(omitNullishAgentSummaryFields) : sortedAgents.map(toCompactAgentSummary);
|
|
3574
|
-
return {
|
|
3575
|
-
total: projectedAgents.length,
|
|
3576
|
-
unavailableCount,
|
|
3577
|
-
unavailableAgents,
|
|
3578
|
-
credentialGroups,
|
|
3579
|
-
agents: projectedAgents
|
|
3580
|
-
};
|
|
3581
|
-
}
|
|
3582
|
-
|
|
3583
3491
|
// packages/ai/agent/publicAgentDiscovery.ts
|
|
3584
3492
|
async function fetchPublicAgentsForDiscovery(args) {
|
|
3585
3493
|
const fetchImpl = args.fetchImpl ?? fetch;
|
|
@@ -4042,7 +3950,7 @@ async function deleteDialogsFunc(args, thunkApi) {
|
|
|
4042
3950
|
const deletedDialogIds = [];
|
|
4043
3951
|
const deletedDialogKeys = [];
|
|
4044
3952
|
const failures = [];
|
|
4045
|
-
const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-
|
|
3953
|
+
const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-ORVLG3AA.js");
|
|
4046
3954
|
for (const target of targets) {
|
|
4047
3955
|
try {
|
|
4048
3956
|
await thunkApi.dispatch(deleteDialog2(target.dbKey)).unwrap();
|
|
@@ -4138,6 +4046,10 @@ var listAgentsFunctionSchema = {
|
|
|
4138
4046
|
},
|
|
4139
4047
|
publicOnly: { type: "boolean", description: "Deprecated compatibility alias for scope='public'." },
|
|
4140
4048
|
showUnavailable: { type: "boolean", description: "Include agents currently rate-limited (429). Default false." },
|
|
4049
|
+
query: {
|
|
4050
|
+
type: "string",
|
|
4051
|
+
description: "Optional case-insensitive search substring matching agent name, model, provider, handle, or agentKey. Use to locate specific candidates like 'opus', 'devin', or 'claude'."
|
|
4052
|
+
},
|
|
4141
4053
|
verbose: { type: "boolean", description: "Return the full safe-summary field set (prices, introduction, modelAbility, timestamps) for troubleshooting. Default false returns the compact agent-selection projection." }
|
|
4142
4054
|
}
|
|
4143
4055
|
}
|
|
@@ -4190,6 +4102,7 @@ async function listAgentsFunc(args, thunkApi) {
|
|
|
4190
4102
|
const discovery = buildAgentDiscoveryResult({
|
|
4191
4103
|
agents,
|
|
4192
4104
|
scope: args?.scope,
|
|
4105
|
+
query: args?.query,
|
|
4193
4106
|
publicOnly: args?.publicOnly,
|
|
4194
4107
|
showUnavailable: args?.showUnavailable,
|
|
4195
4108
|
verbose: args?.verbose
|
|
@@ -13269,11 +13182,14 @@ function checkCredentialFanout(args) {
|
|
|
13269
13182
|
};
|
|
13270
13183
|
}
|
|
13271
13184
|
if (candidateGroup === entryGroup) {
|
|
13185
|
+
if (args.allowCredentialConcurrency === true) {
|
|
13186
|
+
continue;
|
|
13187
|
+
}
|
|
13272
13188
|
return {
|
|
13273
13189
|
allowed: false,
|
|
13274
13190
|
reason: "credential_group_conflict",
|
|
13275
13191
|
conflict: entry,
|
|
13276
|
-
message: `\u62D2\u7EDD\u5E76\u53D1\u6D3E\u53D1\uFF1A\u5019\u9009 agent ${describeEntry(args.candidate)} \u4E0E\u5DF2\u6D3B\u8DC3 run ${describeEntry(entry)} \u540C\u5C5E credentialGroup "${candidateGroup}"\uFF0C\u540C\u4E00\u51ED\u8BC1\u4E0A\u7981\u6B62\u5E76\u53D1\u6247\u51FA\u3002\u8BF7\u4E32\u884C\u6D3E\u53D1\
|
|
13192
|
+
message: `\u62D2\u7EDD\u5E76\u53D1\u6D3E\u53D1\uFF1A\u5019\u9009 agent ${describeEntry(args.candidate)} \u4E0E\u5DF2\u6D3B\u8DC3 run ${describeEntry(entry)} \u540C\u5C5E credentialGroup "${candidateGroup}"\uFF0C\u540C\u4E00\u51ED\u8BC1\u4E0A\u7981\u6B62\u5E76\u53D1\u6247\u51FA\u3002\u8BF7\u4E32\u884C\u6D3E\u53D1\u3001\u6362\u7528\u5176\u4ED6 credentialGroup \u7684 agent\uFF0C\u6216\u4F20 allowCredentialConcurrency: true \u5141\u8BB8\u5E76\u53D1\u3002`
|
|
13277
13193
|
};
|
|
13278
13194
|
}
|
|
13279
13195
|
}
|
|
@@ -13334,6 +13250,11 @@ function buildStartAgentRunFunctionSchema(opts) {
|
|
|
13334
13250
|
description: "\u53EF\u9009\u3002\u663E\u5F0F\u786E\u8BA4\u300C\u51ED\u8BC1\u5F52\u5C5E\u672A\u77E5\u300D\u7684\u5E76\u53D1\u98CE\u9669\u540E\u5F3A\u5236\u653E\u884C\uFF08\u7B49\u540C\u4E8E CLI \u7684 --force-unknown-credential\uFF09\u3002\u4EC5\u5728\u5DF2\u81EA\u884C\u786E\u8BA4\u4E24\u4FA7\u4E0D\u5171\u7528\u4E0A\u6E38\u51ED\u8BC1\u65F6\u4F7F\u7528\uFF1B\u9ED8\u8BA4 false\uFF0C\u672A\u77E5\u51ED\u8BC1\u5E76\u53D1\u4E00\u5F8B\u62D2\u7EDD\u3002",
|
|
13335
13251
|
default: false
|
|
13336
13252
|
},
|
|
13253
|
+
allowCredentialConcurrency: {
|
|
13254
|
+
type: "boolean",
|
|
13255
|
+
description: "\u53EF\u9009\u3002\u663E\u5F0F\u5141\u8BB8\u540C\u4E00\u51ED\u8BC1\u7EC4\u5E76\u53D1\u6D3E\u53D1\u3002\u9ED8\u8BA4 false\u3002\u5728\u7528\u6237\u6388\u6743\u540C\u4E00\u51ED\u636E\u591A\u4EFB\u52A1\u5E76\u53D1\u6216\u786E\u8BA4\u4E0A\u6E38\u652F\u6301\u5E76\u53D1\u65F6\u4F7F\u7528\u3002",
|
|
13256
|
+
default: false
|
|
13257
|
+
},
|
|
13337
13258
|
trackTodo: {
|
|
13338
13259
|
type: "boolean",
|
|
13339
13260
|
description: '\u53EF\u9009\u3002\u4E3A true \u65F6\u672C\u6B21 run \u4F1A\u88AB\u8BB0\u5F55\u8FDB runtime todo\uFF08~/.nolo/todos.json\uFF09\u3002\u4F20\u4E86 batchId \u65F6\u9ED8\u8BA4\u5373\u8BB0\u5F55\uFF08\u6BCF\u6279\u5BF9\u5E94\u4E00\u9879 todo\uFF09\u3002todo \u72B6\u6001\u7531\u5173\u8054 run \u72B6\u6001 + review \u7ED3\u8BBA\u63A8\u5BFC\uFF0C\u7528 controlAgentRun(action:"todo") \u67E5\u8BE2\u3002'
|
|
@@ -13380,7 +13301,8 @@ async function startAgentRunFunc(args, thunkApi, _context) {
|
|
|
13380
13301
|
const verdict = checkCredentialFanout({
|
|
13381
13302
|
active,
|
|
13382
13303
|
candidate: { agentKey, credentialGroup: args.credentialGroup },
|
|
13383
|
-
allowUnknownCredential: args.allowUnknownCredential === true
|
|
13304
|
+
allowUnknownCredential: args.allowUnknownCredential === true,
|
|
13305
|
+
allowCredentialConcurrency: args.allowCredentialConcurrency === true
|
|
13384
13306
|
});
|
|
13385
13307
|
if (!verdict.allowed) throw new Error(verdict.message);
|
|
13386
13308
|
}
|
|
@@ -15116,7 +15038,7 @@ var executeToolRun = createAsyncThunk(
|
|
|
15116
15038
|
if (!executionInput) {
|
|
15117
15039
|
throw new Error(`ToolRun ${id} has no input to execute with.`);
|
|
15118
15040
|
}
|
|
15119
|
-
const { findToolExecutor: findToolExecutor2 } = await import("./tools-
|
|
15041
|
+
const { findToolExecutor: findToolExecutor2 } = await import("./tools-CGRUHWCA.js");
|
|
15120
15042
|
const { executor } = findToolExecutor2(run.toolName);
|
|
15121
15043
|
toolRunStarted({
|
|
15122
15044
|
id: run.id,
|
|
@@ -17623,7 +17545,7 @@ async function updateDocFunc(args, thunkApi) {
|
|
|
17623
17545
|
updated_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
17624
17546
|
};
|
|
17625
17547
|
await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
|
|
17626
|
-
const { getDocState, applyExternalDocUpdate } = await import("./docStore-
|
|
17548
|
+
const { getDocState, applyExternalDocUpdate } = await import("./docStore-JFRTM66X.js");
|
|
17627
17549
|
if (getDocState().pageKey === id) {
|
|
17628
17550
|
applyExternalDocUpdate({
|
|
17629
17551
|
slateData: finalSlateData,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
} from "./chunk-AGGIDPCZ.js";
|
|
15
15
|
import {
|
|
16
16
|
runLlm
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-4RMFGFRH.js";
|
|
18
18
|
import {
|
|
19
19
|
cleanupCliSessionForDialog
|
|
20
20
|
} from "./chunk-BFDFRLLQ.js";
|
|
@@ -19998,7 +19998,7 @@ var messageSlice = createSliceWithThunks({
|
|
|
19998
19998
|
runtimeOptions: args.runtimeOptions
|
|
19999
19999
|
});
|
|
20000
20000
|
if (agentKeyToUse) {
|
|
20001
|
-
const { streamAgentChatTurn } = await import("./agentSlice-
|
|
20001
|
+
const { streamAgentChatTurn } = await import("./agentSlice-UTLXHAFW.js");
|
|
20002
20002
|
await dispatch(
|
|
20003
20003
|
streamAgentChatTurn({
|
|
20004
20004
|
agentKey: agentKeyToUse,
|
|
@@ -21134,7 +21134,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
21134
21134
|
}
|
|
21135
21135
|
if (isCurrentDialog) {
|
|
21136
21136
|
await thunkApi.dispatch(resetMsgs());
|
|
21137
|
-
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-
|
|
21137
|
+
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-ORVLG3AA.js");
|
|
21138
21138
|
dispatch(clearPendingAttachments2());
|
|
21139
21139
|
}
|
|
21140
21140
|
return { dialogKey, isCurrentDialog, attachmentPlan };
|
|
@@ -21142,15 +21142,15 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
21142
21142
|
|
|
21143
21143
|
// packages/chat/dialog/dialogSlice.ts
|
|
21144
21144
|
var runCreateDialogAction = async (args, thunkApi) => {
|
|
21145
|
-
const { createDialogAction } = await import("./createDialogAction-
|
|
21145
|
+
const { createDialogAction } = await import("./createDialogAction-MA7HM3BD.js");
|
|
21146
21146
|
return createDialogAction(args, thunkApi);
|
|
21147
21147
|
};
|
|
21148
21148
|
var runCreateAgentAutomationAction = async (args, thunkApi) => {
|
|
21149
|
-
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-
|
|
21149
|
+
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-5VG5HN7Z.js");
|
|
21150
21150
|
return createAgentAutomationAction(args, thunkApi);
|
|
21151
21151
|
};
|
|
21152
21152
|
var runUpdateDialogTitleAction = async (args, thunkApi) => {
|
|
21153
|
-
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-
|
|
21153
|
+
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-QMSKYS55.js");
|
|
21154
21154
|
return updateDialogTitleAction(args, thunkApi);
|
|
21155
21155
|
};
|
|
21156
21156
|
var runAddDialogAgentAction = async (args, thunkApi) => {
|
|
@@ -21174,7 +21174,7 @@ var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
|
|
|
21174
21174
|
return setDialogExtraReferencesAction(args, thunkApi);
|
|
21175
21175
|
};
|
|
21176
21176
|
var runHandleSendMessageAction = async (args, thunkApi) => {
|
|
21177
|
-
const { handleSendMessageAction } = await import("./handleSendMessageAction-
|
|
21177
|
+
const { handleSendMessageAction } = await import("./handleSendMessageAction-GALALRRM.js");
|
|
21178
21178
|
return handleSendMessageAction(args, thunkApi);
|
|
21179
21179
|
};
|
|
21180
21180
|
function clearDialogState() {
|
|
@@ -21187,7 +21187,7 @@ var createPageAndAddReference = createAsyncThunk(
|
|
|
21187
21187
|
async (payload, { dispatch, getState, rejectWithValue }) => {
|
|
21188
21188
|
const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
|
|
21189
21189
|
try {
|
|
21190
|
-
const { createDocState } = await import("./docStore-
|
|
21190
|
+
const { createDocState } = await import("./docStore-JFRTM66X.js");
|
|
21191
21191
|
const pageKey = await createDocState(
|
|
21192
21192
|
{ slateData, title },
|
|
21193
21193
|
{ dispatch, getState }
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
listUserRecordsFromServers,
|
|
3
3
|
readLiveDbRecordAfterTombstoneMerge
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-3YIAR5UI.js";
|
|
5
5
|
import {
|
|
6
6
|
agentRecordHasConfiguredCredential
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-QSHEEA5N.js";
|
|
8
8
|
import {
|
|
9
9
|
deriveCredentialGroup,
|
|
10
10
|
toSafeAgentSummary
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-CWQINZEA.js";
|
|
12
12
|
import {
|
|
13
13
|
PUBLIC_AGENT_KEY_PREFIX,
|
|
14
14
|
isOwnedAgentKey,
|
|
@@ -162,6 +162,7 @@ function parseAgentListArgs(args) {
|
|
|
162
162
|
publicOnly: args.includes("--public-only"),
|
|
163
163
|
idsOnly: args.includes("--ids-only"),
|
|
164
164
|
scope: readArgValue(args, "--scope"),
|
|
165
|
+
query: readArgValue(args, "--query"),
|
|
165
166
|
showUnavailable: args.includes("--show-unavailable"),
|
|
166
167
|
// --safe 默认输出精简投影(与 server listAgents 一致,防大列表被截断);
|
|
167
168
|
// --verbose 拿回完整字段集排障。
|
|
@@ -326,7 +326,7 @@ async function saveDocState(arg, { dispatch, getState }) {
|
|
|
326
326
|
).unwrap();
|
|
327
327
|
if (dbSpaceId) {
|
|
328
328
|
try {
|
|
329
|
-
const { updateContentTitle } = await import("./contentThunks-
|
|
329
|
+
const { updateContentTitle } = await import("./contentThunks-BKHGW5JF.js");
|
|
330
330
|
await dispatch(
|
|
331
331
|
updateContentTitle({
|
|
332
332
|
spaceId: dbSpaceId,
|
|
@@ -365,7 +365,7 @@ async function saveDocState(arg, { dispatch, getState }) {
|
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
367
|
async function createDocState(args, thunkApi) {
|
|
368
|
-
const { createPageAction } = await import("./createPageAction-
|
|
368
|
+
const { createPageAction } = await import("./createPageAction-G7IYJMTT.js");
|
|
369
369
|
return createPageAction(args, thunkApi);
|
|
370
370
|
}
|
|
371
371
|
function subscribe(listener) {
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
clipMultilineText,
|
|
9
9
|
fetchAndSerializeTable
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-TDGDSTGC.js";
|
|
11
11
|
import {
|
|
12
12
|
isGatewayHttpStatus
|
|
13
13
|
} from "./chunk-NF64D32W.js";
|
|
@@ -28,13 +28,13 @@ import {
|
|
|
28
28
|
} from "./chunk-MEYIRKDN.js";
|
|
29
29
|
import {
|
|
30
30
|
fetchAndCacheMessages
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-WKWF4RJH.js";
|
|
32
32
|
import {
|
|
33
33
|
shouldUseServerProxy
|
|
34
34
|
} from "./chunk-YYLHWIW6.js";
|
|
35
35
|
import {
|
|
36
36
|
fetchServerSyncedCredential
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-4RMFGFRH.js";
|
|
38
38
|
import {
|
|
39
39
|
buildSkillGuidancePromptBlock,
|
|
40
40
|
extractRuntimePageCapabilities,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
detectDispatchIntentFromMessages,
|
|
49
49
|
normalizeChatCompletionsBodyForProvider,
|
|
50
50
|
resolveToolGuidedSections
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-FORUBDQQ.js";
|
|
52
52
|
import {
|
|
53
53
|
convertMessagesToResponsesInput,
|
|
54
54
|
getUsageRequestOptions,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCliLocalRuntimeAdapter,
|
|
3
3
|
summarizeEndpoint
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-L4KM22WM.js";
|
|
5
5
|
import {
|
|
6
6
|
clipMultilineText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-TDGDSTGC.js";
|
|
8
8
|
import {
|
|
9
9
|
runLocalAgentTurn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-L322LGOM.js";
|
|
11
11
|
import {
|
|
12
12
|
applyToolSurfaceConstraints
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-HCT7U36O.js";
|
|
14
14
|
import {
|
|
15
15
|
resolveLocalRuntimeEnvFromPolicy
|
|
16
16
|
} from "./chunk-HVURBGF3.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addContentToSpace
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FZK3Z2MJ.js";
|
|
4
4
|
import {
|
|
5
5
|
prepareAndPersistMessage,
|
|
6
6
|
uiAskChoiceFunc,
|
|
7
7
|
uiAskChoiceFunctionSchema
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-WKWF4RJH.js";
|
|
9
9
|
import {
|
|
10
10
|
require_date_fns
|
|
11
11
|
} from "./chunk-M76ECQRD.js";
|
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
updateContentPinned,
|
|
8
8
|
updateContentTitle,
|
|
9
9
|
uploadAndAddFileToSpace
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-FZK3Z2MJ.js";
|
|
11
11
|
import "./chunk-ZJ7UHBJS.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-WKWF4RJH.js";
|
|
13
13
|
import "./chunk-MC4XLIJ7.js";
|
|
14
14
|
import "./chunk-3BMYXEUW.js";
|
|
15
15
|
import "./chunk-YYLHWIW6.js";
|
|
16
16
|
import "./chunk-AGGIDPCZ.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-4RMFGFRH.js";
|
|
18
18
|
import "./chunk-BFDFRLLQ.js";
|
|
19
19
|
import "./chunk-5RGU3J7P.js";
|
|
20
20
|
import "./chunk-6YTOJY35.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addContentToSpace
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FZK3Z2MJ.js";
|
|
4
4
|
import "./chunk-ZJ7UHBJS.js";
|
|
5
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-WKWF4RJH.js";
|
|
6
6
|
import "./chunk-MC4XLIJ7.js";
|
|
7
7
|
import "./chunk-3BMYXEUW.js";
|
|
8
8
|
import "./chunk-YYLHWIW6.js";
|
|
9
9
|
import "./chunk-AGGIDPCZ.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-4RMFGFRH.js";
|
|
11
11
|
import "./chunk-BFDFRLLQ.js";
|
|
12
12
|
import "./chunk-5RGU3J7P.js";
|
|
13
13
|
import "./chunk-6YTOJY35.js";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createDialogAction,
|
|
3
3
|
isLocalOwnerDialogAgents
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-YYYAN2NH.js";
|
|
5
|
+
import "./chunk-FZK3Z2MJ.js";
|
|
6
6
|
import "./chunk-ZJ7UHBJS.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-WKWF4RJH.js";
|
|
8
8
|
import "./chunk-MC4XLIJ7.js";
|
|
9
9
|
import "./chunk-3BMYXEUW.js";
|
|
10
10
|
import "./chunk-YYLHWIW6.js";
|
|
11
11
|
import "./chunk-AGGIDPCZ.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-4RMFGFRH.js";
|
|
13
13
|
import "./chunk-BFDFRLLQ.js";
|
|
14
14
|
import "./chunk-5RGU3J7P.js";
|
|
15
15
|
import "./chunk-6YTOJY35.js";
|
|
@@ -14,16 +14,16 @@ import {
|
|
|
14
14
|
import {
|
|
15
15
|
addContentToSpace,
|
|
16
16
|
client_default
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-FZK3Z2MJ.js";
|
|
18
18
|
import {
|
|
19
19
|
getCurrentSpaceId
|
|
20
20
|
} from "./chunk-ZJ7UHBJS.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-WKWF4RJH.js";
|
|
22
22
|
import "./chunk-MC4XLIJ7.js";
|
|
23
23
|
import "./chunk-3BMYXEUW.js";
|
|
24
24
|
import "./chunk-YYLHWIW6.js";
|
|
25
25
|
import "./chunk-AGGIDPCZ.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-4RMFGFRH.js";
|
|
27
27
|
import "./chunk-BFDFRLLQ.js";
|
|
28
28
|
import "./chunk-5RGU3J7P.js";
|
|
29
29
|
import "./chunk-6YTOJY35.js";
|
|
@@ -11,12 +11,12 @@ import {
|
|
|
11
11
|
runDialogSearchCommand,
|
|
12
12
|
runDialogStatusCommand,
|
|
13
13
|
sortDialogs
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-HAFJ3NDE.js";
|
|
15
15
|
import "./chunk-ID4G2MAR.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-3YIAR5UI.js";
|
|
17
17
|
import "./chunk-EADNWBAZ.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-QSHEEA5N.js";
|
|
19
|
+
import "./chunk-3AMA42ZI.js";
|
|
20
20
|
import "./chunk-SV5IJK6K.js";
|
|
21
21
|
import "./chunk-5UTFL4QJ.js";
|
|
22
22
|
import "./chunk-3L2WKC3W.js";
|
|
@@ -24,7 +24,7 @@ import "./chunk-KQHGZWSV.js";
|
|
|
24
24
|
import "./chunk-3BMYXEUW.js";
|
|
25
25
|
import "./chunk-URMS4XY2.js";
|
|
26
26
|
import "./chunk-GLKOYSRU.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-L322LGOM.js";
|
|
28
28
|
import "./chunk-H4AHY5BU.js";
|
|
29
29
|
import "./chunk-FV3JEYR3.js";
|
|
30
30
|
import "./chunk-GMZLP5DV.js";
|
|
@@ -33,9 +33,9 @@ import "./chunk-4MK3I7Y4.js";
|
|
|
33
33
|
import "./chunk-CQ3WA2NE.js";
|
|
34
34
|
import "./chunk-5ZUL4CUO.js";
|
|
35
35
|
import "./chunk-N7J63Q6C.js";
|
|
36
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-FORUBDQQ.js";
|
|
37
37
|
import "./chunk-PUOC4YRO.js";
|
|
38
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-HCT7U36O.js";
|
|
39
39
|
import "./chunk-FDTR4QJ6.js";
|
|
40
40
|
import "./chunk-GNCCNNZD.js";
|
|
41
41
|
import "./chunk-6OZ36FXI.js";
|
|
@@ -20,12 +20,12 @@ import {
|
|
|
20
20
|
switchDialogAgent,
|
|
21
21
|
updateDialogTitle,
|
|
22
22
|
updateTokens
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-WKWF4RJH.js";
|
|
24
24
|
import "./chunk-MC4XLIJ7.js";
|
|
25
25
|
import "./chunk-3BMYXEUW.js";
|
|
26
26
|
import "./chunk-YYLHWIW6.js";
|
|
27
27
|
import "./chunk-AGGIDPCZ.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-4RMFGFRH.js";
|
|
29
29
|
import "./chunk-BFDFRLLQ.js";
|
|
30
30
|
import {
|
|
31
31
|
getActiveDialogAgentId
|