@jskit-ai/assistant 0.1.27 → 0.1.28
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/package.descriptor.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export default Object.freeze({
|
|
2
2
|
packageVersion: 1,
|
|
3
3
|
packageId: "@jskit-ai/assistant",
|
|
4
|
-
version: "0.1.
|
|
4
|
+
version: "0.1.28",
|
|
5
5
|
kind: "runtime",
|
|
6
6
|
description: "Unified assistant module with streaming chat, transcript persistence, service-aware tool execution, and workspace UI.",
|
|
7
7
|
options: {
|
|
@@ -110,14 +110,14 @@ export default Object.freeze({
|
|
|
110
110
|
mutations: {
|
|
111
111
|
dependencies: {
|
|
112
112
|
runtime: {
|
|
113
|
-
"@jskit-ai/assistant": "0.1.
|
|
114
|
-
"@jskit-ai/auth-core": "0.1.
|
|
115
|
-
"@jskit-ai/database-runtime": "0.1.
|
|
116
|
-
"@jskit-ai/http-runtime": "0.1.
|
|
117
|
-
"@jskit-ai/kernel": "0.1.
|
|
118
|
-
"@jskit-ai/realtime": "0.1.
|
|
119
|
-
"@jskit-ai/users-core": "0.1.
|
|
120
|
-
"@jskit-ai/users-web": "0.1.
|
|
113
|
+
"@jskit-ai/assistant": "0.1.28",
|
|
114
|
+
"@jskit-ai/auth-core": "0.1.19",
|
|
115
|
+
"@jskit-ai/database-runtime": "0.1.20",
|
|
116
|
+
"@jskit-ai/http-runtime": "0.1.19",
|
|
117
|
+
"@jskit-ai/kernel": "0.1.20",
|
|
118
|
+
"@jskit-ai/realtime": "0.1.19",
|
|
119
|
+
"@jskit-ai/users-core": "0.1.29",
|
|
120
|
+
"@jskit-ai/users-web": "0.1.34",
|
|
121
121
|
"@tanstack/vue-query": "^5.90.5",
|
|
122
122
|
"dompurify": "^3.3.3",
|
|
123
123
|
"marked": "^17.0.4",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jskit-ai/assistant",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.28",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "node --test"
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
"./shared": "./src/shared/index.js"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@jskit-ai/auth-core": "0.1.
|
|
16
|
-
"@jskit-ai/database-runtime": "0.1.
|
|
17
|
-
"@jskit-ai/http-runtime": "0.1.
|
|
18
|
-
"@jskit-ai/kernel": "0.1.
|
|
19
|
-
"@jskit-ai/realtime": "0.1.
|
|
20
|
-
"@jskit-ai/shell-web": "0.1.
|
|
21
|
-
"@jskit-ai/users-core": "0.1.
|
|
22
|
-
"@jskit-ai/users-web": "0.1.
|
|
15
|
+
"@jskit-ai/auth-core": "0.1.19",
|
|
16
|
+
"@jskit-ai/database-runtime": "0.1.20",
|
|
17
|
+
"@jskit-ai/http-runtime": "0.1.19",
|
|
18
|
+
"@jskit-ai/kernel": "0.1.20",
|
|
19
|
+
"@jskit-ai/realtime": "0.1.19",
|
|
20
|
+
"@jskit-ai/shell-web": "0.1.19",
|
|
21
|
+
"@jskit-ai/users-core": "0.1.29",
|
|
22
|
+
"@jskit-ai/users-web": "0.1.34",
|
|
23
23
|
"@tanstack/vue-query": "^5.90.5",
|
|
24
24
|
"dompurify": "^3.3.3",
|
|
25
25
|
"marked": "^17.0.4",
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { normalizeText } from "@jskit-ai/kernel/shared/support/normalize";
|
|
2
2
|
import { normalizePathname } from "@jskit-ai/kernel/shared/surface/paths";
|
|
3
|
-
import {
|
|
3
|
+
import { checkRouteVisibility } from "@jskit-ai/users-core/shared/support/usersVisibility";
|
|
4
4
|
|
|
5
5
|
const ASSISTANT_API_RELATIVE_PATH = "/assistant";
|
|
6
6
|
const ASSISTANT_WORKSPACE_API_BASE_PATH_TEMPLATE = "/api/w/:workspaceSlug/assistant";
|
|
7
7
|
const ASSISTANT_PUBLIC_API_BASE_PATH = `/api${ASSISTANT_API_RELATIVE_PATH}`;
|
|
8
8
|
|
|
9
9
|
function resolveAssistantApiBasePath({ visibility = "workspace" } = {}) {
|
|
10
|
-
const normalizedVisibility =
|
|
11
|
-
|
|
10
|
+
const normalizedVisibility = checkRouteVisibility(normalizeText(visibility).toLowerCase() || "workspace", {
|
|
11
|
+
context: "resolveAssistantApiBasePath visibility"
|
|
12
12
|
});
|
|
13
13
|
if (normalizedVisibility === "workspace" || normalizedVisibility === "workspace_user") {
|
|
14
14
|
return ASSISTANT_WORKSPACE_API_BASE_PATH_TEMPLATE;
|