@vm0/cli 9.229.4 → 9.230.0
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-FCL6CFCY.js} +4 -4
- package/{banking-XLSELC7Q.js → banking-XVDLOGRP.js} +2 -2
- package/{chat-KT2YZHXB.js → chat-Q4WMIW5L.js} +3 -3
- package/{chunk-UHANO3YQ.js → chunk-2LEPWT6S.js} +131 -321
- package/chunk-2LEPWT6S.js.map +1 -0
- package/{chunk-PZI35Y7B.js → chunk-7MFC34LC.js} +2 -2
- package/{chunk-DAJ3OG4Z.js → chunk-7NBV4ZZX.js} +3 -3
- package/{chunk-JRUYLSJK.js → chunk-CIKQJL32.js} +2 -2
- package/{chunk-BATE4LE3.js → chunk-EFDRXQ2P.js} +3 -3
- package/{chunk-AYV5DH3B.js → chunk-LMLY4WEM.js} +307 -1
- package/chunk-LMLY4WEM.js.map +1 -0
- package/{chunk-MBNF6HCK.js → chunk-NZ2B6CN2.js} +2 -2
- package/{chunk-J7W6JD5E.js → chunk-UL3G2RBN.js} +2 -2
- package/{chunk-HRH5BNEM.js → chunk-ZMRJIJ4N.js} +2 -2
- package/{computer-use-GT3JYLAK.js → computer-use-LY2ALALU.js} +2 -2
- package/{connector-LEOUHCMJ.js → connector-7URB3ERJ.js} +2 -2
- package/{credit-C5DVH4HC.js → credit-D6XK3CRQ.js} +2 -2
- package/{developer-support-NFH2AWPB.js → developer-support-KFOQ76KE.js} +2 -2
- package/{doctor-76C54UV4.js → doctor-3YMJMI4T.js} +5 -5
- package/{generate-N3NN6RK6.js → generate-C6OAVJU4.js} +2 -2
- package/{github-EXHV6TNQ.js → github-VOU5DBJZ.js} +2 -2
- package/{goal-K6WLS5PN.js → goal-RCDL2NC2.js} +2 -2
- package/{host-EGWISIWK.js → host-2TAO5DVU.js} +2 -2
- package/index.js +13 -13
- package/{logs-L54PPK4R.js → logs-HDYKVVZG.js} +6 -6
- package/{maps-WWBPW2FB.js → maps-IHWWBYN5.js} +2 -2
- package/memory-IP6HIL4C.js +182 -0
- package/memory-IP6HIL4C.js.map +1 -0
- package/{model-VA2BUHKJ.js → model-BKU22SXT.js} +3 -3
- package/{model-provider-25K34UGN.js → model-provider-NA2MWNFZ.js} +3 -3
- package/{org-V6LHYB7B.js → org-5SB337RR.js} +2 -2
- package/package.json +1 -1
- package/{phone-Y5CR4B2E.js → phone-GQY3OSWI.js} +2 -2
- package/{preference-KLK2CKKJ.js → preference-TV7R74NT.js} +2 -2
- package/{relationship-HZ5A7DOJ.js → relationship-KG7FXCMR.js} +2 -2
- package/{resource-CTLUXD3K.js → resource-REUQZZMH.js} +2 -2
- package/{search-EF5A6CEV.js → search-RVTVLHDF.js} +6 -6
- package/{secret-XLO2ECOR.js → secret-FONBV3QU.js} +3 -3
- package/{slack-S6H3TBOF.js → slack-K5S2D6F3.js} +2 -2
- package/{telegram-VYAHCL2H.js → telegram-VD6DM252.js} +2 -2
- package/{variable-J2O522UA.js → variable-W72SGBO7.js} +2 -2
- package/{web-TCB3L2FN.js → web-PRDRAXN6.js} +2 -2
- package/{whoami-XCK6HAGC.js → whoami-Q5LT2RXX.js} +4 -4
- package/{workflow-R5KFEUJQ.js → workflow-3AEER7AC.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-FCL6CFCY.js.map} +0 -0
- /package/{banking-XLSELC7Q.js.map → banking-XVDLOGRP.js.map} +0 -0
- /package/{chat-KT2YZHXB.js.map → chat-Q4WMIW5L.js.map} +0 -0
- /package/{chunk-PZI35Y7B.js.map → chunk-7MFC34LC.js.map} +0 -0
- /package/{chunk-DAJ3OG4Z.js.map → chunk-7NBV4ZZX.js.map} +0 -0
- /package/{chunk-JRUYLSJK.js.map → chunk-CIKQJL32.js.map} +0 -0
- /package/{chunk-BATE4LE3.js.map → chunk-EFDRXQ2P.js.map} +0 -0
- /package/{chunk-MBNF6HCK.js.map → chunk-NZ2B6CN2.js.map} +0 -0
- /package/{chunk-J7W6JD5E.js.map → chunk-UL3G2RBN.js.map} +0 -0
- /package/{chunk-HRH5BNEM.js.map → chunk-ZMRJIJ4N.js.map} +0 -0
- /package/{computer-use-GT3JYLAK.js.map → computer-use-LY2ALALU.js.map} +0 -0
- /package/{connector-LEOUHCMJ.js.map → connector-7URB3ERJ.js.map} +0 -0
- /package/{credit-C5DVH4HC.js.map → credit-D6XK3CRQ.js.map} +0 -0
- /package/{developer-support-NFH2AWPB.js.map → developer-support-KFOQ76KE.js.map} +0 -0
- /package/{doctor-76C54UV4.js.map → doctor-3YMJMI4T.js.map} +0 -0
- /package/{generate-N3NN6RK6.js.map → generate-C6OAVJU4.js.map} +0 -0
- /package/{github-EXHV6TNQ.js.map → github-VOU5DBJZ.js.map} +0 -0
- /package/{goal-K6WLS5PN.js.map → goal-RCDL2NC2.js.map} +0 -0
- /package/{host-EGWISIWK.js.map → host-2TAO5DVU.js.map} +0 -0
- /package/{logs-L54PPK4R.js.map → logs-HDYKVVZG.js.map} +0 -0
- /package/{maps-WWBPW2FB.js.map → maps-IHWWBYN5.js.map} +0 -0
- /package/{model-VA2BUHKJ.js.map → model-BKU22SXT.js.map} +0 -0
- /package/{model-provider-25K34UGN.js.map → model-provider-NA2MWNFZ.js.map} +0 -0
- /package/{org-V6LHYB7B.js.map → org-5SB337RR.js.map} +0 -0
- /package/{phone-Y5CR4B2E.js.map → phone-GQY3OSWI.js.map} +0 -0
- /package/{preference-KLK2CKKJ.js.map → preference-TV7R74NT.js.map} +0 -0
- /package/{relationship-HZ5A7DOJ.js.map → relationship-KG7FXCMR.js.map} +0 -0
- /package/{resource-CTLUXD3K.js.map → resource-REUQZZMH.js.map} +0 -0
- /package/{search-EF5A6CEV.js.map → search-RVTVLHDF.js.map} +0 -0
- /package/{secret-XLO2ECOR.js.map → secret-FONBV3QU.js.map} +0 -0
- /package/{slack-S6H3TBOF.js.map → slack-K5S2D6F3.js.map} +0 -0
- /package/{telegram-VYAHCL2H.js.map → telegram-VD6DM252.js.map} +0 -0
- /package/{variable-J2O522UA.js.map → variable-W72SGBO7.js.map} +0 -0
- /package/{web-TCB3L2FN.js.map → web-PRDRAXN6.js.map} +0 -0
- /package/{whoami-XCK6HAGC.js.map → whoami-Q5LT2RXX.js.map} +0 -0
- /package/{workflow-R5KFEUJQ.js.map → workflow-3AEER7AC.js.map} +0 -0
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
splitPathSegments,
|
|
11
11
|
validateAuthBaseUrl,
|
|
12
12
|
validateBaseUrl
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-LMLY4WEM.js";
|
|
14
14
|
import {
|
|
15
15
|
init_esm_shims
|
|
16
16
|
} from "./chunk-DIRAZ3YX.js";
|
|
@@ -1175,4 +1175,4 @@ export {
|
|
|
1175
1175
|
matchFirewallBaseUrl,
|
|
1176
1176
|
matchFirewallRequestDecision
|
|
1177
1177
|
};
|
|
1178
|
-
//# sourceMappingURL=chunk-
|
|
1178
|
+
//# sourceMappingURL=chunk-7MFC34LC.js.map
|
|
@@ -50,7 +50,7 @@ if (DSN) {
|
|
|
50
50
|
Sentry.init({
|
|
51
51
|
dsn: DSN,
|
|
52
52
|
environment: process.env.SENTRY_ENVIRONMENT ?? "production",
|
|
53
|
-
release: "9.
|
|
53
|
+
release: "9.230.0",
|
|
54
54
|
sendDefaultPii: false,
|
|
55
55
|
tracesSampleRate: 0,
|
|
56
56
|
shutdownTimeout: 500,
|
|
@@ -69,7 +69,7 @@ if (DSN) {
|
|
|
69
69
|
}
|
|
70
70
|
});
|
|
71
71
|
Sentry.setContext("cli", {
|
|
72
|
-
version: "9.
|
|
72
|
+
version: "9.230.0",
|
|
73
73
|
command: process.argv.slice(2).join(" ")
|
|
74
74
|
});
|
|
75
75
|
Sentry.setContext("runtime", {
|
|
@@ -146,4 +146,4 @@ async function configureGlobalProxyFromEnv() {
|
|
|
146
146
|
export {
|
|
147
147
|
configureGlobalProxyFromEnv
|
|
148
148
|
};
|
|
149
|
-
//# sourceMappingURL=chunk-
|
|
149
|
+
//# sourceMappingURL=chunk-7NBV4ZZX.js.map
|
|
@@ -4,7 +4,7 @@ const require = __createRequire(import.meta.url);
|
|
|
4
4
|
import {
|
|
5
5
|
loadFirewallPermissionMetadata,
|
|
6
6
|
resolveFirewallMetadataPolicies
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-NZ2B6CN2.js";
|
|
8
8
|
import {
|
|
9
9
|
source_default
|
|
10
10
|
} from "./chunk-JUTUEPIR.js";
|
|
@@ -87,4 +87,4 @@ export {
|
|
|
87
87
|
policyIcon,
|
|
88
88
|
loadConnectorPermissionInfos
|
|
89
89
|
};
|
|
90
|
-
//# sourceMappingURL=chunk-
|
|
90
|
+
//# sourceMappingURL=chunk-CIKQJL32.js.map
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
parseBoundedLogCount,
|
|
11
11
|
parseSearchQuery,
|
|
12
12
|
parseTime
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-2LEPWT6S.js";
|
|
14
14
|
import {
|
|
15
15
|
searchZeroLogs
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-LMLY4WEM.js";
|
|
17
17
|
import {
|
|
18
18
|
withErrorHandler
|
|
19
19
|
} from "./chunk-3F4RFLPX.js";
|
|
@@ -176,4 +176,4 @@ export {
|
|
|
176
176
|
runLogsSearch,
|
|
177
177
|
searchCommand
|
|
178
178
|
};
|
|
179
|
-
//# sourceMappingURL=chunk-
|
|
179
|
+
//# sourceMappingURL=chunk-EFDRXQ2P.js.map
|
|
@@ -28597,6 +28597,310 @@ async function searchZeroRelationships(options) {
|
|
|
28597
28597
|
handleError(result, "Failed to search relationships");
|
|
28598
28598
|
}
|
|
28599
28599
|
|
|
28600
|
+
// src/lib/api/domains/zero-memory.ts
|
|
28601
|
+
init_esm_shims();
|
|
28602
|
+
|
|
28603
|
+
// ../../packages/api-contracts/src/contracts/zero-memory.ts
|
|
28604
|
+
init_esm_shims();
|
|
28605
|
+
var c36 = initContract();
|
|
28606
|
+
var memoryFileSchema = external_exports.object({
|
|
28607
|
+
path: external_exports.string(),
|
|
28608
|
+
size: external_exports.number()
|
|
28609
|
+
});
|
|
28610
|
+
var memoryFileContentSchema = external_exports.object({
|
|
28611
|
+
path: external_exports.string(),
|
|
28612
|
+
content: external_exports.string()
|
|
28613
|
+
});
|
|
28614
|
+
var memorySourceProviderSchema = external_exports.enum(["gmail", "slack"]);
|
|
28615
|
+
var memoryRecallItemKindSchema = external_exports.enum([
|
|
28616
|
+
"key_fact",
|
|
28617
|
+
"preference",
|
|
28618
|
+
"open_loop"
|
|
28619
|
+
]);
|
|
28620
|
+
var memorySourceDirectionSchema = external_exports.enum([
|
|
28621
|
+
"sent",
|
|
28622
|
+
"received",
|
|
28623
|
+
"mixed",
|
|
28624
|
+
"unknown"
|
|
28625
|
+
]);
|
|
28626
|
+
var memorySourceCompactMetadataSchema = external_exports.object({
|
|
28627
|
+
workspaceId: external_exports.string().optional(),
|
|
28628
|
+
channelId: external_exports.string().optional(),
|
|
28629
|
+
channelType: external_exports.string().optional(),
|
|
28630
|
+
threadId: external_exports.string().nullable().optional(),
|
|
28631
|
+
messageTs: external_exports.string().optional(),
|
|
28632
|
+
senderId: external_exports.string().optional(),
|
|
28633
|
+
mailboxEmail: external_exports.string().optional(),
|
|
28634
|
+
direction: memorySourceDirectionSchema.optional()
|
|
28635
|
+
});
|
|
28636
|
+
var memorySourceMetadataSchema = memorySourceCompactMetadataSchema.extend({
|
|
28637
|
+
messageId: external_exports.string().nullable().optional(),
|
|
28638
|
+
participantIds: external_exports.array(external_exports.string()).optional(),
|
|
28639
|
+
fileIds: external_exports.array(external_exports.string()).optional(),
|
|
28640
|
+
historyId: external_exports.string().optional(),
|
|
28641
|
+
from: external_exports.string().nullable().optional(),
|
|
28642
|
+
to: external_exports.array(external_exports.string()).optional(),
|
|
28643
|
+
cc: external_exports.array(external_exports.string()).optional(),
|
|
28644
|
+
reason: external_exports.string().optional()
|
|
28645
|
+
}).passthrough();
|
|
28646
|
+
var memorySourceBaseSchema = external_exports.object({
|
|
28647
|
+
id: external_exports.string().uuid(),
|
|
28648
|
+
provider: memorySourceProviderSchema,
|
|
28649
|
+
sourceType: external_exports.enum(["gmail_message", "slack_message"]),
|
|
28650
|
+
title: external_exports.string().nullable(),
|
|
28651
|
+
occurredAt: external_exports.string().nullable(),
|
|
28652
|
+
createdAt: external_exports.string(),
|
|
28653
|
+
contentHash: external_exports.string().nullable()
|
|
28654
|
+
});
|
|
28655
|
+
var memorySourceSchema = memorySourceBaseSchema.extend({
|
|
28656
|
+
metadata: memorySourceCompactMetadataSchema
|
|
28657
|
+
});
|
|
28658
|
+
var memorySourceDetailResponseSchema = memorySourceBaseSchema.extend({
|
|
28659
|
+
externalId: external_exports.string(),
|
|
28660
|
+
connectorId: external_exports.string().uuid().nullable(),
|
|
28661
|
+
updatedAt: external_exports.string(),
|
|
28662
|
+
metadata: memorySourceMetadataSchema
|
|
28663
|
+
});
|
|
28664
|
+
var memoryRecallRelationshipSchema = external_exports.object({
|
|
28665
|
+
id: external_exports.string().uuid(),
|
|
28666
|
+
entity: external_exports.object({
|
|
28667
|
+
id: external_exports.string().uuid(),
|
|
28668
|
+
type: external_exports.enum(["person", "organization"]),
|
|
28669
|
+
displayName: external_exports.string(),
|
|
28670
|
+
primaryEmail: external_exports.string().nullable(),
|
|
28671
|
+
domain: external_exports.string().nullable()
|
|
28672
|
+
}),
|
|
28673
|
+
relationshipType: external_exports.string(),
|
|
28674
|
+
status: external_exports.enum(["active", "quiet", "archived"]),
|
|
28675
|
+
summary: external_exports.string(),
|
|
28676
|
+
lastInteractionAt: external_exports.string().nullable()
|
|
28677
|
+
});
|
|
28678
|
+
var memoryRecallSourceSchema = external_exports.object({
|
|
28679
|
+
id: external_exports.string().uuid(),
|
|
28680
|
+
provider: memorySourceProviderSchema,
|
|
28681
|
+
externalId: external_exports.string(),
|
|
28682
|
+
threadId: external_exports.string().nullable(),
|
|
28683
|
+
messageId: external_exports.string().nullable(),
|
|
28684
|
+
quote: external_exports.string().nullable(),
|
|
28685
|
+
occurredAt: external_exports.string().nullable()
|
|
28686
|
+
});
|
|
28687
|
+
var memoryRecallItemSchema = external_exports.object({
|
|
28688
|
+
id: external_exports.string().uuid(),
|
|
28689
|
+
kind: memoryRecallItemKindSchema,
|
|
28690
|
+
text: external_exports.string(),
|
|
28691
|
+
confidence: external_exports.number().int().min(0).max(100),
|
|
28692
|
+
lastSeenAt: external_exports.string(),
|
|
28693
|
+
relationship: memoryRecallRelationshipSchema,
|
|
28694
|
+
sources: external_exports.array(memoryRecallSourceSchema)
|
|
28695
|
+
});
|
|
28696
|
+
var memoryRecallResponseSchema = external_exports.object({
|
|
28697
|
+
query: external_exports.string(),
|
|
28698
|
+
memories: external_exports.array(memoryRecallItemSchema)
|
|
28699
|
+
});
|
|
28700
|
+
var memoryContextResponseSchema = external_exports.object({
|
|
28701
|
+
query: external_exports.string().nullable(),
|
|
28702
|
+
context: external_exports.string(),
|
|
28703
|
+
memories: external_exports.array(memoryRecallItemSchema)
|
|
28704
|
+
});
|
|
28705
|
+
var memorySourceListResponseSchema = external_exports.object({
|
|
28706
|
+
sources: external_exports.array(memorySourceSchema),
|
|
28707
|
+
pagination: external_exports.object({
|
|
28708
|
+
page: external_exports.number().int().positive(),
|
|
28709
|
+
pageSize: external_exports.number().int().positive(),
|
|
28710
|
+
total: external_exports.number().int().nonnegative(),
|
|
28711
|
+
totalPages: external_exports.number().int().positive(),
|
|
28712
|
+
hasMore: external_exports.boolean()
|
|
28713
|
+
})
|
|
28714
|
+
});
|
|
28715
|
+
var slackMemoryBackfillStatusSchema = external_exports.enum([
|
|
28716
|
+
"idle",
|
|
28717
|
+
"pending",
|
|
28718
|
+
"running",
|
|
28719
|
+
"stopped",
|
|
28720
|
+
"done",
|
|
28721
|
+
"failed"
|
|
28722
|
+
]);
|
|
28723
|
+
var slackMemoryBackfillSchema = external_exports.object({
|
|
28724
|
+
status: slackMemoryBackfillStatusSchema,
|
|
28725
|
+
estimatedTotal: external_exports.number().int().nonnegative().nullable(),
|
|
28726
|
+
scannedCount: external_exports.number().int().nonnegative(),
|
|
28727
|
+
recordedCount: external_exports.number().int().nonnegative(),
|
|
28728
|
+
lastError: external_exports.string().nullable(),
|
|
28729
|
+
updatedAt: external_exports.string().nullable(),
|
|
28730
|
+
completedAt: external_exports.string().nullable()
|
|
28731
|
+
});
|
|
28732
|
+
var slackMemoryStatusResponseSchema = external_exports.object({
|
|
28733
|
+
provider: external_exports.literal("slack"),
|
|
28734
|
+
workspaceConnected: external_exports.boolean(),
|
|
28735
|
+
userConnected: external_exports.boolean(),
|
|
28736
|
+
workspaceName: external_exports.string().nullable(),
|
|
28737
|
+
backfill: slackMemoryBackfillSchema
|
|
28738
|
+
});
|
|
28739
|
+
var slackMemoryBackfillRequestSchema = external_exports.object({
|
|
28740
|
+
days: external_exports.union([external_exports.literal(30), external_exports.literal(90), external_exports.literal(180), external_exports.literal(365)]),
|
|
28741
|
+
includePublicChannels: external_exports.boolean(),
|
|
28742
|
+
includePrivateChannels: external_exports.boolean(),
|
|
28743
|
+
includeDirectMessages: external_exports.boolean()
|
|
28744
|
+
});
|
|
28745
|
+
var memoryDetailResponseSchema = external_exports.object({
|
|
28746
|
+
exists: external_exports.boolean(),
|
|
28747
|
+
name: external_exports.string(),
|
|
28748
|
+
size: external_exports.number(),
|
|
28749
|
+
fileCount: external_exports.number(),
|
|
28750
|
+
updatedAt: external_exports.string().nullable(),
|
|
28751
|
+
files: external_exports.array(memoryFileSchema),
|
|
28752
|
+
fileContents: external_exports.array(memoryFileContentSchema)
|
|
28753
|
+
});
|
|
28754
|
+
var zeroMemoryContract = c36.router({
|
|
28755
|
+
get: {
|
|
28756
|
+
method: "GET",
|
|
28757
|
+
path: "/api/zero/memory",
|
|
28758
|
+
headers: authHeadersSchema,
|
|
28759
|
+
responses: {
|
|
28760
|
+
200: memoryDetailResponseSchema,
|
|
28761
|
+
401: apiErrorSchema,
|
|
28762
|
+
500: apiErrorSchema
|
|
28763
|
+
},
|
|
28764
|
+
summary: "Get the current user's memory artifact contents"
|
|
28765
|
+
},
|
|
28766
|
+
recall: {
|
|
28767
|
+
method: "GET",
|
|
28768
|
+
path: "/api/zero/memory/recall",
|
|
28769
|
+
headers: authHeadersSchema,
|
|
28770
|
+
query: external_exports.object({
|
|
28771
|
+
q: external_exports.string().min(1).max(300),
|
|
28772
|
+
kind: memoryRecallItemKindSchema.optional(),
|
|
28773
|
+
limit: external_exports.coerce.number().int().min(1).max(25).default(10)
|
|
28774
|
+
}),
|
|
28775
|
+
responses: {
|
|
28776
|
+
200: memoryRecallResponseSchema,
|
|
28777
|
+
400: apiErrorSchema,
|
|
28778
|
+
401: apiErrorSchema,
|
|
28779
|
+
403: apiErrorSchema,
|
|
28780
|
+
500: apiErrorSchema
|
|
28781
|
+
},
|
|
28782
|
+
summary: "Recall structured memories for the current user"
|
|
28783
|
+
},
|
|
28784
|
+
context: {
|
|
28785
|
+
method: "GET",
|
|
28786
|
+
path: "/api/zero/memory/context",
|
|
28787
|
+
headers: authHeadersSchema,
|
|
28788
|
+
query: external_exports.object({
|
|
28789
|
+
q: external_exports.string().min(1).max(300).optional(),
|
|
28790
|
+
limit: external_exports.coerce.number().int().min(1).max(30).default(12)
|
|
28791
|
+
}),
|
|
28792
|
+
responses: {
|
|
28793
|
+
200: memoryContextResponseSchema,
|
|
28794
|
+
401: apiErrorSchema,
|
|
28795
|
+
403: apiErrorSchema,
|
|
28796
|
+
500: apiErrorSchema
|
|
28797
|
+
},
|
|
28798
|
+
summary: "Get prompt-ready structured memory context for the current user"
|
|
28799
|
+
},
|
|
28800
|
+
sources: {
|
|
28801
|
+
method: "GET",
|
|
28802
|
+
path: "/api/zero/memory/sources",
|
|
28803
|
+
headers: authHeadersSchema,
|
|
28804
|
+
query: external_exports.object({
|
|
28805
|
+
provider: memorySourceProviderSchema.optional(),
|
|
28806
|
+
page: external_exports.coerce.number().int().positive().default(1),
|
|
28807
|
+
limit: external_exports.coerce.number().int().min(1).max(100).default(50)
|
|
28808
|
+
}),
|
|
28809
|
+
responses: {
|
|
28810
|
+
200: memorySourceListResponseSchema,
|
|
28811
|
+
401: apiErrorSchema,
|
|
28812
|
+
403: apiErrorSchema,
|
|
28813
|
+
500: apiErrorSchema
|
|
28814
|
+
},
|
|
28815
|
+
summary: "List structured memory sources for the current user"
|
|
28816
|
+
},
|
|
28817
|
+
source: {
|
|
28818
|
+
method: "GET",
|
|
28819
|
+
path: "/api/zero/memory/sources/:sourceId",
|
|
28820
|
+
pathParams: external_exports.object({
|
|
28821
|
+
sourceId: external_exports.string().uuid()
|
|
28822
|
+
}),
|
|
28823
|
+
headers: authHeadersSchema,
|
|
28824
|
+
responses: {
|
|
28825
|
+
200: memorySourceDetailResponseSchema,
|
|
28826
|
+
401: apiErrorSchema,
|
|
28827
|
+
403: apiErrorSchema,
|
|
28828
|
+
404: apiErrorSchema,
|
|
28829
|
+
500: apiErrorSchema
|
|
28830
|
+
},
|
|
28831
|
+
summary: "Get structured memory source details for the current user"
|
|
28832
|
+
},
|
|
28833
|
+
slackStatus: {
|
|
28834
|
+
method: "GET",
|
|
28835
|
+
path: "/api/zero/memory/sources/slack/status",
|
|
28836
|
+
headers: authHeadersSchema,
|
|
28837
|
+
responses: {
|
|
28838
|
+
200: slackMemoryStatusResponseSchema,
|
|
28839
|
+
401: apiErrorSchema,
|
|
28840
|
+
403: apiErrorSchema,
|
|
28841
|
+
500: apiErrorSchema
|
|
28842
|
+
},
|
|
28843
|
+
summary: "Read Slack memory source backfill status"
|
|
28844
|
+
},
|
|
28845
|
+
slackBackfill: {
|
|
28846
|
+
method: "POST",
|
|
28847
|
+
path: "/api/zero/memory/sources/slack/backfill",
|
|
28848
|
+
headers: authHeadersSchema,
|
|
28849
|
+
body: slackMemoryBackfillRequestSchema,
|
|
28850
|
+
responses: {
|
|
28851
|
+
200: slackMemoryStatusResponseSchema,
|
|
28852
|
+
400: apiErrorSchema,
|
|
28853
|
+
401: apiErrorSchema,
|
|
28854
|
+
403: apiErrorSchema,
|
|
28855
|
+
500: apiErrorSchema
|
|
28856
|
+
},
|
|
28857
|
+
summary: "Start or restart Slack memory source backfill"
|
|
28858
|
+
},
|
|
28859
|
+
slackStopBackfill: {
|
|
28860
|
+
method: "POST",
|
|
28861
|
+
path: "/api/zero/memory/sources/slack/backfill/stop",
|
|
28862
|
+
headers: authHeadersSchema,
|
|
28863
|
+
responses: {
|
|
28864
|
+
200: slackMemoryStatusResponseSchema,
|
|
28865
|
+
401: apiErrorSchema,
|
|
28866
|
+
403: apiErrorSchema,
|
|
28867
|
+
500: apiErrorSchema
|
|
28868
|
+
},
|
|
28869
|
+
summary: "Stop the current Slack memory source backfill"
|
|
28870
|
+
}
|
|
28871
|
+
});
|
|
28872
|
+
|
|
28873
|
+
// src/lib/api/domains/zero-memory.ts
|
|
28874
|
+
async function recallZeroMemory(options) {
|
|
28875
|
+
const config = await getClientConfig();
|
|
28876
|
+
const client = initClient(zeroMemoryContract, config);
|
|
28877
|
+
const result = await client.recall({
|
|
28878
|
+
query: {
|
|
28879
|
+
q: options.q,
|
|
28880
|
+
kind: options.kind,
|
|
28881
|
+
limit: options.limit
|
|
28882
|
+
}
|
|
28883
|
+
});
|
|
28884
|
+
if (result.status === 200) {
|
|
28885
|
+
return result.body;
|
|
28886
|
+
}
|
|
28887
|
+
handleError(result, "Failed to recall memory");
|
|
28888
|
+
}
|
|
28889
|
+
async function getZeroMemoryContext(options) {
|
|
28890
|
+
const config = await getClientConfig();
|
|
28891
|
+
const client = initClient(zeroMemoryContract, config);
|
|
28892
|
+
const result = await client.context({
|
|
28893
|
+
query: {
|
|
28894
|
+
q: options.q,
|
|
28895
|
+
limit: options.limit
|
|
28896
|
+
}
|
|
28897
|
+
});
|
|
28898
|
+
if (result.status === 200) {
|
|
28899
|
+
return result.body;
|
|
28900
|
+
}
|
|
28901
|
+
handleError(result, "Failed to load memory context");
|
|
28902
|
+
}
|
|
28903
|
+
|
|
28600
28904
|
// src/lib/api/domains/logs.ts
|
|
28601
28905
|
init_esm_shims();
|
|
28602
28906
|
async function getSystemLog(runId, options) {
|
|
@@ -28942,6 +29246,8 @@ export {
|
|
|
28942
29246
|
updateZeroChatThreadModelSelection,
|
|
28943
29247
|
resolveZeroRelationship,
|
|
28944
29248
|
searchZeroRelationships,
|
|
29249
|
+
recallZeroMemory,
|
|
29250
|
+
getZeroMemoryContext,
|
|
28945
29251
|
getSystemLog,
|
|
28946
29252
|
getMetrics,
|
|
28947
29253
|
getAgentEvents,
|
|
@@ -28963,4 +29269,4 @@ export {
|
|
|
28963
29269
|
completeHostedSite,
|
|
28964
29270
|
getHostedSiteFiles
|
|
28965
29271
|
};
|
|
28966
|
-
//# sourceMappingURL=chunk-
|
|
29272
|
+
//# sourceMappingURL=chunk-LMLY4WEM.js.map
|