@vm0/cli 9.229.4 → 9.230.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/{agent-SQOJRXNZ.js → agent-LB5KE3ZT.js} +4 -4
- package/{banking-XLSELC7Q.js → banking-EOZMEOVX.js} +2 -2
- package/{chat-KT2YZHXB.js → chat-YH5ZJPT5.js} +3 -3
- package/{chunk-J7W6JD5E.js → chunk-2DUDMR6E.js} +2 -2
- package/{chunk-AYV5DH3B.js → chunk-4BYCW2NN.js} +331 -12
- package/chunk-4BYCW2NN.js.map +1 -0
- package/{chunk-PZI35Y7B.js → chunk-A7X7PDKM.js} +2 -2
- package/{chunk-HRH5BNEM.js → chunk-AOLLI3QI.js} +2 -2
- package/{chunk-MBNF6HCK.js → chunk-DV2C47TT.js} +2 -2
- package/{chunk-BATE4LE3.js → chunk-FGQ7QX47.js} +3 -3
- package/{chunk-JRUYLSJK.js → chunk-K6X64AN6.js} +2 -2
- package/{chunk-UHANO3YQ.js → chunk-MOKD52IX.js} +206 -479
- package/chunk-MOKD52IX.js.map +1 -0
- package/{chunk-DAJ3OG4Z.js → chunk-OO5JUGQM.js} +3 -3
- package/{computer-use-GT3JYLAK.js → computer-use-ALW7CJA7.js} +2 -2
- package/{connector-LEOUHCMJ.js → connector-GVYZQZY5.js} +2 -2
- package/{credit-C5DVH4HC.js → credit-DTQJ5UIY.js} +2 -2
- package/{developer-support-NFH2AWPB.js → developer-support-VKFEXFA3.js} +2 -2
- package/{doctor-76C54UV4.js → doctor-DD6XTSRQ.js} +6 -6
- package/{generate-N3NN6RK6.js → generate-5D7TNQOU.js} +2 -2
- package/{github-EXHV6TNQ.js → github-6CCMZ4LG.js} +2 -2
- package/{goal-K6WLS5PN.js → goal-XQYPWGDN.js} +2 -2
- package/{host-EGWISIWK.js → host-ARGVMZQ5.js} +2 -2
- package/index.js +13 -13
- package/{logs-L54PPK4R.js → logs-SV3GR6H4.js} +6 -6
- package/{maps-WWBPW2FB.js → maps-OKJMSBTE.js} +2 -2
- package/memory-5HHRESRW.js +182 -0
- package/memory-5HHRESRW.js.map +1 -0
- package/{model-VA2BUHKJ.js → model-XYLACQOK.js} +3 -3
- package/{model-provider-25K34UGN.js → model-provider-T5BUAFTL.js} +3 -3
- package/{org-V6LHYB7B.js → org-RBJLKWO7.js} +2 -2
- package/package.json +1 -1
- package/{phone-Y5CR4B2E.js → phone-NMYRQQVE.js} +2 -2
- package/{preference-KLK2CKKJ.js → preference-OIU6AQ3D.js} +2 -2
- package/{relationship-HZ5A7DOJ.js → relationship-JU7CJMLI.js} +2 -2
- package/{resource-CTLUXD3K.js → resource-N4PG53FX.js} +2 -2
- package/{search-EF5A6CEV.js → search-PMBMP2WF.js} +6 -6
- package/{secret-XLO2ECOR.js → secret-JPPVGIEZ.js} +3 -3
- package/{slack-S6H3TBOF.js → slack-RQBBWCAL.js} +2 -2
- package/{steam.generated-BHCG7YN5.js → steam.generated-ZLFXYWMM.js} +17 -1
- package/{steam.generated-BHCG7YN5.js.map → steam.generated-ZLFXYWMM.js.map} +1 -1
- package/{telegram-VYAHCL2H.js → telegram-Y4UEQ4H2.js} +2 -2
- package/{variable-J2O522UA.js → variable-IXGY35RI.js} +2 -2
- package/{web-TCB3L2FN.js → web-ODQF2Y5H.js} +2 -2
- package/{whoami-XCK6HAGC.js → whoami-E3VSVVAB.js} +4 -4
- package/{workflow-R5KFEUJQ.js → workflow-MLHPXBJN.js} +2 -2
- package/zero.js +40 -31
- package/zero.js.map +1 -1
- package/chunk-AYV5DH3B.js.map +0 -1
- package/chunk-UHANO3YQ.js.map +0 -1
- /package/{agent-SQOJRXNZ.js.map → agent-LB5KE3ZT.js.map} +0 -0
- /package/{banking-XLSELC7Q.js.map → banking-EOZMEOVX.js.map} +0 -0
- /package/{chat-KT2YZHXB.js.map → chat-YH5ZJPT5.js.map} +0 -0
- /package/{chunk-J7W6JD5E.js.map → chunk-2DUDMR6E.js.map} +0 -0
- /package/{chunk-PZI35Y7B.js.map → chunk-A7X7PDKM.js.map} +0 -0
- /package/{chunk-HRH5BNEM.js.map → chunk-AOLLI3QI.js.map} +0 -0
- /package/{chunk-MBNF6HCK.js.map → chunk-DV2C47TT.js.map} +0 -0
- /package/{chunk-BATE4LE3.js.map → chunk-FGQ7QX47.js.map} +0 -0
- /package/{chunk-JRUYLSJK.js.map → chunk-K6X64AN6.js.map} +0 -0
- /package/{chunk-DAJ3OG4Z.js.map → chunk-OO5JUGQM.js.map} +0 -0
- /package/{computer-use-GT3JYLAK.js.map → computer-use-ALW7CJA7.js.map} +0 -0
- /package/{connector-LEOUHCMJ.js.map → connector-GVYZQZY5.js.map} +0 -0
- /package/{credit-C5DVH4HC.js.map → credit-DTQJ5UIY.js.map} +0 -0
- /package/{developer-support-NFH2AWPB.js.map → developer-support-VKFEXFA3.js.map} +0 -0
- /package/{doctor-76C54UV4.js.map → doctor-DD6XTSRQ.js.map} +0 -0
- /package/{generate-N3NN6RK6.js.map → generate-5D7TNQOU.js.map} +0 -0
- /package/{github-EXHV6TNQ.js.map → github-6CCMZ4LG.js.map} +0 -0
- /package/{goal-K6WLS5PN.js.map → goal-XQYPWGDN.js.map} +0 -0
- /package/{host-EGWISIWK.js.map → host-ARGVMZQ5.js.map} +0 -0
- /package/{logs-L54PPK4R.js.map → logs-SV3GR6H4.js.map} +0 -0
- /package/{maps-WWBPW2FB.js.map → maps-OKJMSBTE.js.map} +0 -0
- /package/{model-VA2BUHKJ.js.map → model-XYLACQOK.js.map} +0 -0
- /package/{model-provider-25K34UGN.js.map → model-provider-T5BUAFTL.js.map} +0 -0
- /package/{org-V6LHYB7B.js.map → org-RBJLKWO7.js.map} +0 -0
- /package/{phone-Y5CR4B2E.js.map → phone-NMYRQQVE.js.map} +0 -0
- /package/{preference-KLK2CKKJ.js.map → preference-OIU6AQ3D.js.map} +0 -0
- /package/{relationship-HZ5A7DOJ.js.map → relationship-JU7CJMLI.js.map} +0 -0
- /package/{resource-CTLUXD3K.js.map → resource-N4PG53FX.js.map} +0 -0
- /package/{search-EF5A6CEV.js.map → search-PMBMP2WF.js.map} +0 -0
- /package/{secret-XLO2ECOR.js.map → secret-JPPVGIEZ.js.map} +0 -0
- /package/{slack-S6H3TBOF.js.map → slack-RQBBWCAL.js.map} +0 -0
- /package/{telegram-VYAHCL2H.js.map → telegram-Y4UEQ4H2.js.map} +0 -0
- /package/{variable-J2O522UA.js.map → variable-IXGY35RI.js.map} +0 -0
- /package/{web-TCB3L2FN.js.map → web-ODQF2Y5H.js.map} +0 -0
- /package/{whoami-XCK6HAGC.js.map → whoami-E3VSVVAB.js.map} +0 -0
- /package/{workflow-R5KFEUJQ.js.map → workflow-MLHPXBJN.js.map} +0 -0
|
@@ -4,10 +4,10 @@ const require = __createRequire(import.meta.url);
|
|
|
4
4
|
import {
|
|
5
5
|
loadConnectorPermissionInfos,
|
|
6
6
|
policyIcon
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-K6X64AN6.js";
|
|
8
8
|
import {
|
|
9
9
|
permissionGrantsToFirewallPolicies
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-DV2C47TT.js";
|
|
11
11
|
import {
|
|
12
12
|
isInteractive,
|
|
13
13
|
promptConfirm
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
listZeroUserPermissionGrants,
|
|
24
24
|
updateZeroAgent,
|
|
25
25
|
updateZeroAgentInstructions
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-4BYCW2NN.js";
|
|
27
27
|
import "./chunk-LTDQISD7.js";
|
|
28
28
|
import {
|
|
29
29
|
withErrorHandler
|
|
@@ -595,4 +595,4 @@ Notes:
|
|
|
595
595
|
export {
|
|
596
596
|
zeroAgentCommand
|
|
597
597
|
};
|
|
598
|
-
//# sourceMappingURL=agent-
|
|
598
|
+
//# sourceMappingURL=agent-LB5KE3ZT.js.map
|
|
@@ -3,7 +3,7 @@ import { createRequire as __createRequire } from "node:module";
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
callZeroBanking
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4BYCW2NN.js";
|
|
7
7
|
import "./chunk-LTDQISD7.js";
|
|
8
8
|
import {
|
|
9
9
|
withErrorHandler
|
|
@@ -115,4 +115,4 @@ Notes:
|
|
|
115
115
|
export {
|
|
116
116
|
zeroBankingCommand
|
|
117
117
|
};
|
|
118
|
-
//# sourceMappingURL=banking-
|
|
118
|
+
//# sourceMappingURL=banking-EOZMEOVX.js.map
|
|
@@ -3,14 +3,14 @@ import { createRequire as __createRequire } from "node:module";
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
formatModelProviderRoute
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AOLLI3QI.js";
|
|
7
7
|
import {
|
|
8
8
|
MODEL_FIRST_SELECTION_PROVIDER_ID,
|
|
9
9
|
getZeroChatThread,
|
|
10
10
|
listZeroModelPolicies,
|
|
11
11
|
renameZeroChatThread,
|
|
12
12
|
updateZeroChatThreadModelSelection
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-4BYCW2NN.js";
|
|
14
14
|
import "./chunk-LTDQISD7.js";
|
|
15
15
|
import {
|
|
16
16
|
withErrorHandler
|
|
@@ -248,4 +248,4 @@ Examples:
|
|
|
248
248
|
export {
|
|
249
249
|
zeroChatCommand
|
|
250
250
|
};
|
|
251
|
-
//# sourceMappingURL=chat-
|
|
251
|
+
//# sourceMappingURL=chat-YH5ZJPT5.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
CONNECTOR_TYPES,
|
|
6
6
|
CONNECTOR_TYPE_KEYS,
|
|
7
7
|
connectorAuthMethodIdSchema
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4BYCW2NN.js";
|
|
9
9
|
import {
|
|
10
10
|
init_esm_shims
|
|
11
11
|
} from "./chunk-DIRAZ3YX.js";
|
|
@@ -121,4 +121,4 @@ export {
|
|
|
121
121
|
getConnectorStoredSecretDisplayInfo,
|
|
122
122
|
getDiagnosticConnectorTypeForRuntimeEnvName
|
|
123
123
|
};
|
|
124
|
-
//# sourceMappingURL=chunk-
|
|
124
|
+
//# sourceMappingURL=chunk-2DUDMR6E.js.map
|
|
@@ -316,6 +316,15 @@ var MINIMAX_CODEX_FIREWALL_CONFIG = {
|
|
|
316
316
|
};
|
|
317
317
|
|
|
318
318
|
// ../../packages/api-contracts/src/contracts/model-providers.ts
|
|
319
|
+
var modelProviderCodexRuntimeConfigSchema = external_exports.object({
|
|
320
|
+
providerId: external_exports.string().regex(/^[A-Za-z0-9_-]+$/),
|
|
321
|
+
name: external_exports.string().min(1),
|
|
322
|
+
baseUrl: external_exports.url(),
|
|
323
|
+
envKey: external_exports.string().regex(/^[A-Za-z_][A-Za-z0-9_]*$/),
|
|
324
|
+
wireApi: external_exports.literal("responses"),
|
|
325
|
+
supportsWebsockets: external_exports.boolean(),
|
|
326
|
+
modelCatalog: external_exports.record(external_exports.string(), external_exports.unknown()).optional()
|
|
327
|
+
});
|
|
319
328
|
var GATED_MODEL_PROVIDER_FEATURE_SWITCHES = {};
|
|
320
329
|
var FRAMEWORK_SWITCHED_MODEL_PROVIDER_FEATURE_SWITCHES = {
|
|
321
330
|
"minimax-api-key": "codexFrameworkForMinimax" /* CodexFrameworkForMinimax */
|
|
@@ -23214,7 +23223,9 @@ var storedExecutionContextSchema = external_exports.object({
|
|
|
23214
23223
|
// Canonical model id the proxy reports for model token usage. The API uses
|
|
23215
23224
|
// this model id for built-in billing rows and model usage observations;
|
|
23216
23225
|
// billing eligibility is decided from API-owned run context.
|
|
23217
|
-
modelUsageProvider: external_exports.string().optional()
|
|
23226
|
+
modelUsageProvider: external_exports.string().optional(),
|
|
23227
|
+
// API-owned Codex provider/runtime metadata forwarded through the runner.
|
|
23228
|
+
codexRuntimeConfig: modelProviderCodexRuntimeConfigSchema.nullable().optional()
|
|
23218
23229
|
});
|
|
23219
23230
|
var executionContextSchema = external_exports.object({
|
|
23220
23231
|
runId: external_exports.uuid(),
|
|
@@ -23275,7 +23286,9 @@ var executionContextSchema = external_exports.object({
|
|
|
23275
23286
|
// Canonical model id the proxy reports for model token usage. The API uses
|
|
23276
23287
|
// this model id for built-in billing rows and model usage observations;
|
|
23277
23288
|
// billing eligibility is decided from API-owned run context.
|
|
23278
|
-
modelUsageProvider: external_exports.string().optional()
|
|
23289
|
+
modelUsageProvider: external_exports.string().optional(),
|
|
23290
|
+
// API-owned Codex provider/runtime metadata forwarded through the runner.
|
|
23291
|
+
codexRuntimeConfig: modelProviderCodexRuntimeConfigSchema.nullable().optional()
|
|
23279
23292
|
});
|
|
23280
23293
|
var runnersJobClaimContract = c23.router({
|
|
23281
23294
|
claim: {
|
|
@@ -28597,6 +28610,310 @@ async function searchZeroRelationships(options) {
|
|
|
28597
28610
|
handleError(result, "Failed to search relationships");
|
|
28598
28611
|
}
|
|
28599
28612
|
|
|
28613
|
+
// src/lib/api/domains/zero-memory.ts
|
|
28614
|
+
init_esm_shims();
|
|
28615
|
+
|
|
28616
|
+
// ../../packages/api-contracts/src/contracts/zero-memory.ts
|
|
28617
|
+
init_esm_shims();
|
|
28618
|
+
var c36 = initContract();
|
|
28619
|
+
var memoryFileSchema = external_exports.object({
|
|
28620
|
+
path: external_exports.string(),
|
|
28621
|
+
size: external_exports.number()
|
|
28622
|
+
});
|
|
28623
|
+
var memoryFileContentSchema = external_exports.object({
|
|
28624
|
+
path: external_exports.string(),
|
|
28625
|
+
content: external_exports.string()
|
|
28626
|
+
});
|
|
28627
|
+
var memorySourceProviderSchema = external_exports.enum(["gmail", "slack"]);
|
|
28628
|
+
var memoryRecallItemKindSchema = external_exports.enum([
|
|
28629
|
+
"key_fact",
|
|
28630
|
+
"preference",
|
|
28631
|
+
"open_loop"
|
|
28632
|
+
]);
|
|
28633
|
+
var memorySourceDirectionSchema = external_exports.enum([
|
|
28634
|
+
"sent",
|
|
28635
|
+
"received",
|
|
28636
|
+
"mixed",
|
|
28637
|
+
"unknown"
|
|
28638
|
+
]);
|
|
28639
|
+
var memorySourceCompactMetadataSchema = external_exports.object({
|
|
28640
|
+
workspaceId: external_exports.string().optional(),
|
|
28641
|
+
channelId: external_exports.string().optional(),
|
|
28642
|
+
channelType: external_exports.string().optional(),
|
|
28643
|
+
threadId: external_exports.string().nullable().optional(),
|
|
28644
|
+
messageTs: external_exports.string().optional(),
|
|
28645
|
+
senderId: external_exports.string().optional(),
|
|
28646
|
+
mailboxEmail: external_exports.string().optional(),
|
|
28647
|
+
direction: memorySourceDirectionSchema.optional()
|
|
28648
|
+
});
|
|
28649
|
+
var memorySourceMetadataSchema = memorySourceCompactMetadataSchema.extend({
|
|
28650
|
+
messageId: external_exports.string().nullable().optional(),
|
|
28651
|
+
participantIds: external_exports.array(external_exports.string()).optional(),
|
|
28652
|
+
fileIds: external_exports.array(external_exports.string()).optional(),
|
|
28653
|
+
historyId: external_exports.string().optional(),
|
|
28654
|
+
from: external_exports.string().nullable().optional(),
|
|
28655
|
+
to: external_exports.array(external_exports.string()).optional(),
|
|
28656
|
+
cc: external_exports.array(external_exports.string()).optional(),
|
|
28657
|
+
reason: external_exports.string().optional()
|
|
28658
|
+
}).passthrough();
|
|
28659
|
+
var memorySourceBaseSchema = external_exports.object({
|
|
28660
|
+
id: external_exports.string().uuid(),
|
|
28661
|
+
provider: memorySourceProviderSchema,
|
|
28662
|
+
sourceType: external_exports.enum(["gmail_message", "slack_message"]),
|
|
28663
|
+
title: external_exports.string().nullable(),
|
|
28664
|
+
occurredAt: external_exports.string().nullable(),
|
|
28665
|
+
createdAt: external_exports.string(),
|
|
28666
|
+
contentHash: external_exports.string().nullable()
|
|
28667
|
+
});
|
|
28668
|
+
var memorySourceSchema = memorySourceBaseSchema.extend({
|
|
28669
|
+
metadata: memorySourceCompactMetadataSchema
|
|
28670
|
+
});
|
|
28671
|
+
var memorySourceDetailResponseSchema = memorySourceBaseSchema.extend({
|
|
28672
|
+
externalId: external_exports.string(),
|
|
28673
|
+
connectorId: external_exports.string().uuid().nullable(),
|
|
28674
|
+
updatedAt: external_exports.string(),
|
|
28675
|
+
metadata: memorySourceMetadataSchema
|
|
28676
|
+
});
|
|
28677
|
+
var memoryRecallRelationshipSchema = external_exports.object({
|
|
28678
|
+
id: external_exports.string().uuid(),
|
|
28679
|
+
entity: external_exports.object({
|
|
28680
|
+
id: external_exports.string().uuid(),
|
|
28681
|
+
type: external_exports.enum(["person", "organization"]),
|
|
28682
|
+
displayName: external_exports.string(),
|
|
28683
|
+
primaryEmail: external_exports.string().nullable(),
|
|
28684
|
+
domain: external_exports.string().nullable()
|
|
28685
|
+
}),
|
|
28686
|
+
relationshipType: external_exports.string(),
|
|
28687
|
+
status: external_exports.enum(["active", "quiet", "archived"]),
|
|
28688
|
+
summary: external_exports.string(),
|
|
28689
|
+
lastInteractionAt: external_exports.string().nullable()
|
|
28690
|
+
});
|
|
28691
|
+
var memoryRecallSourceSchema = external_exports.object({
|
|
28692
|
+
id: external_exports.string().uuid(),
|
|
28693
|
+
provider: memorySourceProviderSchema,
|
|
28694
|
+
externalId: external_exports.string(),
|
|
28695
|
+
threadId: external_exports.string().nullable(),
|
|
28696
|
+
messageId: external_exports.string().nullable(),
|
|
28697
|
+
quote: external_exports.string().nullable(),
|
|
28698
|
+
occurredAt: external_exports.string().nullable()
|
|
28699
|
+
});
|
|
28700
|
+
var memoryRecallItemSchema = external_exports.object({
|
|
28701
|
+
id: external_exports.string().uuid(),
|
|
28702
|
+
kind: memoryRecallItemKindSchema,
|
|
28703
|
+
text: external_exports.string(),
|
|
28704
|
+
confidence: external_exports.number().int().min(0).max(100),
|
|
28705
|
+
lastSeenAt: external_exports.string(),
|
|
28706
|
+
relationship: memoryRecallRelationshipSchema,
|
|
28707
|
+
sources: external_exports.array(memoryRecallSourceSchema)
|
|
28708
|
+
});
|
|
28709
|
+
var memoryRecallResponseSchema = external_exports.object({
|
|
28710
|
+
query: external_exports.string(),
|
|
28711
|
+
memories: external_exports.array(memoryRecallItemSchema)
|
|
28712
|
+
});
|
|
28713
|
+
var memoryContextResponseSchema = external_exports.object({
|
|
28714
|
+
query: external_exports.string().nullable(),
|
|
28715
|
+
context: external_exports.string(),
|
|
28716
|
+
memories: external_exports.array(memoryRecallItemSchema)
|
|
28717
|
+
});
|
|
28718
|
+
var memorySourceListResponseSchema = external_exports.object({
|
|
28719
|
+
sources: external_exports.array(memorySourceSchema),
|
|
28720
|
+
pagination: external_exports.object({
|
|
28721
|
+
page: external_exports.number().int().positive(),
|
|
28722
|
+
pageSize: external_exports.number().int().positive(),
|
|
28723
|
+
total: external_exports.number().int().nonnegative(),
|
|
28724
|
+
totalPages: external_exports.number().int().positive(),
|
|
28725
|
+
hasMore: external_exports.boolean()
|
|
28726
|
+
})
|
|
28727
|
+
});
|
|
28728
|
+
var slackMemoryBackfillStatusSchema = external_exports.enum([
|
|
28729
|
+
"idle",
|
|
28730
|
+
"pending",
|
|
28731
|
+
"running",
|
|
28732
|
+
"stopped",
|
|
28733
|
+
"done",
|
|
28734
|
+
"failed"
|
|
28735
|
+
]);
|
|
28736
|
+
var slackMemoryBackfillSchema = external_exports.object({
|
|
28737
|
+
status: slackMemoryBackfillStatusSchema,
|
|
28738
|
+
estimatedTotal: external_exports.number().int().nonnegative().nullable(),
|
|
28739
|
+
scannedCount: external_exports.number().int().nonnegative(),
|
|
28740
|
+
recordedCount: external_exports.number().int().nonnegative(),
|
|
28741
|
+
lastError: external_exports.string().nullable(),
|
|
28742
|
+
updatedAt: external_exports.string().nullable(),
|
|
28743
|
+
completedAt: external_exports.string().nullable()
|
|
28744
|
+
});
|
|
28745
|
+
var slackMemoryStatusResponseSchema = external_exports.object({
|
|
28746
|
+
provider: external_exports.literal("slack"),
|
|
28747
|
+
workspaceConnected: external_exports.boolean(),
|
|
28748
|
+
userConnected: external_exports.boolean(),
|
|
28749
|
+
workspaceName: external_exports.string().nullable(),
|
|
28750
|
+
backfill: slackMemoryBackfillSchema
|
|
28751
|
+
});
|
|
28752
|
+
var slackMemoryBackfillRequestSchema = external_exports.object({
|
|
28753
|
+
days: external_exports.union([external_exports.literal(30), external_exports.literal(90), external_exports.literal(180), external_exports.literal(365)]),
|
|
28754
|
+
includePublicChannels: external_exports.boolean(),
|
|
28755
|
+
includePrivateChannels: external_exports.boolean(),
|
|
28756
|
+
includeDirectMessages: external_exports.boolean()
|
|
28757
|
+
});
|
|
28758
|
+
var memoryDetailResponseSchema = external_exports.object({
|
|
28759
|
+
exists: external_exports.boolean(),
|
|
28760
|
+
name: external_exports.string(),
|
|
28761
|
+
size: external_exports.number(),
|
|
28762
|
+
fileCount: external_exports.number(),
|
|
28763
|
+
updatedAt: external_exports.string().nullable(),
|
|
28764
|
+
files: external_exports.array(memoryFileSchema),
|
|
28765
|
+
fileContents: external_exports.array(memoryFileContentSchema)
|
|
28766
|
+
});
|
|
28767
|
+
var zeroMemoryContract = c36.router({
|
|
28768
|
+
get: {
|
|
28769
|
+
method: "GET",
|
|
28770
|
+
path: "/api/zero/memory",
|
|
28771
|
+
headers: authHeadersSchema,
|
|
28772
|
+
responses: {
|
|
28773
|
+
200: memoryDetailResponseSchema,
|
|
28774
|
+
401: apiErrorSchema,
|
|
28775
|
+
500: apiErrorSchema
|
|
28776
|
+
},
|
|
28777
|
+
summary: "Get the current user's memory artifact contents"
|
|
28778
|
+
},
|
|
28779
|
+
recall: {
|
|
28780
|
+
method: "GET",
|
|
28781
|
+
path: "/api/zero/memory/recall",
|
|
28782
|
+
headers: authHeadersSchema,
|
|
28783
|
+
query: external_exports.object({
|
|
28784
|
+
q: external_exports.string().min(1).max(300),
|
|
28785
|
+
kind: memoryRecallItemKindSchema.optional(),
|
|
28786
|
+
limit: external_exports.coerce.number().int().min(1).max(25).default(10)
|
|
28787
|
+
}),
|
|
28788
|
+
responses: {
|
|
28789
|
+
200: memoryRecallResponseSchema,
|
|
28790
|
+
400: apiErrorSchema,
|
|
28791
|
+
401: apiErrorSchema,
|
|
28792
|
+
403: apiErrorSchema,
|
|
28793
|
+
500: apiErrorSchema
|
|
28794
|
+
},
|
|
28795
|
+
summary: "Recall structured memories for the current user"
|
|
28796
|
+
},
|
|
28797
|
+
context: {
|
|
28798
|
+
method: "GET",
|
|
28799
|
+
path: "/api/zero/memory/context",
|
|
28800
|
+
headers: authHeadersSchema,
|
|
28801
|
+
query: external_exports.object({
|
|
28802
|
+
q: external_exports.string().min(1).max(300).optional(),
|
|
28803
|
+
limit: external_exports.coerce.number().int().min(1).max(30).default(12)
|
|
28804
|
+
}),
|
|
28805
|
+
responses: {
|
|
28806
|
+
200: memoryContextResponseSchema,
|
|
28807
|
+
401: apiErrorSchema,
|
|
28808
|
+
403: apiErrorSchema,
|
|
28809
|
+
500: apiErrorSchema
|
|
28810
|
+
},
|
|
28811
|
+
summary: "Get prompt-ready structured memory context for the current user"
|
|
28812
|
+
},
|
|
28813
|
+
sources: {
|
|
28814
|
+
method: "GET",
|
|
28815
|
+
path: "/api/zero/memory/sources",
|
|
28816
|
+
headers: authHeadersSchema,
|
|
28817
|
+
query: external_exports.object({
|
|
28818
|
+
provider: memorySourceProviderSchema.optional(),
|
|
28819
|
+
page: external_exports.coerce.number().int().positive().default(1),
|
|
28820
|
+
limit: external_exports.coerce.number().int().min(1).max(100).default(50)
|
|
28821
|
+
}),
|
|
28822
|
+
responses: {
|
|
28823
|
+
200: memorySourceListResponseSchema,
|
|
28824
|
+
401: apiErrorSchema,
|
|
28825
|
+
403: apiErrorSchema,
|
|
28826
|
+
500: apiErrorSchema
|
|
28827
|
+
},
|
|
28828
|
+
summary: "List structured memory sources for the current user"
|
|
28829
|
+
},
|
|
28830
|
+
source: {
|
|
28831
|
+
method: "GET",
|
|
28832
|
+
path: "/api/zero/memory/sources/:sourceId",
|
|
28833
|
+
pathParams: external_exports.object({
|
|
28834
|
+
sourceId: external_exports.string().uuid()
|
|
28835
|
+
}),
|
|
28836
|
+
headers: authHeadersSchema,
|
|
28837
|
+
responses: {
|
|
28838
|
+
200: memorySourceDetailResponseSchema,
|
|
28839
|
+
401: apiErrorSchema,
|
|
28840
|
+
403: apiErrorSchema,
|
|
28841
|
+
404: apiErrorSchema,
|
|
28842
|
+
500: apiErrorSchema
|
|
28843
|
+
},
|
|
28844
|
+
summary: "Get structured memory source details for the current user"
|
|
28845
|
+
},
|
|
28846
|
+
slackStatus: {
|
|
28847
|
+
method: "GET",
|
|
28848
|
+
path: "/api/zero/memory/sources/slack/status",
|
|
28849
|
+
headers: authHeadersSchema,
|
|
28850
|
+
responses: {
|
|
28851
|
+
200: slackMemoryStatusResponseSchema,
|
|
28852
|
+
401: apiErrorSchema,
|
|
28853
|
+
403: apiErrorSchema,
|
|
28854
|
+
500: apiErrorSchema
|
|
28855
|
+
},
|
|
28856
|
+
summary: "Read Slack memory source backfill status"
|
|
28857
|
+
},
|
|
28858
|
+
slackBackfill: {
|
|
28859
|
+
method: "POST",
|
|
28860
|
+
path: "/api/zero/memory/sources/slack/backfill",
|
|
28861
|
+
headers: authHeadersSchema,
|
|
28862
|
+
body: slackMemoryBackfillRequestSchema,
|
|
28863
|
+
responses: {
|
|
28864
|
+
200: slackMemoryStatusResponseSchema,
|
|
28865
|
+
400: apiErrorSchema,
|
|
28866
|
+
401: apiErrorSchema,
|
|
28867
|
+
403: apiErrorSchema,
|
|
28868
|
+
500: apiErrorSchema
|
|
28869
|
+
},
|
|
28870
|
+
summary: "Start or restart Slack memory source backfill"
|
|
28871
|
+
},
|
|
28872
|
+
slackStopBackfill: {
|
|
28873
|
+
method: "POST",
|
|
28874
|
+
path: "/api/zero/memory/sources/slack/backfill/stop",
|
|
28875
|
+
headers: authHeadersSchema,
|
|
28876
|
+
responses: {
|
|
28877
|
+
200: slackMemoryStatusResponseSchema,
|
|
28878
|
+
401: apiErrorSchema,
|
|
28879
|
+
403: apiErrorSchema,
|
|
28880
|
+
500: apiErrorSchema
|
|
28881
|
+
},
|
|
28882
|
+
summary: "Stop the current Slack memory source backfill"
|
|
28883
|
+
}
|
|
28884
|
+
});
|
|
28885
|
+
|
|
28886
|
+
// src/lib/api/domains/zero-memory.ts
|
|
28887
|
+
async function recallZeroMemory(options) {
|
|
28888
|
+
const config = await getClientConfig();
|
|
28889
|
+
const client = initClient(zeroMemoryContract, config);
|
|
28890
|
+
const result = await client.recall({
|
|
28891
|
+
query: {
|
|
28892
|
+
q: options.q,
|
|
28893
|
+
kind: options.kind,
|
|
28894
|
+
limit: options.limit
|
|
28895
|
+
}
|
|
28896
|
+
});
|
|
28897
|
+
if (result.status === 200) {
|
|
28898
|
+
return result.body;
|
|
28899
|
+
}
|
|
28900
|
+
handleError(result, "Failed to recall memory");
|
|
28901
|
+
}
|
|
28902
|
+
async function getZeroMemoryContext(options) {
|
|
28903
|
+
const config = await getClientConfig();
|
|
28904
|
+
const client = initClient(zeroMemoryContract, config);
|
|
28905
|
+
const result = await client.context({
|
|
28906
|
+
query: {
|
|
28907
|
+
q: options.q,
|
|
28908
|
+
limit: options.limit
|
|
28909
|
+
}
|
|
28910
|
+
});
|
|
28911
|
+
if (result.status === 200) {
|
|
28912
|
+
return result.body;
|
|
28913
|
+
}
|
|
28914
|
+
handleError(result, "Failed to load memory context");
|
|
28915
|
+
}
|
|
28916
|
+
|
|
28600
28917
|
// src/lib/api/domains/logs.ts
|
|
28601
28918
|
init_esm_shims();
|
|
28602
28919
|
async function getSystemLog(runId, options) {
|
|
@@ -28807,15 +29124,6 @@ export {
|
|
|
28807
29124
|
validateBaseUrl,
|
|
28808
29125
|
validateAuthBaseUrl,
|
|
28809
29126
|
authHeadersSchema,
|
|
28810
|
-
runnerGroupSchema,
|
|
28811
|
-
volumeConfigSchema,
|
|
28812
|
-
agentDefinitionSchema,
|
|
28813
|
-
composeResponseSchema,
|
|
28814
|
-
composeListItemSchema,
|
|
28815
|
-
getComposeByName,
|
|
28816
|
-
getComposeById,
|
|
28817
|
-
getComposeVersion,
|
|
28818
|
-
createOrUpdateCompose,
|
|
28819
29127
|
supportedRunModelSchema,
|
|
28820
29128
|
getVm0ModelPriceTier,
|
|
28821
29129
|
MODEL_PROVIDER_TYPES,
|
|
@@ -28829,6 +29137,15 @@ export {
|
|
|
28829
29137
|
modelProviderListResponseSchema,
|
|
28830
29138
|
upsertModelProviderRequestSchema,
|
|
28831
29139
|
upsertModelProviderResponseSchema,
|
|
29140
|
+
runnerGroupSchema,
|
|
29141
|
+
volumeConfigSchema,
|
|
29142
|
+
agentDefinitionSchema,
|
|
29143
|
+
composeResponseSchema,
|
|
29144
|
+
composeListItemSchema,
|
|
29145
|
+
getComposeByName,
|
|
29146
|
+
getComposeById,
|
|
29147
|
+
getComposeVersion,
|
|
29148
|
+
createOrUpdateCompose,
|
|
28832
29149
|
directRunModelProviderTypeSchema,
|
|
28833
29150
|
ALL_RUN_STATUSES,
|
|
28834
29151
|
createRun,
|
|
@@ -28942,6 +29259,8 @@ export {
|
|
|
28942
29259
|
updateZeroChatThreadModelSelection,
|
|
28943
29260
|
resolveZeroRelationship,
|
|
28944
29261
|
searchZeroRelationships,
|
|
29262
|
+
recallZeroMemory,
|
|
29263
|
+
getZeroMemoryContext,
|
|
28945
29264
|
getSystemLog,
|
|
28946
29265
|
getMetrics,
|
|
28947
29266
|
getAgentEvents,
|
|
@@ -28963,4 +29282,4 @@ export {
|
|
|
28963
29282
|
completeHostedSite,
|
|
28964
29283
|
getHostedSiteFiles
|
|
28965
29284
|
};
|
|
28966
|
-
//# sourceMappingURL=chunk-
|
|
29285
|
+
//# sourceMappingURL=chunk-4BYCW2NN.js.map
|