@things-factory/ai-assistant 10.1.304 → 10.1.316
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/utils/entry-proposal.d.ts +4 -1
- package/dist-client/utils/entry-proposal.js +5 -2
- package/dist-client/utils/entry-workspace.js +3 -3
- package/dist-server/index.d.ts +1 -0
- package/dist-server/index.js +4 -0
- package/dist-server/service/chat-session/attachment-tools.js +2 -0
- package/dist-server/service/chat-session/chat-session.d.ts +6 -0
- package/dist-server/service/chat-session/chat-session.js +9 -1
- package/dist-server/service/data-entry/entry-apply.js +3 -4
- package/dist-server/service/data-entry/entry-target.d.ts +13 -0
- package/dist-server/service/data-entry/entry-target.js +31 -0
- package/dist-server/service/data-entry/entry-tools.d.ts +4 -3
- package/dist-server/service/data-entry/entry-tools.js +50 -11
- package/dist-server/service/data-entry/entry-update.d.ts +1 -0
- package/dist-server/service/data-entry/entry-update.js +2 -0
- package/dist-server/service/data-read/read-tools.js +11 -6
- package/dist-server/service/database-error.d.ts +5 -0
- package/dist-server/service/database-error.js +27 -0
- package/dist-server/service/index.d.ts +1 -0
- package/dist-server/service/index.js +4 -1
- package/dist-server/service/mcp/mcp-audit.d.ts +7 -0
- package/dist-server/service/mcp/mcp-audit.js +44 -0
- package/dist-server/service/mcp/mcp-call.d.ts +60 -0
- package/dist-server/service/mcp/mcp-call.js +134 -0
- package/dist-server/service/mcp/mcp-conversation.d.ts +30 -0
- package/dist-server/service/mcp/mcp-conversation.js +202 -0
- package/dist-server/service/mcp/mcp-route.d.ts +7 -0
- package/dist-server/service/mcp/mcp-route.js +49 -0
- package/dist-server/service/mcp/mcp-scope.d.ts +45 -0
- package/dist-server/service/mcp/mcp-scope.js +138 -0
- package/dist-server/service/mcp/mcp-server.d.ts +43 -0
- package/dist-server/service/mcp/mcp-server.js +153 -0
- package/dist-server/service/mcp/mcp-settings.d.ts +33 -0
- package/dist-server/service/mcp/mcp-settings.js +25 -0
- package/dist-server/service/people/invite-tools.js +3 -0
- package/dist-server/service/workspace/workspace-blocks.d.ts +2 -0
- package/dist-server/service/workspace/workspace-blocks.js +3 -1
- package/dist-server/service/workspace/workspace-tools.js +3 -1
- package/package.json +7 -7
- package/translations/en.json +8 -1
- package/translations/es.json +8 -1
- package/translations/ja.json +8 -1
- package/translations/ko.json +8 -1
- package/translations/ms.json +8 -1
- package/translations/zh.json +8 -1
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MCP_PROTOCOL_VERSIONS = exports.MCP_PATH = void 0;
|
|
4
|
+
exports.answerMcp = answerMcp;
|
|
5
|
+
exports.mcpEndpoint = mcpEndpoint;
|
|
6
|
+
exports.mcpRequestGuard = mcpRequestGuard;
|
|
7
|
+
exports.mcpParseErrors = mcpParseErrors;
|
|
8
|
+
const request_translator_js_1 = require("../request-translator.js");
|
|
9
|
+
const mcp_call_js_1 = require("./mcp-call.js");
|
|
10
|
+
const mcp_scope_js_1 = require("./mcp-scope.js");
|
|
11
|
+
exports.MCP_PATH = '/mcp';
|
|
12
|
+
/** The protocol versions this server speaks, newest first. Not 2025-03-26: that version sends batches, and this takes none. */
|
|
13
|
+
exports.MCP_PROTOCOL_VERSIONS = ['2025-11-25', '2025-06-18'];
|
|
14
|
+
const PARSE_ERROR = -32700;
|
|
15
|
+
const INVALID_REQUEST = -32600;
|
|
16
|
+
const METHOD_NOT_FOUND = -32601;
|
|
17
|
+
const INVALID_PARAMS = -32602;
|
|
18
|
+
const INTERNAL_ERROR = -32603;
|
|
19
|
+
const reply = (id, result) => ({ jsonrpc: '2.0', id, result });
|
|
20
|
+
const failure = (id, code, message, data) => ({ jsonrpc: '2.0', id: id ?? null, error: { code, message, ...(data ? { data } : {}) } });
|
|
21
|
+
/** The answer to one JSON-RPC message; undefined for a notification or a response, which get none. */
|
|
22
|
+
async function answerMcp(message, request, deps) {
|
|
23
|
+
if (!message || typeof message !== 'object' || Array.isArray(message) || message.jsonrpc !== '2.0')
|
|
24
|
+
return failure(message?.id, INVALID_REQUEST, 'Invalid Request');
|
|
25
|
+
/* A response the client sent back, or a notification - neither is answered. */
|
|
26
|
+
if (typeof message.method !== 'string')
|
|
27
|
+
return 'result' in message || 'error' in message ? undefined : failure(message.id, INVALID_REQUEST, 'Invalid Request');
|
|
28
|
+
if (message.id === undefined)
|
|
29
|
+
return undefined;
|
|
30
|
+
/* A request's id is a string or a number; `null` is how a response says it could not read one. */
|
|
31
|
+
if (typeof message.id !== 'string' && typeof message.id !== 'number')
|
|
32
|
+
return failure(null, INVALID_REQUEST, 'Invalid Request');
|
|
33
|
+
const { id, method, params } = message;
|
|
34
|
+
const { state, t } = request;
|
|
35
|
+
const access = deps.access(state);
|
|
36
|
+
switch (method) {
|
|
37
|
+
case 'initialize': {
|
|
38
|
+
const asked = params?.protocolVersion;
|
|
39
|
+
const scope = await (0, mcp_scope_js_1.mcpToolScope)(access, await deps.mayAsk(state), !!deps.outside);
|
|
40
|
+
const instructions = (0, mcp_scope_js_1.mcpInstructions)(scope);
|
|
41
|
+
return reply(id, {
|
|
42
|
+
protocolVersion: exports.MCP_PROTOCOL_VERSIONS.includes(asked) ? asked : exports.MCP_PROTOCOL_VERSIONS[0],
|
|
43
|
+
capabilities: { tools: {} },
|
|
44
|
+
serverInfo: { name: 'ai-assistant', version: '1' },
|
|
45
|
+
...(instructions ? { instructions } : {})
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
case 'ping':
|
|
49
|
+
return reply(id, {});
|
|
50
|
+
case 'tools/list': {
|
|
51
|
+
const scope = await (0, mcp_scope_js_1.mcpToolScope)(access, await deps.mayAsk(state), !!deps.outside);
|
|
52
|
+
return reply(id, { tools: scope.specs.map(mcp_scope_js_1.mcpToolOf) });
|
|
53
|
+
}
|
|
54
|
+
case 'tools/call': {
|
|
55
|
+
const name = params?.name;
|
|
56
|
+
/* Asked again here - a door closed since the list closes the tool. */
|
|
57
|
+
const found = await (0, mcp_scope_js_1.findMcpTool)(name, access, await deps.mayAsk(state), !!deps.outside);
|
|
58
|
+
if ('refused' in found) {
|
|
59
|
+
await deps.refused?.(state, found.refused);
|
|
60
|
+
return failure(id, INVALID_PARAMS, `Unknown tool: ${name}`);
|
|
61
|
+
}
|
|
62
|
+
try {
|
|
63
|
+
return reply(id, await (0, mcp_call_js_1.callMcpTool)({ ...found, args: params?.arguments, state, t, access, client: state?.oauth?.clientId, outside: deps.outside, origin: request.origin }));
|
|
64
|
+
}
|
|
65
|
+
catch (error) {
|
|
66
|
+
if (error instanceof mcp_call_js_1.McpKeepFailed)
|
|
67
|
+
return failure(id, INTERNAL_ERROR, error.message);
|
|
68
|
+
throw error;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
default:
|
|
72
|
+
return failure(id, METHOD_NOT_FOUND, `Method not found: ${method}`);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* The koa handler behind the authorization server's middleware, which has already refused a domain that turned outside
|
|
77
|
+
* agents off (the resource's `enabledFor`). A request that reached here without a person and a domain (the middleware
|
|
78
|
+
* missing) is refused, never answered as nobody.
|
|
79
|
+
*/
|
|
80
|
+
function mcpEndpoint(deps) {
|
|
81
|
+
return async (context) => {
|
|
82
|
+
if (context.method !== 'POST') {
|
|
83
|
+
context.status = 405;
|
|
84
|
+
context.set('Allow', 'POST');
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
const { domain, user } = context.state ?? {};
|
|
88
|
+
if (!domain || !user) {
|
|
89
|
+
context.status = 401;
|
|
90
|
+
context.body = failure(null, INVALID_REQUEST, 'No person and domain - the request was not authorized');
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
/* The tools read the request's language as a scheduled run reads its own (`state.lng`). */
|
|
94
|
+
const state = { ...context.state, lng: context.state.lng ?? context.lng };
|
|
95
|
+
const answer = await answerMcp(context.request?.body, { state, t: (0, request_translator_js_1.requestTranslator)(context), ...(deps.origin ? { origin: deps.origin(context) } : {}) }, deps);
|
|
96
|
+
if (answer === undefined) {
|
|
97
|
+
context.status = 202;
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
context.status = 200;
|
|
101
|
+
context.body = answer;
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* What is asked before the token is read (MCP Streamable HTTP, security and version headers):
|
|
106
|
+
* - an `Origin` that is not this server's is a page elsewhere reaching it through the browser (DNS rebinding) - 403;
|
|
107
|
+
* - an `MCP-Protocol-Version` this server does not speak - 400.
|
|
108
|
+
* A client that is not a browser sends no `Origin`, and the version header only after `initialize`.
|
|
109
|
+
*/
|
|
110
|
+
function mcpRequestGuard(selfOrigin) {
|
|
111
|
+
return async (context, next) => {
|
|
112
|
+
const origin = context.get('origin');
|
|
113
|
+
if (origin) {
|
|
114
|
+
let given;
|
|
115
|
+
try {
|
|
116
|
+
given = new URL(origin).origin;
|
|
117
|
+
}
|
|
118
|
+
catch {
|
|
119
|
+
given = undefined;
|
|
120
|
+
}
|
|
121
|
+
if (!given || given === 'null' || given !== selfOrigin(context)) {
|
|
122
|
+
context.status = 403;
|
|
123
|
+
context.body = failure(null, INVALID_REQUEST, 'Origin not allowed');
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
const version = context.get('mcp-protocol-version');
|
|
128
|
+
if (version && !exports.MCP_PROTOCOL_VERSIONS.includes(version)) {
|
|
129
|
+
context.status = 400;
|
|
130
|
+
context.body = failure(null, INVALID_REQUEST, `Unsupported MCP-Protocol-Version: ${version}. This server speaks ${exports.MCP_PROTOCOL_VERSIONS.join(', ')}.`);
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
await next();
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* A body that is not JSON, answered in JSON-RPC (-32700). The body parser runs before every route and refuses it
|
|
138
|
+
* with a bare 400; this sits in front of it for `/mcp` only.
|
|
139
|
+
*/
|
|
140
|
+
async function mcpParseErrors(context, next) {
|
|
141
|
+
if (context.method !== 'POST' || context.path !== exports.MCP_PATH)
|
|
142
|
+
return next();
|
|
143
|
+
try {
|
|
144
|
+
await next();
|
|
145
|
+
}
|
|
146
|
+
catch (error) {
|
|
147
|
+
if (!(error instanceof SyntaxError) || error['status'] !== 400)
|
|
148
|
+
throw error;
|
|
149
|
+
context.status = 400;
|
|
150
|
+
context.body = failure(null, PARSE_ERROR, 'Parse error');
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
//# sourceMappingURL=mcp-server.js.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export declare const MCP_SETTINGS: {
|
|
2
|
+
table: {
|
|
3
|
+
outsideAgents: {
|
|
4
|
+
name: string;
|
|
5
|
+
type: "boolean";
|
|
6
|
+
level: "domain";
|
|
7
|
+
section: "connection";
|
|
8
|
+
card: string;
|
|
9
|
+
label: string;
|
|
10
|
+
hint: string;
|
|
11
|
+
order: number;
|
|
12
|
+
write: {
|
|
13
|
+
category: string;
|
|
14
|
+
privilege: "mutation";
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
text: (domain: {
|
|
19
|
+
id: string;
|
|
20
|
+
}, key: "outsideAgents", manager?: import("typeorm").EntityManager) => Promise<string>;
|
|
21
|
+
number: (domain: {
|
|
22
|
+
id: string;
|
|
23
|
+
}, key: "outsideAgents", manager?: import("typeorm").EntityManager) => Promise<number>;
|
|
24
|
+
flag: (domain: {
|
|
25
|
+
id: string;
|
|
26
|
+
}, key: "outsideAgents", manager?: import("typeorm").EntityManager) => Promise<boolean>;
|
|
27
|
+
json: <V = unknown>(domain: {
|
|
28
|
+
id: string;
|
|
29
|
+
}, key: "outsideAgents", manager?: import("typeorm").EntityManager) => Promise<V>;
|
|
30
|
+
};
|
|
31
|
+
export declare const outsideAgentsOn: (domain: {
|
|
32
|
+
id: string;
|
|
33
|
+
}) => Promise<boolean>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.outsideAgentsOn = exports.MCP_SETTINGS = void 0;
|
|
4
|
+
const setting_base_1 = require("@things-factory/setting-base");
|
|
5
|
+
/*
|
|
6
|
+
* 「바깥 AI 연결」 (ADR-0237 decision 6) - whether an agent outside the application may connect to this domain's tools
|
|
7
|
+
* for a person who consents. Off until the domain turns it on: opening the tools to outside agents is the domain's
|
|
8
|
+
* choice, never a default. When off, the authorization server neither grants `/mcp` there nor takes a token for it.
|
|
9
|
+
*/
|
|
10
|
+
exports.MCP_SETTINGS = (0, setting_base_1.declareDomainSettings)('ai-assistant', {
|
|
11
|
+
outsideAgents: {
|
|
12
|
+
name: 'AiAssistant::outsideAgents',
|
|
13
|
+
type: 'boolean',
|
|
14
|
+
level: 'domain',
|
|
15
|
+
section: 'connection',
|
|
16
|
+
card: 'ai-assistant.setting.external-ai',
|
|
17
|
+
label: 'ai-assistant.setting.external-ai-allow',
|
|
18
|
+
hint: 'ai-assistant.setting.external-ai-hint',
|
|
19
|
+
order: 1,
|
|
20
|
+
write: { category: 'env-var', privilege: 'mutation' }
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
const outsideAgentsOn = (domain) => exports.MCP_SETTINGS.flag(domain, 'outsideAgents');
|
|
24
|
+
exports.outsideAgentsOn = outsideAgentsOn;
|
|
25
|
+
//# sourceMappingURL=mcp-settings.js.map
|
|
@@ -118,6 +118,9 @@ const spec = {
|
|
|
118
118
|
name: 'proposeInvite',
|
|
119
119
|
/* It reads people through the organization's list - the same door that list has, so it is offered where that list is. */
|
|
120
120
|
doors: ['Query.employees'],
|
|
121
|
+
/* A card the person presses, into the conversation it is asked from. */
|
|
122
|
+
proposes: true,
|
|
123
|
+
needs: ['conversation'],
|
|
121
124
|
description: 'Offer a card that brings someone into this conversation. Give the name the person used; the server finds them in ' +
|
|
122
125
|
"the organization's people list and puts them on the card (several people by that name: the card lists each, the " +
|
|
123
126
|
'person picks). The person presses the card - nobody joins until then. One call per person.',
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/** The AI 작업 패널's tool - a rule about the panel is said where it is open. */
|
|
2
|
+
export declare const WORKSPACE_TOOL = "showInWorkspace";
|
|
1
3
|
export declare const WORKSPACE_BLOCK_KINDS: readonly ["heading", "text", "metrics", "table", "chart", "steps"];
|
|
2
4
|
export type WorkspaceBlockKind = (typeof WORKSPACE_BLOCK_KINDS)[number];
|
|
3
5
|
export declare const MAX_BLOCKS = 40;
|
|
@@ -8,10 +8,12 @@
|
|
|
8
8
|
* to be there. Pure - tested without a server.
|
|
9
9
|
*/
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.MAX_SERIES = exports.MAX_TABLE_ROWS = exports.MAX_BLOCKS = exports.WORKSPACE_BLOCK_KINDS = void 0;
|
|
11
|
+
exports.MAX_SERIES = exports.MAX_TABLE_ROWS = exports.MAX_BLOCKS = exports.WORKSPACE_BLOCK_KINDS = exports.WORKSPACE_TOOL = void 0;
|
|
12
12
|
exports.workspaceName = workspaceName;
|
|
13
13
|
exports.normalizeWorkspace = normalizeWorkspace;
|
|
14
14
|
exports.workspaceContents = workspaceContents;
|
|
15
|
+
/** The AI 작업 패널's tool - a rule about the panel is said where it is open. */
|
|
16
|
+
exports.WORKSPACE_TOOL = 'showInWorkspace';
|
|
15
17
|
exports.WORKSPACE_BLOCK_KINDS = ['heading', 'text', 'metrics', 'table', 'chart', 'steps'];
|
|
16
18
|
exports.MAX_BLOCKS = 40;
|
|
17
19
|
exports.MAX_TABLE_ROWS = 1000;
|
|
@@ -30,8 +30,10 @@ function showInWorkspace(args) {
|
|
|
30
30
|
}
|
|
31
31
|
const spec = {
|
|
32
32
|
kind: 'read',
|
|
33
|
-
name:
|
|
33
|
+
name: workspace_blocks_js_1.WORKSPACE_TOOL,
|
|
34
34
|
doors: [],
|
|
35
|
+
/* A card the person opens beside the conversation. */
|
|
36
|
+
proposes: true,
|
|
35
37
|
description: 'Put a large result on the AI workspace - a page the person opens from a card, beside the conversation. Blocks: ' +
|
|
36
38
|
'heading{text,level}, text{markdown}, metrics{items:[{label,value,unit,note}]}, table{columns:[{name,label,type:number|date|string}],rows,caption}, ' +
|
|
37
39
|
'chart{chart:bar|line, x:[labels], series:[{name,values:[numbers]}], unit, caption}, steps{items:[{label,state:done|doing|todo|failed,note}]}.',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/ai-assistant",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.316",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"things-factory": true,
|
|
6
6
|
"author": "heartyoh",
|
|
@@ -37,14 +37,14 @@
|
|
|
37
37
|
"@operato/shell": "^10.29.69",
|
|
38
38
|
"@operato/styles": "^10.0.0",
|
|
39
39
|
"@operato/utils": "^10.29.76",
|
|
40
|
-
"@things-factory/ai-client-base": "^10.1.
|
|
40
|
+
"@things-factory/ai-client-base": "^10.1.316",
|
|
41
41
|
"@things-factory/apptool-base": "^10.1.304",
|
|
42
|
-
"@things-factory/attachment-base": "^10.1.
|
|
43
|
-
"@things-factory/auth-base": "^10.1.
|
|
42
|
+
"@things-factory/attachment-base": "^10.1.316",
|
|
43
|
+
"@things-factory/auth-base": "^10.1.316",
|
|
44
44
|
"@things-factory/env": "^10.1.298",
|
|
45
45
|
"@things-factory/export-base": "^10.1.304",
|
|
46
|
-
"@things-factory/help": "^10.1.
|
|
47
|
-
"@things-factory/setting-base": "^10.1.
|
|
46
|
+
"@things-factory/help": "^10.1.316",
|
|
47
|
+
"@things-factory/setting-base": "^10.1.316",
|
|
48
48
|
"@things-factory/shell": "^10.1.304",
|
|
49
49
|
"dompurify": "^3.0.0",
|
|
50
50
|
"exceljs": "4.2.0",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"copyfiles": "^2.4.1",
|
|
76
76
|
"rimraf": "^5.0.0"
|
|
77
77
|
},
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "8bdf4ae696ae7ec9c21312485f86f212052bb10a"
|
|
79
79
|
}
|
package/translations/en.json
CHANGED
|
@@ -564,5 +564,12 @@
|
|
|
564
564
|
"ai-assistant.usage.month": "M{month}",
|
|
565
565
|
"ai-assistant.usage.cost-note": "Costs are reference values calculated from recorded token usage and current registered prices, and may differ from actual charges. Non-token costs, such as audio transcription, are not included. Calls to models without registered prices are excluded from cost totals.",
|
|
566
566
|
"ai-assistant.agent.image-model": "Image model",
|
|
567
|
-
"ai-assistant.agent.image-model-hint": "The model pictures are made with. Empty uses {model}."
|
|
567
|
+
"ai-assistant.agent.image-model-hint": "The model pictures are made with. Empty uses {model}.",
|
|
568
|
+
"ai-assistant.setting.external-ai": "external AI connection",
|
|
569
|
+
"ai-assistant.setting.external-ai-allow": "allow AI agents outside the app to connect",
|
|
570
|
+
"ai-assistant.setting.external-ai-hint": "When on, an AI agent outside the app (such as a coding assistant) can connect for a person who consents: it reads what that person may read here, and may hand in entry drafts. A record is made only when that person presses the draft in the app.",
|
|
571
|
+
"ai-assistant.text.outside-agent-conversation": "Outside agent: {client}",
|
|
572
|
+
"ai-assistant.text.outside-agent-proposal": "{client} handed in a proposal of {rows} rows. Nothing is entered until you press the card.",
|
|
573
|
+
"ai-assistant.text.outside-agent-notice-title": "A proposal waits for you",
|
|
574
|
+
"ai-assistant.text.outside-agent-notice-body": "{client} handed in a proposal. Open it and press the card to enter it."
|
|
568
575
|
}
|
package/translations/es.json
CHANGED
|
@@ -564,5 +564,12 @@
|
|
|
564
564
|
"ai-assistant.usage.month": "M{month}",
|
|
565
565
|
"ai-assistant.usage.cost-note": "Los costes son valores de referencia calculados con el uso de tokens registrado y los precios actuales, y pueden diferir de los cargos reales. No se incluyen costes no contabilizados por tokens, como la transcripción de audio. Las llamadas a modelos sin precios registrados se excluyen del coste total.",
|
|
566
566
|
"ai-assistant.agent.image-model": "Modelo de imagen",
|
|
567
|
-
"ai-assistant.agent.image-model-hint": "El modelo con el que se crean las imágenes. Si se deja vacío, se usa {model}."
|
|
567
|
+
"ai-assistant.agent.image-model-hint": "El modelo con el que se crean las imágenes. Si se deja vacío, se usa {model}.",
|
|
568
|
+
"ai-assistant.setting.external-ai": "conexión de IA externa",
|
|
569
|
+
"ai-assistant.setting.external-ai-allow": "permitir que agentes de IA externos a la aplicación se conecten",
|
|
570
|
+
"ai-assistant.setting.external-ai-hint": "Si está activado, un agente de IA externo a la aplicación (como un asistente de programación) puede conectarse en nombre de una persona que da su consentimiento: lee lo que esa persona puede leer aquí y puede entregar borradores de registro. Un registro se crea solo cuando esa persona pulsa el borrador en la aplicación.",
|
|
571
|
+
"ai-assistant.text.outside-agent-conversation": "Agente externo: {client}",
|
|
572
|
+
"ai-assistant.text.outside-agent-proposal": "{client} entregó una propuesta de {rows} filas. No se registra nada hasta que pulse la tarjeta.",
|
|
573
|
+
"ai-assistant.text.outside-agent-notice-title": "Una propuesta le espera",
|
|
574
|
+
"ai-assistant.text.outside-agent-notice-body": "{client} entregó una propuesta. Ábrala y pulse la tarjeta para registrarla."
|
|
568
575
|
}
|
package/translations/ja.json
CHANGED
|
@@ -564,5 +564,12 @@
|
|
|
564
564
|
"ai-assistant.usage.month": "{month}月",
|
|
565
565
|
"ai-assistant.usage.cost-note": "費用は記録されたトークン利用量と現在の登録単価から算定した参考値で、実際の請求額とは異なる場合があります。音声文字起こしなど、トークン単位で集計しない費用は含まれません。 単価未登録のモデルの呼び出しは費用合計から除外します。",
|
|
566
566
|
"ai-assistant.agent.image-model": "画像モデル",
|
|
567
|
-
"ai-assistant.agent.image-model-hint": "画像を作成するときに使うモデルです。空欄の場合は {model} を使います。"
|
|
567
|
+
"ai-assistant.agent.image-model-hint": "画像を作成するときに使うモデルです。空欄の場合は {model} を使います。",
|
|
568
|
+
"ai-assistant.setting.external-ai": "外部 AI 接続",
|
|
569
|
+
"ai-assistant.setting.external-ai-allow": "アプリ外の AI エージェントの接続を許可",
|
|
570
|
+
"ai-assistant.setting.external-ai-hint": "オンにすると、アプリ外の AI エージェント(コーディング支援など)が同意した人として接続し、その人がここで見られるものを読み、入力案を預けられます。記録はその人がアプリで入力案を押したときにだけ作られます。",
|
|
571
|
+
"ai-assistant.text.outside-agent-conversation": "外部エージェント: {client}",
|
|
572
|
+
"ai-assistant.text.outside-agent-proposal": "{client} が {rows} 行の入力案を預けました。カードを押すまで何も入力されません。",
|
|
573
|
+
"ai-assistant.text.outside-agent-notice-title": "預けられた入力案があります",
|
|
574
|
+
"ai-assistant.text.outside-agent-notice-body": "{client} が入力案を預けました。開いてカードを押すと入力されます。"
|
|
568
575
|
}
|
package/translations/ko.json
CHANGED
|
@@ -564,5 +564,12 @@
|
|
|
564
564
|
"ai-assistant.usage.month": "{month}월",
|
|
565
565
|
"ai-assistant.usage.cost-note": "비용은 기록된 토큰 사용량과 현재 등록 단가로 계산한 참고 값이며 실제 청구액과 다를 수 있습니다. 음성 전사 등 토큰으로 집계하지 않는 비용은 포함하지 않습니다. 단가가 등록되지 않은 모델의 호출은 비용 합계에서 제외합니다.",
|
|
566
566
|
"ai-assistant.agent.image-model": "이미지 모델",
|
|
567
|
-
"ai-assistant.agent.image-model-hint": "이미지를 만들 때 쓰는 모델입니다. 비워 두면 {model}을(를) 씁니다."
|
|
567
|
+
"ai-assistant.agent.image-model-hint": "이미지를 만들 때 쓰는 모델입니다. 비워 두면 {model}을(를) 씁니다.",
|
|
568
|
+
"ai-assistant.setting.external-ai": "바깥 AI 연결",
|
|
569
|
+
"ai-assistant.setting.external-ai-allow": "앱 바깥의 AI 에이전트 연결 허용",
|
|
570
|
+
"ai-assistant.setting.external-ai-hint": "사용 설정 시 앱 바깥의 AI 에이전트(코딩 도우미 등)가 동의한 사람의 이름으로 연결해, 그 사람이 여기서 볼 수 있는 것을 읽고 입력안을 맡길 수 있습니다. 기록은 그 사람이 앱에서 입력안을 눌러야 생깁니다.",
|
|
571
|
+
"ai-assistant.text.outside-agent-conversation": "바깥 에이전트: {client}",
|
|
572
|
+
"ai-assistant.text.outside-agent-proposal": "{client}이(가) {rows}행의 입력안을 맡겼습니다. 카드를 누르기 전에는 아무것도 입력되지 않습니다.",
|
|
573
|
+
"ai-assistant.text.outside-agent-notice-title": "맡겨진 입력안이 있습니다",
|
|
574
|
+
"ai-assistant.text.outside-agent-notice-body": "{client}이(가) 입력안을 맡겼습니다. 열어서 카드를 누르면 입력됩니다."
|
|
568
575
|
}
|
package/translations/ms.json
CHANGED
|
@@ -564,5 +564,12 @@
|
|
|
564
564
|
"ai-assistant.usage.month": "B{month}",
|
|
565
565
|
"ai-assistant.usage.cost-note": "Kos ialah nilai rujukan berdasarkan penggunaan token yang direkodkan dan harga berdaftar semasa, dan mungkin berbeza daripada caj sebenar. Kos yang tidak dikira mengikut token, seperti transkripsi audio, tidak termasuk. Panggilan kepada model tanpa harga berdaftar tidak termasuk dalam jumlah kos.",
|
|
566
566
|
"ai-assistant.agent.image-model": "Model imej",
|
|
567
|
-
"ai-assistant.agent.image-model-hint": "Model yang digunakan untuk membuat gambar. Jika kosong, {model} digunakan."
|
|
567
|
+
"ai-assistant.agent.image-model-hint": "Model yang digunakan untuk membuat gambar. Jika kosong, {model} digunakan.",
|
|
568
|
+
"ai-assistant.setting.external-ai": "sambungan AI luaran",
|
|
569
|
+
"ai-assistant.setting.external-ai-allow": "benarkan ejen AI di luar aplikasi bersambung",
|
|
570
|
+
"ai-assistant.setting.external-ai-hint": "Apabila dihidupkan, ejen AI di luar aplikasi (seperti pembantu pengekodan) boleh bersambung bagi pihak orang yang bersetuju: ia membaca apa yang orang itu boleh baca di sini dan boleh menyerahkan draf kemasukan. Rekod hanya dibuat apabila orang itu menekan draf dalam aplikasi.",
|
|
571
|
+
"ai-assistant.text.outside-agent-conversation": "Ejen luar: {client}",
|
|
572
|
+
"ai-assistant.text.outside-agent-proposal": "{client} menyerahkan cadangan {rows} baris. Tiada apa yang dimasukkan sehingga anda menekan kad itu.",
|
|
573
|
+
"ai-assistant.text.outside-agent-notice-title": "Satu cadangan menanti anda",
|
|
574
|
+
"ai-assistant.text.outside-agent-notice-body": "{client} menyerahkan cadangan. Buka dan tekan kad untuk memasukkannya."
|
|
568
575
|
}
|
package/translations/zh.json
CHANGED
|
@@ -564,5 +564,12 @@
|
|
|
564
564
|
"ai-assistant.usage.month": "{month}月",
|
|
565
565
|
"ai-assistant.usage.cost-note": "费用按已记录的 token 使用量和当前登记单价测算,仅供参考,可能与实际账单不同。不包含音频转写等不按 token 统计的费用。 未登记单价的模型调用不计入费用总额。",
|
|
566
566
|
"ai-assistant.agent.image-model": "图像模型",
|
|
567
|
-
"ai-assistant.agent.image-model-hint": "生成图片时使用的模型。留空则使用 {model}。"
|
|
567
|
+
"ai-assistant.agent.image-model-hint": "生成图片时使用的模型。留空则使用 {model}。",
|
|
568
|
+
"ai-assistant.setting.external-ai": "外部 AI 连接",
|
|
569
|
+
"ai-assistant.setting.external-ai-allow": "允许应用外的 AI 代理连接",
|
|
570
|
+
"ai-assistant.setting.external-ai-hint": "开启后,应用外的 AI 代理(如编码助手)可以以同意的用户身份连接,读取该用户在此可见的内容,并可提交录入草案。只有该用户在应用中按下草案后才会生成记录。",
|
|
571
|
+
"ai-assistant.text.outside-agent-conversation": "外部代理: {client}",
|
|
572
|
+
"ai-assistant.text.outside-agent-proposal": "{client} 提交了 {rows} 行的录入草案。在您按下卡片之前不会录入任何内容。",
|
|
573
|
+
"ai-assistant.text.outside-agent-notice-title": "有待处理的录入草案",
|
|
574
|
+
"ai-assistant.text.outside-agent-notice-body": "{client} 提交了录入草案。打开后按下卡片即可录入。"
|
|
568
575
|
}
|