@scalar/agent-chat 0.2.9 → 0.3.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/dist/App.vue.d.ts +1 -1
- package/dist/App.vue.d.ts.map +1 -1
- package/dist/api.d.ts +4 -4
- package/dist/entities/index.d.ts +9 -0
- package/dist/entities/index.d.ts.map +1 -0
- package/dist/entities/index.js +21 -0
- package/dist/entities/tools/ask-for-authentication.js +3 -3
- package/dist/entities/tools/execute-request.js +3 -3
- package/dist/entities/tools/get-mini-openapi-spec.js +3 -3
- package/dist/package.json +8 -7
- package/package.json +9 -9
package/dist/App.vue.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { type ChatMode } from './types';
|
|
|
5
5
|
type __VLS_Props = {
|
|
6
6
|
eventBus: WorkspaceEventBus;
|
|
7
7
|
workspaceStore: WorkspaceStore;
|
|
8
|
-
registryDocuments:
|
|
8
|
+
registryDocuments: RegistryDocument[];
|
|
9
9
|
registryUrl: string;
|
|
10
10
|
baseUrl: string;
|
|
11
11
|
mode?: ChatMode;
|
package/dist/App.vue.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App.vue.d.ts","sourceRoot":"","sources":["../src/App.vue"],"names":[],"mappings":"AAgDA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAIvE,OAAO,EAA6B,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAChF,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAA;AAEvC,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,cAAc,EAAE,cAAc,CAAA;IAC9B,iBAAiB,EAAE,
|
|
1
|
+
{"version":3,"file":"App.vue.d.ts","sourceRoot":"","sources":["../src/App.vue"],"names":[],"mappings":"AAgDA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAIvE,OAAO,EAA6B,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAChF,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAA;AAEvC,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,cAAc,EAAE,cAAc,CAAA;IAC9B,iBAAiB,EAAE,gBAAgB,EAAE,CAAA;IACrC,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,cAAc,EAAE,MAAM,MAAM,CAAA;CAC7B,CAAC;;AA+DF,wBAMG"}
|
package/dist/api.d.ts
CHANGED
|
@@ -5,10 +5,10 @@ export declare function api({ baseUrl, getAccessToken }: {
|
|
|
5
5
|
}): {
|
|
6
6
|
search: (query: string) => Promise<{
|
|
7
7
|
success: false;
|
|
8
|
-
error: import("./entities/
|
|
8
|
+
error: import("./entities/index.js").AgentChatError<"FAILED_TO_FETCH", unknown>;
|
|
9
9
|
} | import("neverpanic").Result<never, null> | {
|
|
10
10
|
success: false;
|
|
11
|
-
error: import("./entities/
|
|
11
|
+
error: import("./entities/index.js").AgentChatError<string, string>;
|
|
12
12
|
data?: undefined;
|
|
13
13
|
} | {
|
|
14
14
|
success: true;
|
|
@@ -29,10 +29,10 @@ export declare function api({ baseUrl, getAccessToken }: {
|
|
|
29
29
|
slug: string;
|
|
30
30
|
}) => Promise<{
|
|
31
31
|
success: false;
|
|
32
|
-
error: import("./entities/
|
|
32
|
+
error: import("./entities/index.js").AgentChatError<"FAILED_TO_FETCH", unknown>;
|
|
33
33
|
} | import("neverpanic").Result<never, null> | {
|
|
34
34
|
success: false;
|
|
35
|
-
error: import("./entities/
|
|
35
|
+
error: import("./entities/index.js").AgentChatError<string, string>;
|
|
36
36
|
data?: undefined;
|
|
37
37
|
} | {
|
|
38
38
|
success: true;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { type AgentChatError, AgentErrorCodes, } from './error/constants.js';
|
|
2
|
+
export { createError } from './error/helpers.js';
|
|
3
|
+
export { type ApiMetadata, type DocumentSettings, type RegistryDocument, registryApiMetadata, } from './registry/document.js';
|
|
4
|
+
export { ASK_FOR_AUTHENTICATION_TOOL_NAME, type AskForAuthenticationInput, askForAuthenticationInputSchema, } from './tools/ask-for-authentication.js';
|
|
5
|
+
export { TOOL_NAMESPACE_SLUG_DELIMITER } from './tools/constants.js';
|
|
6
|
+
export { EXECUTE_REQUEST_TOOL_NAME, type ExecuteRequestToolInput, type ExecuteRequestToolOutput, executeRequestToolInputSchema, } from './tools/execute-request.js';
|
|
7
|
+
export { GET_MINI_OPENAPI_SPEC_TOOL_NAME, type GetMiniOpenAPIDocToolInput, type GetMiniOpenAPIDocToolOutput, getMiniOpenAPIDocToolInputSchema, } from './tools/get-mini-openapi-spec.js';
|
|
8
|
+
export { GET_OPENAPI_SPECS_SUMMARY_TOOL_NAME, type GetOpenAPISpecsSummaryToolOutput, } from './tools/get-openapi-spec-summary.js';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EACnB,eAAe,GAChB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAC7C,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,mBAAmB,GACpB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EACL,gCAAgC,EAChC,KAAK,yBAAyB,EAC9B,+BAA+B,GAChC,MAAM,gCAAgC,CAAA;AACvC,OAAO,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAA;AACjE,OAAO,EACL,yBAAyB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,6BAA6B,GAC9B,MAAM,yBAAyB,CAAA;AAChC,OAAO,EACL,+BAA+B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAChC,gCAAgC,GACjC,MAAM,+BAA+B,CAAA;AACtC,OAAO,EACL,mCAAmC,EACnC,KAAK,gCAAgC,GACtC,MAAM,kCAAkC,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AgentErrorCodes as e } from "./error/constants.js";
|
|
2
|
+
import { createError as E } from "./error/helpers.js";
|
|
3
|
+
import { registryApiMetadata as A } from "./registry/document.js";
|
|
4
|
+
import { ASK_FOR_AUTHENTICATION_TOOL_NAME as T, askForAuthenticationInputSchema as p } from "./tools/ask-for-authentication.js";
|
|
5
|
+
import { TOOL_NAMESPACE_SLUG_DELIMITER as m } from "./tools/constants.js";
|
|
6
|
+
import { EXECUTE_REQUEST_TOOL_NAME as S, executeRequestToolInputSchema as N } from "./tools/execute-request.js";
|
|
7
|
+
import { GET_MINI_OPENAPI_SPEC_TOOL_NAME as x, getMiniOpenAPIDocToolInputSchema as f } from "./tools/get-mini-openapi-spec.js";
|
|
8
|
+
import { GET_OPENAPI_SPECS_SUMMARY_TOOL_NAME as P } from "./tools/get-openapi-spec-summary.js";
|
|
9
|
+
export {
|
|
10
|
+
T as ASK_FOR_AUTHENTICATION_TOOL_NAME,
|
|
11
|
+
e as AgentErrorCodes,
|
|
12
|
+
S as EXECUTE_REQUEST_TOOL_NAME,
|
|
13
|
+
x as GET_MINI_OPENAPI_SPEC_TOOL_NAME,
|
|
14
|
+
P as GET_OPENAPI_SPECS_SUMMARY_TOOL_NAME,
|
|
15
|
+
m as TOOL_NAMESPACE_SLUG_DELIMITER,
|
|
16
|
+
p as askForAuthenticationInputSchema,
|
|
17
|
+
E as createError,
|
|
18
|
+
N as executeRequestToolInputSchema,
|
|
19
|
+
f as getMiniOpenAPIDocToolInputSchema,
|
|
20
|
+
A as registryApiMetadata
|
|
21
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z as t } from "zod";
|
|
2
|
-
const o = "ask-for-authentication"
|
|
3
|
-
t.object({
|
|
2
|
+
const o = "ask-for-authentication", i = t.object({
|
|
4
3
|
uniqueIdentifier: t.string()
|
|
5
4
|
});
|
|
6
5
|
export {
|
|
7
|
-
o as ASK_FOR_AUTHENTICATION_TOOL_NAME
|
|
6
|
+
o as ASK_FOR_AUTHENTICATION_TOOL_NAME,
|
|
7
|
+
i as askForAuthenticationInputSchema
|
|
8
8
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { z as t } from "zod";
|
|
2
|
-
const
|
|
3
|
-
t.object({
|
|
2
|
+
const o = "execute-request", r = t.object({
|
|
4
3
|
method: t.string(),
|
|
5
4
|
path: t.string(),
|
|
6
5
|
headers: t.record(t.string(), t.string()).optional(),
|
|
7
6
|
body: t.string().optional()
|
|
8
7
|
});
|
|
9
8
|
export {
|
|
10
|
-
|
|
9
|
+
o as EXECUTE_REQUEST_TOOL_NAME,
|
|
10
|
+
r as executeRequestToolInputSchema
|
|
11
11
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z as o } from "zod";
|
|
2
|
-
const e = "get-mini-openapi-spec"
|
|
3
|
-
o.object({
|
|
2
|
+
const e = "get-mini-openapi-spec", n = o.object({
|
|
4
3
|
question: o.string()
|
|
5
4
|
});
|
|
6
5
|
export {
|
|
7
|
-
e as GET_MINI_OPENAPI_SPEC_TOOL_NAME
|
|
6
|
+
e as GET_MINI_OPENAPI_SPEC_TOOL_NAME,
|
|
7
|
+
n as getMiniOpenAPIDocToolInputSchema
|
|
8
8
|
};
|
package/dist/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"url": "git+https://github.com/scalar/scalar.git",
|
|
11
11
|
"directory": "packages/agent-chat"
|
|
12
12
|
},
|
|
13
|
-
"version": "0.
|
|
13
|
+
"version": "0.3.0",
|
|
14
14
|
"engines": {
|
|
15
15
|
"node": ">=20"
|
|
16
16
|
},
|
|
@@ -29,11 +29,6 @@
|
|
|
29
29
|
"types": "./dist/index.d.ts",
|
|
30
30
|
"default": "./dist/index.js"
|
|
31
31
|
},
|
|
32
|
-
"./entities/*": {
|
|
33
|
-
"import": "./dist/entities/*.js",
|
|
34
|
-
"types": "./dist/entities/*.d.ts",
|
|
35
|
-
"default": "./dist/entities/*.js"
|
|
36
|
-
},
|
|
37
32
|
"./*.css": {
|
|
38
33
|
"import": "./dist/*.css",
|
|
39
34
|
"require": "./dist/*.css",
|
|
@@ -43,6 +38,11 @@
|
|
|
43
38
|
"import": "./dist/css/*.css",
|
|
44
39
|
"require": "./dist/css/*.css",
|
|
45
40
|
"default": "./dist/css/*.css"
|
|
41
|
+
},
|
|
42
|
+
"./entities": {
|
|
43
|
+
"import": "./dist/entities/index.js",
|
|
44
|
+
"types": "./dist/entities/index.d.ts",
|
|
45
|
+
"default": "./dist/entities/index.js"
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
"files": [
|
|
@@ -50,7 +50,6 @@
|
|
|
50
50
|
],
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@ai-sdk/vue": "catalog:*",
|
|
53
|
-
"@modelcontextprotocol/sdk": "catalog:*",
|
|
54
53
|
"@scalar/api-client": "workspace:*",
|
|
55
54
|
"@scalar/components": "workspace:*",
|
|
56
55
|
"@scalar/helpers": "workspace:*",
|
|
@@ -68,10 +67,12 @@
|
|
|
68
67
|
"zod": "catalog:*"
|
|
69
68
|
},
|
|
70
69
|
"devDependencies": {
|
|
70
|
+
"@modelcontextprotocol/sdk": "catalog:*",
|
|
71
71
|
"@scalar/build-tooling": "workspace:*",
|
|
72
72
|
"@tailwindcss/vite": "catalog:*",
|
|
73
73
|
"@types/whatwg-mimetype": "catalog:*",
|
|
74
74
|
"@vitejs/plugin-vue": "catalog:*",
|
|
75
|
+
"hono": "catalog:*",
|
|
75
76
|
"tailwindcss": "catalog:*",
|
|
76
77
|
"vite": "catalog:*"
|
|
77
78
|
}
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"url": "git+https://github.com/scalar/scalar.git",
|
|
11
11
|
"directory": "packages/agent-chat"
|
|
12
12
|
},
|
|
13
|
-
"version": "0.
|
|
13
|
+
"version": "0.3.0",
|
|
14
14
|
"engines": {
|
|
15
15
|
"node": ">=20"
|
|
16
16
|
},
|
|
@@ -22,11 +22,6 @@
|
|
|
22
22
|
"types": "./dist/index.d.ts",
|
|
23
23
|
"default": "./dist/index.js"
|
|
24
24
|
},
|
|
25
|
-
"./entities/*": {
|
|
26
|
-
"import": "./dist/entities/*.js",
|
|
27
|
-
"types": "./dist/entities/*.d.ts",
|
|
28
|
-
"default": "./dist/entities/*.js"
|
|
29
|
-
},
|
|
30
25
|
"./*.css": {
|
|
31
26
|
"import": "./dist/*.css",
|
|
32
27
|
"require": "./dist/*.css",
|
|
@@ -36,6 +31,11 @@
|
|
|
36
31
|
"import": "./dist/css/*.css",
|
|
37
32
|
"require": "./dist/css/*.css",
|
|
38
33
|
"default": "./dist/css/*.css"
|
|
34
|
+
},
|
|
35
|
+
"./entities": {
|
|
36
|
+
"import": "./dist/entities/index.js",
|
|
37
|
+
"types": "./dist/entities/index.d.ts",
|
|
38
|
+
"default": "./dist/entities/index.js"
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
"files": [
|
|
@@ -49,13 +49,13 @@
|
|
|
49
49
|
"vue": "^3.5.26",
|
|
50
50
|
"whatwg-mimetype": "4.0.0",
|
|
51
51
|
"zod": "^4.3.5",
|
|
52
|
-
"@scalar/api-client": "2.20.2",
|
|
53
|
-
"@scalar/helpers": "0.2.9",
|
|
54
52
|
"@scalar/icons": "0.5.2",
|
|
55
|
-
"@scalar/openapi-types": "0.5.3",
|
|
56
53
|
"@scalar/components": "0.16.30",
|
|
54
|
+
"@scalar/api-client": "2.20.2",
|
|
55
|
+
"@scalar/helpers": "0.2.9",
|
|
57
56
|
"@scalar/json-magic": "0.9.3",
|
|
58
57
|
"@scalar/themes": "0.13.26",
|
|
58
|
+
"@scalar/openapi-types": "0.5.3",
|
|
59
59
|
"@scalar/workspace-store": "0.26.2",
|
|
60
60
|
"@scalar/types": "0.5.10"
|
|
61
61
|
},
|