@things-factory/board-ai 10.1.47 → 10.1.52
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-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/service/board-ai-resolver.js +1 -1
- package/dist-server/service/board-ai-resolver.js.map +1 -1
- package/dist-server/service/board-session-resolver.js +3 -3
- package/dist-server/service/board-session-resolver.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/server/service/board-ai-resolver.ts +1 -1
- package/server/service/board-session-resolver.ts +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/board-ai",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.52",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "dist-client/client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@operato/i18n": "^10.0.0",
|
|
33
33
|
"@operato/scene-ops": "^10.14.1",
|
|
34
34
|
"@operato/styles": "^10.0.0",
|
|
35
|
-
"@things-factory/ai-assistant": "^10.1.
|
|
35
|
+
"@things-factory/ai-assistant": "^10.1.52",
|
|
36
36
|
"@things-factory/ai-client-base": "^10.1.39",
|
|
37
37
|
"@things-factory/auth-base": "^10.1.47",
|
|
38
38
|
"@things-factory/board-import": "^10.1.47",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"copyfiles": "^2.4.1",
|
|
48
48
|
"rimraf": "^5.0.0"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "b3ec4f0a38f0759d396f49b1f47c547bff4657be"
|
|
51
51
|
}
|
|
@@ -292,7 +292,7 @@ export class BoardAIChatResolver {
|
|
|
292
292
|
* 가진 사람이 이 문으로 보드를 고치게 된다. 그래서 아래에서 **보드 편집 권한을 따로 보고**
|
|
293
293
|
* 없으면 그 도구를 끈다(§`effectiveBoardTools`).
|
|
294
294
|
*/
|
|
295
|
-
@Directive('@privilege(category: "ai-assistant", privilege: "mutation")')
|
|
295
|
+
@Directive('@privilege(category: "ai-assistant", privilege: "mutation", domainOwnerGranted: true)')
|
|
296
296
|
async boardAIChat(
|
|
297
297
|
@Arg('input') input: BoardAIChatInput,
|
|
298
298
|
@Ctx() context: ResolverContext
|
|
@@ -42,7 +42,7 @@ const sessions = new ChatSessionResolver()
|
|
|
42
42
|
@Resolver()
|
|
43
43
|
export class BoardSessionResolver {
|
|
44
44
|
@Query(() => ChatSession, { nullable: true, description: 'Get AI chat session by board id (returns first match — backward compat single-session lookup).' })
|
|
45
|
-
@Directive('@privilege(category: "ai-assistant", privilege: "query")')
|
|
45
|
+
@Directive('@privilege(category: "ai-assistant", privilege: "query", domainOwnerGranted: true)')
|
|
46
46
|
async chatSessionByBoard(
|
|
47
47
|
@Arg('boardId') boardId: string,
|
|
48
48
|
@Ctx() context: ResolverContext
|
|
@@ -57,7 +57,7 @@ export class BoardSessionResolver {
|
|
|
57
57
|
@Query(() => [ChatSession], {
|
|
58
58
|
description: 'List all AI chat sessions for a board (oldest first). Thin wrapper over chatSessionsByAnchor(board).'
|
|
59
59
|
})
|
|
60
|
-
@Directive('@privilege(category: "ai-assistant", privilege: "query")')
|
|
60
|
+
@Directive('@privilege(category: "ai-assistant", privilege: "query", domainOwnerGranted: true)')
|
|
61
61
|
async chatSessionsByBoard(
|
|
62
62
|
@Arg('boardId') boardId: string,
|
|
63
63
|
@Ctx() context: ResolverContext
|
|
@@ -98,7 +98,7 @@ export class BoardSessionResolver {
|
|
|
98
98
|
@Mutation(() => ChatSession, {
|
|
99
99
|
description: 'Start (or get existing) AI chat session for a board. Thin wrapper over startAISession(board).'
|
|
100
100
|
})
|
|
101
|
-
@Directive('@privilege(category: "ai-assistant", privilege: "mutation")')
|
|
101
|
+
@Directive('@privilege(category: "ai-assistant", privilege: "mutation", domainOwnerGranted: true)')
|
|
102
102
|
async startBoardAISession(
|
|
103
103
|
@Arg('boardId') boardId: string,
|
|
104
104
|
@Ctx() context: ResolverContext
|