@dxos/plugin-assistant 0.8.2-main.2f9c567 → 0.8.2-main.5885341
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/lib/browser/{AssistantDialog-WX6EKSXI.mjs → AssistantDialog-I47GUXWR.mjs} +3 -3
- package/dist/lib/browser/{ChatContainer-HMNWYDQ5.mjs → ChatContainer-GAYN3FEF.mjs} +3 -3
- package/dist/lib/browser/{app-graph-builder-J5ISIFTE.mjs → app-graph-builder-ZXKGE3H5.mjs} +2 -2
- package/dist/lib/browser/{chunk-4EXBK6UE.mjs → chunk-7CAHKTZQ.mjs} +66 -45
- package/dist/lib/browser/chunk-7CAHKTZQ.mjs.map +7 -0
- package/dist/lib/browser/{chunk-J3V74ZRF.mjs → chunk-BGMQ2YYP.mjs} +4 -4
- package/dist/lib/browser/{chunk-J3V74ZRF.mjs.map → chunk-BGMQ2YYP.mjs.map} +2 -2
- package/dist/lib/browser/chunk-E7BN4QKP.mjs +190 -0
- package/dist/lib/browser/chunk-E7BN4QKP.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +3 -3
- package/dist/lib/browser/{intent-resolver-MGHOSZY3.mjs → intent-resolver-W6XREK5F.mjs} +2 -2
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-surface-VP4ABBMH.mjs → react-surface-QMI5KG4H.mjs} +4 -4
- package/dist/lib/browser/{settings-OZX7J65A.mjs → settings-LAJZQI4H.mjs} +2 -2
- package/dist/lib/browser/types/index.mjs +1 -1
- package/dist/lib/node/{AssistantDialog-2OTAZADX.cjs → AssistantDialog-SDS2TE5L.cjs} +7 -7
- package/dist/lib/node/{ChatContainer-3CTBKBS2.cjs → ChatContainer-U6AVMAHY.cjs} +7 -7
- package/dist/lib/node/{app-graph-builder-BBNLIGYJ.cjs → app-graph-builder-TXHPXIIC.cjs} +11 -11
- package/dist/lib/node/{chunk-VG2UQY4S.cjs → chunk-5UELRDHQ.cjs} +72 -74
- package/dist/lib/node/chunk-5UELRDHQ.cjs.map +7 -0
- package/dist/lib/node/{chunk-XC7A3KUG.cjs → chunk-CWHFK36A.cjs} +70 -55
- package/dist/lib/node/chunk-CWHFK36A.cjs.map +7 -0
- package/dist/lib/node/{chunk-WFSXNO4H.cjs → chunk-XBJO453B.cjs} +9 -9
- package/dist/lib/node/{chunk-WFSXNO4H.cjs.map → chunk-XBJO453B.cjs.map} +2 -2
- package/dist/lib/node/index.cjs +39 -39
- package/dist/lib/node/{intent-resolver-Z2NTL2FV.cjs → intent-resolver-MUJMV7II.cjs} +9 -9
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/{react-surface-HNXDAZ7C.cjs → react-surface-SAJF4XBB.cjs} +16 -16
- package/dist/lib/node/{settings-WLTC7XO5.cjs → settings-NPXTE6ND.cjs} +6 -6
- package/dist/lib/node/types/index.cjs +13 -13
- package/dist/lib/node/types/index.cjs.map +1 -1
- package/dist/lib/node-esm/{AssistantDialog-GNLPYXY4.mjs → AssistantDialog-KGA5HBFO.mjs} +3 -3
- package/dist/lib/node-esm/{ChatContainer-FGHDDORQ.mjs → ChatContainer-XPNXNPSW.mjs} +3 -3
- package/dist/lib/node-esm/{app-graph-builder-245AWCPJ.mjs → app-graph-builder-SV4WC2E2.mjs} +2 -2
- package/dist/lib/node-esm/chunk-ECYNZYEG.mjs +191 -0
- package/dist/lib/node-esm/chunk-ECYNZYEG.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-G5LUEW72.mjs → chunk-R7Q3OHWG.mjs} +4 -4
- package/dist/lib/node-esm/{chunk-G5LUEW72.mjs.map → chunk-R7Q3OHWG.mjs.map} +2 -2
- package/dist/lib/node-esm/{chunk-JX73NOSL.mjs → chunk-XFUXN5QU.mjs} +66 -45
- package/dist/lib/node-esm/chunk-XFUXN5QU.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +3 -3
- package/dist/lib/node-esm/{intent-resolver-DMQXPV2H.mjs → intent-resolver-DZY2O2DG.mjs} +2 -2
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{react-surface-NYXMBFPY.mjs → react-surface-R43NHNMC.mjs} +4 -4
- package/dist/lib/node-esm/{settings-CLE57WEP.mjs → settings-K3JDH2I5.mjs} +2 -2
- package/dist/lib/node-esm/types/index.mjs +1 -1
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/components/TemplateEditor/TemplateForm.d.ts +2 -2
- package/dist/types/src/components/TemplateEditor/TemplateForm.d.ts.map +1 -1
- package/dist/types/src/components/Thread/ThreadContainer.stories.d.ts +2 -2
- package/dist/types/src/components/Thread/ThreadContainer.stories.d.ts.map +1 -1
- package/dist/types/src/components/Toolbox/Toolbox.d.ts +1 -1
- package/dist/types/src/components/Toolbox/Toolbox.d.ts.map +1 -1
- package/dist/types/src/hooks/index.d.ts +1 -0
- package/dist/types/src/hooks/index.d.ts.map +1 -1
- package/dist/types/src/hooks/invocation-handler.d.ts +5 -0
- package/dist/types/src/hooks/invocation-handler.d.ts.map +1 -0
- package/dist/types/src/hooks/useLocalTriggerManager.d.ts +3 -0
- package/dist/types/src/hooks/useLocalTriggerManager.d.ts.map +1 -0
- package/dist/types/src/tools/function.d.ts +1 -1
- package/dist/types/src/tools/function.d.ts.map +1 -1
- package/dist/types/src/tools/openapi.d.ts.map +1 -1
- package/dist/types/src/types/service.d.ts +95 -96
- package/dist/types/src/types/service.d.ts.map +1 -1
- package/dist/types/src/types/template.d.ts +52 -52
- package/dist/types/src/types/template.d.ts.map +1 -1
- package/dist/types/src/types/types.d.ts +19 -19
- package/dist/types/src/types/types.d.ts.map +1 -1
- package/package.json +57 -60
- package/src/components/PromptSettings.tsx +2 -2
- package/src/components/TemplateEditor/TemplateForm.tsx +2 -2
- package/src/components/Thread/ThreadContainer.stories.tsx +2 -3
- package/src/components/Toolbox/Toolbox.tsx +1 -1
- package/src/hooks/index.ts +1 -0
- package/src/hooks/invocation-handler.ts +107 -0
- package/src/hooks/useChatProcessor.tsx +1 -1
- package/src/hooks/useLocalTriggerManager.ts +82 -0
- package/src/tools/function.ts +2 -2
- package/src/tools/openapi.ts +3 -4
- package/src/types/service.ts +37 -39
- package/src/types/template.ts +25 -27
- package/src/types/types.ts +18 -18
- package/dist/lib/browser/chunk-4EXBK6UE.mjs.map +0 -7
- package/dist/lib/browser/chunk-5P7U35RJ.mjs +0 -192
- package/dist/lib/browser/chunk-5P7U35RJ.mjs.map +0 -7
- package/dist/lib/node/chunk-VG2UQY4S.cjs.map +0 -7
- package/dist/lib/node/chunk-XC7A3KUG.cjs.map +0 -7
- package/dist/lib/node-esm/chunk-JX73NOSL.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-UZWYXNR5.mjs +0 -193
- package/dist/lib/node-esm/chunk-UZWYXNR5.mjs.map +0 -7
- /package/dist/lib/browser/{AssistantDialog-WX6EKSXI.mjs.map → AssistantDialog-I47GUXWR.mjs.map} +0 -0
- /package/dist/lib/browser/{ChatContainer-HMNWYDQ5.mjs.map → ChatContainer-GAYN3FEF.mjs.map} +0 -0
- /package/dist/lib/browser/{app-graph-builder-J5ISIFTE.mjs.map → app-graph-builder-ZXKGE3H5.mjs.map} +0 -0
- /package/dist/lib/browser/{intent-resolver-MGHOSZY3.mjs.map → intent-resolver-W6XREK5F.mjs.map} +0 -0
- /package/dist/lib/browser/{react-surface-VP4ABBMH.mjs.map → react-surface-QMI5KG4H.mjs.map} +0 -0
- /package/dist/lib/browser/{settings-OZX7J65A.mjs.map → settings-LAJZQI4H.mjs.map} +0 -0
- /package/dist/lib/node/{AssistantDialog-2OTAZADX.cjs.map → AssistantDialog-SDS2TE5L.cjs.map} +0 -0
- /package/dist/lib/node/{ChatContainer-3CTBKBS2.cjs.map → ChatContainer-U6AVMAHY.cjs.map} +0 -0
- /package/dist/lib/node/{app-graph-builder-BBNLIGYJ.cjs.map → app-graph-builder-TXHPXIIC.cjs.map} +0 -0
- /package/dist/lib/node/{intent-resolver-Z2NTL2FV.cjs.map → intent-resolver-MUJMV7II.cjs.map} +0 -0
- /package/dist/lib/node/{react-surface-HNXDAZ7C.cjs.map → react-surface-SAJF4XBB.cjs.map} +0 -0
- /package/dist/lib/node/{settings-WLTC7XO5.cjs.map → settings-NPXTE6ND.cjs.map} +0 -0
- /package/dist/lib/node-esm/{AssistantDialog-GNLPYXY4.mjs.map → AssistantDialog-KGA5HBFO.mjs.map} +0 -0
- /package/dist/lib/node-esm/{ChatContainer-FGHDDORQ.mjs.map → ChatContainer-XPNXNPSW.mjs.map} +0 -0
- /package/dist/lib/node-esm/{app-graph-builder-245AWCPJ.mjs.map → app-graph-builder-SV4WC2E2.mjs.map} +0 -0
- /package/dist/lib/node-esm/{intent-resolver-DMQXPV2H.mjs.map → intent-resolver-DZY2O2DG.mjs.map} +0 -0
- /package/dist/lib/node-esm/{react-surface-NYXMBFPY.mjs.map → react-surface-R43NHNMC.mjs.map} +0 -0
- /package/dist/lib/node-esm/{settings-CLE57WEP.mjs.map → settings-K3JDH2I5.mjs.map} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invocation-handler.d.ts","sourceRoot":"","sources":["../../../../src/hooks/invocation-handler.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAI7D,OAAO,EAAE,KAAK,MAAM,EAAe,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAgCrD,eAAO,MAAM,cAAc,WAAkB,MAAM,SAAS,KAAK,WAAW,eAAe,QAAQ,GAAG,oBA2BrG,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLocalTriggerManager.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useLocalTriggerManager.ts"],"names":[],"mappings":"AAaA,OAAO,EAAU,KAAK,KAAK,EAAY,MAAM,yBAAyB,CAAC;AAMvE,eAAO,MAAM,sBAAsB,UAAW,KAAK,SA8DlD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Tool } from '@dxos/artifact';
|
|
2
|
-
import type { FunctionType } from '@dxos/functions';
|
|
2
|
+
import type { FunctionType } from '@dxos/functions/types';
|
|
3
3
|
import type { SpaceId } from '@dxos/react-client/echo';
|
|
4
4
|
export declare const covertFunctionToTool: (fn: FunctionType, edgeUrl: string, spaceId?: SpaceId | undefined) => Tool | undefined;
|
|
5
5
|
//# sourceMappingURL=function.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"function.d.ts","sourceRoot":"","sources":["../../../../src/tools/function.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAG3C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"function.d.ts","sourceRoot":"","sources":["../../../../src/tools/function.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAG3C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE1D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAGvD,eAAO,MAAM,oBAAoB,OAC3B,YAAY,WACP,MAAM,YACL,OAAO,GAAG,SAAS,KAC5B,IAAI,GAAG,SA6BT,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openapi.d.ts","sourceRoot":"","sources":["../../../../src/tools/openapi.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"openapi.d.ts","sourceRoot":"","sources":["../../../../src/tools/openapi.ts"],"names":[],"mappings":"AAOA,OAAO,EAAc,KAAK,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAMvD,OAAO,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE9D,MAAM,MAAM,yBAAyB,GAAG;IACtC,aAAa,CAAC,EAAE,gBAAgB,CAAC;IACjC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,sBAAsB,YAAmB,WAAW,KAAG,OAAO,CAAC,IAAI,EAAE,CAMjF,CAAC;AAEF,eAAO,MAAM,kBAAkB,QAAe,MAAM,YAAY,yBAAyB,KAAG,OAAO,CAAC,IAAI,EAAE,CAqFzG,CAAC;AA2KF,eAAO,MAAM,oBAAoB,kBAAyB,gBAAgB,KAAG,OAAO,CAAC,MAAM,CAqB1F,CAAC"}
|
|
@@ -1,149 +1,148 @@
|
|
|
1
|
-
import { Schema } from 'effect';
|
|
2
1
|
import { ComputeGraph } from '@dxos/conductor';
|
|
3
|
-
import { type Ref$ } from '@dxos/echo-schema';
|
|
4
|
-
import { FunctionType } from '@dxos/functions';
|
|
5
|
-
export declare const ApiAuthorization:
|
|
6
|
-
type:
|
|
7
|
-
key: typeof
|
|
8
|
-
placement:
|
|
9
|
-
type:
|
|
10
|
-
}>,
|
|
11
|
-
type:
|
|
12
|
-
name: typeof
|
|
2
|
+
import { S, type Ref$ } from '@dxos/echo-schema';
|
|
3
|
+
import { FunctionType } from '@dxos/functions/types';
|
|
4
|
+
export declare const ApiAuthorization: S.Union<[S.Struct<{
|
|
5
|
+
type: S.Literal<["api-key"]>;
|
|
6
|
+
key: typeof S.String;
|
|
7
|
+
placement: S.Union<[S.Struct<{
|
|
8
|
+
type: S.Literal<["authorization-header"]>;
|
|
9
|
+
}>, S.Struct<{
|
|
10
|
+
type: S.Literal<["query"]>;
|
|
11
|
+
name: typeof S.String;
|
|
13
12
|
}>]>;
|
|
14
|
-
}>,
|
|
15
|
-
type:
|
|
16
|
-
clientId: typeof
|
|
17
|
-
clientSecret: typeof
|
|
18
|
-
tokenUrl: typeof
|
|
19
|
-
grantType: typeof
|
|
13
|
+
}>, S.Struct<{
|
|
14
|
+
type: S.Literal<["oauth"]>;
|
|
15
|
+
clientId: typeof S.String;
|
|
16
|
+
clientSecret: typeof S.String;
|
|
17
|
+
tokenUrl: typeof S.String;
|
|
18
|
+
grantType: typeof S.String;
|
|
20
19
|
}>]>;
|
|
21
|
-
export type ApiAuthorization =
|
|
22
|
-
declare const ServiceInterface:
|
|
23
|
-
kind:
|
|
20
|
+
export type ApiAuthorization = S.Schema.Type<typeof ApiAuthorization>;
|
|
21
|
+
declare const ServiceInterface: S.Union<[S.Struct<{
|
|
22
|
+
kind: S.Literal<["function"]>;
|
|
24
23
|
fn: Ref$<FunctionType>;
|
|
25
|
-
}>,
|
|
26
|
-
kind:
|
|
24
|
+
}>, S.Struct<{
|
|
25
|
+
kind: S.Literal<["workflow"]>;
|
|
27
26
|
workflow: Ref$<ComputeGraph>;
|
|
28
|
-
}>,
|
|
29
|
-
kind:
|
|
27
|
+
}>, S.Struct<{
|
|
28
|
+
kind: S.Literal<["api"]>;
|
|
30
29
|
/**
|
|
31
30
|
* URL to fetch the openapi schema.
|
|
32
31
|
*/
|
|
33
|
-
schemaUrl:
|
|
32
|
+
schemaUrl: S.optional<typeof S.String>;
|
|
34
33
|
/**
|
|
35
34
|
* Inlined openapi schema.
|
|
36
35
|
*/
|
|
37
|
-
schema:
|
|
36
|
+
schema: S.optional<typeof S.Any>;
|
|
38
37
|
/**
|
|
39
38
|
* Authorization configuration if required.
|
|
40
39
|
*/
|
|
41
|
-
authorization:
|
|
42
|
-
type:
|
|
43
|
-
key: typeof
|
|
44
|
-
placement:
|
|
45
|
-
type:
|
|
46
|
-
}>,
|
|
47
|
-
type:
|
|
48
|
-
name: typeof
|
|
40
|
+
authorization: S.optional<S.Union<[S.Struct<{
|
|
41
|
+
type: S.Literal<["api-key"]>;
|
|
42
|
+
key: typeof S.String;
|
|
43
|
+
placement: S.Union<[S.Struct<{
|
|
44
|
+
type: S.Literal<["authorization-header"]>;
|
|
45
|
+
}>, S.Struct<{
|
|
46
|
+
type: S.Literal<["query"]>;
|
|
47
|
+
name: typeof S.String;
|
|
49
48
|
}>]>;
|
|
50
|
-
}>,
|
|
51
|
-
type:
|
|
52
|
-
clientId: typeof
|
|
53
|
-
clientSecret: typeof
|
|
54
|
-
tokenUrl: typeof
|
|
55
|
-
grantType: typeof
|
|
49
|
+
}>, S.Struct<{
|
|
50
|
+
type: S.Literal<["oauth"]>;
|
|
51
|
+
clientId: typeof S.String;
|
|
52
|
+
clientSecret: typeof S.String;
|
|
53
|
+
tokenUrl: typeof S.String;
|
|
54
|
+
grantType: typeof S.String;
|
|
56
55
|
}>]>>;
|
|
57
56
|
}>]>;
|
|
58
|
-
export type ServiceInterface =
|
|
57
|
+
export type ServiceInterface = S.Schema.Type<typeof ServiceInterface>;
|
|
59
58
|
declare const ServiceType_base: import("@dxos/echo-schema").TypedObjectPrototype<import("@dxos/echo-schema").TypedObjectFields<{
|
|
60
|
-
serviceId: typeof
|
|
61
|
-
name:
|
|
62
|
-
description:
|
|
63
|
-
category:
|
|
64
|
-
enabled:
|
|
59
|
+
serviceId: typeof S.String;
|
|
60
|
+
name: S.optional<typeof S.String>;
|
|
61
|
+
description: S.optional<typeof S.String>;
|
|
62
|
+
category: S.optional<typeof S.String>;
|
|
63
|
+
enabled: S.optional<typeof S.Boolean>;
|
|
65
64
|
/**
|
|
66
65
|
* Entries exposed: functions, workflows, and APIs.
|
|
67
66
|
*/
|
|
68
|
-
interfaces:
|
|
69
|
-
kind:
|
|
67
|
+
interfaces: S.optional<S.Array$<S.Union<[S.Struct<{
|
|
68
|
+
kind: S.Literal<["function"]>;
|
|
70
69
|
fn: Ref$<FunctionType>;
|
|
71
|
-
}>,
|
|
72
|
-
kind:
|
|
70
|
+
}>, S.Struct<{
|
|
71
|
+
kind: S.Literal<["workflow"]>;
|
|
73
72
|
workflow: Ref$<ComputeGraph>;
|
|
74
|
-
}>,
|
|
75
|
-
kind:
|
|
73
|
+
}>, S.Struct<{
|
|
74
|
+
kind: S.Literal<["api"]>;
|
|
76
75
|
/**
|
|
77
76
|
* URL to fetch the openapi schema.
|
|
78
77
|
*/
|
|
79
|
-
schemaUrl:
|
|
78
|
+
schemaUrl: S.optional<typeof S.String>;
|
|
80
79
|
/**
|
|
81
80
|
* Inlined openapi schema.
|
|
82
81
|
*/
|
|
83
|
-
schema:
|
|
82
|
+
schema: S.optional<typeof S.Any>;
|
|
84
83
|
/**
|
|
85
84
|
* Authorization configuration if required.
|
|
86
85
|
*/
|
|
87
|
-
authorization:
|
|
88
|
-
type:
|
|
89
|
-
key: typeof
|
|
90
|
-
placement:
|
|
91
|
-
type:
|
|
92
|
-
}>,
|
|
93
|
-
type:
|
|
94
|
-
name: typeof
|
|
86
|
+
authorization: S.optional<S.Union<[S.Struct<{
|
|
87
|
+
type: S.Literal<["api-key"]>;
|
|
88
|
+
key: typeof S.String;
|
|
89
|
+
placement: S.Union<[S.Struct<{
|
|
90
|
+
type: S.Literal<["authorization-header"]>;
|
|
91
|
+
}>, S.Struct<{
|
|
92
|
+
type: S.Literal<["query"]>;
|
|
93
|
+
name: typeof S.String;
|
|
95
94
|
}>]>;
|
|
96
|
-
}>,
|
|
97
|
-
type:
|
|
98
|
-
clientId: typeof
|
|
99
|
-
clientSecret: typeof
|
|
100
|
-
tokenUrl: typeof
|
|
101
|
-
grantType: typeof
|
|
95
|
+
}>, S.Struct<{
|
|
96
|
+
type: S.Literal<["oauth"]>;
|
|
97
|
+
clientId: typeof S.String;
|
|
98
|
+
clientSecret: typeof S.String;
|
|
99
|
+
tokenUrl: typeof S.String;
|
|
100
|
+
grantType: typeof S.String;
|
|
102
101
|
}>]>>;
|
|
103
102
|
}>]>>>;
|
|
104
|
-
}, import("@dxos/echo-schema").TypedObjectOptions>,
|
|
105
|
-
serviceId: typeof
|
|
106
|
-
name:
|
|
107
|
-
description:
|
|
108
|
-
category:
|
|
109
|
-
enabled:
|
|
103
|
+
}, import("@dxos/echo-schema").TypedObjectOptions>, S.Struct.Encoded<{
|
|
104
|
+
serviceId: typeof S.String;
|
|
105
|
+
name: S.optional<typeof S.String>;
|
|
106
|
+
description: S.optional<typeof S.String>;
|
|
107
|
+
category: S.optional<typeof S.String>;
|
|
108
|
+
enabled: S.optional<typeof S.Boolean>;
|
|
110
109
|
/**
|
|
111
110
|
* Entries exposed: functions, workflows, and APIs.
|
|
112
111
|
*/
|
|
113
|
-
interfaces:
|
|
114
|
-
kind:
|
|
112
|
+
interfaces: S.optional<S.Array$<S.Union<[S.Struct<{
|
|
113
|
+
kind: S.Literal<["function"]>;
|
|
115
114
|
fn: Ref$<FunctionType>;
|
|
116
|
-
}>,
|
|
117
|
-
kind:
|
|
115
|
+
}>, S.Struct<{
|
|
116
|
+
kind: S.Literal<["workflow"]>;
|
|
118
117
|
workflow: Ref$<ComputeGraph>;
|
|
119
|
-
}>,
|
|
120
|
-
kind:
|
|
118
|
+
}>, S.Struct<{
|
|
119
|
+
kind: S.Literal<["api"]>;
|
|
121
120
|
/**
|
|
122
121
|
* URL to fetch the openapi schema.
|
|
123
122
|
*/
|
|
124
|
-
schemaUrl:
|
|
123
|
+
schemaUrl: S.optional<typeof S.String>;
|
|
125
124
|
/**
|
|
126
125
|
* Inlined openapi schema.
|
|
127
126
|
*/
|
|
128
|
-
schema:
|
|
127
|
+
schema: S.optional<typeof S.Any>;
|
|
129
128
|
/**
|
|
130
129
|
* Authorization configuration if required.
|
|
131
130
|
*/
|
|
132
|
-
authorization:
|
|
133
|
-
type:
|
|
134
|
-
key: typeof
|
|
135
|
-
placement:
|
|
136
|
-
type:
|
|
137
|
-
}>,
|
|
138
|
-
type:
|
|
139
|
-
name: typeof
|
|
131
|
+
authorization: S.optional<S.Union<[S.Struct<{
|
|
132
|
+
type: S.Literal<["api-key"]>;
|
|
133
|
+
key: typeof S.String;
|
|
134
|
+
placement: S.Union<[S.Struct<{
|
|
135
|
+
type: S.Literal<["authorization-header"]>;
|
|
136
|
+
}>, S.Struct<{
|
|
137
|
+
type: S.Literal<["query"]>;
|
|
138
|
+
name: typeof S.String;
|
|
140
139
|
}>]>;
|
|
141
|
-
}>,
|
|
142
|
-
type:
|
|
143
|
-
clientId: typeof
|
|
144
|
-
clientSecret: typeof
|
|
145
|
-
tokenUrl: typeof
|
|
146
|
-
grantType: typeof
|
|
140
|
+
}>, S.Struct<{
|
|
141
|
+
type: S.Literal<["oauth"]>;
|
|
142
|
+
clientId: typeof S.String;
|
|
143
|
+
clientSecret: typeof S.String;
|
|
144
|
+
tokenUrl: typeof S.String;
|
|
145
|
+
grantType: typeof S.String;
|
|
147
146
|
}>]>>;
|
|
148
147
|
}>]>>>;
|
|
149
148
|
}>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../src/types/service.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../src/types/service.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAO,CAAC,EAAe,KAAK,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAwBrD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;IAAsD,CAAC;AACpF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,gBAAgB,CAAC,CAAC;AA+BtE,QAAA,MAAM,gBAAgB;;QA3BK,IAAI,CAAC,YAAY,CAAC;;;cAKZ,IAAI,CAAC,YAAY,CAAC;;;IAMjD;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;;;;;;;;;;;;;;;;IAIoG,CAAC;AAC1G,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,gBAAgB,CAAC,CAAC;;;;;;;IASpE;;OAEG;;;YAvCsB,IAAI,CAAC,YAAY,CAAC;;;kBAKZ,IAAI,CAAC,YAAY,CAAC;;;QAMjD;;WAEG;;QAGH;;WAEG;;QAGH;;WAEG;;;;;;;;;;;;;;;;;;;;;;;;IAcH;;OAEG;;;YAvCsB,IAAI,CAAC,YAAY,CAAC;;;kBAKZ,IAAI,CAAC,YAAY,CAAC;;;QAMjD;;WAEG;;QAGH;;WAEG;;QAGH;;WAEG;;;;;;;;;;;;;;;;;;;AAOL,qBAAa,WAAY,SAAQ,gBAW/B;CAAG;AAML,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,WAAW,mBAAmB;IAClC,aAAa,CAAC,KAAK,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;CAC7D;AAED,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAUvC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { S } from '@dxos/echo-schema';
|
|
2
2
|
export declare enum TemplateInputType {
|
|
3
3
|
VALUE = 0,
|
|
4
4
|
PASS_THROUGH = 1,
|
|
@@ -9,66 +9,66 @@ export declare enum TemplateInputType {
|
|
|
9
9
|
CONTEXT = 6,
|
|
10
10
|
SCHEMA = 7
|
|
11
11
|
}
|
|
12
|
-
export declare const TemplateInputSchema:
|
|
13
|
-
name: typeof
|
|
14
|
-
type:
|
|
15
|
-
value:
|
|
12
|
+
export declare const TemplateInputSchema: S.mutable<S.Struct<{
|
|
13
|
+
name: typeof S.String;
|
|
14
|
+
type: S.optional<S.Enums<typeof TemplateInputType>>;
|
|
15
|
+
value: S.optional<typeof S.String>;
|
|
16
16
|
}>>;
|
|
17
|
-
export type TemplateInput =
|
|
17
|
+
export type TemplateInput = S.Schema.Type<typeof TemplateInputSchema>;
|
|
18
18
|
export declare const TemplateKinds: readonly ["always", "schema-matching", "automatically", "manual"];
|
|
19
19
|
export type TemplateKind = (typeof TemplateKinds)[number];
|
|
20
|
-
export declare const TemplateKindSchema:
|
|
21
|
-
include:
|
|
22
|
-
}>,
|
|
23
|
-
include:
|
|
24
|
-
typename: typeof
|
|
25
|
-
}>,
|
|
26
|
-
include:
|
|
27
|
-
description: typeof
|
|
28
|
-
}>,
|
|
29
|
-
include:
|
|
20
|
+
export declare const TemplateKindSchema: S.Union<[S.Struct<{
|
|
21
|
+
include: S.Literal<["always"]>;
|
|
22
|
+
}>, S.Struct<{
|
|
23
|
+
include: S.Literal<["schema-matching"]>;
|
|
24
|
+
typename: typeof S.String;
|
|
25
|
+
}>, S.Struct<{
|
|
26
|
+
include: S.Literal<["automatically"]>;
|
|
27
|
+
description: typeof S.String;
|
|
28
|
+
}>, S.Struct<{
|
|
29
|
+
include: S.Literal<["manual"]>;
|
|
30
30
|
}>]>;
|
|
31
|
-
export type TemplateKindType =
|
|
31
|
+
export type TemplateKindType = S.Schema.Type<typeof TemplateKindSchema>;
|
|
32
32
|
declare const TemplateType_base: import("@dxos/echo-schema").TypedObjectPrototype<import("@dxos/echo-schema").TypedObjectFields<{
|
|
33
|
-
name:
|
|
34
|
-
kind:
|
|
35
|
-
include:
|
|
36
|
-
}>,
|
|
37
|
-
include:
|
|
38
|
-
typename: typeof
|
|
39
|
-
}>,
|
|
40
|
-
include:
|
|
41
|
-
description: typeof
|
|
42
|
-
}>,
|
|
43
|
-
include:
|
|
33
|
+
name: S.optional<typeof S.String>;
|
|
34
|
+
kind: S.mutable<S.Union<[S.Struct<{
|
|
35
|
+
include: S.Literal<["always"]>;
|
|
36
|
+
}>, S.Struct<{
|
|
37
|
+
include: S.Literal<["schema-matching"]>;
|
|
38
|
+
typename: typeof S.String;
|
|
39
|
+
}>, S.Struct<{
|
|
40
|
+
include: S.Literal<["automatically"]>;
|
|
41
|
+
description: typeof S.String;
|
|
42
|
+
}>, S.Struct<{
|
|
43
|
+
include: S.Literal<["manual"]>;
|
|
44
44
|
}>]>>;
|
|
45
|
-
source: typeof
|
|
46
|
-
inputs:
|
|
47
|
-
name: typeof
|
|
48
|
-
type:
|
|
49
|
-
value:
|
|
45
|
+
source: typeof S.String;
|
|
46
|
+
inputs: S.optional<S.mutable<S.Array$<S.mutable<S.Struct<{
|
|
47
|
+
name: typeof S.String;
|
|
48
|
+
type: S.optional<S.Enums<typeof TemplateInputType>>;
|
|
49
|
+
value: S.optional<typeof S.String>;
|
|
50
50
|
}>>>>>;
|
|
51
|
-
command:
|
|
52
|
-
}, import("@dxos/echo-schema").TypedObjectOptions>,
|
|
53
|
-
name:
|
|
54
|
-
kind:
|
|
55
|
-
include:
|
|
56
|
-
}>,
|
|
57
|
-
include:
|
|
58
|
-
typename: typeof
|
|
59
|
-
}>,
|
|
60
|
-
include:
|
|
61
|
-
description: typeof
|
|
62
|
-
}>,
|
|
63
|
-
include:
|
|
51
|
+
command: S.optional<typeof S.String>;
|
|
52
|
+
}, import("@dxos/echo-schema").TypedObjectOptions>, S.Struct.Encoded<{
|
|
53
|
+
name: S.optional<typeof S.String>;
|
|
54
|
+
kind: S.mutable<S.Union<[S.Struct<{
|
|
55
|
+
include: S.Literal<["always"]>;
|
|
56
|
+
}>, S.Struct<{
|
|
57
|
+
include: S.Literal<["schema-matching"]>;
|
|
58
|
+
typename: typeof S.String;
|
|
59
|
+
}>, S.Struct<{
|
|
60
|
+
include: S.Literal<["automatically"]>;
|
|
61
|
+
description: typeof S.String;
|
|
62
|
+
}>, S.Struct<{
|
|
63
|
+
include: S.Literal<["manual"]>;
|
|
64
64
|
}>]>>;
|
|
65
|
-
source: typeof
|
|
66
|
-
inputs:
|
|
67
|
-
name: typeof
|
|
68
|
-
type:
|
|
69
|
-
value:
|
|
65
|
+
source: typeof S.String;
|
|
66
|
+
inputs: S.optional<S.mutable<S.Array$<S.mutable<S.Struct<{
|
|
67
|
+
name: typeof S.String;
|
|
68
|
+
type: S.optional<S.Enums<typeof TemplateInputType>>;
|
|
69
|
+
value: S.optional<typeof S.String>;
|
|
70
70
|
}>>>>>;
|
|
71
|
-
command:
|
|
71
|
+
command: S.optional<typeof S.String>;
|
|
72
72
|
}>>;
|
|
73
73
|
export declare class TemplateType extends TemplateType_base {
|
|
74
74
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../../../../src/types/template.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../../../../src/types/template.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAe,MAAM,mBAAmB,CAAC;AAGnD,oBAAY,iBAAiB;IAC3B,KAAK,IAAI;IACT,YAAY,IAAI;IAChB,SAAS,IAAI;IACb,QAAQ,IAAI;IACZ,KAAK,IAAI;IACT,QAAQ,IAAI;IACZ,OAAO,IAAI;IACX,MAAM,IAAI;CACX;AAED,eAAO,MAAM,mBAAmB;;;;GAM/B,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEtE,eAAO,MAAM,aAAa,mEAAoE,CAAC;AAC/F,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1D,eAAO,MAAM,kBAAkB;;;;;;;;;;IAe9B,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,kBAAkB,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACxE,qBAAa,YAAa,SAAQ,iBAMhC;CAAG"}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { S } from '@dxos/echo-schema';
|
|
2
2
|
import { AIChatType } from './chat';
|
|
3
3
|
import { TemplateType } from './template';
|
|
4
4
|
export declare namespace AssistantAction {
|
|
5
|
-
const CreateChat_base:
|
|
6
|
-
readonly _tag:
|
|
5
|
+
const CreateChat_base: S.TaggedClass<CreateChat, "dxos.org/plugin/assistant/action/create-chat", {
|
|
6
|
+
readonly _tag: S.tag<"dxos.org/plugin/assistant/action/create-chat">;
|
|
7
7
|
} & {
|
|
8
|
-
input:
|
|
9
|
-
spaceId:
|
|
10
|
-
name:
|
|
8
|
+
input: S.Struct<{
|
|
9
|
+
spaceId: S.optional<typeof S.String>;
|
|
10
|
+
name: S.optional<typeof S.String>;
|
|
11
11
|
}>;
|
|
12
|
-
output:
|
|
12
|
+
output: S.Struct<{
|
|
13
13
|
object: typeof AIChatType;
|
|
14
14
|
}>;
|
|
15
15
|
}>;
|
|
16
16
|
export class CreateChat extends CreateChat_base {
|
|
17
17
|
}
|
|
18
|
-
const CreateTemplate_base:
|
|
19
|
-
readonly _tag:
|
|
18
|
+
const CreateTemplate_base: S.TaggedClass<CreateTemplate, "dxos.org/plugin/assistant/action/create-template", {
|
|
19
|
+
readonly _tag: S.tag<"dxos.org/plugin/assistant/action/create-template">;
|
|
20
20
|
} & {
|
|
21
|
-
input:
|
|
22
|
-
name:
|
|
21
|
+
input: S.Struct<{
|
|
22
|
+
name: S.optional<typeof S.String>;
|
|
23
23
|
}>;
|
|
24
|
-
output:
|
|
24
|
+
output: S.Struct<{
|
|
25
25
|
object: typeof TemplateType;
|
|
26
26
|
}>;
|
|
27
27
|
}>;
|
|
@@ -30,12 +30,12 @@ export declare namespace AssistantAction {
|
|
|
30
30
|
export {};
|
|
31
31
|
}
|
|
32
32
|
export declare const LLM_PROVIDERS: readonly ["edge", "ollama", "lmstudio"];
|
|
33
|
-
export declare const AssistantSettingsSchema:
|
|
34
|
-
llmProvider:
|
|
35
|
-
edgeModel:
|
|
36
|
-
ollamaModel:
|
|
37
|
-
lmstudioModel:
|
|
38
|
-
customPrompts:
|
|
33
|
+
export declare const AssistantSettingsSchema: S.mutable<S.Struct<{
|
|
34
|
+
llmProvider: S.optional<S.Literal<["edge", "ollama", "lmstudio"]>>;
|
|
35
|
+
edgeModel: S.optional<typeof S.String>;
|
|
36
|
+
ollamaModel: S.optional<typeof S.String>;
|
|
37
|
+
lmstudioModel: S.optional<typeof S.String>;
|
|
38
|
+
customPrompts: S.optional<typeof S.Boolean>;
|
|
39
39
|
}>>;
|
|
40
|
-
export type AssistantSettingsProps =
|
|
40
|
+
export type AssistantSettingsProps = S.Schema.Type<typeof AssistantSettingsSchema>;
|
|
41
41
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/types/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/types/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAEtC,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAG1C,yBAAiB,eAAe,CAAC;;;;;;;;;;;;IAG/B,MAAM,OAAO,UAAW,SAAQ,eAQ9B;KAAG;;;;;;;;;;;IAEL,MAAM,OAAO,cAAe,SAAQ,mBAOlC;KAAG;;CACN;AAED,eAAO,MAAM,aAAa,yCAA0C,CAAC;AAErE,eAAO,MAAM,uBAAuB;;;;;;GAQnC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|