nolo-cli 0.248.0-alpha.2 → 0.249.0-alpha.10
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-H72XB2UR.js → _executeModel-F4MT6OPO.js} +20 -20
- package/{agentDeleteCommand-4AFQNHDD.js → agentDeleteCommand-KKS2Q6WB.js} +27 -27
- package/{agentEmailCommands-6FR6TBJM.js → agentEmailCommands-UDLBG3BE.js} +27 -27
- package/{agentListCommands-IXKBP3W5.js → agentListCommands-5ULWKQ3E.js} +14 -14
- package/{agentMachineCommands-KCTPKYZM.js → agentMachineCommands-IX72KH5L.js} +11 -11
- package/{agentRecordCommands-JG3TB55T.js → agentRecordCommands-5OPLKH4R.js} +27 -27
- package/{agentRunCommand-ZUKU7SYB.js → agentRunCommand-U6AGCU3C.js} +27 -27
- package/{agentRunControl-RN2P6AOD.js → agentRunControl-QMWTWV7C.js} +2 -2
- package/{agentRuntimeLocal-LVXPQ7QA.js → agentRuntimeLocal-KKXJOBD3.js} +8 -8
- package/{agentSlice-6EPEKSJT.js → agentSlice-FWYXP332.js} +1 -1
- package/{appDeleteCommands-BESCJOQM.js → appDeleteCommands-ERJK367V.js} +12 -12
- package/{appDeployCommands-LPTR6IOX.js → appDeployCommands-LUV6QKQJ.js} +12 -12
- package/{appDeployStatusCommands-BZ7KZ5RD.js → appDeployStatusCommands-WW7IYQD4.js} +12 -12
- package/{appGetCommands-EDWGJV4S.js → appGetCommands-G7XYYSFO.js} +12 -12
- package/{appListCommands-OPRWYPM6.js → appListCommands-4RXCIDNI.js} +12 -12
- package/{builtinSkillRegistry-VRCMQ77Q.js → builtinSkillRegistry-PFTTFPWW.js} +2 -1
- package/{chunk-Y4NPF2UN.js → chunk-222CJNC2.js} +3 -3
- package/{chunk-2JWRKVDC.js → chunk-32WTED6G.js} +80 -121
- package/{chunk-RR3MB26M.js → chunk-3IVFGQIM.js} +1 -1
- package/{chunk-CTIEJRTP.js → chunk-5BRVDQTX.js} +5 -1
- package/{chunk-LQ7WOIVV.js → chunk-6QL3SUEK.js} +2 -2
- package/{chunk-6MTVACLN.js → chunk-75TXQ4GY.js} +4 -38
- package/{chunk-VFXMN3QM.js → chunk-7IQA2VJF.js} +23 -18
- package/{chunk-JT4HJLIL.js → chunk-AKWA6PCE.js} +3 -3
- package/{chunk-KFGL66WO.js → chunk-ATRU65OK.js} +7 -7
- package/{chunk-JEWMQR6J.js → chunk-BQ4CZEVZ.js} +1 -1
- package/{chunk-IVY2CQBD.js → chunk-BY6UZMLH.js} +22 -24
- package/{chunk-WFGNWWJI.js → chunk-CDIRKCPD.js} +141 -1
- package/{chunk-ITBX27W6.js → chunk-CFDOIIOZ.js} +2 -2
- package/chunk-EUGTFFO6.js +42 -0
- package/{chunk-E2CYOBQS.js → chunk-EVIPLO5D.js} +2 -2
- package/{chunk-LDX32FHM.js → chunk-GIRXQFGW.js} +11 -11
- package/{chunk-7UVVLYKC.js → chunk-HEIIOJGN.js} +3 -3
- package/{chunk-KABDRAUT.js → chunk-I3J7HO3U.js} +2 -2
- package/{chunk-QMNVV3YM.js → chunk-I3OW5RAX.js} +3 -3
- package/{chunk-XCA4WHX5.js → chunk-KHVTT4WW.js} +2 -2
- package/{chunk-CIUZXD5D.js → chunk-KJDN2YRH.js} +2 -2
- package/{chunk-Z7KE4K3H.js → chunk-LXKK7QFI.js} +4 -3
- package/{chunk-3IQEZYPF.js → chunk-OKKA4BCM.js} +4 -4
- package/{chunk-RMA5H7R5.js → chunk-PGDM7AM2.js} +5 -5
- package/{chunk-W2PX6LH4.js → chunk-PGQ2KTMC.js} +3 -3
- package/{chunk-CIGCTSBF.js → chunk-SHDJLJWV.js} +1 -1
- package/{chunk-2BKNICGK.js → chunk-SLUZ6FBJ.js} +1 -1
- package/{chunk-Y6DW3JTS.js → chunk-U7OMQLRE.js} +2 -2
- package/{chunk-XSRSAU3O.js → chunk-UR4ZMRV3.js} +3 -3
- package/{chunk-YMKSYLT7.js → chunk-VHMPJGT4.js} +2 -2
- package/{chunk-OAZP4TSA.js → chunk-VZCBYCHV.js} +1 -1
- package/{chunk-XNTZD4AE.js → chunk-W4G25PVP.js} +9 -11
- package/{chunk-4OXPN3WC.js → chunk-WMKA2DPK.js} +1 -1
- package/{chunk-UOUMPHS5.js → chunk-WMMKHEGQ.js} +1 -1
- package/{chunk-OY3XGLWR.js → chunk-X6LYQDN5.js} +1 -1
- package/{chunk-XSZLVTD3.js → chunk-XHG7QROB.js} +3 -3
- package/{chunk-A6BALTVL.js → chunk-YQO5UKHP.js} +8 -8
- package/{chunk-AEZBAFC6.js → chunk-YWNCRUBZ.js} +1 -1
- package/{chunk-IJZC2KIJ.js → chunk-Z7A2ZQ5X.js} +1 -1
- package/{chunk-WZFQBO5N.js → chunk-ZKMS73DK.js} +2 -2
- package/{chunk-PBPXXMWZ.js → chunk-ZTWDSOXD.js} +1 -1
- package/{cliLocalAgentRecordReader-MCQVRWBR.js → cliLocalAgentRecordReader-R4CLUHYO.js} +10 -10
- package/{commandRegistry-OXNZPSGC.js → commandRegistry-2AUUZC2C.js} +46 -46
- package/{contentThunks-RHE6A4AH.js → contentThunks-ZQSZA4GH.js} +3 -3
- package/{createAgentAutomationAction-TZ2CN6BM.js → createAgentAutomationAction-RQE4F6PR.js} +3 -3
- package/{createDialogAction-4JC5EYQT.js → createDialogAction-JDSMQ34U.js} +4 -4
- package/{createPageAction-WQREAKL3.js → createPageAction-VLF6XCYO.js} +4 -4
- package/{dialogCommands-KZTZLWPZ.js → dialogCommands-PLM7ZFWH.js} +14 -14
- package/{dialogSlice-DI2DW4UP.js → dialogSlice-63DD2ER2.js} +2 -2
- package/{docCreateCommands-26HJ5NAY.js → docCreateCommands-BST5DO7L.js} +11 -11
- package/{docDeleteCommands-UAOHH5XK.js → docDeleteCommands-YE6G2SO4.js} +12 -12
- package/{docReadCommands-4ADG7YE6.js → docReadCommands-M6T35U3G.js} +11 -11
- package/{docStore-A4UDG56G.js → docStore-7QNJWRJ2.js} +1 -1
- package/{docUpdateCommands-OGFJZENF.js → docUpdateCommands-6DFWGPVG.js} +11 -11
- package/{handleSendMessageAction-RO647P4V.js → handleSendMessageAction-FCEFFAV4.js} +15 -27
- package/{hostCredentialCreate-4CHXN6U5.js → hostCredentialCreate-R2Q4EDKF.js} +27 -27
- package/index.js +4 -4
- package/{localRuntimeAdapter-UB3RWVUD.js → localRuntimeAdapter-AZEBBP33.js} +26 -26
- package/{machineCommands-EMUNGUKT.js → machineCommands-HQYKFZSQ.js} +27 -27
- package/{machineWsRunDispatch-GL4IASSZ.js → machineWsRunDispatch-BQW5G3G3.js} +27 -27
- package/package.json +1 -1
- package/{projectArchive-ZRQPLQEI.js → projectArchive-4XUC5SLF.js} +4 -4
- package/{readlineWorkspace-IUUODHF4.js → readlineWorkspace-JOZQCS6W.js} +34 -34
- package/{runAgentClientLoop-HHKMRV4B.js → runAgentClientLoop-7D7UCAS2.js} +18 -18
- package/{settingThunks-T4FXSV6M.js → settingThunks-IHXUF276.js} +3 -7
- package/{spaceCommands-W5TAVFDT.js → spaceCommands-WCLD36WH.js} +11 -11
- package/{streamAgentChatTurn-URBDXKCY.js → streamAgentChatTurn-DVTOINT3.js} +47 -25
- package/{tools-USMXBZZV.js → tools-BOPINT5S.js} +14 -14
- package/{tuiRestart-EOGC2BYY.js → tuiRestart-5F2APN66.js} +3 -3
- package/{updateDialogTitleAction-LTDUWMHQ.js → updateDialogTitleAction-S76PUCLQ.js} +3 -3
- package/chunk-YDRRGVT5.js +0 -142
|
@@ -12,13 +12,13 @@ import {
|
|
|
12
12
|
sendOpenAICompletionsRequest,
|
|
13
13
|
serializeAgentRunMessages,
|
|
14
14
|
updateTotalUsage
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ATRU65OK.js";
|
|
16
16
|
import "./chunk-JEXVIMYZ.js";
|
|
17
17
|
import {
|
|
18
18
|
inlineImageUrlsForCustomProvider,
|
|
19
19
|
prepareTools,
|
|
20
20
|
shouldInlineImageUrlsForAgent
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-I3J7HO3U.js";
|
|
22
22
|
import {
|
|
23
23
|
DirectApiKeyResolutionError,
|
|
24
24
|
INVALID_TOOL_ARGS_REPLACEMENT,
|
|
@@ -30,57 +30,58 @@ import {
|
|
|
30
30
|
sanitizeOutboundResponsesInput,
|
|
31
31
|
selectResponsesConversationState,
|
|
32
32
|
updateResponsesConversationState
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-OKKA4BCM.js";
|
|
34
34
|
import "./chunk-HS7MLR74.js";
|
|
35
35
|
import {
|
|
36
36
|
selectMaxExecutionTime
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-7IQA2VJF.js";
|
|
38
38
|
import {
|
|
39
39
|
isGptProModel,
|
|
40
40
|
isPlatformPaidAgentCall,
|
|
41
41
|
shouldBlockForGptPro
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-KHVTT4WW.js";
|
|
43
43
|
import "./chunk-AMWMV56B.js";
|
|
44
44
|
import "./chunk-MVOZ22RZ.js";
|
|
45
45
|
import "./chunk-WDWZPASX.js";
|
|
46
|
-
import "./chunk-
|
|
46
|
+
import "./chunk-VZCBYCHV.js";
|
|
47
47
|
import "./chunk-JFRJEPFI.js";
|
|
48
48
|
import {
|
|
49
49
|
applyImageConfigRuntimeOverride,
|
|
50
50
|
buildDynamicContexts,
|
|
51
51
|
buildForegroundTurnAdmissionFetchInit,
|
|
52
52
|
buildStaticContexts,
|
|
53
|
+
clearGateTurn,
|
|
53
54
|
compressOldToolResults,
|
|
54
55
|
consumeAgentRunStream,
|
|
55
|
-
createTurnActionGateReceiver,
|
|
56
56
|
mergeAgentToolsWithRuntime,
|
|
57
57
|
mergeContexts,
|
|
58
58
|
projectDesktopToolUiContent,
|
|
59
|
+
pushGate,
|
|
59
60
|
resolveImageGenerationStreamingState,
|
|
60
61
|
resolveTurnToolContext,
|
|
61
62
|
targetForRunKind,
|
|
62
63
|
validateAccessAndBalance,
|
|
63
64
|
withRequestContextBlocks
|
|
64
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-32WTED6G.js";
|
|
65
66
|
import {
|
|
66
67
|
resolveUserSkillRuntime
|
|
67
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-UR4ZMRV3.js";
|
|
68
69
|
import {
|
|
69
70
|
performServerProxyFetchWithRetry
|
|
70
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-XHG7QROB.js";
|
|
71
72
|
import {
|
|
72
73
|
createSSEParser,
|
|
73
74
|
waitForAbortableDelay
|
|
74
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-PGDM7AM2.js";
|
|
75
76
|
import "./chunk-NF64D32W.js";
|
|
76
|
-
import "./chunk-
|
|
77
|
-
import "./chunk-
|
|
77
|
+
import "./chunk-WMMKHEGQ.js";
|
|
78
|
+
import "./chunk-ZKMS73DK.js";
|
|
78
79
|
import "./chunk-VF4K2QE6.js";
|
|
79
80
|
import "./chunk-OLGFIQN2.js";
|
|
80
81
|
import "./chunk-CD64YXRB.js";
|
|
81
82
|
import "./chunk-AGIM7IMJ.js";
|
|
82
|
-
import "./chunk-
|
|
83
|
-
import "./chunk-
|
|
83
|
+
import "./chunk-VHMPJGT4.js";
|
|
84
|
+
import "./chunk-X6LYQDN5.js";
|
|
84
85
|
import {
|
|
85
86
|
addToolMessage,
|
|
86
87
|
addUserMessage,
|
|
@@ -102,11 +103,11 @@ import {
|
|
|
102
103
|
updateDialogSummaryAction,
|
|
103
104
|
updateTokens,
|
|
104
105
|
updateToolMessage
|
|
105
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-YQO5UKHP.js";
|
|
106
107
|
import "./chunk-TZXPT53C.js";
|
|
107
108
|
import "./chunk-BUDVRYES.js";
|
|
108
109
|
import "./chunk-523DITKR.js";
|
|
109
|
-
import "./chunk-
|
|
110
|
+
import "./chunk-AKWA6PCE.js";
|
|
110
111
|
import {
|
|
111
112
|
getCurrentSpaceId
|
|
112
113
|
} from "./chunk-FFFKAOJN.js";
|
|
@@ -186,13 +187,13 @@ import {
|
|
|
186
187
|
evaluateRequestBudget,
|
|
187
188
|
extractImageUrlsFromMessages,
|
|
188
189
|
stripImagePartsForTextOnlyAgent
|
|
189
|
-
} from "./chunk-
|
|
190
|
+
} from "./chunk-WMKA2DPK.js";
|
|
190
191
|
import {
|
|
191
192
|
projectUserPartForModel
|
|
192
193
|
} from "./chunk-2FK2KZSL.js";
|
|
193
194
|
import "./chunk-56GBUMO5.js";
|
|
194
|
-
import "./chunk-
|
|
195
|
-
import "./chunk-
|
|
195
|
+
import "./chunk-LXKK7QFI.js";
|
|
196
|
+
import "./chunk-CFDOIIOZ.js";
|
|
196
197
|
import "./chunk-KXOPLLFP.js";
|
|
197
198
|
import "./chunk-QJTZ76CP.js";
|
|
198
199
|
import {
|
|
@@ -207,12 +208,11 @@ import {
|
|
|
207
208
|
isContextOverflowText,
|
|
208
209
|
parseApiError
|
|
209
210
|
} from "./chunk-TLE77UJ5.js";
|
|
210
|
-
import "./chunk-
|
|
211
|
+
import "./chunk-CDIRKCPD.js";
|
|
211
212
|
import {
|
|
212
213
|
resolveAgentCallPlan,
|
|
213
214
|
resolveClientWire
|
|
214
215
|
} from "./chunk-VUHKG4KS.js";
|
|
215
|
-
import "./chunk-YDRRGVT5.js";
|
|
216
216
|
import {
|
|
217
217
|
resolveAgentContextWindow
|
|
218
218
|
} from "./chunk-LTVEOOZL.js";
|
|
@@ -243,7 +243,8 @@ import "./chunk-2SXN7LAY.js";
|
|
|
243
243
|
import "./chunk-G7Y4GXTY.js";
|
|
244
244
|
import "./chunk-6UBGXX2W.js";
|
|
245
245
|
import "./chunk-BV3FLP2L.js";
|
|
246
|
-
import "./chunk-
|
|
246
|
+
import "./chunk-75TXQ4GY.js";
|
|
247
|
+
import "./chunk-EUGTFFO6.js";
|
|
247
248
|
import "./chunk-AETZ7AD6.js";
|
|
248
249
|
import "./chunk-CO6E7YK6.js";
|
|
249
250
|
import "./chunk-KHCLMKZZ.js";
|
|
@@ -2060,7 +2061,27 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
|
|
|
2060
2061
|
let loopKey = null;
|
|
2061
2062
|
let runtimeDialogKey = explicitDialogKey ?? null;
|
|
2062
2063
|
let turnPhaseTurnId = null;
|
|
2063
|
-
const
|
|
2064
|
+
const secretGateTurnId = createDialogMessageKeyAndId("secret-gate").messageId;
|
|
2065
|
+
const secretGateAnchors = /* @__PURE__ */ new Set();
|
|
2066
|
+
const receiveActionGate = (gate, target, dialogId) => {
|
|
2067
|
+
const secret = gate.kind === "input" && gate.payload?.action === "secret_request";
|
|
2068
|
+
if (!secret || target?.kind === "local") {
|
|
2069
|
+
pushGate(gate, target);
|
|
2070
|
+
return;
|
|
2071
|
+
}
|
|
2072
|
+
const { messageId, key } = createDialogMessageKeyAndId(dialogId);
|
|
2073
|
+
secretGateAnchors.add(messageId);
|
|
2074
|
+
pushGate(gate, target, { dialogId, turnId: secretGateTurnId, messageId });
|
|
2075
|
+
dispatch(messageStreaming({
|
|
2076
|
+
id: messageId,
|
|
2077
|
+
dbKey: key,
|
|
2078
|
+
dialogId,
|
|
2079
|
+
role: "tool",
|
|
2080
|
+
toolName: "secret-request",
|
|
2081
|
+
content: "",
|
|
2082
|
+
isStreaming: true
|
|
2083
|
+
}));
|
|
2084
|
+
};
|
|
2064
2085
|
const batchExecution = createUserBatchExecution(loopController.signal, () => !thunkApi.signal.aborted && (!turnPhaseTurnId || !runtimeDialogKey || getDialogRuntimeState(runtimeDialogKey).turnPhaseTurnId === turnPhaseTurnId));
|
|
2065
2086
|
const workMemoryUserMessageId = (dialogId, activeId) => {
|
|
2066
2087
|
if (!activeId) return void 0;
|
|
@@ -4103,7 +4124,8 @@ ${info.actionHint}` : streamError;
|
|
|
4103
4124
|
);
|
|
4104
4125
|
} finally {
|
|
4105
4126
|
batchExecution.dispose();
|
|
4106
|
-
|
|
4127
|
+
clearGateTurn(secretGateTurnId);
|
|
4128
|
+
for (const id of secretGateAnchors) dispatch(removeTransientMessage(id));
|
|
4107
4129
|
clearDialogTurnPhase({ dialogKey: runtimeDialogKey ?? void 0, turnId: turnPhaseTurnId ?? void 0 });
|
|
4108
4130
|
if (loopKey && runtimeDialogKey) {
|
|
4109
4131
|
dispatch(removeActiveController({ messageId: loopKey, dialogKey: runtimeDialogKey }));
|
|
@@ -8,27 +8,27 @@ import {
|
|
|
8
8
|
toolQueryFunc,
|
|
9
9
|
toolQueryFunctionSchema,
|
|
10
10
|
toolRegistry
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-7IQA2VJF.js";
|
|
12
|
+
import "./chunk-KHVTT4WW.js";
|
|
13
13
|
import "./chunk-AMWMV56B.js";
|
|
14
14
|
import "./chunk-MVOZ22RZ.js";
|
|
15
15
|
import "./chunk-WDWZPASX.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-VZCBYCHV.js";
|
|
17
17
|
import "./chunk-JFRJEPFI.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-PGDM7AM2.js";
|
|
19
19
|
import "./chunk-NF64D32W.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-WMMKHEGQ.js";
|
|
21
|
+
import "./chunk-ZKMS73DK.js";
|
|
22
22
|
import "./chunk-VF4K2QE6.js";
|
|
23
23
|
import "./chunk-OLGFIQN2.js";
|
|
24
24
|
import "./chunk-CD64YXRB.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-VHMPJGT4.js";
|
|
26
|
+
import "./chunk-X6LYQDN5.js";
|
|
27
|
+
import "./chunk-YQO5UKHP.js";
|
|
28
28
|
import "./chunk-TZXPT53C.js";
|
|
29
29
|
import "./chunk-BUDVRYES.js";
|
|
30
30
|
import "./chunk-523DITKR.js";
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-AKWA6PCE.js";
|
|
32
32
|
import "./chunk-FFFKAOJN.js";
|
|
33
33
|
import "./chunk-BYXBJQAS.js";
|
|
34
34
|
import "./chunk-ARFCL53U.js";
|
|
@@ -61,11 +61,10 @@ import "./chunk-QQ56R7KS.js";
|
|
|
61
61
|
import "./chunk-PXYBUFDB.js";
|
|
62
62
|
import "./chunk-GBWGPTA7.js";
|
|
63
63
|
import "./chunk-JP2BH4NC.js";
|
|
64
|
-
import "./chunk-
|
|
64
|
+
import "./chunk-CFDOIIOZ.js";
|
|
65
65
|
import "./chunk-KXOPLLFP.js";
|
|
66
66
|
import "./chunk-QJTZ76CP.js";
|
|
67
|
-
import "./chunk-
|
|
68
|
-
import "./chunk-YDRRGVT5.js";
|
|
67
|
+
import "./chunk-CDIRKCPD.js";
|
|
69
68
|
import "./chunk-LTVEOOZL.js";
|
|
70
69
|
import "./chunk-5ZUL4CUO.js";
|
|
71
70
|
import "./chunk-MAA42MMV.js";
|
|
@@ -88,7 +87,8 @@ import {
|
|
|
88
87
|
TOOL_PACKS,
|
|
89
88
|
addDefaultLightWebToolsForConfiguredAgents,
|
|
90
89
|
applyDefaultWebToolPacks
|
|
91
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-75TXQ4GY.js";
|
|
91
|
+
import "./chunk-EUGTFFO6.js";
|
|
92
92
|
import "./chunk-AETZ7AD6.js";
|
|
93
93
|
import "./chunk-CO6E7YK6.js";
|
|
94
94
|
import "./chunk-KHCLMKZZ.js";
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
getRestartBlocker,
|
|
6
6
|
hasRestartBlockingRuns,
|
|
7
7
|
replaceTuiProcess
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-ZTWDSOXD.js";
|
|
9
|
+
import "./chunk-YWNCRUBZ.js";
|
|
10
10
|
import "./chunk-S25VJYXV.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-5BRVDQTX.js";
|
|
12
12
|
import "./chunk-EWQ3HGNZ.js";
|
|
13
13
|
import "./chunk-PSCNXBYA.js";
|
|
14
14
|
import "./chunk-6UBGXX2W.js";
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
} from "./chunk-Z4PCXPUE.js";
|
|
4
4
|
import {
|
|
5
5
|
updateContentTitle
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-X6LYQDN5.js";
|
|
7
7
|
import {
|
|
8
8
|
isAssistantToolStub,
|
|
9
9
|
selectAllMsgs
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-YQO5UKHP.js";
|
|
11
11
|
import "./chunk-TZXPT53C.js";
|
|
12
12
|
import {
|
|
13
13
|
require_format
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
} from "./chunk-523DITKR.js";
|
|
19
19
|
import {
|
|
20
20
|
runLlm
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-AKWA6PCE.js";
|
|
22
22
|
import "./chunk-FFFKAOJN.js";
|
|
23
23
|
import "./chunk-BYXBJQAS.js";
|
|
24
24
|
import "./chunk-ARFCL53U.js";
|
package/chunk-YDRRGVT5.js
DELETED
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
resolveBuiltinCapability,
|
|
3
|
-
resolveBuiltinSkillEntry
|
|
4
|
-
} from "./chunk-6MTVACLN.js";
|
|
5
|
-
import {
|
|
6
|
-
asTrimmedNonEmptyStringArray
|
|
7
|
-
} from "./chunk-I42VC5KR.js";
|
|
8
|
-
|
|
9
|
-
// packages/core/agentSkillModes.ts
|
|
10
|
-
var AGENT_SKILL_MODES = [
|
|
11
|
-
"required",
|
|
12
|
-
"recommended",
|
|
13
|
-
"disabled"
|
|
14
|
-
];
|
|
15
|
-
var isAgentSkillMode = (value) => typeof value === "string" && AGENT_SKILL_MODES.includes(value);
|
|
16
|
-
var collectInvalidAgentSkillModes = (skills) => {
|
|
17
|
-
if (!skills || typeof skills !== "object" || Array.isArray(skills)) return [];
|
|
18
|
-
const out = [];
|
|
19
|
-
for (const [slug, value] of Object.entries(skills)) {
|
|
20
|
-
if (value === null) continue;
|
|
21
|
-
if (!isAgentSkillMode(value)) out.push({ slug, value });
|
|
22
|
-
}
|
|
23
|
-
return out;
|
|
24
|
-
};
|
|
25
|
-
var describeAgentSkillModeValue = (value) => {
|
|
26
|
-
let text;
|
|
27
|
-
if (typeof value === "string") {
|
|
28
|
-
text = JSON.stringify(value.length > 40 ? `${value.slice(0, 40)}\u2026` : value);
|
|
29
|
-
} else if (value === void 0) {
|
|
30
|
-
text = "undefined";
|
|
31
|
-
} else {
|
|
32
|
-
try {
|
|
33
|
-
const serialized = JSON.stringify(value);
|
|
34
|
-
text = typeof serialized === "string" ? serialized : String(value);
|
|
35
|
-
} catch {
|
|
36
|
-
text = typeof value;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
return text.length > 60 ? `${text.slice(0, 60)}\u2026` : text;
|
|
40
|
-
};
|
|
41
|
-
var formatInvalidAgentSkillModeMessage = (invalid, allowed = AGENT_SKILL_MODES) => `Invalid agent skill mode for "${invalid.slug}": ${describeAgentSkillModeValue(invalid.value)}. Allowed values: ${allowed.join(", ")}.`;
|
|
42
|
-
var isAgentSkillModesFieldShapeValid = (skills) => {
|
|
43
|
-
if (skills === null || skills === void 0) return true;
|
|
44
|
-
return typeof skills === "object" && !Array.isArray(skills);
|
|
45
|
-
};
|
|
46
|
-
var formatInvalidAgentSkillModesFieldMessage = (allowed = AGENT_SKILL_MODES) => `Invalid agent skills field: expected an object mapping slug \u2192 mode (${allowed.join(" | ")}).`;
|
|
47
|
-
|
|
48
|
-
// packages/ai/tools/agentSkillConfig.ts
|
|
49
|
-
var MODES = AGENT_SKILL_MODES;
|
|
50
|
-
var DEFAULT_RECOMMENDED_SKILL_SLUGS = [
|
|
51
|
-
// `worktree-isolation` 已上移为系统层固定前置(agent-runtime/worktreeIsolationPrelude),
|
|
52
|
-
// 不再依赖「相关技能」提示行被发现,也不再是用户可关项——见 skillExploreDirectory 的
|
|
53
|
-
// PLATFORM_CORE_SKILL_SLUGS。注册表解析与 legacy 读取保留。
|
|
54
|
-
"systematic-investigation",
|
|
55
|
-
"show-me",
|
|
56
|
-
// 凭据管理:仓库已有 nolo secret(set/list/run/bind),但技能发现只扫
|
|
57
|
-
// `.agents/skills`,内置的 secrets-manager 不会出现在"可用技能"里。放进默认
|
|
58
|
-
// 提示名单让它至少以一行提示出现(不授工具、不放宽权限)。
|
|
59
|
-
"secrets-manager"
|
|
60
|
-
];
|
|
61
|
-
var asMode = (value) => typeof value === "string" && MODES.includes(value) ? value : null;
|
|
62
|
-
var resolveAgentSkillConfig = (source) => {
|
|
63
|
-
const out = {};
|
|
64
|
-
const skills = source?.skills;
|
|
65
|
-
if (skills && typeof skills === "object" && !Array.isArray(skills)) {
|
|
66
|
-
for (const [rawSlug, rawMode] of Object.entries(skills)) {
|
|
67
|
-
const slug = typeof rawSlug === "string" ? rawSlug.trim() : "";
|
|
68
|
-
const mode = asMode(rawMode);
|
|
69
|
-
if (slug && mode) out[slug] = mode;
|
|
70
|
-
}
|
|
71
|
-
return out;
|
|
72
|
-
}
|
|
73
|
-
for (const slug of asTrimmedNonEmptyStringArray(source?.enabledPacks) ?? []) {
|
|
74
|
-
out[slug] = "required";
|
|
75
|
-
}
|
|
76
|
-
return out;
|
|
77
|
-
};
|
|
78
|
-
var collectAgentSkillConfigIssues = (source) => {
|
|
79
|
-
const issues = [];
|
|
80
|
-
const skills = source?.skills;
|
|
81
|
-
if (skills === void 0 || skills === null) return issues;
|
|
82
|
-
if (typeof skills !== "object" || Array.isArray(skills)) {
|
|
83
|
-
issues.push({ slug: "", value: skills, reason: "invalid-skills-field" });
|
|
84
|
-
return issues;
|
|
85
|
-
}
|
|
86
|
-
for (const [rawSlug, rawMode] of Object.entries(skills)) {
|
|
87
|
-
const slug = rawSlug.trim();
|
|
88
|
-
if (!slug) {
|
|
89
|
-
issues.push({ slug: rawSlug, value: rawMode, reason: "invalid-slug" });
|
|
90
|
-
continue;
|
|
91
|
-
}
|
|
92
|
-
if (!isAgentSkillMode(rawMode)) {
|
|
93
|
-
issues.push({ slug, value: rawMode, reason: "invalid-mode" });
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
return issues;
|
|
97
|
-
};
|
|
98
|
-
var resolveAgentRequiredPackIds = (source) => {
|
|
99
|
-
const config = resolveAgentSkillConfig(source);
|
|
100
|
-
return Object.keys(config).filter((slug) => config[slug] === "required");
|
|
101
|
-
};
|
|
102
|
-
var resolveAgentRecommendedSkillNames = (source, lookup) => {
|
|
103
|
-
const config = resolveAgentSkillConfig(source);
|
|
104
|
-
const resolve = lookup ?? defaultSkillTitleLookup;
|
|
105
|
-
const seen = /* @__PURE__ */ new Set();
|
|
106
|
-
const out = [];
|
|
107
|
-
const push = (slug) => {
|
|
108
|
-
const title = resolve(slug)?.title || slug;
|
|
109
|
-
if (seen.has(title)) return;
|
|
110
|
-
seen.add(title);
|
|
111
|
-
out.push(title);
|
|
112
|
-
};
|
|
113
|
-
for (const slug of Object.keys(config)) {
|
|
114
|
-
if (config[slug] !== "recommended") continue;
|
|
115
|
-
push(slug);
|
|
116
|
-
}
|
|
117
|
-
for (const slug of DEFAULT_RECOMMENDED_SKILL_SLUGS) {
|
|
118
|
-
if (Object.hasOwn(config, slug)) continue;
|
|
119
|
-
push(slug);
|
|
120
|
-
}
|
|
121
|
-
return out;
|
|
122
|
-
};
|
|
123
|
-
var defaultSkillTitleLookup = (slug) => {
|
|
124
|
-
const cap = resolveBuiltinCapability(slug);
|
|
125
|
-
if (cap) return { title: cap.title };
|
|
126
|
-
const skill = resolveBuiltinSkillEntry(slug);
|
|
127
|
-
return skill ? { title: skill.title } : null;
|
|
128
|
-
};
|
|
129
|
-
var isAgentSkillDisabled = (source, slug) => resolveAgentSkillConfig(source)[slug] === "disabled";
|
|
130
|
-
|
|
131
|
-
export {
|
|
132
|
-
collectInvalidAgentSkillModes,
|
|
133
|
-
describeAgentSkillModeValue,
|
|
134
|
-
formatInvalidAgentSkillModeMessage,
|
|
135
|
-
isAgentSkillModesFieldShapeValid,
|
|
136
|
-
formatInvalidAgentSkillModesFieldMessage,
|
|
137
|
-
resolveAgentSkillConfig,
|
|
138
|
-
collectAgentSkillConfigIssues,
|
|
139
|
-
resolveAgentRequiredPackIds,
|
|
140
|
-
resolveAgentRecommendedSkillNames,
|
|
141
|
-
isAgentSkillDisabled
|
|
142
|
-
};
|