@lore-co/core 0.2.23 → 0.2.24
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/dist/auth-schemas.d.ts +25 -25
- package/dist/capture-policy.d.ts +25 -0
- package/dist/capture-policy.d.ts.map +1 -0
- package/dist/capture-policy.js +34 -0
- package/dist/capture-policy.js.map +1 -0
- package/dist/chat-schemas.d.ts +238 -0
- package/dist/chat-schemas.d.ts.map +1 -0
- package/dist/chat-schemas.js +65 -0
- package/dist/chat-schemas.js.map +1 -0
- package/dist/cloud-recovery-schemas.d.ts +8 -8
- package/dist/engine.d.ts.map +1 -1
- package/dist/engine.js +6 -2
- package/dist/engine.js.map +1 -1
- package/dist/guard-schemas.d.ts +3 -0
- package/dist/guard-schemas.d.ts.map +1 -1
- package/dist/guard-schemas.js +5 -0
- package/dist/guard-schemas.js.map +1 -1
- package/dist/in-memory-repository.d.ts +2 -0
- package/dist/in-memory-repository.d.ts.map +1 -1
- package/dist/in-memory-repository.js +9 -0
- package/dist/in-memory-repository.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/integration-contract.d.ts.map +1 -1
- package/dist/integration-contract.js +5 -3
- package/dist/integration-contract.js.map +1 -1
- package/dist/local-scope.d.ts +7 -0
- package/dist/local-scope.d.ts.map +1 -1
- package/dist/local-scope.js +12 -3
- package/dist/local-scope.js.map +1 -1
- package/dist/pilot-schemas.d.ts +1 -0
- package/dist/pilot-schemas.d.ts.map +1 -1
- package/dist/pilot-schemas.js +6 -0
- package/dist/pilot-schemas.js.map +1 -1
- package/dist/platform-admin-schemas.d.ts +5 -5
- package/dist/ports.d.ts +8 -0
- package/dist/ports.d.ts.map +1 -1
- package/dist/ports.js +5 -2
- package/dist/ports.js.map +1 -1
- package/dist/product-usage.d.ts +1 -1
- package/dist/reliability-schemas.d.ts +4 -4
- package/dist/repository-location.d.ts +6 -0
- package/dist/repository-location.d.ts.map +1 -1
- package/dist/repository-location.js +10 -2
- package/dist/repository-location.js.map +1 -1
- package/dist/repository-policy.d.ts +21 -0
- package/dist/repository-policy.d.ts.map +1 -1
- package/dist/repository-policy.js +16 -0
- package/dist/repository-policy.js.map +1 -1
- package/dist/schemas.d.ts +2 -0
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +5 -1
- package/dist/schemas.js.map +1 -1
- package/dist/session-schemas.d.ts +4 -0
- package/dist/session-schemas.d.ts.map +1 -1
- package/dist/slack-schemas.d.ts +62 -0
- package/dist/slack-schemas.d.ts.map +1 -0
- package/dist/slack-schemas.js +102 -0
- package/dist/slack-schemas.js.map +1 -0
- package/dist/snapshot-schemas.d.ts +14 -12
- package/dist/snapshot-schemas.d.ts.map +1 -1
- package/package.json +9 -1
|
@@ -332,6 +332,7 @@ export declare const SessionEventDigestSchema: z.ZodObject<{
|
|
|
332
332
|
redacted: z.ZodBoolean;
|
|
333
333
|
truncated: z.ZodBoolean;
|
|
334
334
|
}, z.core.$strict>>;
|
|
335
|
+
capture: z.ZodOptional<z.ZodLiteral<false>>;
|
|
335
336
|
}, z.core.$strict>, z.ZodObject<{
|
|
336
337
|
version: z.ZodLiteral<1>;
|
|
337
338
|
event: z.ZodLiteral<"failure">;
|
|
@@ -350,6 +351,7 @@ export declare const SessionEventDigestSchema: z.ZodObject<{
|
|
|
350
351
|
tool: z.ZodNullable<z.ZodString>;
|
|
351
352
|
repo: z.ZodNullable<z.ZodString>;
|
|
352
353
|
fileCount: z.ZodNumber;
|
|
354
|
+
capture: z.ZodOptional<z.ZodLiteral<false>>;
|
|
353
355
|
}, z.core.$strict>, z.ZodObject<{
|
|
354
356
|
version: z.ZodLiteral<1>;
|
|
355
357
|
event: z.ZodLiteral<"approval">;
|
|
@@ -558,6 +560,7 @@ export declare const WorkSessionDetailResponseSchema: z.ZodObject<{
|
|
|
558
560
|
redacted: z.ZodBoolean;
|
|
559
561
|
truncated: z.ZodBoolean;
|
|
560
562
|
}, z.core.$strict>>;
|
|
563
|
+
capture: z.ZodOptional<z.ZodLiteral<false>>;
|
|
561
564
|
}, z.core.$strict>, z.ZodObject<{
|
|
562
565
|
version: z.ZodLiteral<1>;
|
|
563
566
|
event: z.ZodLiteral<"failure">;
|
|
@@ -576,6 +579,7 @@ export declare const WorkSessionDetailResponseSchema: z.ZodObject<{
|
|
|
576
579
|
tool: z.ZodNullable<z.ZodString>;
|
|
577
580
|
repo: z.ZodNullable<z.ZodString>;
|
|
578
581
|
fileCount: z.ZodNumber;
|
|
582
|
+
capture: z.ZodOptional<z.ZodLiteral<false>>;
|
|
579
583
|
}, z.core.$strict>, z.ZodObject<{
|
|
580
584
|
version: z.ZodLiteral<1>;
|
|
581
585
|
event: z.ZodLiteral<"approval">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-schemas.d.ts","sourceRoot":"","sources":["../src/session-schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EACL,wBAAwB,EAIzB,MAAM,oBAAoB,CAAC;AAU5B,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;kBAmBnB,CAAC;AACZ,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B;;EAAoB,CAAC;AAC5D,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC,GAAG,OAAO,CAEvF;AAED,eAAO,MAAM,iBAAiB,aAS3B,CAAC;AAEJ,eAAO,MAAM,aAAa;;;;;;;;;kBAWf,CAAC;AACZ,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OA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;IACvC,OAAO,EAAE,WAAW,CAAC;IACrB,OAAO,EAAE,SAAS,mBAAmB,EAAE,CAAC;IACxC,MAAM,EAAE,SAAS,kBAAkB,EAAE,CAAC;IACtC,SAAS,EAAE,SAAS,oBAAoB,EAAE,CAAC;IAC3C,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAClC,GAAG,MAAM,CAuET"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** Slack bot tokens issued to an app installation start with `xoxb-`. */
|
|
3
|
+
export declare const SlackBotTokenSchema: z.ZodString;
|
|
4
|
+
/** Slack signing secrets are lowercase hex; accept any case the admin pastes. */
|
|
5
|
+
export declare const SlackSigningSecretSchema: z.ZodString;
|
|
6
|
+
export declare const SlackTeamIdSchema: z.ZodString;
|
|
7
|
+
/** Public shape of a workspace's Slack connection. Secrets never leave the API. */
|
|
8
|
+
export declare const SlackConnectionSchema: z.ZodObject<{
|
|
9
|
+
id: z.ZodUUID;
|
|
10
|
+
teamId: z.ZodString;
|
|
11
|
+
teamName: z.ZodNullable<z.ZodString>;
|
|
12
|
+
botUserId: z.ZodNullable<z.ZodString>;
|
|
13
|
+
connectedByEmail: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodEmail>>;
|
|
14
|
+
eventsPath: z.ZodString;
|
|
15
|
+
missingScopes: z.ZodArray<z.ZodString>;
|
|
16
|
+
lastEventAt: z.ZodNullable<z.ZodISODateTime>;
|
|
17
|
+
createdAt: z.ZodISODateTime;
|
|
18
|
+
}, z.core.$strict>;
|
|
19
|
+
export type SlackConnection = z.infer<typeof SlackConnectionSchema>;
|
|
20
|
+
export declare const SlackConnectionResponseSchema: z.ZodObject<{
|
|
21
|
+
connection: z.ZodNullable<z.ZodObject<{
|
|
22
|
+
id: z.ZodUUID;
|
|
23
|
+
teamId: z.ZodString;
|
|
24
|
+
teamName: z.ZodNullable<z.ZodString>;
|
|
25
|
+
botUserId: z.ZodNullable<z.ZodString>;
|
|
26
|
+
connectedByEmail: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodEmail>>;
|
|
27
|
+
eventsPath: z.ZodString;
|
|
28
|
+
missingScopes: z.ZodArray<z.ZodString>;
|
|
29
|
+
lastEventAt: z.ZodNullable<z.ZodISODateTime>;
|
|
30
|
+
createdAt: z.ZodISODateTime;
|
|
31
|
+
}, z.core.$strict>>;
|
|
32
|
+
}, z.core.$strict>;
|
|
33
|
+
export type SlackConnectionResponse = z.infer<typeof SlackConnectionResponseSchema>;
|
|
34
|
+
export declare const ConnectSlackRequestSchema: z.ZodObject<{
|
|
35
|
+
botToken: z.ZodString;
|
|
36
|
+
signingSecret: z.ZodString;
|
|
37
|
+
}, z.core.$strict>;
|
|
38
|
+
export type ConnectSlackRequest = z.infer<typeof ConnectSlackRequestSchema>;
|
|
39
|
+
export declare const DisconnectSlackResponseSchema: z.ZodObject<{
|
|
40
|
+
disconnected: z.ZodBoolean;
|
|
41
|
+
}, z.core.$strict>;
|
|
42
|
+
export type DisconnectSlackResponse = z.infer<typeof DisconnectSlackResponseSchema>;
|
|
43
|
+
/** Longest question the bot answers; longer mentions get a polite refusal. */
|
|
44
|
+
export declare const SLACK_QUESTION_MAX_LENGTH = 2000;
|
|
45
|
+
/** Scopes without which the bot cannot hear mentions or reply. */
|
|
46
|
+
export declare const SLACK_REQUIRED_SCOPES: readonly ["app_mentions:read", "chat:write"];
|
|
47
|
+
/**
|
|
48
|
+
* Every scope in Lore's manifest. `users:read` and `users:read.email` map the
|
|
49
|
+
* asking Slack user to a workspace member. The history scopes let the bot read
|
|
50
|
+
* earlier messages of the thread it is answering in (conversations.replies),
|
|
51
|
+
* so follow-ups keep their context; `im:history` also delivers direct messages.
|
|
52
|
+
*/
|
|
53
|
+
export declare const SLACK_BOT_SCOPES: readonly ["app_mentions:read", "chat:write", "channels:history", "groups:history", "im:history", "users:read", "users:read.email"];
|
|
54
|
+
/** Manifest scopes a token lacks; empty when Slack reported no scopes. */
|
|
55
|
+
export declare function missingSlackScopes(granted: readonly string[]): string[];
|
|
56
|
+
export declare const SLACK_BOT_EVENTS: readonly ["app_mention", "message.im"];
|
|
57
|
+
/**
|
|
58
|
+
* Slack app manifest an admin can paste into api.slack.com/apps when creating
|
|
59
|
+
* the app. The request URL is the connection's events URL once connected.
|
|
60
|
+
*/
|
|
61
|
+
export declare function slackAppManifest(eventsUrl: string, name?: string): string;
|
|
62
|
+
//# sourceMappingURL=slack-schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slack-schemas.d.ts","sourceRoot":"","sources":["../src/slack-schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yEAAyE;AACzE,eAAO,MAAM,mBAAmB,aAKgD,CAAC;AAEjF,iFAAiF;AACjF,eAAO,MAAM,wBAAwB,aAK6C,CAAC;AAEnF,eAAO,MAAM,iBAAiB,aAAmD,CAAC;AAElF,mFAAmF;AACnF,eAAO,MAAM,qBAAqB;;;;;;;;;;kBAkBvB,CAAC;AACZ,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,6BAA6B;;;;;;;;;;;;kBAE/B,CAAC;AACZ,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF,eAAO,MAAM,yBAAyB;;;kBAK3B,CAAC;AACZ,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,6BAA6B;;kBAE/B,CAAC;AACZ,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF,8EAA8E;AAC9E,eAAO,MAAM,yBAAyB,OAAQ,CAAC;AAE/C,kEAAkE;AAClE,eAAO,MAAM,qBAAqB,8CAA+C,CAAC;AAElF;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,oIAOnB,CAAC;AAEX,0EAA0E;AAC1E,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,EAAE,CAGvE;AAED,eAAO,MAAM,gBAAgB,wCAAyC,CAAC;AAEvE;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,SAAS,GAAG,MAAM,CA0BzE"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { AuthEmailSchema } from "./auth-schemas.js";
|
|
3
|
+
/** Slack bot tokens issued to an app installation start with `xoxb-`. */
|
|
4
|
+
export const SlackBotTokenSchema = z
|
|
5
|
+
.string()
|
|
6
|
+
.trim()
|
|
7
|
+
.min(20)
|
|
8
|
+
.max(500)
|
|
9
|
+
.regex(/^xoxb-[A-Za-z0-9-]+$/u, "Use the app's bot user OAuth token (xoxb-…)");
|
|
10
|
+
/** Slack signing secrets are lowercase hex; accept any case the admin pastes. */
|
|
11
|
+
export const SlackSigningSecretSchema = z
|
|
12
|
+
.string()
|
|
13
|
+
.trim()
|
|
14
|
+
.min(16)
|
|
15
|
+
.max(200)
|
|
16
|
+
.regex(/^[A-Za-z0-9]+$/u, "Use the app's signing secret from Basic Information");
|
|
17
|
+
export const SlackTeamIdSchema = z.string().trim().regex(/^[TE][A-Z0-9]{2,30}$/u);
|
|
18
|
+
/** Public shape of a workspace's Slack connection. Secrets never leave the API. */
|
|
19
|
+
export const SlackConnectionSchema = z
|
|
20
|
+
.object({
|
|
21
|
+
id: z.uuid(),
|
|
22
|
+
teamId: SlackTeamIdSchema,
|
|
23
|
+
teamName: z.string().trim().min(1).max(200).nullable(),
|
|
24
|
+
botUserId: z.string().trim().min(1).max(50).nullable(),
|
|
25
|
+
connectedByEmail: AuthEmailSchema.nullable(),
|
|
26
|
+
/** Path on the Lore API that Slack's Events API posts to for this connection. */
|
|
27
|
+
eventsPath: z.string().regex(/^\/v1\/connectors\/slack\/[0-9a-f-]{36}\/events$/u),
|
|
28
|
+
/**
|
|
29
|
+
* Recommended scopes the bot token lacks. Without the users scopes everyone
|
|
30
|
+
* gets workspace-visible answers; without the history scopes follow-ups in a
|
|
31
|
+
* thread start fresh. Empty when Slack did not report the token's scopes.
|
|
32
|
+
*/
|
|
33
|
+
missingScopes: z.array(z.string()),
|
|
34
|
+
lastEventAt: z.iso.datetime().nullable(),
|
|
35
|
+
createdAt: z.iso.datetime(),
|
|
36
|
+
})
|
|
37
|
+
.strict();
|
|
38
|
+
export const SlackConnectionResponseSchema = z
|
|
39
|
+
.object({ connection: SlackConnectionSchema.nullable() })
|
|
40
|
+
.strict();
|
|
41
|
+
export const ConnectSlackRequestSchema = z
|
|
42
|
+
.object({
|
|
43
|
+
botToken: SlackBotTokenSchema,
|
|
44
|
+
signingSecret: SlackSigningSecretSchema,
|
|
45
|
+
})
|
|
46
|
+
.strict();
|
|
47
|
+
export const DisconnectSlackResponseSchema = z
|
|
48
|
+
.object({ disconnected: z.boolean() })
|
|
49
|
+
.strict();
|
|
50
|
+
/** Longest question the bot answers; longer mentions get a polite refusal. */
|
|
51
|
+
export const SLACK_QUESTION_MAX_LENGTH = 2_000;
|
|
52
|
+
/** Scopes without which the bot cannot hear mentions or reply. */
|
|
53
|
+
export const SLACK_REQUIRED_SCOPES = ["app_mentions:read", "chat:write"];
|
|
54
|
+
/**
|
|
55
|
+
* Every scope in Lore's manifest. `users:read` and `users:read.email` map the
|
|
56
|
+
* asking Slack user to a workspace member. The history scopes let the bot read
|
|
57
|
+
* earlier messages of the thread it is answering in (conversations.replies),
|
|
58
|
+
* so follow-ups keep their context; `im:history` also delivers direct messages.
|
|
59
|
+
*/
|
|
60
|
+
export const SLACK_BOT_SCOPES = [
|
|
61
|
+
...SLACK_REQUIRED_SCOPES,
|
|
62
|
+
"channels:history",
|
|
63
|
+
"groups:history",
|
|
64
|
+
"im:history",
|
|
65
|
+
"users:read",
|
|
66
|
+
"users:read.email",
|
|
67
|
+
];
|
|
68
|
+
/** Manifest scopes a token lacks; empty when Slack reported no scopes. */
|
|
69
|
+
export function missingSlackScopes(granted) {
|
|
70
|
+
if (granted.length === 0)
|
|
71
|
+
return [];
|
|
72
|
+
return SLACK_BOT_SCOPES.filter((scope) => !granted.includes(scope));
|
|
73
|
+
}
|
|
74
|
+
export const SLACK_BOT_EVENTS = ["app_mention", "message.im"];
|
|
75
|
+
/**
|
|
76
|
+
* Slack app manifest an admin can paste into api.slack.com/apps when creating
|
|
77
|
+
* the app. The request URL is the connection's events URL once connected.
|
|
78
|
+
*/
|
|
79
|
+
export function slackAppManifest(eventsUrl, name = "Lore") {
|
|
80
|
+
return JSON.stringify({
|
|
81
|
+
display_information: {
|
|
82
|
+
name,
|
|
83
|
+
description: "Answers questions from your team's Lore learnings and sessions.",
|
|
84
|
+
},
|
|
85
|
+
features: {
|
|
86
|
+
bot_user: { display_name: name, always_online: false },
|
|
87
|
+
},
|
|
88
|
+
oauth_config: {
|
|
89
|
+
scopes: { bot: [...SLACK_BOT_SCOPES] },
|
|
90
|
+
},
|
|
91
|
+
settings: {
|
|
92
|
+
event_subscriptions: {
|
|
93
|
+
request_url: eventsUrl,
|
|
94
|
+
bot_events: [...SLACK_BOT_EVENTS],
|
|
95
|
+
},
|
|
96
|
+
org_deploy_enabled: false,
|
|
97
|
+
socket_mode_enabled: false,
|
|
98
|
+
token_rotation_enabled: false,
|
|
99
|
+
},
|
|
100
|
+
}, null, 2);
|
|
101
|
+
}
|
|
102
|
+
//# sourceMappingURL=slack-schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slack-schemas.js","sourceRoot":"","sources":["../src/slack-schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEp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gB,CAAC,SAAiB,EAAE,IAAI,GAAG,MAAM;IAC/D,OAAO,IAAI,CAAC,SAAS,CACnB;QACE,mBAAmB,EAAE;YACnB,IAAI;YACJ,WAAW,EAAE,iEAAiE;SAC/E;QACD,QAAQ,EAAE;YACR,QAAQ,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE;SACvD;QACD,YAAY,EAAE;YACZ,MAAM,EAAE,EAAE,GAAG,EAAE,CAAC,GAAG,gBAAgB,CAAC,EAAE;SACvC;QACD,QAAQ,EAAE;YACR,mBAAmB,EAAE;gBACnB,WAAW,EAAE,SAAS;gBACtB,UAAU,EAAE,CAAC,GAAG,gBAAgB,CAAC;aAClC;YACD,kBAAkB,EAAE,KAAK;YACzB,mBAAmB,EAAE,KAAK;YAC1B,sBAAsB,EAAE,KAAK;SAC9B;KACF,EACD,IAAI,EACJ,CAAC,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -85,6 +85,7 @@ export declare const SignedContextPayloadSchema: z.ZodObject<{
|
|
|
85
85
|
symbols: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
86
86
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
87
87
|
}, z.core.$strict>;
|
|
88
|
+
capture: z.ZodOptional<z.ZodBoolean>;
|
|
88
89
|
}, z.core.$strict>;
|
|
89
90
|
eventId: z.ZodUUID;
|
|
90
91
|
receiptId: z.ZodUUID;
|
|
@@ -507,6 +508,7 @@ export declare const SignedSnapshotPayloadSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
507
508
|
symbols: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
508
509
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
509
510
|
}, z.core.$strict>;
|
|
511
|
+
capture: z.ZodOptional<z.ZodBoolean>;
|
|
510
512
|
}, z.core.$strict>;
|
|
511
513
|
eventId: z.ZodUUID;
|
|
512
514
|
receiptId: z.ZodUUID;
|
|
@@ -937,8 +939,8 @@ export declare const ReliableObservationResponseSchema: z.ZodObject<{
|
|
|
937
939
|
reliability: z.ZodObject<{
|
|
938
940
|
contractVersion: z.ZodLiteral<"reliability-v1">;
|
|
939
941
|
operation: z.ZodEnum<{
|
|
940
|
-
guard: "guard";
|
|
941
942
|
capture: "capture";
|
|
943
|
+
guard: "guard";
|
|
942
944
|
retrieval: "retrieval";
|
|
943
945
|
}>;
|
|
944
946
|
status: z.ZodEnum<{
|
|
@@ -1442,8 +1444,8 @@ export declare const ReliableTurnResponseSchema: z.ZodObject<{
|
|
|
1442
1444
|
reliability: z.ZodObject<{
|
|
1443
1445
|
contractVersion: z.ZodLiteral<"reliability-v1">;
|
|
1444
1446
|
operation: z.ZodEnum<{
|
|
1445
|
-
guard: "guard";
|
|
1446
1447
|
capture: "capture";
|
|
1448
|
+
guard: "guard";
|
|
1447
1449
|
retrieval: "retrieval";
|
|
1448
1450
|
}>;
|
|
1449
1451
|
status: z.ZodEnum<{
|
|
@@ -1549,8 +1551,8 @@ export declare const ReliableTurnResponseSchema: z.ZodObject<{
|
|
|
1549
1551
|
retrieval: z.ZodObject<{
|
|
1550
1552
|
contractVersion: z.ZodLiteral<"reliability-v1">;
|
|
1551
1553
|
operation: z.ZodEnum<{
|
|
1552
|
-
guard: "guard";
|
|
1553
1554
|
capture: "capture";
|
|
1555
|
+
guard: "guard";
|
|
1554
1556
|
retrieval: "retrieval";
|
|
1555
1557
|
}>;
|
|
1556
1558
|
status: z.ZodEnum<{
|
|
@@ -1944,8 +1946,8 @@ export declare const ReliableContextDeliveryResponseSchema: z.ZodObject<{
|
|
|
1944
1946
|
reliability: z.ZodObject<{
|
|
1945
1947
|
contractVersion: z.ZodLiteral<"reliability-v1">;
|
|
1946
1948
|
operation: z.ZodEnum<{
|
|
1947
|
-
guard: "guard";
|
|
1948
1949
|
capture: "capture";
|
|
1950
|
+
guard: "guard";
|
|
1949
1951
|
retrieval: "retrieval";
|
|
1950
1952
|
}>;
|
|
1951
1953
|
status: z.ZodEnum<{
|
|
@@ -2046,8 +2048,8 @@ export declare const ReliableGuardPolicyResponseSchema: z.ZodObject<{
|
|
|
2046
2048
|
reliability: z.ZodObject<{
|
|
2047
2049
|
contractVersion: z.ZodLiteral<"reliability-v1">;
|
|
2048
2050
|
operation: z.ZodEnum<{
|
|
2049
|
-
guard: "guard";
|
|
2050
2051
|
capture: "capture";
|
|
2052
|
+
guard: "guard";
|
|
2051
2053
|
retrieval: "retrieval";
|
|
2052
2054
|
}>;
|
|
2053
2055
|
status: z.ZodEnum<{
|
|
@@ -2247,8 +2249,8 @@ export declare const ReliableGuardCheckResponseSchema: z.ZodObject<{
|
|
|
2247
2249
|
reliability: z.ZodObject<{
|
|
2248
2250
|
contractVersion: z.ZodLiteral<"reliability-v1">;
|
|
2249
2251
|
operation: z.ZodEnum<{
|
|
2250
|
-
guard: "guard";
|
|
2251
2252
|
capture: "capture";
|
|
2253
|
+
guard: "guard";
|
|
2252
2254
|
retrieval: "retrieval";
|
|
2253
2255
|
}>;
|
|
2254
2256
|
status: z.ZodEnum<{
|
|
@@ -2471,8 +2473,8 @@ export declare const ObservationReliabilityResponseSchema: z.ZodObject<{
|
|
|
2471
2473
|
reliability: z.ZodObject<{
|
|
2472
2474
|
contractVersion: z.ZodLiteral<"reliability-v1">;
|
|
2473
2475
|
operation: z.ZodEnum<{
|
|
2474
|
-
guard: "guard";
|
|
2475
2476
|
capture: "capture";
|
|
2477
|
+
guard: "guard";
|
|
2476
2478
|
retrieval: "retrieval";
|
|
2477
2479
|
}>;
|
|
2478
2480
|
status: z.ZodEnum<{
|
|
@@ -2975,8 +2977,8 @@ export declare const TurnReliabilityResponseSchema: z.ZodObject<{
|
|
|
2975
2977
|
reliability: z.ZodObject<{
|
|
2976
2978
|
contractVersion: z.ZodLiteral<"reliability-v1">;
|
|
2977
2979
|
operation: z.ZodEnum<{
|
|
2978
|
-
guard: "guard";
|
|
2979
2980
|
capture: "capture";
|
|
2981
|
+
guard: "guard";
|
|
2980
2982
|
retrieval: "retrieval";
|
|
2981
2983
|
}>;
|
|
2982
2984
|
status: z.ZodEnum<{
|
|
@@ -3082,8 +3084,8 @@ export declare const TurnReliabilityResponseSchema: z.ZodObject<{
|
|
|
3082
3084
|
retrieval: z.ZodObject<{
|
|
3083
3085
|
contractVersion: z.ZodLiteral<"reliability-v1">;
|
|
3084
3086
|
operation: z.ZodEnum<{
|
|
3085
|
-
guard: "guard";
|
|
3086
3087
|
capture: "capture";
|
|
3088
|
+
guard: "guard";
|
|
3087
3089
|
retrieval: "retrieval";
|
|
3088
3090
|
}>;
|
|
3089
3091
|
status: z.ZodEnum<{
|
|
@@ -3476,8 +3478,8 @@ export declare const ContextDeliveryReliabilityResponseSchema: z.ZodObject<{
|
|
|
3476
3478
|
reliability: z.ZodObject<{
|
|
3477
3479
|
contractVersion: z.ZodLiteral<"reliability-v1">;
|
|
3478
3480
|
operation: z.ZodEnum<{
|
|
3479
|
-
guard: "guard";
|
|
3480
3481
|
capture: "capture";
|
|
3482
|
+
guard: "guard";
|
|
3481
3483
|
retrieval: "retrieval";
|
|
3482
3484
|
}>;
|
|
3483
3485
|
status: z.ZodEnum<{
|
|
@@ -3577,8 +3579,8 @@ export declare const GuardPolicyReliabilityResponseSchema: z.ZodObject<{
|
|
|
3577
3579
|
reliability: z.ZodObject<{
|
|
3578
3580
|
contractVersion: z.ZodLiteral<"reliability-v1">;
|
|
3579
3581
|
operation: z.ZodEnum<{
|
|
3580
|
-
guard: "guard";
|
|
3581
3582
|
capture: "capture";
|
|
3583
|
+
guard: "guard";
|
|
3582
3584
|
retrieval: "retrieval";
|
|
3583
3585
|
}>;
|
|
3584
3586
|
status: z.ZodEnum<{
|
|
@@ -3777,8 +3779,8 @@ export declare const GuardCheckReliabilityResponseSchema: z.ZodObject<{
|
|
|
3777
3779
|
reliability: z.ZodObject<{
|
|
3778
3780
|
contractVersion: z.ZodLiteral<"reliability-v1">;
|
|
3779
3781
|
operation: z.ZodEnum<{
|
|
3780
|
-
guard: "guard";
|
|
3781
3782
|
capture: "capture";
|
|
3783
|
+
guard: "guard";
|
|
3782
3784
|
retrieval: "retrieval";
|
|
3783
3785
|
}>;
|
|
3784
3786
|
status: z.ZodEnum<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snapshot-schemas.d.ts","sourceRoot":"","sources":["../src/snapshot-schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAiCxB,eAAO,MAAM,wBAAwB,EAAG,qBAA8B,CAAC;AACvE,eAAO,MAAM,6BAA6B,EACxC,0BAAmC,CAAC;AAatC,eAAO,MAAM,uBAAuB,aAOjC,CAAC;AACJ,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CACrC,OAAO,uBAAuB,CAC/B,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;EAGhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,gCAAgC;;;;;;;kBAMlC,CAAC;AACZ,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,gCAAgC,CACxC,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;kBASxB,CAAC;AACZ,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,uBAAuB;;;;;;;;;kBAgBhC,CAAC;AACL,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;kBA0CnC,CAAC;AACL,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CACxC,OAAO,0BAA0B,CAClC,CAAC;AA2CF,eAAO,MAAM,0BAA0B
|
|
1
|
+
{"version":3,"file":"snapshot-schemas.d.ts","source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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBACd,CAAC;AACxC,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBACd,CAAC;AACpC,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBACd,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lore-co/core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.24",
|
|
4
4
|
"description": "Schemas and primitives for auditable Lore engineering memory",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -106,10 +106,18 @@
|
|
|
106
106
|
"types": "./dist/search-schemas.d.ts",
|
|
107
107
|
"import": "./dist/search-schemas.js"
|
|
108
108
|
},
|
|
109
|
+
"./chat-schemas": {
|
|
110
|
+
"types": "./dist/chat-schemas.d.ts",
|
|
111
|
+
"import": "./dist/chat-schemas.js"
|
|
112
|
+
},
|
|
109
113
|
"./cloud-recovery-schemas": {
|
|
110
114
|
"types": "./dist/cloud-recovery-schemas.d.ts",
|
|
111
115
|
"import": "./dist/cloud-recovery-schemas.js"
|
|
112
116
|
},
|
|
117
|
+
"./slack-schemas": {
|
|
118
|
+
"types": "./dist/slack-schemas.d.ts",
|
|
119
|
+
"import": "./dist/slack-schemas.js"
|
|
120
|
+
},
|
|
113
121
|
"./local-scope": {
|
|
114
122
|
"types": "./dist/local-scope.d.ts",
|
|
115
123
|
"import": "./dist/local-scope.js"
|