nolo-cli 0.231.0-alpha.1 → 0.240.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-7V3NSK4W.js → _executeModel-5NA4USGG.js} +56 -51
- package/{action-GDZDXPMB.js → action-X75O3XPH.js} +7 -4
- package/{addContentAction-7RO4AMRI.js → addContentAction-GVC77QSN.js} +9 -8
- package/{addDialogAgentAction-EVYBGTXB.js → addDialogAgentAction-KKDVAMW3.js} +12 -11
- package/{agentDeleteCommand-MD76OMLN.js → agentDeleteCommand-2RFGKFAB.js} +77 -69
- package/{agentEmailCommands-T4TW4IBX.js → agentEmailCommands-GQCQKKOR.js} +84 -72
- package/{agentListCommands-4WLG32IW.js → agentListCommands-HSGLDPDQ.js} +40 -47
- package/{agentMachineCommands-LSDGA5WR.js → agentMachineCommands-BISF6PVV.js} +26 -22
- package/{agentProviderCommands-STI3DQ6A.js → agentProviderCommands-O3Q25PKU.js} +2 -2
- package/{agentPullCommand-KHV4EELF.js → agentPullCommand-G6U2LHMW.js} +1 -1
- package/{agentRecordCommands-7TEX2B7Y.js → agentRecordCommands-AOXPGYAJ.js} +79 -67
- package/{agentRunCommand-23SMDVDW.js → agentRunCommand-YTZJCRAL.js} +85 -72
- package/{agentRunControl-MBG4U6SL.js → agentRunControl-VBL7UFSG.js} +1 -1
- package/{agentRuntimeLocal-HOXKWCYO.js → agentRuntimeLocal-T7BX2WGL.js} +24 -19
- package/{agentSlice-AATYVDP6.js → agentSlice-XJNKE3PG.js} +10 -9
- package/{appDeleteCommands-WWCC6WA5.js → appDeleteCommands-LURUSPY7.js} +27 -23
- package/{appDeployCommands-AU4IUN33.js → appDeployCommands-SMEW4AK2.js} +27 -23
- package/{appDeployStatusCommands-STUW7WXL.js → appDeployStatusCommands-VYPJTBJK.js} +27 -23
- package/{appGetCommands-BGTLIQ4K.js → appGetCommands-N4NI5GGJ.js} +27 -23
- package/{appListCommands-CUCPRUXW.js → appListCommands-5C6ONN3Z.js} +27 -23
- package/{authCommand-3SUYUNQV.js → authCommand-4CVBDADE.js} +15 -13
- package/{authCommands-BLE7ETZH.js → authCommands-EHU2BHOX.js} +7 -5
- package/{builtinSkillRegistry-BAE2LDXF.js → builtinSkillRegistry-AYWYQVA4.js} +3 -3
- package/{chromeOpsCommands-WAA45NCS.js → chromeOpsCommands-CSDG2HYN.js} +1 -1
- package/{chunk-HHFGE2WF.js → chunk-2574ANSV.js} +1 -1
- package/chunk-2SXN7LAY.js +15 -0
- package/{chunk-S6FDXXZV.js → chunk-3EMIEC27.js} +1 -1
- package/{chunk-EXNV7CCV.js → chunk-3FBAVU2Y.js} +11 -9
- package/{chunk-ZH3KXFHS.js → chunk-4FIO2S7Z.js} +1 -1
- package/{chunk-U4FF7LRY.js → chunk-4IQVE43Z.js} +30 -26
- package/{chunk-VQ5N5GSV.js → chunk-4Q6HQORG.js} +1 -1
- package/{chunk-P2ZLUIW2.js → chunk-4X5AVCM7.js} +94 -4
- package/chunk-4ZCTKB27.js +31 -0
- package/{chunk-42OKN2LI.js → chunk-5HUO7SEX.js} +9 -107
- package/{chunk-QYB23WUH.js → chunk-5QZSEQSK.js} +1 -1
- package/{chunk-7JGMNKKG.js → chunk-6CKUO32A.js} +8 -0
- package/chunk-6D25V6CB.js +133 -0
- package/{chunk-LHN7NIQZ.js → chunk-6WOLPIPY.js} +93 -90
- package/{chunk-6QHKRARD.js → chunk-6WZVM33D.js} +9 -4
- package/{chunk-NVEYEKN3.js → chunk-7AJRJGSQ.js} +254 -359
- package/chunk-7NIBQ4HY.js +138 -0
- package/{chunk-7Z6EW7AH.js → chunk-7TTMMOKH.js} +13 -6
- package/{chunk-GXZ5LB7H.js → chunk-A3LUWRQK.js} +4 -4
- package/{chunk-4ZGPHFLE.js → chunk-A5EVA6HU.js} +2 -2
- package/{chunk-3ING4D5X.js → chunk-AEQMKYZN.js} +4 -4
- package/{chunk-FFSPUVL5.js → chunk-AH5R7BYW.js} +6 -166
- package/{chunk-7FEP5USX.js → chunk-ANJRDS6U.js} +3 -3
- package/{chunk-YFLVRVYK.js → chunk-AVJDELEA.js} +1 -1
- package/{chunk-HYLRQDEE.js → chunk-B5SV4H3J.js} +6 -6
- package/{chunk-KUOMUZH6.js → chunk-B7DE5XJW.js} +137 -290
- package/chunk-BEM6LPD2.js +734 -0
- package/{chunk-DUUDXSLX.js → chunk-BGGAY6OK.js} +27 -3
- package/{chunk-YCFP57LH.js → chunk-BGGV6B5O.js} +408 -230
- package/{chunk-BP5ZJ6B4.js → chunk-BIABIPGW.js} +1 -1
- package/{chunk-TQEKUOTI.js → chunk-BXSMFPTG.js} +4 -4
- package/{chunk-RG2DGNL6.js → chunk-CKZPMJNU.js} +3 -3
- package/{chunk-WU443D7A.js → chunk-CVJRVBJL.js} +2 -2
- package/{chunk-BIWI5M4E.js → chunk-D374I563.js} +1 -1
- package/{chunk-QRGDJA4B.js → chunk-DNZ4JJ7C.js} +1 -1
- package/chunk-DVYAFH2Q.js +103 -0
- package/{chunk-FTMFO6LI.js → chunk-DXW5WDHZ.js} +4 -4
- package/{chunk-ZTR65O4L.js → chunk-E5KJOZWY.js} +3 -3
- package/{chunk-57TLKTVZ.js → chunk-E5KY7RAY.js} +565 -103
- package/{chunk-G7IUT2V3.js → chunk-EBKHA63G.js} +103 -12
- package/{chunk-DGYCDA6W.js → chunk-F3XI6WQP.js} +17 -10
- package/{chunk-M3OZRQNH.js → chunk-F6YWDVIB.js} +1 -1
- package/{chunk-PR2LAQAC.js → chunk-FFYE5ATM.js} +4 -4
- package/{chunk-6NNDUDAZ.js → chunk-FZKA3XFA.js} +11 -11
- package/{chunk-MNEZUL5S.js → chunk-G22P367E.js} +31 -14
- package/{chunk-6OQMSPB7.js → chunk-GDUC4VS2.js} +7 -7
- package/{chunk-R6Z5S5GA.js → chunk-GXXY2NL3.js} +16 -14
- package/{chunk-U2HBB7RS.js → chunk-H7ZYKHAZ.js} +27 -7
- package/{chunk-3U44JB3O.js → chunk-HCNOO374.js} +1 -1
- package/{chunk-HSSBDZLD.js → chunk-HOM6LTEW.js} +1 -1
- package/{chunk-S2NTVGA2.js → chunk-I2OYPD3Y.js} +1 -1
- package/{chunk-TPG2DPN2.js → chunk-IJTXNLQE.js} +9 -9
- package/{chunk-ALAES342.js → chunk-IUMS6F53.js} +2 -2
- package/{chunk-547ENH5T.js → chunk-IUTUWIKE.js} +2 -2
- package/{chunk-S6K5F3KP.js → chunk-JBWXPACD.js} +1 -1
- package/{chunk-XAG3FWBE.js → chunk-KZPEGO6D.js} +1 -1
- package/{chunk-RBPUNSG5.js → chunk-LYDEFPQP.js} +18 -108
- package/{chunk-OWKNSIXL.js → chunk-MECDGHLK.js} +271 -66
- package/{chunk-FJSNBZXR.js → chunk-MM73SP4K.js} +1 -1
- package/{chunk-XSW4EXQV.js → chunk-MYOSN6BT.js} +2 -2
- package/{chunk-ZEVQHCLM.js → chunk-MYPKBJJO.js} +2 -2
- package/{chunk-DBUR22G5.js → chunk-N2JROHD3.js} +4 -4
- package/{chunk-ATEKLSLR.js → chunk-O6IPRAVV.js} +14 -9
- package/{chunk-PPJYZRSQ.js → chunk-OX6GNNVT.js} +6 -1
- package/{chunk-WFVASLQT.js → chunk-P3IZUMIC.js} +1 -1
- package/{chunk-FPBJM2BW.js → chunk-PGKA77TZ.js} +26 -20
- package/{chunk-IONGMVPY.js → chunk-PRMEU7BT.js} +229 -7
- package/{chunk-OJ45MEEI.js → chunk-PROOOQZ3.js} +1 -1
- package/{chunk-4I2MXV5Q.js → chunk-PVFYPUIM.js} +2 -0
- package/{chunk-5FUN7EG4.js → chunk-RD3QLZQV.js} +83 -47
- package/chunk-RETQOQ4D.js +33394 -0
- package/{chunk-CMMI3DAT.js → chunk-RM4UMFY4.js} +33 -26
- package/{chunk-262R3XNN.js → chunk-S2MHR4PU.js} +151 -5
- package/{chunk-DEA37IUY.js → chunk-T6VROBY7.js} +2 -2
- package/{chunk-M4SFKP5L.js → chunk-TEMLHVGX.js} +1 -1
- package/{chunk-3QIYD3VM.js → chunk-TRHJ4NJB.js} +61 -792
- package/{chunk-OBIC6EG7.js → chunk-TWTJV35S.js} +1 -1
- package/{chunk-TCZ2VJZQ.js → chunk-U3G7RRXJ.js} +5 -5
- package/{chunk-F6Z6ZCUV.js → chunk-UFC4J7OY.js} +3 -3
- package/{chunk-5YMA6DDZ.js → chunk-UHW6SCVK.js} +1 -1
- package/{chunk-4N6G2CKP.js → chunk-ULLHVDTZ.js} +46 -1
- package/{chunk-XFXFPUO7.js → chunk-VM72HKW2.js} +7 -7
- package/{chunk-MHHLABT3.js → chunk-VREG6ANQ.js} +102 -99
- package/chunk-VSRISJXZ.js +107 -0
- package/chunk-WDWZPASX.js +29 -0
- package/{chunk-ILHQ2AXT.js → chunk-WRKMXMU7.js} +2 -0
- package/chunk-X7IA2B7R.js +166 -0
- package/{chunk-5ZMIIR23.js → chunk-XBAEM4RI.js} +7 -0
- package/{chunk-4JVNURX4.js → chunk-XS5A3EKX.js} +1 -23
- package/{chunk-N5Z2V73W.js → chunk-Y2MF4DCJ.js} +1 -1
- package/{chunk-KUDCKVYQ.js → chunk-Y5OWZQMJ.js} +28 -19
- package/{chunk-TI2EPRHE.js → chunk-YGCOJNFZ.js} +3 -3
- package/{chunk-JQZRSXS5.js → chunk-YGDYYFRX.js} +9 -13
- package/{chunk-X7QAIY5B.js → chunk-Z2WZAE4P.js} +128 -150
- package/chunk-Z6YTCDU4.js +24 -0
- package/{chunk-RRDRQOEC.js → chunk-ZEKUFJLW.js} +81 -66
- package/{chunk-EVGU5P4U.js → chunk-ZVOL2MAJ.js} +1 -1
- package/{cliAgentConfigHelpers-BTRHMPW2.js → cliAgentConfigHelpers-U5OAVAKQ.js} +2 -2
- package/{cliAuthorityBrokerClient-XHH7MH2P.js → cliAuthorityBrokerClient-S42VMGB6.js} +1 -1
- package/{cliLocalAgentRecordReader-H3HYQRRR.js → cliLocalAgentRecordReader-HVZAQCUD.js} +29 -25
- package/{commandRegistry-35EMLPIZ.js → commandRegistry-FIXBZJHE.js} +89 -85
- package/{contentThunks-BCNMGA5J.js → contentThunks-U6OC4R2N.js} +23 -22
- package/{cooldownCommands-YB5H5BBK.js → cooldownCommands-U7XSRVJP.js} +1 -1
- package/{createAgentAutomationAction-HEU4KOYF.js → createAgentAutomationAction-IP4LFN3W.js} +23 -22
- package/{createDialogAction-5DSL5ESZ.js → createDialogAction-IAGQJ3LH.js} +24 -23
- package/{createPageAction-BBZ25AFI.js → createPageAction-AZ3UIFKA.js} +24 -23
- package/{dbSlice-XRUZOGSU.js → dbSlice-DKKMJJYY.js} +8 -7
- package/{deleteFile-6URDHYRB.js → deleteFile-TQSONMVU.js} +7 -4
- package/{dialogCommands-6SZD4TYP.js → dialogCommands-PCDRMBWG.js} +30 -26
- package/dialogMessageRecord-OAV77LT7.js +7 -0
- package/{dialogNotifyCommand-SHGPCU22.js → dialogNotifyCommand-O35MWMOS.js} +3 -3
- package/{dialogSlice-QJ5PQOM3.js → dialogSlice-QAKYN4DE.js} +22 -21
- package/{dialogUsageCommand-W2WCSGKF.js → dialogUsageCommand-2SSLTXKO.js} +2 -2
- package/{docCreateCommands-25E6PGN3.js → docCreateCommands-CFQFZOAD.js} +26 -22
- package/{docDeleteCommands-F7ZVGEHW.js → docDeleteCommands-5CPNTIIS.js} +27 -23
- package/{docReadCommands-JY2E5XEN.js → docReadCommands-XQILYSAJ.js} +26 -22
- package/{docStore-XJ4UMU3C.js → docStore-GIVRT7TQ.js} +10 -9
- package/{docUpdateCommands-OZ4CUSIQ.js → docUpdateCommands-VETKSUDD.js} +26 -22
- package/{handleSendMessageAction-YHAOXARI.js → handleSendMessageAction-HKIW4ZNO.js} +48 -45
- package/{hostCredentialCreate-62AWCBQC.js → hostCredentialCreate-6VDJFNDO.js} +81 -68
- package/index.js +8 -8
- package/{lib-OT5OTXRU.js → lib-62SWPXNF.js} +3 -7
- package/{localRuntimeAdapter-KNQNNHUM.js → localRuntimeAdapter-BQ4F5PZV.js} +81 -69
- package/{localRuntimeAuthority-IBJAT62G.js → localRuntimeAuthority-WCNA4A3G.js} +4 -2
- package/{localRuntimeDb-N7KHDXS2.js → localRuntimeDb-CRNIBOOM.js} +1 -1
- package/{machineCommands-X2FMPSV4.js → machineCommands-K6XIGOAD.js} +77 -65
- package/{machineWsRunDispatch-XHTPOYVJ.js → machineWsRunDispatch-4OO7Z6UM.js} +77 -65
- package/mcpLocalAuthorizeCommand-ZP6ESAGE.js +106 -0
- package/{memberThunks-7Y3OYSJQ.js → memberThunks-PBJPZ2JU.js} +15 -10
- package/{overlay-BBQZXGYI.js → overlay-JA3SPVUS.js} +5 -3
- package/package.json +1 -1
- package/{projectArchive-NPQ3YOAV.js → projectArchive-G7AOQPRW.js} +24 -23
- package/{providerPresetApply-WHAMP2D5.js → providerPresetApply-OPBCAONX.js} +1 -1
- package/{providerRegistry-ZI2KORJ7.js → providerRegistry-J2HCVTHE.js} +1 -1
- package/{read-TYMBGEXO.js → read-JEGPITEW.js} +6 -5
- package/{readDocTool-SKQVHBLO.js → readDocTool-TE3XIU4Y.js} +1 -1
- package/{readlineWorkspace-77PILYDH.js → readlineWorkspace-XMPGXR77.js} +2935 -2376
- package/{removeDialogAgentAction-F5QE2O2B.js → removeDialogAgentAction-CX3OAH4Y.js} +14 -13
- package/{runAgentClientLoop-XNKAXUKU.js → runAgentClientLoop-HQJPDFGQ.js} +65 -45
- package/{runtimeDoctorCommands-RRKPBGVO.js → runtimeDoctorCommands-GUH2YGMH.js} +3 -3
- package/{secretCommands-KZWBZIYS.js → secretCommands-NJXFVHZU.js} +2 -2
- package/{setDialogExtraReferencesAction-72L27ERM.js → setDialogExtraReferencesAction-CGM67EEQ.js} +11 -10
- package/{setPrimaryDialogAgentAction-GJJDUSGJ.js → setPrimaryDialogAgentAction-3ABWPPXR.js} +14 -13
- package/{settingThunks-ZRGWVGZD.js → settingThunks-AY76OHYX.js} +176 -57
- package/{skillDiscovery-BHHPCUHZ.js → skillDiscovery-MDDKPTW3.js} +4 -3
- package/{spaceCommands-TOGSGCPS.js → spaceCommands-G63QGYQO.js} +25 -21
- package/{streamAgentChatTurn-IARUEZPU.js → streamAgentChatTurn-E3XH2KFD.js} +127 -85
- package/{switchDialogAgentAction-IIJBPND3.js → switchDialogAgentAction-G6EZRKCQ.js} +12 -11
- package/{tableCommands-FTAOCBTX.js → tableCommands-JI75ZHDI.js} +4 -1
- package/{toolApiClient-OGQEBQVX.js → toolApiClient-62UUPDUA.js} +3 -5
- package/{tools-5UWS65PB.js → tools-7RSX22FT.js} +41 -37
- package/{tuiRestart-2IL37YIB.js → tuiRestart-KAAA7TND.js} +2 -2
- package/{tuiSummaryLlmCaller-R4H3ZZ52.js → tuiSummaryLlmCaller-BVNHMWLR.js} +5 -5
- package/{updateCommands-CPATDG6J.js → updateCommands-ASK5XYPH.js} +3 -3
- package/{updateDialogTitleAction-G6C6XVNV.js → updateDialogTitleAction-SEWV252V.js} +23 -22
- package/{usageCommand-2BF74MKF.js → usageCommand-JVT5J3DC.js} +2 -2
- package/{usageRebuildCommand-UHB55BQM.js → usageRebuildCommand-IZYYUTEW.js} +3 -3
- package/webapi-24RZDIIQ.js +2488 -0
- package/{windowsSelfUpdate-ZFD6J5HF.js → windowsSelfUpdate-BSDIS2J5.js} +2 -2
- package/workContext-MM3P5GP5.js +13 -0
- package/workContextAccess-UZHDLBUR.js +11 -0
- package/workContextWriteNotice-YCSSMHN4.js +7 -0
- package/chunk-ZXF6D3I6.js +0 -359
- package/{accountResolver-QETKNC7T.js → accountResolver-EK2S4PWF.js} +3 -3
- package/{localDialogRead-CCOCVGAP.js → localDialogRead-AV2VKKPG.js} +0 -0
- package/{workloadLifecycle-HFJIN5IZ.js → workloadLifecycle-YIZ7KLUP.js} +5 -5
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
// packages/agent-runtime/mcpConnectionSpecs.ts
|
|
2
|
+
var MCP_TOOL_NAMES = Object.freeze(["listMcpConnections", "listMcpTools", "callMcpTool"]);
|
|
3
|
+
var failure = (code) => ({ ok: false, error: { code } });
|
|
4
|
+
function sameMcpPlacement(a, b) {
|
|
5
|
+
return a.kind === b.kind && (a.kind !== "machine" || b.kind === "machine" && a.machineId === b.machineId);
|
|
6
|
+
}
|
|
7
|
+
function freezeSchema(value) {
|
|
8
|
+
for (const child of Object.values(value)) if (child && typeof child === "object") freezeSchema(child);
|
|
9
|
+
return Object.freeze(value);
|
|
10
|
+
}
|
|
11
|
+
var text = (maxLength) => ({ type: "string", minLength: 1, maxLength, pattern: "^[^\\u0000-\\u001f\\u007f]+$" });
|
|
12
|
+
var idSchema = { ...text(128), pattern: "^[A-Za-z0-9][A-Za-z0-9_.:-]{0,127}$" };
|
|
13
|
+
var refSchema = { ...text(128), pattern: "^[A-Za-z0-9][A-Za-z0-9_:-]{0,127}$" };
|
|
14
|
+
var revisionSchema = { type: "integer", minimum: 1, maximum: Number.MAX_SAFE_INTEGER };
|
|
15
|
+
var objectSchema = (properties, required = Object.keys(properties)) => ({ type: "object", properties, required, additionalProperties: false });
|
|
16
|
+
var placements = { type: "object", required: ["kind"], properties: { kind: { const: "local" } }, additionalProperties: false };
|
|
17
|
+
var MCP_CONNECTION_WRITE_SCHEMA = {
|
|
18
|
+
type: "object",
|
|
19
|
+
required: ["schemaVersion", "label", "enabled", "placement", "transport", "auth", "allowedToolNames", "readPolicies"],
|
|
20
|
+
properties: {
|
|
21
|
+
schemaVersion: { const: 1 },
|
|
22
|
+
label: { type: "string", minLength: 1, maxLength: 160, pattern: "^[^:/\\\\\\r\\n]+$" },
|
|
23
|
+
enabled: { type: "boolean" },
|
|
24
|
+
presetId: { enum: ["zoho-mail"] },
|
|
25
|
+
placement: placements,
|
|
26
|
+
allowedToolNames: { type: "array", maxItems: 256, items: text(160) },
|
|
27
|
+
readPolicies: { type: "array", maxItems: 256, items: { type: "object", required: ["toolName", "arguments"], properties: { toolName: text(160), arguments: { type: "object", maxProperties: 128, additionalProperties: { type: "array", maxItems: 256 } } }, additionalProperties: false } },
|
|
28
|
+
transport: { type: "object", required: ["kind", "endpointRef"], properties: { kind: { const: "streamable-http" }, endpointRef: refSchema }, additionalProperties: false },
|
|
29
|
+
auth: { oneOf: [{ type: "object", required: ["kind"], properties: { kind: { const: "oauth" } }, additionalProperties: false }, { type: "object", required: ["kind"], properties: { kind: { const: "none" } }, additionalProperties: false }, { type: "object", required: ["kind", "credentialRef"], properties: { kind: { const: "bearer" }, credentialRef: refSchema }, additionalProperties: false }] }
|
|
30
|
+
},
|
|
31
|
+
additionalProperties: false
|
|
32
|
+
};
|
|
33
|
+
var MCP_CONNECTION_UPDATE_SCHEMA = freezeSchema(objectSchema({
|
|
34
|
+
connectionId: idSchema,
|
|
35
|
+
expectedRevision: revisionSchema,
|
|
36
|
+
connection: MCP_CONNECTION_WRITE_SCHEMA
|
|
37
|
+
}));
|
|
38
|
+
var MCP_LIST_TOOLS_INPUT_SCHEMA = freezeSchema(objectSchema({
|
|
39
|
+
connectionId: idSchema,
|
|
40
|
+
expectedRevision: revisionSchema,
|
|
41
|
+
cursor: text(2048)
|
|
42
|
+
}, ["connectionId", "expectedRevision"]));
|
|
43
|
+
var MCP_CALL_TOOL_INPUT_SCHEMA = freezeSchema(objectSchema({
|
|
44
|
+
connectionId: idSchema,
|
|
45
|
+
expectedRevision: revisionSchema,
|
|
46
|
+
catalogRevision: idSchema,
|
|
47
|
+
toolName: text(256),
|
|
48
|
+
arguments: { type: "object", additionalProperties: {} }
|
|
49
|
+
}));
|
|
50
|
+
function isRecord(value) {
|
|
51
|
+
if (value === null || typeof value !== "object" || Array.isArray(value)) return false;
|
|
52
|
+
return Object.getPrototypeOf(value) === Object.prototype || Object.getPrototypeOf(value) === null;
|
|
53
|
+
}
|
|
54
|
+
function matches(schema, value) {
|
|
55
|
+
if (schema.oneOf && schema.oneOf.filter((branch) => matches(branch, value)).length !== 1) return false;
|
|
56
|
+
if (schema.const !== void 0 && value !== schema.const) return false;
|
|
57
|
+
if (schema.enum && (typeof value !== "string" || !schema.enum.includes(value))) return false;
|
|
58
|
+
switch (schema.type) {
|
|
59
|
+
case "string":
|
|
60
|
+
return typeof value === "string" && value.length >= (schema.minLength ?? 0) && value.length <= (schema.maxLength ?? Infinity) && (!schema.pattern || new RegExp(schema.pattern, "u").test(value));
|
|
61
|
+
case "integer":
|
|
62
|
+
return typeof value === "number" && Number.isSafeInteger(value) && value >= (schema.minimum ?? -Infinity) && value <= (schema.maximum ?? Infinity);
|
|
63
|
+
case "boolean":
|
|
64
|
+
return typeof value === "boolean";
|
|
65
|
+
case "array":
|
|
66
|
+
return Array.isArray(value) && value.length <= (schema.maxItems ?? Infinity) && value.every((item) => !schema.items || matches(schema.items, item));
|
|
67
|
+
case "object": {
|
|
68
|
+
if (!isRecord(value) || Object.keys(value).length > (schema.maxProperties ?? Infinity)) return false;
|
|
69
|
+
if (schema.required?.some((key) => !Object.hasOwn(value, key))) return false;
|
|
70
|
+
return Object.entries(value).every(([key, entry]) => {
|
|
71
|
+
if (schema.propertyNames && !matches(schema.propertyNames, key)) return false;
|
|
72
|
+
const property = schema.properties && Object.hasOwn(schema.properties, key) ? schema.properties[key] : schema.additionalProperties;
|
|
73
|
+
return property === void 0 || property === false ? property !== false : matches(property, entry);
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
default:
|
|
77
|
+
return true;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
function isBoundedJson(value, depth = 0, budget = { nodes: 0, chars: 0 }) {
|
|
81
|
+
if (++budget.nodes > 1e4 || depth > 32) return false;
|
|
82
|
+
if (typeof value === "string") return (budget.chars += value.length) <= 262144;
|
|
83
|
+
if (value === null || typeof value === "boolean") return true;
|
|
84
|
+
if (typeof value === "number") return Number.isFinite(value);
|
|
85
|
+
if (!Array.isArray(value) && !isRecord(value)) return false;
|
|
86
|
+
return Object.entries(Object.getOwnPropertyDescriptors(value)).every(([key, descriptor]) => {
|
|
87
|
+
if (Array.isArray(value) && key === "length") return true;
|
|
88
|
+
if (["__proto__", "prototype", "constructor"].includes(key) || !Object.hasOwn(descriptor, "value")) return false;
|
|
89
|
+
budget.chars += key.length;
|
|
90
|
+
return budget.chars <= 262144 && isBoundedJson(descriptor.value, depth + 1, budget);
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
function parse(schema, value) {
|
|
94
|
+
if (!isBoundedJson(value) || !matches(schema, value)) return failure("invalid_input");
|
|
95
|
+
return { ok: true, value: JSON.parse(JSON.stringify(value)) };
|
|
96
|
+
}
|
|
97
|
+
function parseMcpConnectionWrite(value) {
|
|
98
|
+
const parsed = parse(MCP_CONNECTION_WRITE_SCHEMA, value);
|
|
99
|
+
if (!parsed.ok) {
|
|
100
|
+
if (isRecord(value) && Object.getOwnPropertyDescriptor(value, "schemaVersion")?.value !== void 0 && Object.getOwnPropertyDescriptor(value, "schemaVersion")?.value !== 1) return failure("unsupported_version");
|
|
101
|
+
return parsed;
|
|
102
|
+
}
|
|
103
|
+
const connection = parsed.value;
|
|
104
|
+
if (new Set(connection.allowedToolNames).size !== connection.allowedToolNames.length || new Set(connection.readPolicies.map((p) => p.toolName)).size !== connection.readPolicies.length || connection.readPolicies.some((p) => !connection.allowedToolNames.includes(p.toolName))) return failure("invalid_input");
|
|
105
|
+
return parsed;
|
|
106
|
+
}
|
|
107
|
+
function parseMcpListToolsInput(value) {
|
|
108
|
+
return parse(MCP_LIST_TOOLS_INPUT_SCHEMA, value);
|
|
109
|
+
}
|
|
110
|
+
function parseMcpCallToolInput(value) {
|
|
111
|
+
return parse(MCP_CALL_TOOL_INPUT_SCHEMA, value);
|
|
112
|
+
}
|
|
113
|
+
function toMcpConnectionSummary(connection) {
|
|
114
|
+
return {
|
|
115
|
+
schemaVersion: 1,
|
|
116
|
+
id: connection.id,
|
|
117
|
+
label: connection.label,
|
|
118
|
+
enabled: connection.enabled,
|
|
119
|
+
revision: connection.revision,
|
|
120
|
+
...connection.presetId ? { presetId: connection.presetId } : {},
|
|
121
|
+
placement: connection.placement.kind === "machine" ? { kind: "machine", machineId: connection.placement.machineId } : { kind: connection.placement.kind },
|
|
122
|
+
transportKind: connection.transport.kind,
|
|
123
|
+
authKind: connection.auth.kind,
|
|
124
|
+
endpointConfigured: true,
|
|
125
|
+
credentialConfigured: connection.auth.kind === "bearer"
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export {
|
|
130
|
+
MCP_TOOL_NAMES,
|
|
131
|
+
sameMcpPlacement,
|
|
132
|
+
MCP_LIST_TOOLS_INPUT_SCHEMA,
|
|
133
|
+
MCP_CALL_TOOL_INPUT_SCHEMA,
|
|
134
|
+
parseMcpConnectionWrite,
|
|
135
|
+
parseMcpListToolsInput,
|
|
136
|
+
parseMcpCallToolInput,
|
|
137
|
+
toMcpConnectionSummary
|
|
138
|
+
};
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
googleSessionRequestToken,
|
|
3
|
+
isGoogleAuthoritySession
|
|
4
|
+
} from "./chunk-ULLHVDTZ.js";
|
|
1
5
|
import {
|
|
2
6
|
selectIdentityToken
|
|
3
7
|
} from "./chunk-PXYBUFDB.js";
|
|
@@ -2191,17 +2195,17 @@ var logRequestFailure = (level, message) => {
|
|
|
2191
2195
|
console.error(message);
|
|
2192
2196
|
};
|
|
2193
2197
|
var noloRequest = async (server, config, state, signal) => {
|
|
2194
|
-
const headers = config.headers || {
|
|
2195
|
-
"Content-Type": "application/json"
|
|
2196
|
-
};
|
|
2198
|
+
const headers = { ...config.headers || { "Content-Type": "application/json" } };
|
|
2197
2199
|
const token = selectIdentityToken(state) ?? null;
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
+
const requestToken = googleSessionRequestToken(token ?? void 0, server);
|
|
2201
|
+
if (requestToken) {
|
|
2202
|
+
headers["Authorization"] = `Bearer ${requestToken}`;
|
|
2200
2203
|
}
|
|
2201
2204
|
return fetch(server + config.url, {
|
|
2202
2205
|
method: config.method || "GET",
|
|
2203
2206
|
headers,
|
|
2204
2207
|
body: config.body,
|
|
2208
|
+
...isGoogleAuthoritySession(token) ? { credentials: "omit", redirect: "error" } : {},
|
|
2205
2209
|
signal,
|
|
2206
2210
|
// 传递 AbortSignal
|
|
2207
2211
|
...config.keepalive ? { keepalive: true } : {}
|
|
@@ -2302,7 +2306,9 @@ var xhrUploadRequest = (url, formData, state, onProgress, signal) => new Promise
|
|
|
2302
2306
|
});
|
|
2303
2307
|
var noloUploadRequest = async (server, uploadConfig, state, signal, onProgress) => {
|
|
2304
2308
|
const { file, metadata, customKey, userId } = uploadConfig;
|
|
2309
|
+
const googleSession = isGoogleAuthoritySession(selectIdentityToken(state));
|
|
2305
2310
|
try {
|
|
2311
|
+
googleSessionRequestToken(selectIdentityToken(state) ?? void 0, server);
|
|
2306
2312
|
const isReactNative = typeof navigator !== "undefined" && navigator.product === "ReactNative";
|
|
2307
2313
|
const isRNFile = (f) => f && typeof f.uri === "string" && typeof f.name === "string" && typeof f.type === "string";
|
|
2308
2314
|
if (isReactNative && isRNFile(file)) {
|
|
@@ -2328,7 +2334,7 @@ var noloUploadRequest = async (server, uploadConfig, state, signal, onProgress)
|
|
|
2328
2334
|
if (userId) {
|
|
2329
2335
|
formData.append("userId", userId);
|
|
2330
2336
|
}
|
|
2331
|
-
if (onProgress && typeof XMLHttpRequest !== "undefined") {
|
|
2337
|
+
if (onProgress && !googleSession && typeof XMLHttpRequest !== "undefined") {
|
|
2332
2338
|
const result = await xhrUploadRequest(
|
|
2333
2339
|
server + `${API_ENDPOINTS.DATABASE}/upload`,
|
|
2334
2340
|
formData,
|
|
@@ -2361,6 +2367,7 @@ var noloUploadRequest = async (server, uploadConfig, state, signal, onProgress)
|
|
|
2361
2367
|
`Upload request failed for ${customKey} on ${server}: HTTP ${response.status}`
|
|
2362
2368
|
);
|
|
2363
2369
|
}
|
|
2370
|
+
if (response.ok && googleSession && onProgress) onProgress(file.size, file.size);
|
|
2364
2371
|
return response.ok;
|
|
2365
2372
|
} catch (error) {
|
|
2366
2373
|
if (!isAbortError(error)) {
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-TUSTONB3.js";
|
|
4
4
|
import {
|
|
5
5
|
getReadableCliDb
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AVJDELEA.js";
|
|
7
7
|
import {
|
|
8
8
|
clearCliLocalRuntimePreparedAgentCache
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7AJRJGSQ.js";
|
|
10
10
|
import {
|
|
11
11
|
readCredentialAvailability
|
|
12
12
|
} from "./chunk-WWTSEBDF.js";
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
resolveAgentRecordFromHybridStore,
|
|
26
26
|
sanitizeAgentRecordForCliOutput,
|
|
27
27
|
writeAgentRecord
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-BXSMFPTG.js";
|
|
29
29
|
import {
|
|
30
30
|
resolveCliAgentKeyInput
|
|
31
31
|
} from "./chunk-BR3GT6MR.js";
|
|
@@ -256,7 +256,7 @@ async function runAgentCreateCommand(args, deps = {}) {
|
|
|
256
256
|
let verifyResult;
|
|
257
257
|
if (parsed.verify) {
|
|
258
258
|
try {
|
|
259
|
-
const { verifyCustomProvider } = await import("./agentProviderCommands-
|
|
259
|
+
const { verifyCustomProvider } = await import("./agentProviderCommands-O3Q25PKU.js");
|
|
260
260
|
const rec = built.nextRecord;
|
|
261
261
|
const verifyCredentialRef = typeof rec.credentialRef === "string" && rec.credentialRef.trim() ? rec.credentialRef.trim() : "";
|
|
262
262
|
if (verifyCredentialRef) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getRuntimeServerContext,
|
|
3
3
|
scheduleDeleteReplication
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-GXXY2NL3.js";
|
|
5
5
|
import {
|
|
6
6
|
fetchFromClientDb
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ULLHVDTZ.js";
|
|
8
8
|
import {
|
|
9
9
|
selectIdentityToken
|
|
10
10
|
} from "./chunk-PXYBUFDB.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCliLocalRuntimeAdapter,
|
|
3
3
|
summarizeEndpoint
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7AJRJGSQ.js";
|
|
5
5
|
import {
|
|
6
6
|
clipMultilineText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VREG6ANQ.js";
|
|
8
8
|
import {
|
|
9
9
|
runLocalAgentTurn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-TRHJ4NJB.js";
|
|
11
11
|
import {
|
|
12
12
|
applyToolSurfaceConstraints
|
|
13
13
|
} from "./chunk-VS276URX.js";
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
} from "./chunk-4O22PGNQ.js";
|
|
39
39
|
import {
|
|
40
40
|
t
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-S2MHR4PU.js";
|
|
42
42
|
import {
|
|
43
43
|
toErrorMessage
|
|
44
44
|
} from "./chunk-HNMXYYJR.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
deriveStateResident
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VSRISJXZ.js";
|
|
4
4
|
import {
|
|
5
5
|
resolveMachineId
|
|
6
6
|
} from "./chunk-S73EPYNC.js";
|
|
@@ -8,9 +8,12 @@ import {
|
|
|
8
8
|
_appendRetiredStateBatch,
|
|
9
9
|
loadMemoryVNextCatalog
|
|
10
10
|
} from "./chunk-324FWHUA.js";
|
|
11
|
+
import {
|
|
12
|
+
gBase64
|
|
13
|
+
} from "./chunk-X7IA2B7R.js";
|
|
11
14
|
import {
|
|
12
15
|
getDefaultCliLocalRuntimeDb
|
|
13
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-Y2MF4DCJ.js";
|
|
14
17
|
import {
|
|
15
18
|
createMemoryKey,
|
|
16
19
|
createMemoryOwnerIndexKey,
|
|
@@ -42,169 +45,6 @@ import {
|
|
|
42
45
|
// packages/core/crypto.ts
|
|
43
46
|
import nacl from "tweetnacl";
|
|
44
47
|
|
|
45
|
-
// node_modules/js-base64/base64.mjs
|
|
46
|
-
var version = "3.9.6";
|
|
47
|
-
var VERSION = version;
|
|
48
|
-
var _TD = typeof TextDecoder === "function" ? new TextDecoder("utf-8", { ignoreBOM: true }) : void 0;
|
|
49
|
-
var _TE = typeof TextEncoder === "function" ? new TextEncoder() : void 0;
|
|
50
|
-
var b64ch = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
|
51
|
-
var b64chs = Array.prototype.slice.call(b64ch);
|
|
52
|
-
var b64tab = ((a) => {
|
|
53
|
-
let tab = {};
|
|
54
|
-
a.forEach((c, i) => tab[c] = i);
|
|
55
|
-
return tab;
|
|
56
|
-
})(b64chs);
|
|
57
|
-
var b64re = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/;
|
|
58
|
-
var _fromCC = String.fromCharCode.bind(String);
|
|
59
|
-
var _U8Afrom = typeof Uint8Array.from === "function" ? Uint8Array.from.bind(Uint8Array) : (it) => new Uint8Array(Array.prototype.slice.call(it, 0));
|
|
60
|
-
var _mkUriSafe = (src) => src.replace(/=/g, "").replace(/[+\/]/g, (m0) => m0 == "+" ? "-" : "_");
|
|
61
|
-
var _tidyB64 = (s) => s.replace(/[^A-Za-z0-9\+\/]/g, "");
|
|
62
|
-
var btoaPolyfill = (bin) => {
|
|
63
|
-
let u32, c0, c1, c2, asc = "";
|
|
64
|
-
const pad = bin.length % 3;
|
|
65
|
-
for (let i = 0; i < bin.length; ) {
|
|
66
|
-
if ((c0 = bin.charCodeAt(i++)) > 255 || (c1 = bin.charCodeAt(i++)) > 255 || (c2 = bin.charCodeAt(i++)) > 255)
|
|
67
|
-
throw new TypeError("invalid character found");
|
|
68
|
-
u32 = c0 << 16 | c1 << 8 | c2;
|
|
69
|
-
asc += b64chs[u32 >> 18 & 63] + b64chs[u32 >> 12 & 63] + b64chs[u32 >> 6 & 63] + b64chs[u32 & 63];
|
|
70
|
-
}
|
|
71
|
-
return pad ? asc.slice(0, pad - 3) + "===".substring(pad) : asc;
|
|
72
|
-
};
|
|
73
|
-
var _btoa = typeof btoa === "function" ? (bin) => btoa(bin) : btoaPolyfill;
|
|
74
|
-
var _fromUint8Array = typeof Uint8Array.prototype.toBase64 === "function" ? Function.prototype.call.bind(Uint8Array.prototype.toBase64) : (u8a) => {
|
|
75
|
-
const maxargs = 4096;
|
|
76
|
-
let strs = [];
|
|
77
|
-
for (let i = 0, l = u8a.length; i < l; i += maxargs) {
|
|
78
|
-
strs.push(_fromCC.apply(null, u8a.subarray(i, i + maxargs)));
|
|
79
|
-
}
|
|
80
|
-
return _btoa(strs.join(""));
|
|
81
|
-
};
|
|
82
|
-
var fromUint8Array = (u8a, urlsafe = false) => urlsafe ? _mkUriSafe(_fromUint8Array(u8a)) : _fromUint8Array(u8a);
|
|
83
|
-
var cb_utob = (c) => {
|
|
84
|
-
if (c.length < 2) {
|
|
85
|
-
var cc = c.charCodeAt(0);
|
|
86
|
-
return cc < 128 ? c : cc < 2048 ? _fromCC(192 | cc >>> 6) + _fromCC(128 | cc & 63) : _fromCC(224 | cc >>> 12 & 15) + _fromCC(128 | cc >>> 6 & 63) + _fromCC(128 | cc & 63);
|
|
87
|
-
} else {
|
|
88
|
-
var cc = 65536 + (c.charCodeAt(0) - 55296) * 1024 + (c.charCodeAt(1) - 56320);
|
|
89
|
-
return _fromCC(240 | cc >>> 18 & 7) + _fromCC(128 | cc >>> 12 & 63) + _fromCC(128 | cc >>> 6 & 63) + _fromCC(128 | cc & 63);
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
|
-
var re_utob = /[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\x00-\x7F]/g;
|
|
93
|
-
var utob = (u) => u.replace(re_utob, cb_utob);
|
|
94
|
-
var _encode = _TE ? (s) => _fromUint8Array(_TE.encode(s)) : (s) => _btoa(utob(s));
|
|
95
|
-
var encode = (src, urlsafe = false) => urlsafe ? _mkUriSafe(_encode(src)) : _encode(src);
|
|
96
|
-
var encodeURI = (src) => encode(src, true);
|
|
97
|
-
var re_btou = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g;
|
|
98
|
-
var cb_btou = (cccc) => {
|
|
99
|
-
switch (cccc.length) {
|
|
100
|
-
case 4:
|
|
101
|
-
var cp = (7 & cccc.charCodeAt(0)) << 18 | (63 & cccc.charCodeAt(1)) << 12 | (63 & cccc.charCodeAt(2)) << 6 | 63 & cccc.charCodeAt(3), offset = cp - 65536;
|
|
102
|
-
return _fromCC((offset >>> 10) + 55296) + _fromCC((offset & 1023) + 56320);
|
|
103
|
-
case 3:
|
|
104
|
-
return _fromCC((15 & cccc.charCodeAt(0)) << 12 | (63 & cccc.charCodeAt(1)) << 6 | 63 & cccc.charCodeAt(2));
|
|
105
|
-
default:
|
|
106
|
-
return _fromCC((31 & cccc.charCodeAt(0)) << 6 | 63 & cccc.charCodeAt(1));
|
|
107
|
-
}
|
|
108
|
-
};
|
|
109
|
-
var btou = (b) => b.replace(re_btou, cb_btou);
|
|
110
|
-
var atobPolyfill = (asc) => {
|
|
111
|
-
asc = asc.replace(/\s+/g, "");
|
|
112
|
-
if (!b64re.test(asc))
|
|
113
|
-
throw new TypeError("malformed base64.");
|
|
114
|
-
asc += "==".slice(2 - (asc.length & 3));
|
|
115
|
-
let u24, r1, r2;
|
|
116
|
-
let binArray = [];
|
|
117
|
-
for (let i = 0; i < asc.length; ) {
|
|
118
|
-
u24 = b64tab[asc.charAt(i++)] << 18 | b64tab[asc.charAt(i++)] << 12 | (r1 = b64tab[asc.charAt(i++)]) << 6 | (r2 = b64tab[asc.charAt(i++)]);
|
|
119
|
-
if (r1 === 64) {
|
|
120
|
-
binArray.push(_fromCC(u24 >> 16 & 255));
|
|
121
|
-
} else if (r2 === 64) {
|
|
122
|
-
binArray.push(_fromCC(u24 >> 16 & 255, u24 >> 8 & 255));
|
|
123
|
-
} else {
|
|
124
|
-
binArray.push(_fromCC(u24 >> 16 & 255, u24 >> 8 & 255, u24 & 255));
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
return binArray.join("");
|
|
128
|
-
};
|
|
129
|
-
var _atob = typeof atob === "function" ? (asc) => atob(_tidyB64(asc)) : atobPolyfill;
|
|
130
|
-
var _toUint8Array = typeof Uint8Array.fromBase64 === "function" ? (a) => Uint8Array.fromBase64(a) : (a) => _U8Afrom(_atob(a).split("").map((c) => c.charCodeAt(0)));
|
|
131
|
-
var toUint8Array = (a) => _toUint8Array(_unURI(a));
|
|
132
|
-
var _decode = _TD ? (a) => _TD.decode(_toUint8Array(a)) : (a) => btou(_atob(a));
|
|
133
|
-
var _unURI = (a) => _tidyB64(a.replace(/[-_]/g, (m0) => m0 == "-" ? "+" : "/"));
|
|
134
|
-
var decode = (src) => _decode(_unURI(src));
|
|
135
|
-
var isValid = (src) => {
|
|
136
|
-
if (typeof src !== "string")
|
|
137
|
-
return false;
|
|
138
|
-
const s = src.replace(/\s+/g, "").replace(/={0,2}$/, "");
|
|
139
|
-
if (s.length % 4 === 1)
|
|
140
|
-
return false;
|
|
141
|
-
return !/[^\s0-9a-zA-Z\+/]/.test(s) || !/[^\s0-9a-zA-Z\-_]/.test(s);
|
|
142
|
-
};
|
|
143
|
-
var _noEnum = (v) => {
|
|
144
|
-
return {
|
|
145
|
-
value: v,
|
|
146
|
-
enumerable: false,
|
|
147
|
-
writable: true,
|
|
148
|
-
configurable: true
|
|
149
|
-
};
|
|
150
|
-
};
|
|
151
|
-
var extendString = function() {
|
|
152
|
-
const _add = (name, body) => Object.defineProperty(String.prototype, name, _noEnum(body));
|
|
153
|
-
_add("fromBase64", function() {
|
|
154
|
-
return decode(this);
|
|
155
|
-
});
|
|
156
|
-
_add("toBase64", function(urlsafe) {
|
|
157
|
-
return encode(this, urlsafe);
|
|
158
|
-
});
|
|
159
|
-
_add("toBase64URI", function() {
|
|
160
|
-
return encode(this, true);
|
|
161
|
-
});
|
|
162
|
-
_add("toBase64URL", function() {
|
|
163
|
-
return encode(this, true);
|
|
164
|
-
});
|
|
165
|
-
_add("toUint8Array", function() {
|
|
166
|
-
return toUint8Array(this);
|
|
167
|
-
});
|
|
168
|
-
};
|
|
169
|
-
var extendUint8Array = function() {
|
|
170
|
-
const _add = (name, body) => Object.defineProperty(Uint8Array.prototype, name, _noEnum(body));
|
|
171
|
-
_add("toBase64", function(urlsafe) {
|
|
172
|
-
return fromUint8Array(this, urlsafe);
|
|
173
|
-
});
|
|
174
|
-
_add("toBase64URI", function() {
|
|
175
|
-
return fromUint8Array(this, true);
|
|
176
|
-
});
|
|
177
|
-
_add("toBase64URL", function() {
|
|
178
|
-
return fromUint8Array(this, true);
|
|
179
|
-
});
|
|
180
|
-
};
|
|
181
|
-
var extendBuiltins = () => {
|
|
182
|
-
extendString();
|
|
183
|
-
extendUint8Array();
|
|
184
|
-
};
|
|
185
|
-
var gBase64 = {
|
|
186
|
-
version,
|
|
187
|
-
VERSION,
|
|
188
|
-
atob: _atob,
|
|
189
|
-
atobPolyfill,
|
|
190
|
-
btoa: _btoa,
|
|
191
|
-
btoaPolyfill,
|
|
192
|
-
fromBase64: decode,
|
|
193
|
-
toBase64: encode,
|
|
194
|
-
encode,
|
|
195
|
-
encodeURI,
|
|
196
|
-
encodeURL: encodeURI,
|
|
197
|
-
utob,
|
|
198
|
-
btou,
|
|
199
|
-
decode,
|
|
200
|
-
isValid,
|
|
201
|
-
fromUint8Array,
|
|
202
|
-
toUint8Array,
|
|
203
|
-
extendString,
|
|
204
|
-
extendUint8Array,
|
|
205
|
-
extendBuiltins
|
|
206
|
-
};
|
|
207
|
-
|
|
208
48
|
// packages/core/authToken.ts
|
|
209
49
|
var parseToken = (token) => {
|
|
210
50
|
try {
|
|
@@ -358,7 +198,7 @@ var AccountSessionCore = class {
|
|
|
358
198
|
this.setSnapshot({
|
|
359
199
|
...this.snapshot,
|
|
360
200
|
transition
|
|
361
|
-
});
|
|
201
|
+
}, true);
|
|
362
202
|
}
|
|
363
203
|
/**
|
|
364
204
|
* Activate `token` as the active account and complete the current transition.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
deriveCredentialGroup
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZEKUFJLW.js";
|
|
4
4
|
import {
|
|
5
5
|
listUserRecordsFromServers,
|
|
6
6
|
readLiveDbRecordAfterTombstoneMerge
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-F6YWDVIB.js";
|
|
8
8
|
import {
|
|
9
9
|
agentRecordHasConfiguredCredential
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-BXSMFPTG.js";
|
|
11
11
|
import {
|
|
12
12
|
isTombstoneRecord
|
|
13
13
|
} from "./chunk-BV3FLP2L.js";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
|
|
5
5
|
// packages/cli/agentCommandSupport.ts
|
|
6
6
|
async function getDefaultCliDb() {
|
|
7
|
-
const { getDefaultCliLocalRuntimeDb } = await import("./localRuntimeDb-
|
|
7
|
+
const { getDefaultCliLocalRuntimeDb } = await import("./localRuntimeDb-CRNIBOOM.js");
|
|
8
8
|
return getDefaultCliLocalRuntimeDb();
|
|
9
9
|
}
|
|
10
10
|
function createNullCliDb() {
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getActiveDialogKey
|
|
3
|
-
} from "./chunk-S2NTVGA2.js";
|
|
4
1
|
import {
|
|
5
2
|
require_formatISO
|
|
6
3
|
} from "./chunk-UVLYNWIE.js";
|
|
4
|
+
import {
|
|
5
|
+
getActiveDialogKey
|
|
6
|
+
} from "./chunk-I2OYPD3Y.js";
|
|
7
7
|
import {
|
|
8
8
|
patch,
|
|
9
9
|
selectById
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RM4UMFY4.js";
|
|
11
11
|
import {
|
|
12
12
|
__toESM
|
|
13
13
|
} from "./chunk-U67V476Y.js";
|
|
14
14
|
|
|
15
15
|
// packages/chat/dialog/actions/setDialogExtraReferencesAction.ts
|
|
16
16
|
var import_formatISO = __toESM(require_formatISO());
|
|
17
|
-
var setDialogExtraReferencesAction = async (extraReferences, thunkApi) => {
|
|
17
|
+
var setDialogExtraReferencesAction = async (extraReferences, thunkApi, dialogKey) => {
|
|
18
18
|
const { dispatch, getState } = thunkApi;
|
|
19
19
|
const state = getState();
|
|
20
|
-
const currentDialogKey = getActiveDialogKey();
|
|
20
|
+
const currentDialogKey = dialogKey === void 0 ? getActiveDialogKey() : dialogKey;
|
|
21
21
|
if (!currentDialogKey) {
|
|
22
22
|
throw new Error("No current dialog selected");
|
|
23
23
|
}
|