@jskit-ai/assistant-core 0.1.13 → 0.1.15

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.
@@ -1,7 +1,7 @@
1
1
  export default Object.freeze({
2
2
  packageVersion: 1,
3
3
  packageId: "@jskit-ai/assistant-core",
4
- version: "0.1.13",
4
+ version: "0.1.15",
5
5
  kind: "runtime",
6
6
  description: "Reusable assistant client/server/shared primitives without surface-specific routes or settings ownership.",
7
7
  dependsOn: [
@@ -45,9 +45,9 @@ export default Object.freeze({
45
45
  mutations: {
46
46
  dependencies: {
47
47
  runtime: {
48
- "@jskit-ai/http-runtime": "0.1.36",
49
- "@jskit-ai/kernel": "0.1.37",
50
- "@jskit-ai/users-core": "0.1.47",
48
+ "@jskit-ai/http-runtime": "0.1.38",
49
+ "@jskit-ai/kernel": "0.1.39",
50
+ "@jskit-ai/users-core": "0.1.49",
51
51
  "@tanstack/vue-query": "^5.90.5",
52
52
  "dompurify": "^3.3.3",
53
53
  "marked": "^17.0.4",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jskit-ai/assistant-core",
3
- "version": "0.1.13",
3
+ "version": "0.1.15",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "test": "node --test"
@@ -11,10 +11,10 @@
11
11
  "./shared": "./src/shared/index.js"
12
12
  },
13
13
  "dependencies": {
14
- "@jskit-ai/database-runtime": "0.1.37",
15
- "@jskit-ai/http-runtime": "0.1.36",
16
- "@jskit-ai/kernel": "0.1.37",
17
- "@jskit-ai/users-core": "0.1.47",
14
+ "@jskit-ai/database-runtime": "0.1.39",
15
+ "@jskit-ai/http-runtime": "0.1.38",
16
+ "@jskit-ai/kernel": "0.1.39",
17
+ "@jskit-ai/users-core": "0.1.49",
18
18
  "@tanstack/vue-query": "^5.90.5",
19
19
  "dompurify": "^3.3.3",
20
20
  "marked": "^17.0.4",
@@ -1,6 +1,6 @@
1
1
  import { normalizePathname } from "@jskit-ai/kernel/shared/surface/paths";
2
2
  import { normalizeText } from "@jskit-ai/kernel/shared/support/normalize";
3
- import { resolveApiBasePath } from "@jskit-ai/users-core/shared/support/usersApiPaths";
3
+ import { resolveScopedApiBasePath } from "@jskit-ai/kernel/shared/surface";
4
4
 
5
5
  const ASSISTANT_API_RELATIVE_PATH = "/assistant";
6
6
  const ASSISTANT_SETTINGS_API_RELATIVE_PATH = "/assistant/:surfaceId/settings";
@@ -38,16 +38,18 @@ function materializeAssistantPath(basePath = "", { workspaceSlug = "", surfaceId
38
38
  }
39
39
 
40
40
  function resolveAssistantApiBasePath({ requiresWorkspace = false } = {}) {
41
- return resolveApiBasePath({
42
- surfaceRequiresWorkspace: requiresWorkspace === true,
43
- relativePath: ASSISTANT_API_RELATIVE_PATH
41
+ return resolveScopedApiBasePath({
42
+ routeBase: requiresWorkspace === true ? "/w/:workspaceSlug" : "/",
43
+ relativePath: ASSISTANT_API_RELATIVE_PATH,
44
+ strictParams: false
44
45
  });
45
46
  }
46
47
 
47
48
  function resolveAssistantSettingsApiPath({ requiresWorkspace = false } = {}) {
48
- return resolveApiBasePath({
49
- surfaceRequiresWorkspace: requiresWorkspace === true,
50
- relativePath: ASSISTANT_SETTINGS_API_RELATIVE_PATH
49
+ return resolveScopedApiBasePath({
50
+ routeBase: requiresWorkspace === true ? "/w/:workspaceSlug" : "/",
51
+ relativePath: ASSISTANT_SETTINGS_API_RELATIVE_PATH,
52
+ strictParams: false
51
53
  });
52
54
  }
53
55