@lineai/agent-platform-types 0.1.0 → 0.1.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/build/{main/capabilities.d.ts → capabilities.d.ts} +5 -4
- package/build/capabilities.d.ts.map +1 -0
- package/build/capabilities.js +73 -0
- package/build/capabilities.js.map +1 -0
- package/build/index.d.ts +5 -0
- package/build/index.d.ts.map +1 -0
- package/build/index.js +5 -0
- package/build/index.js.map +1 -0
- package/build/{main/plugin.d.ts → plugin.d.ts} +69 -68
- package/build/plugin.d.ts.map +1 -0
- package/build/plugin.js +122 -0
- package/build/plugin.js.map +1 -0
- package/build/{module/records.d.ts → records.d.ts} +1 -0
- package/build/records.d.ts.map +1 -0
- package/build/records.js +64 -0
- package/build/records.js.map +1 -0
- package/build/{main/task.d.ts → task.d.ts} +49 -48
- package/build/task.d.ts.map +1 -0
- package/build/{module/task.js → task.js} +3 -3
- package/build/task.js.map +1 -0
- package/package.json +16 -12
- package/build/main/capabilities.js +0 -76
- package/build/main/index.d.ts +0 -4
- package/build/main/index.js +0 -21
- package/build/main/plugin.js +0 -125
- package/build/main/records.d.ts +0 -584
- package/build/main/records.js +0 -67
- package/build/main/task.js +0 -170
- package/build/module/capabilities.d.ts +0 -359
- package/build/module/capabilities.js +0 -73
- package/build/module/index.d.ts +0 -4
- package/build/module/index.js +0 -5
- package/build/module/plugin.d.ts +0 -1034
- package/build/module/plugin.js +0 -122
- package/build/module/records.js +0 -64
- package/build/module/task.d.ts +0 -1385
|
@@ -14,18 +14,18 @@ export declare const ConnectedIntegrationSchema: z.ZodObject<{
|
|
|
14
14
|
useAllTools: z.ZodOptional<z.ZodBoolean>;
|
|
15
15
|
toolSlugs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
16
16
|
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
name: string;
|
|
17
18
|
status: string;
|
|
18
19
|
slug: string;
|
|
19
20
|
connectionPath: string;
|
|
20
|
-
name: string;
|
|
21
21
|
logo?: string | undefined;
|
|
22
22
|
useAllTools?: boolean | undefined;
|
|
23
23
|
toolSlugs?: string[] | undefined;
|
|
24
24
|
}, {
|
|
25
|
+
name: string;
|
|
25
26
|
status: string;
|
|
26
27
|
slug: string;
|
|
27
28
|
connectionPath: string;
|
|
28
|
-
name: string;
|
|
29
29
|
logo?: string | undefined;
|
|
30
30
|
useAllTools?: boolean | undefined;
|
|
31
31
|
toolSlugs?: string[] | undefined;
|
|
@@ -51,15 +51,15 @@ export declare const ContextFileRefSchema: z.ZodObject<{
|
|
|
51
51
|
type: z.ZodString;
|
|
52
52
|
gsUrl: z.ZodString;
|
|
53
53
|
}, "strip", z.ZodTypeAny, {
|
|
54
|
+
name: string;
|
|
54
55
|
type: string;
|
|
55
56
|
size: number;
|
|
56
|
-
name: string;
|
|
57
57
|
id: string;
|
|
58
58
|
gsUrl: string;
|
|
59
59
|
}, {
|
|
60
|
+
name: string;
|
|
60
61
|
type: string;
|
|
61
62
|
size: number;
|
|
62
|
-
name: string;
|
|
63
63
|
id: string;
|
|
64
64
|
gsUrl: string;
|
|
65
65
|
}>;
|
|
@@ -357,3 +357,4 @@ export declare const ResolvedCapabilitiesSchema: z.ZodObject<{
|
|
|
357
357
|
} | undefined;
|
|
358
358
|
}>;
|
|
359
359
|
export type ResolvedCapabilities = z.infer<typeof ResolvedCapabilitiesSchema>;
|
|
360
|
+
//# sourceMappingURL=capabilities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../src/capabilities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;GAKG;AAIH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;EAQrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO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CAAC,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Capability types — these describe the tenant-scoped resources a task or
|
|
4
|
+
* plugin default can attach (integrations, collections, context files,
|
|
5
|
+
* memory cards) and the resolved metadata the orchestrator injects before
|
|
6
|
+
* the runtime executes.
|
|
7
|
+
*/
|
|
8
|
+
// ---------- Authoring shapes (what plugin/task carries) ----------
|
|
9
|
+
export const ConnectedIntegrationSchema = z.object({
|
|
10
|
+
slug: z.string(),
|
|
11
|
+
connectionPath: z.string(),
|
|
12
|
+
name: z.string(),
|
|
13
|
+
logo: z.string().optional(),
|
|
14
|
+
status: z.string(),
|
|
15
|
+
useAllTools: z.boolean().optional(),
|
|
16
|
+
toolSlugs: z.array(z.string()).optional(),
|
|
17
|
+
});
|
|
18
|
+
export const CollectionAccessOpSchema = z.enum([
|
|
19
|
+
'list',
|
|
20
|
+
'read',
|
|
21
|
+
'create',
|
|
22
|
+
'update',
|
|
23
|
+
'delete',
|
|
24
|
+
]);
|
|
25
|
+
export const CollectionAccessSchema = z.object({
|
|
26
|
+
collectionId: z.string(),
|
|
27
|
+
access: z.array(CollectionAccessOpSchema),
|
|
28
|
+
});
|
|
29
|
+
export const ContextFileRefSchema = z.object({
|
|
30
|
+
id: z.string(),
|
|
31
|
+
name: z.string(),
|
|
32
|
+
size: z.number(),
|
|
33
|
+
type: z.string(),
|
|
34
|
+
gsUrl: z.string(),
|
|
35
|
+
});
|
|
36
|
+
// Memory card IDs are stored as Firestore document paths.
|
|
37
|
+
export const MemoryCardRefSchema = z.string();
|
|
38
|
+
// ---------- Resolved shapes (what the orchestrator injects) ----------
|
|
39
|
+
export const ResolvedIntegrationToolsSchema = z.object({
|
|
40
|
+
tools: z.array(z.record(z.unknown())),
|
|
41
|
+
});
|
|
42
|
+
export const ResolvedCollectionsSchema = z.object({
|
|
43
|
+
items: z.array(z.object({
|
|
44
|
+
collectionId: z.string(),
|
|
45
|
+
access: z.array(CollectionAccessOpSchema),
|
|
46
|
+
})),
|
|
47
|
+
});
|
|
48
|
+
export const ResolvedContextFilesSchema = z.object({
|
|
49
|
+
files: z.array(z.object({
|
|
50
|
+
id: z.string(),
|
|
51
|
+
name: z.string(),
|
|
52
|
+
gsUrl: z.string(),
|
|
53
|
+
})),
|
|
54
|
+
});
|
|
55
|
+
export const ResolvedMemoryCardSchema = z.object({
|
|
56
|
+
id: z.string(),
|
|
57
|
+
name: z.string(),
|
|
58
|
+
scope: z.enum(['user', 'organization']),
|
|
59
|
+
createdBy: z.string(),
|
|
60
|
+
datasetId: z.string().optional(),
|
|
61
|
+
description: z.string().optional(),
|
|
62
|
+
cogneeUrl: z.string(),
|
|
63
|
+
});
|
|
64
|
+
export const ResolvedMemoryCardsSchema = z.object({
|
|
65
|
+
cards: z.array(ResolvedMemoryCardSchema),
|
|
66
|
+
});
|
|
67
|
+
export const ResolvedCapabilitiesSchema = z.object({
|
|
68
|
+
integrations: ResolvedIntegrationToolsSchema.optional(),
|
|
69
|
+
collections: ResolvedCollectionsSchema.optional(),
|
|
70
|
+
contextFiles: ResolvedContextFilesSchema.optional(),
|
|
71
|
+
memoryCards: ResolvedMemoryCardsSchema.optional(),
|
|
72
|
+
});
|
|
73
|
+
//# sourceMappingURL=capabilities.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capabilities.js","sourceRoot":"","sources":["../src/capabilities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;GAKG;AAEH,oEAAoE;AAEpE,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;IAC1B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,Q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AAW,EAAE,yBAAyB,CAAC,QAAQ,EAAE;CAClD,CAAC,CAAC"}
|
package/build/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC"}
|
package/build/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC"}
|