@tano.page/protocol 0.14.0 → 0.16.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/manifest.schema.json +448 -0
- package/package.json +21 -4
- package/src/appearance.ts +19 -4
- package/src/assistant.ts +35 -4
- package/src/domain/agent-identities.ts +110 -0
- package/src/domain/agent-inbox.ts +148 -0
- package/src/domain/assistant-completion.ts +61 -0
- package/src/domain/assistant-engine.ts +614 -0
- package/src/domain/assistant-execution.ts +43 -0
- package/src/domain/assistant-files.ts +19 -0
- package/src/domain/assistant-history.ts +90 -0
- package/src/domain/assistant-language.ts +112 -0
- package/src/domain/assistant-prompts.ts +70 -0
- package/src/domain/assistant-structures.ts +179 -0
- package/src/domain/assistant-task-prompts.json +39 -0
- package/src/domain/assistant-tasks.ts +114 -0
- package/src/domain/locales/de-DE.json +129 -0
- package/src/domain/locales/en-US.json +129 -0
- package/src/domain/locales/es-ES.json +129 -0
- package/src/domain/locales/ja-JP.json +129 -0
- package/src/domain/locales/zh-CN.json +129 -0
- package/src/domain/locales/zh-TW.json +129 -0
- package/src/domain/plugin-data.ts +175 -0
- package/src/domain/plugin-sdk.ts +300 -0
- package/src/domain/untrusted-data.ts +17 -0
- package/src/domain/workspace-comments.ts +148 -0
- package/src/extensions.ts +1100 -19
- package/src/frontmatter.ts +60 -1
- package/src/index.ts +3 -0
- package/src/object-types.ts +30 -20
- package/src/objects.ts +3 -4
- package/src/plan-item.ts +78 -0
- package/src/plugin-archive.ts +395 -0
- package/src/plugin-compat.ts +156 -0
- package/src/plugins.ts +12 -0
- package/src/relations.ts +1 -5
- package/src/task-repeat.ts +55 -8
- package/src/task-review.ts +11 -2
- package/src/view-engine.ts +1 -1
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { validEventDate } from '../object-types';
|
|
2
|
+
import { referenceUrl, type ReferenceIdentity, type ReferenceTarget } from '../objects';
|
|
3
|
+
import { validatePath } from '../paths';
|
|
4
|
+
import { isActionableTask, isPlanCompleted } from '../plan-item';
|
|
5
|
+
import { referenceKey, type WorkspaceRelation } from '../relations';
|
|
6
|
+
import { taskReview } from '../task-review';
|
|
7
|
+
|
|
8
|
+
export const localDayKey = (date: Date) =>
|
|
9
|
+
`${date.getFullYear()}-${String(date.getMonth() + 1).padStart(2, '0')}-${String(date.getDate()).padStart(2, '0')}`;
|
|
10
|
+
|
|
11
|
+
export interface TaskContentReference {
|
|
12
|
+
source: ReferenceTarget;
|
|
13
|
+
target: ReferenceIdentity;
|
|
14
|
+
excerpt: string;
|
|
15
|
+
missing: boolean;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface TaskQuery {
|
|
19
|
+
documentId: string | null;
|
|
20
|
+
directory: string | null;
|
|
21
|
+
state: 'all' | 'unfinished' | 'completed' | 'overdue';
|
|
22
|
+
personId: string | null;
|
|
23
|
+
query: string | null;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export const isTaskTarget = (target: ReferenceTarget) => isActionableTask(target);
|
|
27
|
+
export const taskCompleted = (target: ReferenceTarget) => isPlanCompleted(target);
|
|
28
|
+
|
|
29
|
+
export function parseTaskQuery(value: unknown): TaskQuery {
|
|
30
|
+
const args = value as TaskQuery;
|
|
31
|
+
const keys = ['documentId', 'directory', 'state', 'personId', 'query'];
|
|
32
|
+
if (!args || typeof args !== 'object' || Array.isArray(args) || Object.keys(args).some(key => !keys.includes(key)) ||
|
|
33
|
+
keys.some(key => !(key in args)) || !['all', 'unfinished', 'completed', 'overdue'].includes(args.state) ||
|
|
34
|
+
[args.documentId, args.personId].some(id => id !== null && (typeof id !== 'string' || !/^[0-9a-f]{6}$/.test(id))) ||
|
|
35
|
+
(args.query !== null && (typeof args.query !== 'string' || args.query.length > 200)) ||
|
|
36
|
+
(args.directory !== null && (typeof args.directory !== 'string' ||
|
|
37
|
+
(args.directory !== '' && !!validatePath(args.directory)))) ||
|
|
38
|
+
(args.documentId !== null && args.directory !== null)) throw new Error('任务查询范围或筛选无效');
|
|
39
|
+
return args;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function queryTasks(targets: readonly ReferenceTarget[], relations: readonly WorkspaceRelation[],
|
|
43
|
+
edges: readonly TaskContentReference[], query: TaskQuery, today = localDayKey(new Date())) {
|
|
44
|
+
if (!validEventDate(today)) throw new Error('任务查询日期无效');
|
|
45
|
+
const documents = targets.filter(target => target.type === 'document' && !target.archived);
|
|
46
|
+
if (query.documentId && !documents.some(target => target.id === query.documentId)) throw new Error('来源文档不可用');
|
|
47
|
+
if (query.personId && !targets.some(target => target.type === 'person' && target.id === query.personId && !target.archived))
|
|
48
|
+
throw new Error('负责人不可用');
|
|
49
|
+
const scoped = documents.filter(target => query.documentId ? target.id === query.documentId :
|
|
50
|
+
query.directory !== null ? !query.directory || target.path.startsWith(`${query.directory}/`) : true);
|
|
51
|
+
const scopeKeys = new Set(scoped.map(referenceKey));
|
|
52
|
+
const restricted = query.documentId !== null || query.directory !== null;
|
|
53
|
+
const rows = targets.filter(target => isTaskTarget(target) && !target.archived).map(task => {
|
|
54
|
+
const key = referenceKey(task);
|
|
55
|
+
const evidence = new Map<string, { document: ReferenceIdentity; name: string; path: string; url: string; excerpt: string; kind: string }>();
|
|
56
|
+
const add = (identity: ReferenceIdentity, excerpt: string, kind: string) => {
|
|
57
|
+
const doc = scoped.find(target => referenceKey(target) === referenceKey(identity));
|
|
58
|
+
if (doc) evidence.set(`${referenceKey(doc)}:${kind}`, {
|
|
59
|
+
document: { type: 'document', id: doc.id },
|
|
60
|
+
name: doc.name, path: doc.path, url: referenceUrl(doc), excerpt, kind,
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
for (const edge of edges) {
|
|
64
|
+
if (edge.missing) continue;
|
|
65
|
+
if (referenceKey(edge.target) === key) add(edge.source, edge.excerpt, '文档引用任务');
|
|
66
|
+
if (referenceKey(edge.source) === key) add(edge.target, edge.excerpt, '任务引用文档');
|
|
67
|
+
}
|
|
68
|
+
for (const relation of relations) {
|
|
69
|
+
if (referenceKey(relation.source) === key && scopeKeys.has(referenceKey(relation.target))) add(relation.target, '', `关系:${relation.type}`);
|
|
70
|
+
if (referenceKey(relation.target) === key && scopeKeys.has(referenceKey(relation.source))) add(relation.source, '', `关系:${relation.type}`);
|
|
71
|
+
}
|
|
72
|
+
const assignees = relations.filter(row => row.type === 'assigned' && referenceKey(row.target) === key)
|
|
73
|
+
.flatMap(row => {
|
|
74
|
+
const person = targets.find(target => referenceKey(target) === referenceKey(row.source) && !target.archived);
|
|
75
|
+
return person ? [{ id: person.id, name: person.name, url: referenceUrl(person) }] : [];
|
|
76
|
+
});
|
|
77
|
+
const properties = task.properties ?? {};
|
|
78
|
+
const review = taskReview({ properties });
|
|
79
|
+
const completed = taskCompleted(task);
|
|
80
|
+
const due = validEventDate(properties.due) ? properties.due : null;
|
|
81
|
+
const overdue = !completed && due !== null && due < today;
|
|
82
|
+
const blockedReason = typeof properties.blockedReason === 'string' && properties.blockedReason.trim()
|
|
83
|
+
? properties.blockedReason.trim() : review?.state === 'changes-requested' ? review.comment : null;
|
|
84
|
+
return {
|
|
85
|
+
type: task.type, id: task.id, name: task.name, url: referenceUrl(task), description: task.description ?? '',
|
|
86
|
+
completed, status: completed ? '已完成' : overdue ? '逾期' : '待处理', due,
|
|
87
|
+
date: validEventDate(properties.date) ? properties.date : null,
|
|
88
|
+
start: properties.start ?? null, end: properties.end ?? null, assignees,
|
|
89
|
+
blockedReason: blockedReason ?? '未知', review, evidence: [...evidence.values()],
|
|
90
|
+
};
|
|
91
|
+
}).filter(task => (!restricted || task.evidence.length > 0) &&
|
|
92
|
+
(!query.personId || task.assignees.some(person => person.id === query.personId)) &&
|
|
93
|
+
(!query.query || `${task.name}\n${task.description}`.toLocaleLowerCase().includes(query.query.toLocaleLowerCase())));
|
|
94
|
+
const totals = {
|
|
95
|
+
completed: rows.filter(task => task.completed).length,
|
|
96
|
+
pending: rows.filter(task => !task.completed && task.status !== '逾期').length,
|
|
97
|
+
overdue: rows.filter(task => task.status === '逾期').length,
|
|
98
|
+
};
|
|
99
|
+
const tasks = rows.filter(task => query.state === 'all' || (query.state === 'unfinished' && !task.completed) ||
|
|
100
|
+
(query.state === 'completed' && task.completed) || (query.state === 'overdue' && task.status === '逾期'))
|
|
101
|
+
.sort((a, b) => Number(a.completed) - Number(b.completed) || (a.due ?? '9999').localeCompare(b.due ?? '9999') || a.name.localeCompare(b.name));
|
|
102
|
+
return { asOf: today, scope: query, totals, tasks };
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
const normalizedName = (name: string) => name.normalize('NFKC').toLocaleLowerCase().replace(/[\p{P}\p{S}\s]/gu, '');
|
|
106
|
+
export function possibleDuplicateTasks(targets: readonly ReferenceTarget[], name: string, exceptId?: string) {
|
|
107
|
+
const normalized = normalizedName(name);
|
|
108
|
+
return targets.filter(target => isTaskTarget(target) && !target.archived && target.id !== exceptId).filter(target => {
|
|
109
|
+
const candidate = normalizedName(target.name);
|
|
110
|
+
return normalized === candidate || (Math.min(normalized.length, candidate.length) >= 4 &&
|
|
111
|
+
Math.min(normalized.length, candidate.length) / Math.max(normalized.length, candidate.length) >= 0.6 &&
|
|
112
|
+
(normalized.includes(candidate) || candidate.includes(normalized)));
|
|
113
|
+
});
|
|
114
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
{
|
|
2
|
+
"starters": {
|
|
3
|
+
"summary": "Notiz zusammenfassen",
|
|
4
|
+
"polish": "Notiz überarbeiten",
|
|
5
|
+
"translate": "Notiz übersetzen",
|
|
6
|
+
"tasks": "Aufgaben extrahieren"
|
|
7
|
+
},
|
|
8
|
+
"progress": {
|
|
9
|
+
"starting": "CLI wird gestartet",
|
|
10
|
+
"connecting": "Verbindung zum Modell herstellen",
|
|
11
|
+
"thinking": "Denken",
|
|
12
|
+
"generating": "Generieren",
|
|
13
|
+
"retrying": "Verbindung unterbrochen, erneuter Versuch",
|
|
14
|
+
"validating": "Überprüfung der Antwort",
|
|
15
|
+
"protocol": "Anpassung des API-Protokolls",
|
|
16
|
+
"maxTokens": "Ausgabelimit anpassen",
|
|
17
|
+
"usage": "Streaming-Nutzungsparameter anpassen",
|
|
18
|
+
"reading": "Lesen von Referenzdokumenten",
|
|
19
|
+
"round": "Ergebnisse organisieren · Runde {0}",
|
|
20
|
+
"waiting": "Warten auf Eingabe",
|
|
21
|
+
"executing": "Ausführen · {0}"
|
|
22
|
+
},
|
|
23
|
+
"tools": {
|
|
24
|
+
"ask_user": "Benutzer fragen",
|
|
25
|
+
"propose_create": "Schlagen Sie vor, ein Dokument zu erstellen",
|
|
26
|
+
"propose_edit": "Schlagen Sie vor, ein Dokument zu bearbeiten",
|
|
27
|
+
"propose_delete": "Schlagen Sie vor, ein Dokument zu löschen",
|
|
28
|
+
"propose_rename": "Schlagen Sie vor, ein Dokument umzubenennen",
|
|
29
|
+
"propose_move": "Schlagen Sie vor, ein Dokument zu verschieben",
|
|
30
|
+
"edit_document": "Dokument bearbeiten",
|
|
31
|
+
"create_document": "Dokument erstellen",
|
|
32
|
+
"delete_document": "Dokument löschen",
|
|
33
|
+
"rename_document": "Dokument umbenennen",
|
|
34
|
+
"move_document": "Dokument verschieben",
|
|
35
|
+
"create_event": "Ereignis erstellen",
|
|
36
|
+
"create_relation": "Relation hinzufügen",
|
|
37
|
+
"update_task": "Aufgabe aktualisieren",
|
|
38
|
+
"update_assignment": "Beauftragten aktualisieren",
|
|
39
|
+
"change_relation": "Beziehung verwalten",
|
|
40
|
+
"search_documents": "Dokumente durchsuchen",
|
|
41
|
+
"read_document": "Dokument lesen",
|
|
42
|
+
"read_workspace_objects": "Arbeitsbereichsobjekte lesen",
|
|
43
|
+
"read_reference_context": "Referenzen lesen",
|
|
44
|
+
"query_tasks": "Aufgaben abfragen",
|
|
45
|
+
"propose_event": "Schlagen Sie vor, eine Veranstaltung zu erstellen",
|
|
46
|
+
"propose_relation": "Schlagen Sie vor, eine Beziehung zu erstellen",
|
|
47
|
+
"propose_task_update": "Schlagen Sie vor, eine Aufgabe zu aktualisieren",
|
|
48
|
+
"propose_assignment": "Schlagen Sie vor, einen Beauftragten zu aktualisieren",
|
|
49
|
+
"propose_relation_change": "Schlagen Sie vor, eine Beziehung zu ändern",
|
|
50
|
+
"inspect_plugins": "Aktivierte Plugins prüfen",
|
|
51
|
+
"inspect_plugin_logs": "Plugin-Laufzeitprotokolle prüfen",
|
|
52
|
+
"open_plugin_view": "Plugin-Ansicht öffnen"
|
|
53
|
+
},
|
|
54
|
+
"result": {
|
|
55
|
+
"toolCall": "Werkzeugaufruf",
|
|
56
|
+
"stoppedSaved": "Gestoppt. Abgeschlossene Änderungen wurden beibehalten.",
|
|
57
|
+
"stoppedUnchanged": "Gestoppt. Der ursprüngliche Inhalt bleibt unverändert.",
|
|
58
|
+
"conflict": "Bearbeitet den Konflikt oder erfordert eine Überprüfung. Überprüfen Sie das Gespräch.",
|
|
59
|
+
"partial": "Einige Änderungen wurden gespeichert. ",
|
|
60
|
+
"failed": "Die Anfrage ist fehlgeschlagen. Weitere Informationen finden Sie im Gespräch.",
|
|
61
|
+
"review": "Bearbeitungsvorschläge sind bereit. Überprüfen Sie sie im Gespräch.",
|
|
62
|
+
"completed": "Das Update ist abgeschlossen.",
|
|
63
|
+
"empty": "Der Assistent hat keinen Inhalt zurückgegeben. Versuchen Sie es noch einmal im Gespräch."
|
|
64
|
+
},
|
|
65
|
+
"demo": {
|
|
66
|
+
"clarifying": "Ich werde zunächst das Ziel des Dokuments klären und dann den Inhalt rund um Ihre Antworten organisieren. Fragen, bei denen Sie unsicher sind, können Sie überspringen.",
|
|
67
|
+
"topic": "Worum soll es in diesem Dokument gehen?",
|
|
68
|
+
"audience": "Für wen ist dieses Dokument?",
|
|
69
|
+
"audienceOptions": [
|
|
70
|
+
"Ich selbst",
|
|
71
|
+
"Team",
|
|
72
|
+
"Kunden"
|
|
73
|
+
],
|
|
74
|
+
"goal": "Was soll der Leser verstehen oder tun?",
|
|
75
|
+
"format": "Möchten Sie zunächst einen vollständigen Entwurf oder eine Gliederung?",
|
|
76
|
+
"formatOptions": [
|
|
77
|
+
"Vollständiger Entwurf",
|
|
78
|
+
"Zuerst Umriss"
|
|
79
|
+
],
|
|
80
|
+
"context": "Welche Hinweise, Quellen oder Anforderungen sollte ich berücksichtigen?",
|
|
81
|
+
"missingTopic": "Das Thema ist noch unbekannt, daher bleibt das Dokument leer. Nennen Sie mir das Thema, wann immer Sie bereit sind, fortzufahren.",
|
|
82
|
+
"draft": "## Entwurf (Browser-Demo)\n\nThema: {0}\n\n## Hauptinhalt\n\nZu sein hinzugefügt\n\n## Nächste Schritte\n\n- [ ] Spezifische Informationen hinzufügen\n\n> Dieser simulierte Entwurf zeigt die Fortsetzung nach Klarstellung durch den Benutzer.\n",
|
|
83
|
+
"draftReason": "Demonstrieren Sie die Initialisierung des aktuellen Dokuments anhand der Antworten des Benutzers.",
|
|
84
|
+
"record": "Beispieldatensatz",
|
|
85
|
+
"tablePreview": "Die Browser-Demo fügt einen Beispieldatensatz hinzu, um die Tabellenbearbeitung zu überprüfen.[来源:S1]",
|
|
86
|
+
"tableReason": "Simulierte Tabellenbearbeitung: Fügen Sie einen Beispieldatensatz hinzu.",
|
|
87
|
+
"editPreview": "Generieren einer simulierten Bearbeitung.[来源:S1]",
|
|
88
|
+
"editAddition": "Dies ist ein simulierter zusätzlicher Inhalt.",
|
|
89
|
+
"editReason": "Simulierte Bearbeitung für die Browser-Dateioperationsdemo.",
|
|
90
|
+
"saved": "Die simulierte Bearbeitung wurde im Browser-Demospeicher gespeichert. Einzelheiten finden Sie in der Dateiänderungsliste.",
|
|
91
|
+
"review": "Der Vorschlag wurde nicht geschrieben. Akzeptieren Sie es, um es zu speichern.",
|
|
92
|
+
"unknown": "Das Ergebnis der Operation muss überprüft werden. Überprüfen Sie die Liste der Dateiänderungen.",
|
|
93
|
+
"failed": "Der Vorgang wurde nicht abgeschlossen. Überprüfen Sie den Grund in der Dateiänderungsliste.",
|
|
94
|
+
"read": "Simulierte Browser-Antwort: Lesen Sie „{0}“.",
|
|
95
|
+
"noSources": "Simulierte Browser-Antwort: Es ist kein Referenzdokument angehängt."
|
|
96
|
+
},
|
|
97
|
+
"chatAction": "Chatten",
|
|
98
|
+
"activity": {
|
|
99
|
+
"title": "Arbeitsdetails",
|
|
100
|
+
"working": "Funktioniert",
|
|
101
|
+
"calls": "Werkzeugaufrufe: {0}",
|
|
102
|
+
"failures": "{0} fehlgeschlagen",
|
|
103
|
+
"running": "Laufen",
|
|
104
|
+
"succeeded": "Abgeschlossen",
|
|
105
|
+
"failed": "Fehlgeschlagen",
|
|
106
|
+
"interrupted": "Unterbrochen"
|
|
107
|
+
},
|
|
108
|
+
"run": {
|
|
109
|
+
"waiting": "Warten auf Ihre Antwort",
|
|
110
|
+
"incomplete": "Die Aufgabe wurde nicht als abgeschlossen bestätigt. Eine vollständige endgültige Antwort wurde nicht erhalten.",
|
|
111
|
+
"succeeded": "Abgeschlossene Werkzeugaufrufe: {0}",
|
|
112
|
+
"failed": "Fehlgeschlagen: {0}",
|
|
113
|
+
"interrupted": "Unterbrochen: {0}",
|
|
114
|
+
"saved": "Gespeicherte Änderungen",
|
|
115
|
+
"review": "Vorschläge warten auf Überprüfung",
|
|
116
|
+
"uncertain": "Vorgänge warten auf Überprüfung",
|
|
117
|
+
"reasons": {
|
|
118
|
+
"completed": "Lauf beendet",
|
|
119
|
+
"cancelled": "Gestoppt",
|
|
120
|
+
"interrupted": "Vorheriger Lauf unterbrochen",
|
|
121
|
+
"round_limit": "Anforderungsrundenlimit erreicht",
|
|
122
|
+
"no_progress": "Angehalten: Kein Fortschritt in aufeinanderfolgenden Runden",
|
|
123
|
+
"output_limit": "Ausgabelimit erreicht",
|
|
124
|
+
"incomplete": "Die Antwort war unvollständig",
|
|
125
|
+
"empty_response": "Keine endgültige Antwort erhalten",
|
|
126
|
+
"error": "Ausführung wurde nicht abgeschlossen"
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
{
|
|
2
|
+
"starters": {
|
|
3
|
+
"summary": "Summarize this note",
|
|
4
|
+
"polish": "Polish this note",
|
|
5
|
+
"translate": "Translate this note",
|
|
6
|
+
"tasks": "Extract action items"
|
|
7
|
+
},
|
|
8
|
+
"progress": {
|
|
9
|
+
"starting": "Starting CLI",
|
|
10
|
+
"connecting": "Connecting to the model",
|
|
11
|
+
"thinking": "Thinking",
|
|
12
|
+
"generating": "Generating",
|
|
13
|
+
"retrying": "Connection interrupted, retrying",
|
|
14
|
+
"validating": "Checking the response",
|
|
15
|
+
"protocol": "Adapting the API protocol",
|
|
16
|
+
"maxTokens": "Adapting the output limit",
|
|
17
|
+
"usage": "Adapting streaming usage parameters",
|
|
18
|
+
"reading": "Reading reference documents",
|
|
19
|
+
"round": "Organizing results · Round {0}",
|
|
20
|
+
"waiting": "Waiting for input",
|
|
21
|
+
"executing": "Executing · {0}"
|
|
22
|
+
},
|
|
23
|
+
"tools": {
|
|
24
|
+
"ask_user": "Ask user",
|
|
25
|
+
"propose_create": "Suggest creating a document",
|
|
26
|
+
"propose_edit": "Suggest editing a document",
|
|
27
|
+
"propose_delete": "Suggest deleting a document",
|
|
28
|
+
"propose_rename": "Suggest renaming a document",
|
|
29
|
+
"propose_move": "Suggest moving a document",
|
|
30
|
+
"edit_document": "Edit document",
|
|
31
|
+
"create_document": "Create document",
|
|
32
|
+
"delete_document": "Delete document",
|
|
33
|
+
"rename_document": "Rename document",
|
|
34
|
+
"move_document": "Move document",
|
|
35
|
+
"create_event": "Create event",
|
|
36
|
+
"create_relation": "Add relation",
|
|
37
|
+
"update_task": "Update task",
|
|
38
|
+
"update_assignment": "Update assignee",
|
|
39
|
+
"change_relation": "Manage relation",
|
|
40
|
+
"search_documents": "Search documents",
|
|
41
|
+
"read_document": "Read document",
|
|
42
|
+
"read_workspace_objects": "Read workspace objects",
|
|
43
|
+
"read_reference_context": "Read references",
|
|
44
|
+
"query_tasks": "Query tasks",
|
|
45
|
+
"propose_event": "Suggest creating an event",
|
|
46
|
+
"propose_relation": "Suggest creating a relation",
|
|
47
|
+
"propose_task_update": "Suggest updating a task",
|
|
48
|
+
"propose_assignment": "Suggest updating an assignee",
|
|
49
|
+
"propose_relation_change": "Suggest changing a relation",
|
|
50
|
+
"inspect_plugins": "Inspect enabled plugins",
|
|
51
|
+
"inspect_plugin_logs": "Inspect plugin runtime logs",
|
|
52
|
+
"open_plugin_view": "Open plugin view"
|
|
53
|
+
},
|
|
54
|
+
"result": {
|
|
55
|
+
"toolCall": "Tool call",
|
|
56
|
+
"stoppedSaved": "Stopped. Completed edits have been kept.",
|
|
57
|
+
"stoppedUnchanged": "Stopped. The original content is unchanged.",
|
|
58
|
+
"conflict": "Edits conflict or need verification. Check the conversation.",
|
|
59
|
+
"partial": "Some edits were saved. ",
|
|
60
|
+
"failed": "The request failed. Check the conversation for details.",
|
|
61
|
+
"review": "Edit suggestions are ready. Review them in the conversation.",
|
|
62
|
+
"completed": "The update is complete.",
|
|
63
|
+
"empty": "The assistant returned no content. Retry in the conversation."
|
|
64
|
+
},
|
|
65
|
+
"demo": {
|
|
66
|
+
"clarifying": "I will first clarify the document's goal, then organize the content around your answers. You can skip questions you are unsure about.",
|
|
67
|
+
"topic": "What should this document be about?",
|
|
68
|
+
"audience": "Who is this document for?",
|
|
69
|
+
"audienceOptions": [
|
|
70
|
+
"Myself",
|
|
71
|
+
"Team",
|
|
72
|
+
"Clients"
|
|
73
|
+
],
|
|
74
|
+
"goal": "What should the reader understand or do?",
|
|
75
|
+
"format": "Would you like a full draft or an outline first?",
|
|
76
|
+
"formatOptions": [
|
|
77
|
+
"Full draft",
|
|
78
|
+
"Outline first"
|
|
79
|
+
],
|
|
80
|
+
"context": "Which notes, sources, or requirements should I consider?",
|
|
81
|
+
"missingTopic": "The topic is still unknown, so the document remains blank. Tell me the topic whenever you are ready to continue.",
|
|
82
|
+
"draft": "## Draft (browser demo)\n\nTopic: {0}\n\n## Main content\n\nTo be added\n\n## Next steps\n\n- [ ] Add specific information\n\n> This simulated draft demonstrates continuing after user clarification.\n",
|
|
83
|
+
"draftReason": "Demonstrate initializing the current document using the user's answers.",
|
|
84
|
+
"record": "Sample record",
|
|
85
|
+
"tablePreview": "The browser demo will add a sample record to verify table editing.[来源:S1]",
|
|
86
|
+
"tableReason": "Simulated table edit: add one sample record.",
|
|
87
|
+
"editPreview": "Generating a simulated edit.[来源:S1]",
|
|
88
|
+
"editAddition": "This is simulated additional content.",
|
|
89
|
+
"editReason": "Simulated edit for the browser file-operation demo.",
|
|
90
|
+
"saved": "The simulated edit was saved to browser demo storage. See the file changes list for details.",
|
|
91
|
+
"review": "The suggestion has not been written. Accept it to save it.",
|
|
92
|
+
"unknown": "The operation's result needs verification. Check the file changes list.",
|
|
93
|
+
"failed": "The operation did not complete. Check the reason in the file changes list.",
|
|
94
|
+
"read": "Simulated browser response: read “{0}”.",
|
|
95
|
+
"noSources": "Simulated browser response: no reference document is attached."
|
|
96
|
+
},
|
|
97
|
+
"chatAction": "Chat",
|
|
98
|
+
"activity": {
|
|
99
|
+
"title": "Work details",
|
|
100
|
+
"working": "Working",
|
|
101
|
+
"calls": "Tool calls: {0}",
|
|
102
|
+
"failures": "{0} failed",
|
|
103
|
+
"running": "Running",
|
|
104
|
+
"succeeded": "Completed",
|
|
105
|
+
"failed": "Failed",
|
|
106
|
+
"interrupted": "Interrupted"
|
|
107
|
+
},
|
|
108
|
+
"run": {
|
|
109
|
+
"waiting": "Waiting for your answer",
|
|
110
|
+
"incomplete": "The task has not been confirmed complete. A complete final answer was not received.",
|
|
111
|
+
"succeeded": "Completed tool calls: {0}",
|
|
112
|
+
"failed": "Failed: {0}",
|
|
113
|
+
"interrupted": "Interrupted: {0}",
|
|
114
|
+
"saved": "Saved changes",
|
|
115
|
+
"review": "Suggestions awaiting review",
|
|
116
|
+
"uncertain": "Operations awaiting verification",
|
|
117
|
+
"reasons": {
|
|
118
|
+
"completed": "Run ended",
|
|
119
|
+
"cancelled": "Stopped",
|
|
120
|
+
"interrupted": "Previous run interrupted",
|
|
121
|
+
"round_limit": "Request round limit reached",
|
|
122
|
+
"no_progress": "Paused: no progress over consecutive rounds",
|
|
123
|
+
"output_limit": "Output limit reached",
|
|
124
|
+
"incomplete": "Response was incomplete",
|
|
125
|
+
"empty_response": "No final answer received",
|
|
126
|
+
"error": "Run did not complete"
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
{
|
|
2
|
+
"starters": {
|
|
3
|
+
"summary": "Resumir esta nota",
|
|
4
|
+
"polish": "Mejorar esta nota",
|
|
5
|
+
"translate": "Traducir esta nota",
|
|
6
|
+
"tasks": "Extraer tareas"
|
|
7
|
+
},
|
|
8
|
+
"progress": {
|
|
9
|
+
"starting": "Iniciando CLI",
|
|
10
|
+
"connecting": "Conexión al modelo",
|
|
11
|
+
"thinking": "Pensando",
|
|
12
|
+
"generating": "Generando",
|
|
13
|
+
"retrying": "Conexión interrumpida, reintentando",
|
|
14
|
+
"validating": "Comprobando la respuesta",
|
|
15
|
+
"protocol": "Adaptación del protocolo API",
|
|
16
|
+
"maxTokens": "Adaptación del límite de salida",
|
|
17
|
+
"usage": "Adaptación de los parámetros de uso del streaming",
|
|
18
|
+
"reading": "Lectura de documentos de referencia",
|
|
19
|
+
"round": "Organización de resultados · Ronda {0}",
|
|
20
|
+
"waiting": "Esperando información",
|
|
21
|
+
"executing": "Ejecutando · {0}"
|
|
22
|
+
},
|
|
23
|
+
"tools": {
|
|
24
|
+
"ask_user": "Preguntar al usuario",
|
|
25
|
+
"propose_create": "Sugerir crear un documento",
|
|
26
|
+
"propose_edit": "Sugerir editar un documento",
|
|
27
|
+
"propose_delete": "Sugerir eliminar un documento",
|
|
28
|
+
"propose_rename": "Sugerir cambiar el nombre de un documento",
|
|
29
|
+
"propose_move": "Sugerir mover un documento",
|
|
30
|
+
"edit_document": "Editar documento",
|
|
31
|
+
"create_document": "Crear documento",
|
|
32
|
+
"delete_document": "Eliminar documento",
|
|
33
|
+
"rename_document": "Cambiar nombre del documento",
|
|
34
|
+
"move_document": "Mover documento",
|
|
35
|
+
"create_event": "Crear evento",
|
|
36
|
+
"create_relation": "Agregar relación",
|
|
37
|
+
"update_task": "Tarea de actualización",
|
|
38
|
+
"update_assignment": "Actualizar asignado",
|
|
39
|
+
"change_relation": "Gestionar relación",
|
|
40
|
+
"search_documents": "Buscar documentos",
|
|
41
|
+
"read_document": "Leer documento",
|
|
42
|
+
"read_workspace_objects": "Leer objetos del espacio de trabajo",
|
|
43
|
+
"read_reference_context": "Leer referencias",
|
|
44
|
+
"query_tasks": "Tareas de consulta",
|
|
45
|
+
"propose_event": "Sugerir crear un evento",
|
|
46
|
+
"propose_relation": "Sugerir crear una relación",
|
|
47
|
+
"propose_task_update": "Sugerir actualizar una tarea",
|
|
48
|
+
"propose_assignment": "Sugerir actualizar un asignado",
|
|
49
|
+
"propose_relation_change": "Sugerir cambiar una relación",
|
|
50
|
+
"inspect_plugins": "Inspeccionar complementos activos",
|
|
51
|
+
"inspect_plugin_logs": "Consultar registros del complemento",
|
|
52
|
+
"open_plugin_view": "Abrir vista del complemento"
|
|
53
|
+
},
|
|
54
|
+
"result": {
|
|
55
|
+
"toolCall": "Llamada de herramienta",
|
|
56
|
+
"stoppedSaved": "Detenido. Se han mantenido las ediciones completadas.",
|
|
57
|
+
"stoppedUnchanged": "Detenido. El contenido original no ha cambiado.",
|
|
58
|
+
"conflict": "Edita un conflicto o necesita verificación. Revisa la conversación.",
|
|
59
|
+
"partial": "Se guardaron algunas ediciones. ",
|
|
60
|
+
"failed": "La solicitud falló. Consulte la conversación para obtener más detalles.",
|
|
61
|
+
"review": "Las sugerencias de edición están listas. Revíselos en la conversación.",
|
|
62
|
+
"completed": "La actualización está completa.",
|
|
63
|
+
"empty": "El asistente no devolvió contenido. Vuelve a intentarlo en la conversación."
|
|
64
|
+
},
|
|
65
|
+
"demo": {
|
|
66
|
+
"clarifying": "Primero aclararé el objetivo del documento y luego organizaré el contenido en torno a tus respuestas. Puede omitir las preguntas de las que no esté seguro.",
|
|
67
|
+
"topic": "¿De qué debe tratar este documento?",
|
|
68
|
+
"audience": "¿Para quién es este documento?",
|
|
69
|
+
"audienceOptions": [
|
|
70
|
+
"Yo mismo",
|
|
71
|
+
"Equipo",
|
|
72
|
+
"Clientes"
|
|
73
|
+
],
|
|
74
|
+
"goal": "¿Qué debe entender o hacer el lector?",
|
|
75
|
+
"format": "¿Le gustaría primero un borrador completo o un esquema?",
|
|
76
|
+
"formatOptions": [
|
|
77
|
+
"Borrador completo",
|
|
78
|
+
"Esquema primero"
|
|
79
|
+
],
|
|
80
|
+
"context": "¿Qué notas, fuentes o requisitos debo considerar?",
|
|
81
|
+
"missingTopic": "Aún se desconoce el tema por lo que el documento queda en blanco. Cuéntame el tema cuando estés listo para continuar.",
|
|
82
|
+
"draft": "## Borrador (demostración del navegador)\n\nTema: {0}\n\n## Contenido principal\n\nPara ser agregado\n\n## Próximos pasos\n\n- [] Agregar información específica\n\n> Este borrador simulado demuestra cómo continuar después de la aclaración del usuario.\n",
|
|
83
|
+
"draftReason": "Demuestre cómo inicializar el documento actual utilizando las respuestas del usuario.",
|
|
84
|
+
"record": "Registro de muestra",
|
|
85
|
+
"tablePreview": "La demostración del navegador agregará un registro de muestra para verificar la edición de la tabla.[来源:S1]",
|
|
86
|
+
"tableReason": "Edición de tabla simulada: agregue un registro de muestra.",
|
|
87
|
+
"editPreview": "Generando una edición simulada.[来源:S1]",
|
|
88
|
+
"editAddition": "Este es contenido adicional simulado.",
|
|
89
|
+
"editReason": "Edición simulada para la demostración de operación de archivos del navegador.",
|
|
90
|
+
"saved": "La edición simulada se guardó en el almacenamiento de demostración del navegador. Consulte la lista de cambios de archivos para obtener más detalles.",
|
|
91
|
+
"review": "La sugerencia no ha sido escrita. Acéptalo para guardarlo.",
|
|
92
|
+
"unknown": "El resultado de la operación necesita verificación. Consulte la lista de cambios de archivos.",
|
|
93
|
+
"failed": "La operación no se completó. Verifique el motivo en la lista de cambios de archivos.",
|
|
94
|
+
"read": "Respuesta simulada del navegador: lea “{0}”.",
|
|
95
|
+
"noSources": "Respuesta simulada del navegador: no se adjunta ningún documento de referencia."
|
|
96
|
+
},
|
|
97
|
+
"chatAction": "Charla",
|
|
98
|
+
"activity": {
|
|
99
|
+
"title": "Detalles del trabajo",
|
|
100
|
+
"working": "Trabajando",
|
|
101
|
+
"calls": "Llamadas a herramientas: {0}",
|
|
102
|
+
"failures": "{0} falló",
|
|
103
|
+
"running": "Corriendo",
|
|
104
|
+
"succeeded": "Completado",
|
|
105
|
+
"failed": "Falló",
|
|
106
|
+
"interrupted": "Interrumpido"
|
|
107
|
+
},
|
|
108
|
+
"run": {
|
|
109
|
+
"waiting": "Esperando tu respuesta",
|
|
110
|
+
"incomplete": "La tarea no se ha confirmado completa. No se recibió una respuesta final completa.",
|
|
111
|
+
"succeeded": "Llamadas a herramientas completadas: {0}",
|
|
112
|
+
"failed": "Error: {0}",
|
|
113
|
+
"interrupted": "Interrumpido: {0}",
|
|
114
|
+
"saved": "Cambios guardados",
|
|
115
|
+
"review": "Sugerencias en espera de revisión",
|
|
116
|
+
"uncertain": "Operaciones pendientes de verificación",
|
|
117
|
+
"reasons": {
|
|
118
|
+
"completed": "Ejecución finalizada",
|
|
119
|
+
"cancelled": "Detenido",
|
|
120
|
+
"interrupted": "Ejecución anterior interrumpida",
|
|
121
|
+
"round_limit": "Se alcanzó el límite de ronda de solicitudes",
|
|
122
|
+
"no_progress": "En pausa: no hay progreso en rondas consecutivas",
|
|
123
|
+
"output_limit": "Se alcanzó el límite de salida",
|
|
124
|
+
"incomplete": "La respuesta estuvo incompleta",
|
|
125
|
+
"empty_response": "No se recibió respuesta final",
|
|
126
|
+
"error": "La ejecución no se completó"
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
{
|
|
2
|
+
"starters": {
|
|
3
|
+
"summary": "このノートを要約",
|
|
4
|
+
"polish": "このノートを推敲",
|
|
5
|
+
"translate": "このノートを翻訳",
|
|
6
|
+
"tasks": "アクション項目を抽出"
|
|
7
|
+
},
|
|
8
|
+
"progress": {
|
|
9
|
+
"starting": "CLI の起動",
|
|
10
|
+
"connecting": "モデルへの接続",
|
|
11
|
+
"thinking": "考えています",
|
|
12
|
+
"generating": "生成中",
|
|
13
|
+
"retrying": "接続が中断されました。再試行しています",
|
|
14
|
+
"validating": "応答を確認しています",
|
|
15
|
+
"protocol": "APIプロトコルの適応",
|
|
16
|
+
"maxTokens": "出力上限を調整しています",
|
|
17
|
+
"usage": "ストリーミング使用パラメータの調整",
|
|
18
|
+
"reading": "参照ドキュメントを読んでいます",
|
|
19
|
+
"round": "結果の整理 · ラウンド {0}",
|
|
20
|
+
"waiting": "入力待ち",
|
|
21
|
+
"executing": "実行中 · {0}"
|
|
22
|
+
},
|
|
23
|
+
"tools": {
|
|
24
|
+
"ask_user": "ユーザーに質問する",
|
|
25
|
+
"propose_create": "ドキュメントの作成を提案する",
|
|
26
|
+
"propose_edit": "ドキュメントの編集を提案する",
|
|
27
|
+
"propose_delete": "文書の削除を提案する",
|
|
28
|
+
"propose_rename": "ドキュメントの名前変更を提案する",
|
|
29
|
+
"propose_move": "ドキュメントの移動を提案する",
|
|
30
|
+
"edit_document": "ドキュメントを編集",
|
|
31
|
+
"create_document": "ドキュメントの作成",
|
|
32
|
+
"delete_document": "文書を削除",
|
|
33
|
+
"rename_document": "ドキュメントの名前を変更",
|
|
34
|
+
"move_document": "ドキュメントを移動",
|
|
35
|
+
"create_event": "イベントの作成",
|
|
36
|
+
"create_relation": "リレーションを追加",
|
|
37
|
+
"update_task": "タスクを更新",
|
|
38
|
+
"update_assignment": "担当者を更新",
|
|
39
|
+
"change_relation": "関係の管理",
|
|
40
|
+
"search_documents": "ドキュメントの検索",
|
|
41
|
+
"read_document": "文書を読む",
|
|
42
|
+
"read_workspace_objects": "ワークスペースオブジェクトの読み取り",
|
|
43
|
+
"read_reference_context": "参考文献を読む",
|
|
44
|
+
"query_tasks": "クエリタスク",
|
|
45
|
+
"propose_event": "イベントの作成を提案する",
|
|
46
|
+
"propose_relation": "関係の作成を提案する",
|
|
47
|
+
"propose_task_update": "タスクの更新を提案する",
|
|
48
|
+
"propose_assignment": "担当者の更新を提案する",
|
|
49
|
+
"propose_relation_change": "関係の変更を提案する",
|
|
50
|
+
"inspect_plugins": "有効なプラグインを確認",
|
|
51
|
+
"inspect_plugin_logs": "プラグインの実行ログを確認",
|
|
52
|
+
"open_plugin_view": "プラグインビューを開く"
|
|
53
|
+
},
|
|
54
|
+
"result": {
|
|
55
|
+
"toolCall": "ツール呼び出し",
|
|
56
|
+
"stoppedSaved": "停止しました。完了した編集は保存されています。",
|
|
57
|
+
"stoppedUnchanged": "停止しました。元の内容は変更されません。",
|
|
58
|
+
"conflict": "編集が矛盾しているか、検証が必要です。会話を確認してください。",
|
|
59
|
+
"partial": "一部の編集が保存されました。 ",
|
|
60
|
+
"failed": "リクエストは失敗しました。詳細については会話を確認してください。",
|
|
61
|
+
"review": "編集提案の準備ができました。会話の中でそれらを確認してください。",
|
|
62
|
+
"completed": "アップデートが完了しました。",
|
|
63
|
+
"empty": "アシスタントはコンテンツを返しませんでした。会話中に再試行してください。"
|
|
64
|
+
},
|
|
65
|
+
"demo": {
|
|
66
|
+
"clarifying": "まず文書の目的を明確にしてから、回答に基づいて内容を整理します。不明な質問はスキップできます。",
|
|
67
|
+
"topic": "この文書は何について書かれるべきですか?",
|
|
68
|
+
"audience": "この文書は誰に向けたものですか?",
|
|
69
|
+
"audienceOptions": [
|
|
70
|
+
"私自身",
|
|
71
|
+
"チーム",
|
|
72
|
+
"クライアント"
|
|
73
|
+
],
|
|
74
|
+
"goal": "読者は何を理解し、何をすべきでしょうか?",
|
|
75
|
+
"format": "最初に完全な草稿と概要のどちらが必要ですか?",
|
|
76
|
+
"formatOptions": [
|
|
77
|
+
"草稿全文",
|
|
78
|
+
"まずは概要"
|
|
79
|
+
],
|
|
80
|
+
"context": "どのメモ、情報源、または要件を考慮する必要がありますか?",
|
|
81
|
+
"missingTopic": "テーマがまだ不明のため、文書は空白のままです。続行する準備ができたら、いつでもトピックを教えてください。",
|
|
82
|
+
"draft": "## ドラフト (ブラウザデモ)\n\nトピック: {0}\n\n## メインコンテンツ\n\n追記予定\n\n## 次のステップ\n\n- [ ] 具体的な情報を追加\n\n> このシミュレートされたドラフトは、ユーザーの説明後に続行することを示しています。\n",
|
|
83
|
+
"draftReason": "ユーザーの回答を使用して現在のドキュメントを初期化する方法を示します。",
|
|
84
|
+
"record": "サンプルレコード",
|
|
85
|
+
"tablePreview": "ブラウザのデモでは、テーブルの編集を確認するためのサンプル レコードが追加されます。[来源:S1]",
|
|
86
|
+
"tableReason": "シミュレートされたテーブル編集: サンプル レコードを 1 つ追加します。",
|
|
87
|
+
"editPreview": "シミュレーション編集を生成しています。[来源:S1]",
|
|
88
|
+
"editAddition": "これは模擬追加コンテンツです。",
|
|
89
|
+
"editReason": "ブラウザのファイル操作デモの模擬編集。",
|
|
90
|
+
"saved": "シミュレートされた編集がブラウザのデモストレージに保存されました。詳細については、ファイル変更リストを参照してください。",
|
|
91
|
+
"review": "提案は書かれていません。受け入れて保存します。",
|
|
92
|
+
"unknown": "操作の結果は検証が必要です。ファイル変更リストを確認してください。",
|
|
93
|
+
"failed": "操作は完了しませんでした。ファイル変更リストで理由を確認してください。",
|
|
94
|
+
"read": "シミュレートされたブラウザ応答: 「{0}」を読み取ります。",
|
|
95
|
+
"noSources": "シミュレートされたブラウザ応答: 参照ドキュメントは添付されていません。"
|
|
96
|
+
},
|
|
97
|
+
"chatAction": "チャット",
|
|
98
|
+
"activity": {
|
|
99
|
+
"title": "作品詳細",
|
|
100
|
+
"working": "働いています",
|
|
101
|
+
"calls": "ツール呼び出し: {0}",
|
|
102
|
+
"failures": "{0} 失敗しました",
|
|
103
|
+
"running": "ランニング",
|
|
104
|
+
"succeeded": "完成しました",
|
|
105
|
+
"failed": "失敗しました",
|
|
106
|
+
"interrupted": "中断されました"
|
|
107
|
+
},
|
|
108
|
+
"run": {
|
|
109
|
+
"waiting": "答えを待っています",
|
|
110
|
+
"incomplete": "タスクの完了は確認されていません。完全な最終回答は得られませんでした。",
|
|
111
|
+
"succeeded": "完了したツール呼び出し: {0}",
|
|
112
|
+
"failed": "失敗: {0}",
|
|
113
|
+
"interrupted": "中断: {0}",
|
|
114
|
+
"saved": "変更を保存しました",
|
|
115
|
+
"review": "検討待ちの提案",
|
|
116
|
+
"uncertain": "検証待ちの操作",
|
|
117
|
+
"reasons": {
|
|
118
|
+
"completed": "実行が終了しました",
|
|
119
|
+
"cancelled": "停止しました",
|
|
120
|
+
"interrupted": "前回の実行が中断されました",
|
|
121
|
+
"round_limit": "リクエストラウンド制限に達しました",
|
|
122
|
+
"no_progress": "一時停止: 連続ラウンドにわたって進歩なし",
|
|
123
|
+
"output_limit": "出力制限に達しました",
|
|
124
|
+
"incomplete": "応答が不完全でした",
|
|
125
|
+
"empty_response": "最終的な回答は得られませんでした",
|
|
126
|
+
"error": "実行が完了しませんでした"
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|