@gyoungwe/research-suite 0.1.3 → 0.1.6
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/build-manifest.json +2 -2
- package/node_modules/@gyoungwe/pi-core/README.md +5 -3
- package/node_modules/@gyoungwe/pi-core/build-manifest.json +2 -2
- package/node_modules/@gyoungwe/pi-core/dist/index.mjs +435 -151
- package/node_modules/@gyoungwe/pi-core/package.json +1 -1
- package/node_modules/@gyoungwe/pi-knowledge/build-manifest.json +68 -3
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/capability-discovery.d.ts +7 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/capability-discovery.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/claim-conflicts.d.ts +30 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/claim-conflicts.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/config.d.ts +55 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/config.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/daily-discovery-prompt.d.ts +11 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/daily-discovery-prompt.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/daily-discovery.d.ts +26 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/daily-discovery.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/deliverable-review.d.ts +127 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/deliverable-review.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/evolution.d.ts +39 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/evolution.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/experience-store.d.ts +290 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/experience-store.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/extension-helpers.d.ts +38 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/extension-helpers.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/files.d.ts +39 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/files.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/flow-cards.d.ts +77 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/flow-cards.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/graph-cache.d.ts +14 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/graph-cache.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/graph-retrieval.d.ts +44 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/graph-retrieval.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/host.d.ts +9 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/host.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/index.d.ts +46 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/index.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/ingest-frontmatter.d.ts +125 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/ingest-frontmatter.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/ingest-identity.d.ts +93 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/ingest-identity.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/ingest-policy.d.ts +63 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/ingest-policy.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/layout.d.ts +47 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/layout.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/maintenance.d.ts +16 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/maintenance.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/memory-note.d.ts +14 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/memory-note.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/metacognitive-policy.d.ts +116 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/metacognitive-policy.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/note-title.d.ts +8 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/note-title.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/orchestration-policy.d.ts +84 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/orchestration-policy.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/project-identity.d.ts +70 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/project-identity.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/publication-policy.d.ts +39 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/publication-policy.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/publication.d.ts +24 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/publication.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/recent-by-category.d.ts +15 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/recent-by-category.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/related-notes.d.ts +4 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/related-notes.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/reuse.d.ts +124 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/reuse.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/review-policy.d.ts +12 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/review-policy.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/runtime-host.d.ts +98 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/runtime-host.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/search-policy.d.ts +14 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/search-policy.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/semantic-model.d.ts +85 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/semantic-model.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/semantic-provider.d.ts +41 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/semantic-provider.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/semantic-settings.d.ts +30 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/semantic-settings.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/service.d.ts +171 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/service.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/source-links.d.ts +13 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/source-links.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/specialist-delivery.d.ts +8 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/specialist-delivery.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/specialist-host.d.ts +61 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/specialist-host.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/specialists.d.ts +55 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/specialists.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/task-feedback.d.ts +57 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/task-feedback.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/tool-budget.d.ts +24 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/tool-budget.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/topic-candidate.d.ts +22 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/topic-candidate.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/topic-memory.d.ts +79 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/topic-memory.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/topic-probe.d.ts +2 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/topic-probe.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/ui-service.d.ts +360 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/ui-service.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/ui-state.d.ts +28 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/ui-state.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/wiki-model-review.d.ts +167 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/wiki-model-review.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/wiki-policy.d.ts +34 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/wiki-policy.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/wiki-review.d.ts +74 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/wiki-review.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/worker.d.ts +2 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/core/worker.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/extension/internal-knowledge-extension.d.ts +42 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/extension/internal-knowledge-extension.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/extension/knowledge-extension.d.ts +5 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/extension/knowledge-extension.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/extension/knowledge-worker.d.ts +6 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/extension/knowledge-worker.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/host.d.ts +7 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/host.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/host.mjs +11638 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/index.d.ts +6 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/index.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/index.mjs +4728 -10301
- package/node_modules/@gyoungwe/pi-knowledge/dist/maintenance/plan.d.ts +41 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/maintenance/plan.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/maintenance/prompts.d.ts +10 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/maintenance/prompts.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/maintenance/run.d.ts +31 -0
- package/node_modules/@gyoungwe/pi-knowledge/dist/maintenance/run.d.ts.map +1 -0
- package/node_modules/@gyoungwe/pi-knowledge/lib/knowledge/runtime/.knowledge-worker-manifest.json +9 -0
- package/node_modules/@gyoungwe/pi-knowledge/lib/knowledge/runtime/worker.mjs +142 -12
- package/node_modules/@gyoungwe/pi-knowledge/package.json +21 -3
- package/node_modules/@gyoungwe/pi-knowledge/plugin.manifest.json +23 -1
- package/node_modules/@gyoungwe/pi-research/build-manifest.json +2 -2
- package/node_modules/@gyoungwe/pi-research/dist/index.mjs +3141 -613
- package/node_modules/@gyoungwe/pi-research/package.json +1 -1
- package/node_modules/@gyoungwe/plugin-api/dist/index.d.ts +101 -0
- package/node_modules/@gyoungwe/plugin-api/dist/index.d.ts.map +1 -1
- package/node_modules/@gyoungwe/plugin-api/dist/index.js +124 -0
- package/node_modules/@gyoungwe/plugin-api/dist/index.js.map +1 -1
- package/node_modules/@gyoungwe/plugin-api/dist/knowledge.d.ts +486 -0
- package/node_modules/@gyoungwe/plugin-api/dist/knowledge.d.ts.map +1 -0
- package/node_modules/@gyoungwe/plugin-api/dist/knowledge.js +251 -0
- package/node_modules/@gyoungwe/plugin-api/dist/knowledge.js.map +1 -0
- package/node_modules/@gyoungwe/plugin-api/package.json +6 -1
- package/package.json +58 -44
- package/plugin.manifest.json +39 -3
|
@@ -0,0 +1,360 @@
|
|
|
1
|
+
export declare function knowledgeOverview({ cwd, sessionId }?: {
|
|
2
|
+
cwd?: null | undefined;
|
|
3
|
+
sessionId?: null | undefined;
|
|
4
|
+
}): Promise<{
|
|
5
|
+
flow: any;
|
|
6
|
+
cwd: null;
|
|
7
|
+
project: null;
|
|
8
|
+
legacyProjectVault: null;
|
|
9
|
+
projectError?: undefined;
|
|
10
|
+
enabled: boolean;
|
|
11
|
+
bound: boolean;
|
|
12
|
+
scope: string;
|
|
13
|
+
} | {
|
|
14
|
+
flow: any;
|
|
15
|
+
cwd: any;
|
|
16
|
+
project: string;
|
|
17
|
+
legacyProjectVault: null;
|
|
18
|
+
projectError: string;
|
|
19
|
+
enabled: boolean;
|
|
20
|
+
bound: boolean;
|
|
21
|
+
scope: string;
|
|
22
|
+
} | {
|
|
23
|
+
flow: any;
|
|
24
|
+
cwd: any;
|
|
25
|
+
project: string;
|
|
26
|
+
legacyProjectVault: any;
|
|
27
|
+
projectError?: undefined;
|
|
28
|
+
enabled: boolean;
|
|
29
|
+
bound: boolean;
|
|
30
|
+
scope: string;
|
|
31
|
+
} | {
|
|
32
|
+
index: any;
|
|
33
|
+
error: string | null;
|
|
34
|
+
specialistSettings: {
|
|
35
|
+
maxRunsPerTurn: 4;
|
|
36
|
+
maxRunsPerSession: 20;
|
|
37
|
+
maxToolOperations: 80;
|
|
38
|
+
concurrency: 2;
|
|
39
|
+
maxConcurrency: 4;
|
|
40
|
+
queueLimit: 8;
|
|
41
|
+
queueWaitMs: 15000;
|
|
42
|
+
timeoutMs: 120000;
|
|
43
|
+
maxTokensPerTurn: 24000;
|
|
44
|
+
maxTokensPerSession: 120000;
|
|
45
|
+
maxCostPerTurn: 1;
|
|
46
|
+
maxCostPerSession: 5;
|
|
47
|
+
mode: string;
|
|
48
|
+
revision: number;
|
|
49
|
+
} | undefined;
|
|
50
|
+
specialistSettingsError: string | undefined;
|
|
51
|
+
flow: any;
|
|
52
|
+
cwd: null;
|
|
53
|
+
project: null;
|
|
54
|
+
legacyProjectVault: null;
|
|
55
|
+
projectError?: undefined;
|
|
56
|
+
enabled: boolean;
|
|
57
|
+
bound: boolean;
|
|
58
|
+
reviewMode: import("./review-policy.js").ReviewMode;
|
|
59
|
+
wikiHistory: {
|
|
60
|
+
id: any;
|
|
61
|
+
path: any;
|
|
62
|
+
afterHash: any;
|
|
63
|
+
reviewedAt: any;
|
|
64
|
+
reviewMethod: any;
|
|
65
|
+
}[];
|
|
66
|
+
recentNotes: any;
|
|
67
|
+
recentByCategory: any;
|
|
68
|
+
localAnswerRate: any;
|
|
69
|
+
scope: string;
|
|
70
|
+
binding: import("./config.js").KnowledgeBinding;
|
|
71
|
+
} | {
|
|
72
|
+
index: any;
|
|
73
|
+
error: string | null;
|
|
74
|
+
specialistSettings: {
|
|
75
|
+
maxRunsPerTurn: 4;
|
|
76
|
+
maxRunsPerSession: 20;
|
|
77
|
+
maxToolOperations: 80;
|
|
78
|
+
concurrency: 2;
|
|
79
|
+
maxConcurrency: 4;
|
|
80
|
+
queueLimit: 8;
|
|
81
|
+
queueWaitMs: 15000;
|
|
82
|
+
timeoutMs: 120000;
|
|
83
|
+
maxTokensPerTurn: 24000;
|
|
84
|
+
maxTokensPerSession: 120000;
|
|
85
|
+
maxCostPerTurn: 1;
|
|
86
|
+
maxCostPerSession: 5;
|
|
87
|
+
mode: string;
|
|
88
|
+
revision: number;
|
|
89
|
+
} | undefined;
|
|
90
|
+
specialistSettingsError: string | undefined;
|
|
91
|
+
flow: any;
|
|
92
|
+
cwd: any;
|
|
93
|
+
project: string;
|
|
94
|
+
legacyProjectVault: null;
|
|
95
|
+
projectError: string;
|
|
96
|
+
enabled: boolean;
|
|
97
|
+
bound: boolean;
|
|
98
|
+
reviewMode: import("./review-policy.js").ReviewMode;
|
|
99
|
+
wikiHistory: {
|
|
100
|
+
id: any;
|
|
101
|
+
path: any;
|
|
102
|
+
afterHash: any;
|
|
103
|
+
reviewedAt: any;
|
|
104
|
+
reviewMethod: any;
|
|
105
|
+
}[];
|
|
106
|
+
recentNotes: any;
|
|
107
|
+
recentByCategory: any;
|
|
108
|
+
localAnswerRate: any;
|
|
109
|
+
scope: string;
|
|
110
|
+
binding: import("./config.js").KnowledgeBinding;
|
|
111
|
+
} | {
|
|
112
|
+
index: any;
|
|
113
|
+
error: string | null;
|
|
114
|
+
specialistSettings: {
|
|
115
|
+
maxRunsPerTurn: 4;
|
|
116
|
+
maxRunsPerSession: 20;
|
|
117
|
+
maxToolOperations: 80;
|
|
118
|
+
concurrency: 2;
|
|
119
|
+
maxConcurrency: 4;
|
|
120
|
+
queueLimit: 8;
|
|
121
|
+
queueWaitMs: 15000;
|
|
122
|
+
timeoutMs: 120000;
|
|
123
|
+
maxTokensPerTurn: 24000;
|
|
124
|
+
maxTokensPerSession: 120000;
|
|
125
|
+
maxCostPerTurn: 1;
|
|
126
|
+
maxCostPerSession: 5;
|
|
127
|
+
mode: string;
|
|
128
|
+
revision: number;
|
|
129
|
+
} | undefined;
|
|
130
|
+
specialistSettingsError: string | undefined;
|
|
131
|
+
flow: any;
|
|
132
|
+
cwd: any;
|
|
133
|
+
project: string;
|
|
134
|
+
legacyProjectVault: any;
|
|
135
|
+
projectError?: undefined;
|
|
136
|
+
enabled: boolean;
|
|
137
|
+
bound: boolean;
|
|
138
|
+
reviewMode: import("./review-policy.js").ReviewMode;
|
|
139
|
+
wikiHistory: {
|
|
140
|
+
id: any;
|
|
141
|
+
path: any;
|
|
142
|
+
afterHash: any;
|
|
143
|
+
reviewedAt: any;
|
|
144
|
+
reviewMethod: any;
|
|
145
|
+
}[];
|
|
146
|
+
recentNotes: any;
|
|
147
|
+
recentByCategory: any;
|
|
148
|
+
localAnswerRate: any;
|
|
149
|
+
scope: string;
|
|
150
|
+
binding: import("./config.js").KnowledgeBinding;
|
|
151
|
+
}>;
|
|
152
|
+
export declare function knowledgeSetupPreview({ cwd, path }?: {
|
|
153
|
+
cwd?: null | undefined;
|
|
154
|
+
path?: null | undefined;
|
|
155
|
+
}): Promise<{
|
|
156
|
+
path: string | null;
|
|
157
|
+
scope: string;
|
|
158
|
+
bindingRevision: number;
|
|
159
|
+
context: unknown;
|
|
160
|
+
options: any;
|
|
161
|
+
templateSamples: {
|
|
162
|
+
path: string;
|
|
163
|
+
text: string;
|
|
164
|
+
}[];
|
|
165
|
+
warning: string;
|
|
166
|
+
}>;
|
|
167
|
+
/** @param {Record<string, any>} options */
|
|
168
|
+
export declare function knowledgeJobs({ cwd, offset, limit, revision }?: {
|
|
169
|
+
cwd?: null | undefined;
|
|
170
|
+
offset?: number | undefined;
|
|
171
|
+
limit?: number | undefined;
|
|
172
|
+
}): Promise<any>;
|
|
173
|
+
/** @param {Record<string, any>} options */
|
|
174
|
+
export declare function knowledgeReviews({ cwd, offset, limit, revision }: {
|
|
175
|
+
cwd: any;
|
|
176
|
+
offset?: number | undefined;
|
|
177
|
+
limit?: number | undefined;
|
|
178
|
+
revision: any;
|
|
179
|
+
}): Promise<{
|
|
180
|
+
items: {
|
|
181
|
+
id: any;
|
|
182
|
+
path: any;
|
|
183
|
+
title: any;
|
|
184
|
+
status: any;
|
|
185
|
+
expiresAt: any;
|
|
186
|
+
expired: boolean;
|
|
187
|
+
bindingChanged: boolean;
|
|
188
|
+
}[];
|
|
189
|
+
problems: {
|
|
190
|
+
id: string;
|
|
191
|
+
error: any;
|
|
192
|
+
}[];
|
|
193
|
+
total: number;
|
|
194
|
+
offset: number;
|
|
195
|
+
nextOffset: number | null;
|
|
196
|
+
}>;
|
|
197
|
+
/** @param {Record<string, any>} options */
|
|
198
|
+
export declare function knowledgePreviewReview({ cwd, id, revision }: {
|
|
199
|
+
cwd: any;
|
|
200
|
+
id: any;
|
|
201
|
+
revision: any;
|
|
202
|
+
}): Promise<{
|
|
203
|
+
modelReview: any;
|
|
204
|
+
reviewToken: `${string}-${string}-${string}-${string}-${string}`;
|
|
205
|
+
tokenExpiresAt: number;
|
|
206
|
+
vault: string;
|
|
207
|
+
bindingRevision: number;
|
|
208
|
+
id: any;
|
|
209
|
+
path: any;
|
|
210
|
+
project: any;
|
|
211
|
+
status: any;
|
|
212
|
+
proposalHash: any;
|
|
213
|
+
title: any;
|
|
214
|
+
rationale: any;
|
|
215
|
+
before: any;
|
|
216
|
+
after: any;
|
|
217
|
+
sources: any[];
|
|
218
|
+
protectedText: any;
|
|
219
|
+
expired: boolean;
|
|
220
|
+
targetChanged: boolean;
|
|
221
|
+
canApply: boolean;
|
|
222
|
+
expiresAt: any;
|
|
223
|
+
scientificallyVerified: boolean;
|
|
224
|
+
}>;
|
|
225
|
+
export declare function consumeKnowledgeReviewPreview(cwd: any, token: any): any;
|
|
226
|
+
/** Host adapter seam for the UI preview registry; distinct from the runtime host callback. */
|
|
227
|
+
export declare const consumeKnowledgeReviewPreviewEntry: typeof consumeKnowledgeReviewPreview;
|
|
228
|
+
/** @param {Record<string, any>} options */
|
|
229
|
+
export declare function knowledgeDecideReview({ cwd, token, decision }: {
|
|
230
|
+
cwd: any;
|
|
231
|
+
token: any;
|
|
232
|
+
decision: any;
|
|
233
|
+
}): Promise<unknown>;
|
|
234
|
+
/** @param {Record<string, any>} options */
|
|
235
|
+
export declare function knowledgeReadNote({ cwd, path, startLine, revision }: {
|
|
236
|
+
cwd?: null | undefined;
|
|
237
|
+
path: any;
|
|
238
|
+
startLine?: number | undefined;
|
|
239
|
+
revision: any;
|
|
240
|
+
}): Promise<any>;
|
|
241
|
+
/** @param {Record<string, any>} options */
|
|
242
|
+
export declare function knowledgeMaintenance({ cwd, action, revision, id, expectedHash }: {
|
|
243
|
+
cwd?: null | undefined;
|
|
244
|
+
action: any;
|
|
245
|
+
revision: any;
|
|
246
|
+
id: any;
|
|
247
|
+
expectedHash: any;
|
|
248
|
+
}): Promise<any>;
|
|
249
|
+
/** @param {Record<string, any>} options */
|
|
250
|
+
export declare function knowledgeOpenTarget({ cwd, path, revision }: {
|
|
251
|
+
cwd?: null | undefined;
|
|
252
|
+
path?: null | undefined;
|
|
253
|
+
revision: any;
|
|
254
|
+
}): Promise<{
|
|
255
|
+
path: string;
|
|
256
|
+
kind: string;
|
|
257
|
+
}>;
|
|
258
|
+
export declare const knowledgeSpecialistSettings: (input: any) => Promise<{
|
|
259
|
+
mode: any;
|
|
260
|
+
revision: any;
|
|
261
|
+
maxRunsPerTurn: 4;
|
|
262
|
+
maxRunsPerSession: 20;
|
|
263
|
+
maxToolOperations: 80;
|
|
264
|
+
concurrency: 2;
|
|
265
|
+
maxConcurrency: 4;
|
|
266
|
+
queueLimit: 8;
|
|
267
|
+
queueWaitMs: 15000;
|
|
268
|
+
timeoutMs: 120000;
|
|
269
|
+
maxTokensPerTurn: 24000;
|
|
270
|
+
maxTokensPerSession: 120000;
|
|
271
|
+
maxCostPerTurn: 1;
|
|
272
|
+
maxCostPerSession: 5;
|
|
273
|
+
}>;
|
|
274
|
+
/** @param {Record<string, any>} options */
|
|
275
|
+
export declare function knowledgeSemanticStatus({ cwd, bindingRevision }?: {
|
|
276
|
+
cwd?: null | undefined;
|
|
277
|
+
}): Promise<any>;
|
|
278
|
+
/** @param {Record<string, any>} options */
|
|
279
|
+
export declare function saveKnowledgeSemanticSettings({ config, bindingRevision, expectedSettingsRevision, }?: {}): Promise<any>;
|
|
280
|
+
/** @param {Record<string, any>} options */
|
|
281
|
+
export declare function testKnowledgeSemanticProvider({ config, bindingRevision }?: {}): Promise<any>;
|
|
282
|
+
/** @param {Record<string, any>} options */
|
|
283
|
+
export declare function indexKnowledgeSemantic({ cwd, bindingRevision, requestId, limit }?: {
|
|
284
|
+
limit?: number | undefined;
|
|
285
|
+
}): Promise<any>;
|
|
286
|
+
/** @param {Record<string, any>} options */
|
|
287
|
+
export declare function cancelKnowledgeSemanticIndex({ cwd, bindingRevision, requestId }?: {}): Promise<void>;
|
|
288
|
+
/** @param {Record<string, any>} options */
|
|
289
|
+
export declare function getKnowledgeTopics({ cwd, bindingRevision, query }?: {
|
|
290
|
+
query?: string | undefined;
|
|
291
|
+
}): Promise<{
|
|
292
|
+
revision: any;
|
|
293
|
+
topics: any;
|
|
294
|
+
}>;
|
|
295
|
+
/** @param {Record<string, any>} options */
|
|
296
|
+
export declare function archiveKnowledgeTopic({ cwd, bindingRevision, id, expectedRevision }?: {}): Promise<unknown>;
|
|
297
|
+
/**
|
|
298
|
+
* 知识库视图的搜索框:只读、不需要会话 ticket;范围 = 共享知识 + 当前项目(无项目时只查共享)。
|
|
299
|
+
* @param {Record<string, any>} options
|
|
300
|
+
*/
|
|
301
|
+
export declare function searchKnowledge({ cwd, bindingRevision, query, limit }?: {
|
|
302
|
+
cwd?: null | undefined;
|
|
303
|
+
limit?: number | undefined;
|
|
304
|
+
}): Promise<{
|
|
305
|
+
query: any;
|
|
306
|
+
hits: any;
|
|
307
|
+
complete: boolean;
|
|
308
|
+
warning: any;
|
|
309
|
+
}>;
|
|
310
|
+
/**
|
|
311
|
+
* 一篇笔记的双向链接(出链 + 反链),供笔记查看器显示。
|
|
312
|
+
* @param {Record<string, any>} options
|
|
313
|
+
*/
|
|
314
|
+
export declare function knowledgeNoteLinks({ path, revision }?: {}): Promise<any>;
|
|
315
|
+
/**
|
|
316
|
+
* 知识网络:笔记与 [[链接]] 组成的图(按连接数取前 limit 个节点)。
|
|
317
|
+
* @param {Record<string, any>} options
|
|
318
|
+
*/
|
|
319
|
+
export declare function knowledgeGraph({ revision, limit, view, mergeMirrors }?: {
|
|
320
|
+
limit?: number | undefined;
|
|
321
|
+
view?: string | undefined;
|
|
322
|
+
mergeMirrors?: boolean | undefined;
|
|
323
|
+
}): Promise<any>;
|
|
324
|
+
/**
|
|
325
|
+
* 每日发现的输入:上次运行后更新的笔记(NEW)+ 用它们的标题在本地检索到的相关旧笔记(OLD)。
|
|
326
|
+
* 只读;没有绑定 Vault 或没有新笔记时返回空。
|
|
327
|
+
* @param {Record<string, any>} options
|
|
328
|
+
*/
|
|
329
|
+
export declare function dailyDiscoveryContext({ sinceMs }?: {
|
|
330
|
+
sinceMs?: number | undefined;
|
|
331
|
+
}): Promise<{
|
|
332
|
+
bound: boolean;
|
|
333
|
+
fresh: import("./daily-discovery.js").DiscoveryNote[];
|
|
334
|
+
related: any[];
|
|
335
|
+
}>;
|
|
336
|
+
/**
|
|
337
|
+
* 用户认可的想法存为 Library/Ideas 下的新笔记(只新建、不覆盖),并通知索引。
|
|
338
|
+
* @param {Record<string, any>} options
|
|
339
|
+
*/
|
|
340
|
+
export declare function saveDiscoveryIdea({ idea }?: {}): Promise<{
|
|
341
|
+
path: string;
|
|
342
|
+
}>;
|
|
343
|
+
/**
|
|
344
|
+
* 记忆注入用:本项目 + 共享知识里与提问相关的条目(复用知识库索引与语义向量)。没有绑定 Vault 时返回空。
|
|
345
|
+
* @param {Record<string, any>} options
|
|
346
|
+
*/
|
|
347
|
+
export declare function memoryRelatedKnowledge({ cwd, query, limit }?: {
|
|
348
|
+
cwd?: null | undefined;
|
|
349
|
+
query?: string | undefined;
|
|
350
|
+
limit?: number | undefined;
|
|
351
|
+
}): Promise<any>;
|
|
352
|
+
/**
|
|
353
|
+
* 观察记忆沉淀为本项目知识库「记忆」分类下的笔记(Projects/<项目>/Memory/,type: memory)。
|
|
354
|
+
* 只新建;附上按标题检索到的相关笔记链接,知识网络据此把记忆节点连到相关条目。
|
|
355
|
+
* @param {Record<string, any>} options
|
|
356
|
+
*/
|
|
357
|
+
export declare function saveMemoryNote({ cwd, memory }?: {}): Promise<{
|
|
358
|
+
path: string;
|
|
359
|
+
}>;
|
|
360
|
+
//# sourceMappingURL=ui-service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-service.d.ts","sourceRoot":"","sources":["../../src/core/ui-service.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare function subscribeKnowledgeUi(listener: any): () => boolean;
|
|
2
|
+
export declare function emitKnowledgeUi(event: any): any;
|
|
3
|
+
export declare function flowFor(id: any): any;
|
|
4
|
+
/** Aggregate used by the knowledge overview when no session is selected. */
|
|
5
|
+
export declare function knowledgeAnswerRate(): {
|
|
6
|
+
answered: number;
|
|
7
|
+
total: number;
|
|
8
|
+
rate: null;
|
|
9
|
+
updatedAt: null;
|
|
10
|
+
};
|
|
11
|
+
export declare function beginKnowledgeFlow(ctx: any, binding: any): void;
|
|
12
|
+
export declare function updateKnowledgeFlow(ctx: any, patch: any): void;
|
|
13
|
+
export declare function noteKnowledgeRead(ctx: any, page: any): void;
|
|
14
|
+
export declare function publicationKnowledgeFlow(ctx: any, proof: any): void;
|
|
15
|
+
export declare function requestWikiReviewUi(ctx: any, id?: string): boolean;
|
|
16
|
+
export declare function notifyKnowledgeUi(text: any, severity?: string, id?: string | null): void;
|
|
17
|
+
export declare function invalidateKnowledgeUi(): void;
|
|
18
|
+
export declare function clearKnowledgeFlow(id: any): void;
|
|
19
|
+
export declare function knowledgeExcerpt(text: any, limit?: number): string;
|
|
20
|
+
export declare function noteKnowledgeSearch(ctx: any, found: any, wikiOnly?: boolean): void;
|
|
21
|
+
/**
|
|
22
|
+
* 挂钩 3 单一入口:工具结束后把它贡献的回执卡合并进 flow.cards。
|
|
23
|
+
* 卡片来源:① 工具结果 `details.cards[]`;② 工具元数据 `drone.flowCards(event)`;
|
|
24
|
+
* ③ 声明了 `drone.flow` 的工具出错时的失败卡。核心不再按工具名分支。
|
|
25
|
+
*/
|
|
26
|
+
export declare function noteKnowledgeOperation(ctx: any, event: any): void;
|
|
27
|
+
export declare function noteKnowledgeSpecialist(ctx: any, run: any): void;
|
|
28
|
+
//# sourceMappingURL=ui-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-state.d.ts","sourceRoot":"","sources":["../../src/core/ui-state.ts"],"names":[],"mappings":"AAyCA,wBAAgB,oBAAoB,CAAC,QAAQ,KAAA,iBAG5C;AACD,wBAAgB,eAAe,CAAC,KAAK,KAAA,OAKpC;AACD,wBAAgB,OAAO,CAAC,EAAE,KAAA,OAGzB;AA0CD,4EAA4E;AAC5E,wBAAgB,mBAAmB;;;;;EAKlC;AACD,wBAAgB,kBAAkB,CAAC,GAAG,KAAA,EAAE,OAAO,KAAA,QAwB9C;AACD,wBAAgB,mBAAmB,CAAC,GAAG,KAAA,EAAE,KAAK,KAAA,QAQ7C;AAaD,wBAAgB,iBAAiB,CAAC,GAAG,KAAA,EAAE,IAAI,KAAA,QAiB1C;AACD,wBAAgB,wBAAwB,CAAC,GAAG,KAAA,EAAE,KAAK,KAAA,QA8ClD;AACD,wBAAgB,mBAAmB,CAAC,GAAG,KAAA,EAAE,EAAE,SAAK,WAK/C;AACD,wBAAgB,iBAAiB,CAAC,IAAI,KAAA,EAAE,QAAQ,SAAS,EAAE,EAAE,GAAE,MAAM,GAAG,IAAW,QASlF;AACD,wBAAgB,qBAAqB,SAEpC;AACD,wBAAgB,kBAAkB,CAAC,EAAE,KAAA,QAEpC;AAGD,wBAAgB,gBAAgB,CAAC,IAAI,KAAA,EAAE,KAAK,SAAM,UAOjD;AACD,wBAAgB,mBAAmB,CAAC,GAAG,KAAA,EAAE,KAAK,KAAA,EAAE,QAAQ,UAAQ,QAqB/D;AA2CD;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,GAAG,KAAA,EAAE,KAAK,KAAA,QAgChD;AAGD,wBAAgB,uBAAuB,CAAC,GAAG,KAAA,EAAE,GAAG,KAAA,QAqD/C"}
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
export declare function lastWikiModelReview(service: any, id: any, hash: any): Promise<any>;
|
|
2
|
+
/** User-invoked foreground review of ONE exact preview. No background sweep or model approval tool. */
|
|
3
|
+
/** @param {any} input @param {Record<string, any>} options */
|
|
4
|
+
export declare function reviewWikiWithModel(input: any, { evaluate, check, signal, progress }: {
|
|
5
|
+
evaluate: any;
|
|
6
|
+
check: any;
|
|
7
|
+
signal: any;
|
|
8
|
+
progress?: (() => void) | undefined;
|
|
9
|
+
}): Promise<{
|
|
10
|
+
auditSaveError: string;
|
|
11
|
+
partial: boolean;
|
|
12
|
+
applied: boolean;
|
|
13
|
+
writeResult: unknown;
|
|
14
|
+
canAutoApply: boolean;
|
|
15
|
+
autoApplyAuthorized: any;
|
|
16
|
+
humanReviewed: boolean;
|
|
17
|
+
scientificallyVerified: boolean;
|
|
18
|
+
usage: any;
|
|
19
|
+
sources: {
|
|
20
|
+
path: any;
|
|
21
|
+
hash: any;
|
|
22
|
+
startLine: any;
|
|
23
|
+
endLine: any;
|
|
24
|
+
}[];
|
|
25
|
+
summary: any;
|
|
26
|
+
verdict: any;
|
|
27
|
+
cautions: any;
|
|
28
|
+
source_paths: any;
|
|
29
|
+
checks: {
|
|
30
|
+
[k: string]: any;
|
|
31
|
+
};
|
|
32
|
+
auditId: `${string}-${string}-${string}-${string}-${string}`;
|
|
33
|
+
proposalId: any;
|
|
34
|
+
proposalHash: any;
|
|
35
|
+
path: any;
|
|
36
|
+
vaultId: any;
|
|
37
|
+
bindingRevision: any;
|
|
38
|
+
project: any;
|
|
39
|
+
startedAt: number;
|
|
40
|
+
completedAt: number;
|
|
41
|
+
model: any;
|
|
42
|
+
} | {
|
|
43
|
+
canAutoApply: boolean;
|
|
44
|
+
autoApplyAuthorized: any;
|
|
45
|
+
applied: boolean;
|
|
46
|
+
humanReviewed: boolean;
|
|
47
|
+
scientificallyVerified: boolean;
|
|
48
|
+
usage: any;
|
|
49
|
+
sources: {
|
|
50
|
+
path: any;
|
|
51
|
+
hash: any;
|
|
52
|
+
startLine: any;
|
|
53
|
+
endLine: any;
|
|
54
|
+
}[];
|
|
55
|
+
summary: any;
|
|
56
|
+
verdict: any;
|
|
57
|
+
cautions: any;
|
|
58
|
+
source_paths: any;
|
|
59
|
+
checks: {
|
|
60
|
+
[k: string]: any;
|
|
61
|
+
};
|
|
62
|
+
auditId: `${string}-${string}-${string}-${string}-${string}`;
|
|
63
|
+
proposalId: any;
|
|
64
|
+
proposalHash: any;
|
|
65
|
+
path: any;
|
|
66
|
+
vaultId: any;
|
|
67
|
+
bindingRevision: any;
|
|
68
|
+
project: any;
|
|
69
|
+
startedAt: number;
|
|
70
|
+
completedAt: number;
|
|
71
|
+
model: any;
|
|
72
|
+
} | {
|
|
73
|
+
applied: boolean;
|
|
74
|
+
writeResult: unknown;
|
|
75
|
+
canAutoApply: boolean;
|
|
76
|
+
autoApplyAuthorized: any;
|
|
77
|
+
humanReviewed: boolean;
|
|
78
|
+
scientificallyVerified: boolean;
|
|
79
|
+
usage: any;
|
|
80
|
+
sources: {
|
|
81
|
+
path: any;
|
|
82
|
+
hash: any;
|
|
83
|
+
startLine: any;
|
|
84
|
+
endLine: any;
|
|
85
|
+
}[];
|
|
86
|
+
summary: any;
|
|
87
|
+
verdict: any;
|
|
88
|
+
cautions: any;
|
|
89
|
+
source_paths: any;
|
|
90
|
+
checks: {
|
|
91
|
+
[k: string]: any;
|
|
92
|
+
};
|
|
93
|
+
auditId: `${string}-${string}-${string}-${string}-${string}`;
|
|
94
|
+
proposalId: any;
|
|
95
|
+
proposalHash: any;
|
|
96
|
+
path: any;
|
|
97
|
+
vaultId: any;
|
|
98
|
+
bindingRevision: any;
|
|
99
|
+
project: any;
|
|
100
|
+
startedAt: number;
|
|
101
|
+
completedAt: number;
|
|
102
|
+
model: any;
|
|
103
|
+
} | {
|
|
104
|
+
applyError: string;
|
|
105
|
+
canAutoApply: boolean;
|
|
106
|
+
autoApplyAuthorized: any;
|
|
107
|
+
applied: boolean;
|
|
108
|
+
humanReviewed: boolean;
|
|
109
|
+
scientificallyVerified: boolean;
|
|
110
|
+
usage: any;
|
|
111
|
+
sources: {
|
|
112
|
+
path: any;
|
|
113
|
+
hash: any;
|
|
114
|
+
startLine: any;
|
|
115
|
+
endLine: any;
|
|
116
|
+
}[];
|
|
117
|
+
summary: any;
|
|
118
|
+
verdict: any;
|
|
119
|
+
cautions: any;
|
|
120
|
+
source_paths: any;
|
|
121
|
+
checks: {
|
|
122
|
+
[k: string]: any;
|
|
123
|
+
};
|
|
124
|
+
auditId: `${string}-${string}-${string}-${string}-${string}`;
|
|
125
|
+
proposalId: any;
|
|
126
|
+
proposalHash: any;
|
|
127
|
+
path: any;
|
|
128
|
+
vaultId: any;
|
|
129
|
+
bindingRevision: any;
|
|
130
|
+
project: any;
|
|
131
|
+
startedAt: number;
|
|
132
|
+
completedAt: number;
|
|
133
|
+
model: any;
|
|
134
|
+
} | {
|
|
135
|
+
applyError: string;
|
|
136
|
+
applied: boolean;
|
|
137
|
+
writeResult: unknown;
|
|
138
|
+
canAutoApply: boolean;
|
|
139
|
+
autoApplyAuthorized: any;
|
|
140
|
+
humanReviewed: boolean;
|
|
141
|
+
scientificallyVerified: boolean;
|
|
142
|
+
usage: any;
|
|
143
|
+
sources: {
|
|
144
|
+
path: any;
|
|
145
|
+
hash: any;
|
|
146
|
+
startLine: any;
|
|
147
|
+
endLine: any;
|
|
148
|
+
}[];
|
|
149
|
+
summary: any;
|
|
150
|
+
verdict: any;
|
|
151
|
+
cautions: any;
|
|
152
|
+
source_paths: any;
|
|
153
|
+
checks: {
|
|
154
|
+
[k: string]: any;
|
|
155
|
+
};
|
|
156
|
+
auditId: `${string}-${string}-${string}-${string}-${string}`;
|
|
157
|
+
proposalId: any;
|
|
158
|
+
proposalHash: any;
|
|
159
|
+
path: any;
|
|
160
|
+
vaultId: any;
|
|
161
|
+
bindingRevision: any;
|
|
162
|
+
project: any;
|
|
163
|
+
startedAt: number;
|
|
164
|
+
completedAt: number;
|
|
165
|
+
model: any;
|
|
166
|
+
}>;
|
|
167
|
+
//# sourceMappingURL=wiki-model-review.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wiki-model-review.d.ts","sourceRoot":"","sources":["../../src/core/wiki-model-review.ts"],"names":[],"mappings":"AAmCA,wBAAsB,mBAAmB,CAAC,OAAO,KAAA,EAAE,EAAE,KAAA,EAAE,IAAI,KAAA,gBAW1D;AA2BD,uGAAuG;AACvG,8DAA8D;AAC9D,wBAAsB,mBAAmB,CAAC,KAAK,KAAA,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,QAAmB,EAAE;;;;;CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiKhG"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare const MANAGED_START = "<!-- pi-agent:managed:start -->";
|
|
2
|
+
export declare const MANAGED_END = "<!-- pi-agent:managed:end -->";
|
|
3
|
+
export interface WikiProposalShape {
|
|
4
|
+
id: unknown;
|
|
5
|
+
vaultId: unknown;
|
|
6
|
+
bindingRevision: unknown;
|
|
7
|
+
project: unknown;
|
|
8
|
+
path: unknown;
|
|
9
|
+
title: unknown;
|
|
10
|
+
rationale: unknown;
|
|
11
|
+
createdAt: unknown;
|
|
12
|
+
before: unknown;
|
|
13
|
+
after: unknown;
|
|
14
|
+
sources: unknown;
|
|
15
|
+
}
|
|
16
|
+
export interface ManagedParts {
|
|
17
|
+
start: number;
|
|
18
|
+
end: number;
|
|
19
|
+
body: string;
|
|
20
|
+
}
|
|
21
|
+
export declare function validateSpecialistHtml(html: unknown): string;
|
|
22
|
+
export declare function validateWikiSourcePaths(paths: unknown): asserts paths is string[];
|
|
23
|
+
export declare function targetWikiPath(path: unknown, project: string): string;
|
|
24
|
+
export declare function immutableWikiProposalHash(proposal: WikiProposalShape): string;
|
|
25
|
+
export declare function managedParts(text: string): ManagedParts;
|
|
26
|
+
/**
|
|
27
|
+
* Agent drafts often arrive as a whole page: wrapped in a ```markdown fence, with their own frontmatter and
|
|
28
|
+
* `# Title`. The page already has both outside the managed block, so inserting them verbatim duplicates the
|
|
29
|
+
* header (seen in vaults written before 2026-10). Strip a wrapping fence, a leading frontmatter block and a
|
|
30
|
+
* leading H1 that repeats the page title (or any leading H1 when no title is known).
|
|
31
|
+
*/
|
|
32
|
+
export declare function stripManagedHeader(body: string, pageTitle?: string): string;
|
|
33
|
+
export declare function proposedWikiText(original: string | null, title: string, body: string): string;
|
|
34
|
+
//# sourceMappingURL=wiki-policy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wiki-policy.d.ts","sourceRoot":"","sources":["../../src/core/wiki-policy.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,oCAAoC,CAAC;AAC/D,eAAO,MAAM,WAAW,kCAAkC,CAAC;AAE3D,MAAM,WAAW,iBAAiB;IACjC,EAAE,EAAE,OAAO,CAAC;IACZ,OAAO,EAAE,OAAO,CAAC;IACjB,eAAe,EAAE,OAAO,CAAC;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;IACf,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,YAAY;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACb;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,CAY5D;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,KAAK,IAAI,MAAM,EAAE,CA4BjF;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAmBrE;AAED,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,iBAAiB,GAAG,MAAM,CAkB7E;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,CAUvD;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAa3E;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAQ7F"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
export declare function validateWikiSourcePaths(paths: any): void;
|
|
2
|
+
export declare function stageWikiProposal(service: any, ticket: any, cwd: any, input: any): Promise<{
|
|
3
|
+
id: `${string}-${string}-${string}-${string}-${string}`;
|
|
4
|
+
status: string;
|
|
5
|
+
path: any;
|
|
6
|
+
project: any;
|
|
7
|
+
proposalHash: any;
|
|
8
|
+
sources: any;
|
|
9
|
+
vaultWritten: boolean;
|
|
10
|
+
scientificallyVerified: boolean;
|
|
11
|
+
next: string;
|
|
12
|
+
}>;
|
|
13
|
+
/** @param {any} service @param {any} ticket @param {string} cwd @param {string} id @param {Record<string, any>} [input] */
|
|
14
|
+
export declare function mergeWikiProposal(service: any, ticket: any, cwd: any, id: any, { markdown, rationale, source_paths }?: {}): Promise<unknown>;
|
|
15
|
+
export declare function previewWikiProposal(service: any, id: any, project: any): Promise<{
|
|
16
|
+
id: any;
|
|
17
|
+
path: any;
|
|
18
|
+
project: any;
|
|
19
|
+
status: any;
|
|
20
|
+
proposalHash: any;
|
|
21
|
+
title: any;
|
|
22
|
+
rationale: any;
|
|
23
|
+
before: any;
|
|
24
|
+
after: any;
|
|
25
|
+
sources: any[];
|
|
26
|
+
protectedText: any;
|
|
27
|
+
expired: boolean;
|
|
28
|
+
targetChanged: boolean;
|
|
29
|
+
canApply: boolean;
|
|
30
|
+
expiresAt: any;
|
|
31
|
+
scientificallyVerified: boolean;
|
|
32
|
+
}>;
|
|
33
|
+
export declare function listWikiProposals(service: any, project: any): Promise<{
|
|
34
|
+
items: {
|
|
35
|
+
id: any;
|
|
36
|
+
path: any;
|
|
37
|
+
title: any;
|
|
38
|
+
status: any;
|
|
39
|
+
expiresAt: any;
|
|
40
|
+
expired: boolean;
|
|
41
|
+
bindingChanged: boolean;
|
|
42
|
+
}[];
|
|
43
|
+
problems: {
|
|
44
|
+
id: string;
|
|
45
|
+
error: any;
|
|
46
|
+
}[];
|
|
47
|
+
}>;
|
|
48
|
+
export declare function decideWikiProposal(service: any, id: any, project: any, expectedHash: any, decision: any, review?: {
|
|
49
|
+
actor: string;
|
|
50
|
+
}): Promise<unknown>;
|
|
51
|
+
/**
|
|
52
|
+
* 自动审核模式下由宿主直接应用候选:新页面或此前由 Agent 生成且未被人工改过的页面直接写入;
|
|
53
|
+
* 已有人工内容、冲突或严格审核模式则保持 pending,返回原因,交给 Wiki 审核页。
|
|
54
|
+
* @param {any} service @param {string} id @param {string} project @param {string} expectedHash
|
|
55
|
+
*/
|
|
56
|
+
export declare function autoApplyWikiProposal(service: any, id: any, project: any, expectedHash: any): Promise<unknown>;
|
|
57
|
+
export declare function wikiHistory(service: any, project: any): Promise<{
|
|
58
|
+
id: any;
|
|
59
|
+
path: any;
|
|
60
|
+
afterHash: any;
|
|
61
|
+
reviewedAt: any;
|
|
62
|
+
reviewMethod: any;
|
|
63
|
+
}[]>;
|
|
64
|
+
export declare function undoWikiUpdate(service: any, project: any, id: any, expectedHash: any): Promise<unknown>;
|
|
65
|
+
/**
|
|
66
|
+
* Windows briefly locks a freshly written target (Defender, Search indexer, the vault watcher), and
|
|
67
|
+
* MoveFileEx then fails with EPERM/EACCES/EBUSY. Retry a few times with backoff before giving up.
|
|
68
|
+
*/
|
|
69
|
+
export declare function renameWithRetry(from: string, to: string, options?: {
|
|
70
|
+
attempts?: number;
|
|
71
|
+
delayMs?: number;
|
|
72
|
+
renameImpl?: (a: string, b: string) => Promise<void>;
|
|
73
|
+
}): Promise<void>;
|
|
74
|
+
//# sourceMappingURL=wiki-review.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wiki-review.d.ts","sourceRoot":"","sources":["../../src/core/wiki-review.ts"],"names":[],"mappings":"AAgIA,wBAAgB,uBAAuB,CAAC,KAAK,KAAA,QAkB5C;AACD,wBAAsB,iBAAiB,CAAC,OAAO,KAAA,EAAE,MAAM,KAAA,EAAE,GAAG,KAAA,EAAE,KAAK,KAAA;;;;;;;;;;GAqFlE;AAKD,2HAA2H;AAC3H,wBAAsB,iBAAiB,CACtC,OAAO,KAAA,EACP,MAAM,KAAA,EACN,GAAG,KAAA,EACH,EAAE,KAAA,EACF,EAAE,QAAQ,EAAE,SAAS,EAAE,YAAY,EAAE,KAAK,oBA6E1C;AAED,wBAAsB,mBAAmB,CAAC,OAAO,KAAA,EAAE,EAAE,KAAA,EAAE,OAAO,KAAA;;;;;;;;;;;;;;;;;GAiD7D;AACD,wBAAsB,iBAAiB,CAAC,OAAO,KAAA,EAAE,OAAO,KAAA;;;;;;;;;;;;;;GAkCvD;AA0CD,wBAAsB,kBAAkB,CACvC,OAAO,KAAA,EACP,EAAE,KAAA,EACF,OAAO,KAAA,EACP,YAAY,KAAA,EACZ,QAAQ,KAAA,EACR,MAAM;;CAAqB,oBA4F3B;AAED;;;;GAIG;AACH,wBAAsB,qBAAqB,CAAC,OAAO,KAAA,EAAE,EAAE,KAAA,EAAE,OAAO,KAAA,EAAE,YAAY,KAAA,oBAU7E;AAID,wBAAsB,WAAW,CAAC,OAAO,KAAA,EAAE,OAAO,KAAA;;;;;;KA4BjD;AAKD,wBAAsB,cAAc,CAAC,OAAO,KAAA,EAAE,OAAO,KAAA,EAAE,EAAE,KAAA,EAAE,YAAY,KAAA,oBAgCtE;AAGD;;;GAGG;AACH,wBAAsB,eAAe,CACpC,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,MAAM,EACV,OAAO,GAAE;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CAAO,GACzG,OAAO,CAAC,IAAI,CAAC,CAcf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"worker.d.ts","sourceRoot":"","sources":["../../src/core/worker.ts"],"names":[],"mappings":""}
|