@gyoungwe/research-suite 0.1.5 → 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.
Files changed (145) hide show
  1. package/build-manifest.json +2 -2
  2. package/node_modules/@gyoungwe/pi-core/build-manifest.json +2 -2
  3. package/node_modules/@gyoungwe/pi-core/dist/index.mjs +198 -7
  4. package/node_modules/@gyoungwe/pi-core/package.json +1 -1
  5. package/node_modules/@gyoungwe/pi-knowledge/build-manifest.json +68 -3
  6. package/node_modules/@gyoungwe/pi-knowledge/dist/core/capability-discovery.d.ts +7 -0
  7. package/node_modules/@gyoungwe/pi-knowledge/dist/core/capability-discovery.d.ts.map +1 -0
  8. package/node_modules/@gyoungwe/pi-knowledge/dist/core/claim-conflicts.d.ts +30 -0
  9. package/node_modules/@gyoungwe/pi-knowledge/dist/core/claim-conflicts.d.ts.map +1 -0
  10. package/node_modules/@gyoungwe/pi-knowledge/dist/core/config.d.ts +55 -0
  11. package/node_modules/@gyoungwe/pi-knowledge/dist/core/config.d.ts.map +1 -0
  12. package/node_modules/@gyoungwe/pi-knowledge/dist/core/daily-discovery-prompt.d.ts +11 -0
  13. package/node_modules/@gyoungwe/pi-knowledge/dist/core/daily-discovery-prompt.d.ts.map +1 -0
  14. package/node_modules/@gyoungwe/pi-knowledge/dist/core/daily-discovery.d.ts +26 -0
  15. package/node_modules/@gyoungwe/pi-knowledge/dist/core/daily-discovery.d.ts.map +1 -0
  16. package/node_modules/@gyoungwe/pi-knowledge/dist/core/deliverable-review.d.ts +127 -0
  17. package/node_modules/@gyoungwe/pi-knowledge/dist/core/deliverable-review.d.ts.map +1 -0
  18. package/node_modules/@gyoungwe/pi-knowledge/dist/core/evolution.d.ts +39 -0
  19. package/node_modules/@gyoungwe/pi-knowledge/dist/core/evolution.d.ts.map +1 -0
  20. package/node_modules/@gyoungwe/pi-knowledge/dist/core/experience-store.d.ts +290 -0
  21. package/node_modules/@gyoungwe/pi-knowledge/dist/core/experience-store.d.ts.map +1 -0
  22. package/node_modules/@gyoungwe/pi-knowledge/dist/core/extension-helpers.d.ts +38 -0
  23. package/node_modules/@gyoungwe/pi-knowledge/dist/core/extension-helpers.d.ts.map +1 -0
  24. package/node_modules/@gyoungwe/pi-knowledge/dist/core/files.d.ts +39 -0
  25. package/node_modules/@gyoungwe/pi-knowledge/dist/core/files.d.ts.map +1 -0
  26. package/node_modules/@gyoungwe/pi-knowledge/dist/core/flow-cards.d.ts +77 -0
  27. package/node_modules/@gyoungwe/pi-knowledge/dist/core/flow-cards.d.ts.map +1 -0
  28. package/node_modules/@gyoungwe/pi-knowledge/dist/core/graph-cache.d.ts +14 -0
  29. package/node_modules/@gyoungwe/pi-knowledge/dist/core/graph-cache.d.ts.map +1 -0
  30. package/node_modules/@gyoungwe/pi-knowledge/dist/core/graph-retrieval.d.ts +44 -0
  31. package/node_modules/@gyoungwe/pi-knowledge/dist/core/graph-retrieval.d.ts.map +1 -0
  32. package/node_modules/@gyoungwe/pi-knowledge/dist/core/host.d.ts +9 -0
  33. package/node_modules/@gyoungwe/pi-knowledge/dist/core/host.d.ts.map +1 -0
  34. package/node_modules/@gyoungwe/pi-knowledge/dist/core/index.d.ts +46 -0
  35. package/node_modules/@gyoungwe/pi-knowledge/dist/core/index.d.ts.map +1 -0
  36. package/node_modules/@gyoungwe/pi-knowledge/dist/core/ingest-frontmatter.d.ts +125 -0
  37. package/node_modules/@gyoungwe/pi-knowledge/dist/core/ingest-frontmatter.d.ts.map +1 -0
  38. package/node_modules/@gyoungwe/pi-knowledge/dist/core/ingest-identity.d.ts +93 -0
  39. package/node_modules/@gyoungwe/pi-knowledge/dist/core/ingest-identity.d.ts.map +1 -0
  40. package/node_modules/@gyoungwe/pi-knowledge/dist/core/ingest-policy.d.ts +63 -0
  41. package/node_modules/@gyoungwe/pi-knowledge/dist/core/ingest-policy.d.ts.map +1 -0
  42. package/node_modules/@gyoungwe/pi-knowledge/dist/core/layout.d.ts +47 -0
  43. package/node_modules/@gyoungwe/pi-knowledge/dist/core/layout.d.ts.map +1 -0
  44. package/node_modules/@gyoungwe/pi-knowledge/dist/core/maintenance.d.ts +16 -0
  45. package/node_modules/@gyoungwe/pi-knowledge/dist/core/maintenance.d.ts.map +1 -0
  46. package/node_modules/@gyoungwe/pi-knowledge/dist/core/memory-note.d.ts +14 -0
  47. package/node_modules/@gyoungwe/pi-knowledge/dist/core/memory-note.d.ts.map +1 -0
  48. package/node_modules/@gyoungwe/pi-knowledge/dist/core/metacognitive-policy.d.ts +116 -0
  49. package/node_modules/@gyoungwe/pi-knowledge/dist/core/metacognitive-policy.d.ts.map +1 -0
  50. package/node_modules/@gyoungwe/pi-knowledge/dist/core/note-title.d.ts +8 -0
  51. package/node_modules/@gyoungwe/pi-knowledge/dist/core/note-title.d.ts.map +1 -0
  52. package/node_modules/@gyoungwe/pi-knowledge/dist/core/orchestration-policy.d.ts +84 -0
  53. package/node_modules/@gyoungwe/pi-knowledge/dist/core/orchestration-policy.d.ts.map +1 -0
  54. package/node_modules/@gyoungwe/pi-knowledge/dist/core/project-identity.d.ts +70 -0
  55. package/node_modules/@gyoungwe/pi-knowledge/dist/core/project-identity.d.ts.map +1 -0
  56. package/node_modules/@gyoungwe/pi-knowledge/dist/core/publication-policy.d.ts +39 -0
  57. package/node_modules/@gyoungwe/pi-knowledge/dist/core/publication-policy.d.ts.map +1 -0
  58. package/node_modules/@gyoungwe/pi-knowledge/dist/core/publication.d.ts +24 -0
  59. package/node_modules/@gyoungwe/pi-knowledge/dist/core/publication.d.ts.map +1 -0
  60. package/node_modules/@gyoungwe/pi-knowledge/dist/core/recent-by-category.d.ts +15 -0
  61. package/node_modules/@gyoungwe/pi-knowledge/dist/core/recent-by-category.d.ts.map +1 -0
  62. package/node_modules/@gyoungwe/pi-knowledge/dist/core/related-notes.d.ts +4 -0
  63. package/node_modules/@gyoungwe/pi-knowledge/dist/core/related-notes.d.ts.map +1 -0
  64. package/node_modules/@gyoungwe/pi-knowledge/dist/core/reuse.d.ts +124 -0
  65. package/node_modules/@gyoungwe/pi-knowledge/dist/core/reuse.d.ts.map +1 -0
  66. package/node_modules/@gyoungwe/pi-knowledge/dist/core/review-policy.d.ts +12 -0
  67. package/node_modules/@gyoungwe/pi-knowledge/dist/core/review-policy.d.ts.map +1 -0
  68. package/node_modules/@gyoungwe/pi-knowledge/dist/core/runtime-host.d.ts +98 -0
  69. package/node_modules/@gyoungwe/pi-knowledge/dist/core/runtime-host.d.ts.map +1 -0
  70. package/node_modules/@gyoungwe/pi-knowledge/dist/core/search-policy.d.ts +14 -0
  71. package/node_modules/@gyoungwe/pi-knowledge/dist/core/search-policy.d.ts.map +1 -0
  72. package/node_modules/@gyoungwe/pi-knowledge/dist/core/semantic-model.d.ts +85 -0
  73. package/node_modules/@gyoungwe/pi-knowledge/dist/core/semantic-model.d.ts.map +1 -0
  74. package/node_modules/@gyoungwe/pi-knowledge/dist/core/semantic-provider.d.ts +41 -0
  75. package/node_modules/@gyoungwe/pi-knowledge/dist/core/semantic-provider.d.ts.map +1 -0
  76. package/node_modules/@gyoungwe/pi-knowledge/dist/core/semantic-settings.d.ts +30 -0
  77. package/node_modules/@gyoungwe/pi-knowledge/dist/core/semantic-settings.d.ts.map +1 -0
  78. package/node_modules/@gyoungwe/pi-knowledge/dist/core/service.d.ts +171 -0
  79. package/node_modules/@gyoungwe/pi-knowledge/dist/core/service.d.ts.map +1 -0
  80. package/node_modules/@gyoungwe/pi-knowledge/dist/core/source-links.d.ts +13 -0
  81. package/node_modules/@gyoungwe/pi-knowledge/dist/core/source-links.d.ts.map +1 -0
  82. package/node_modules/@gyoungwe/pi-knowledge/dist/core/specialist-delivery.d.ts +8 -0
  83. package/node_modules/@gyoungwe/pi-knowledge/dist/core/specialist-delivery.d.ts.map +1 -0
  84. package/node_modules/@gyoungwe/pi-knowledge/dist/core/specialist-host.d.ts +61 -0
  85. package/node_modules/@gyoungwe/pi-knowledge/dist/core/specialist-host.d.ts.map +1 -0
  86. package/node_modules/@gyoungwe/pi-knowledge/dist/core/specialists.d.ts +55 -0
  87. package/node_modules/@gyoungwe/pi-knowledge/dist/core/specialists.d.ts.map +1 -0
  88. package/node_modules/@gyoungwe/pi-knowledge/dist/core/task-feedback.d.ts +57 -0
  89. package/node_modules/@gyoungwe/pi-knowledge/dist/core/task-feedback.d.ts.map +1 -0
  90. package/node_modules/@gyoungwe/pi-knowledge/dist/core/tool-budget.d.ts +24 -0
  91. package/node_modules/@gyoungwe/pi-knowledge/dist/core/tool-budget.d.ts.map +1 -0
  92. package/node_modules/@gyoungwe/pi-knowledge/dist/core/topic-candidate.d.ts +22 -0
  93. package/node_modules/@gyoungwe/pi-knowledge/dist/core/topic-candidate.d.ts.map +1 -0
  94. package/node_modules/@gyoungwe/pi-knowledge/dist/core/topic-memory.d.ts +79 -0
  95. package/node_modules/@gyoungwe/pi-knowledge/dist/core/topic-memory.d.ts.map +1 -0
  96. package/node_modules/@gyoungwe/pi-knowledge/dist/core/topic-probe.d.ts +2 -0
  97. package/node_modules/@gyoungwe/pi-knowledge/dist/core/topic-probe.d.ts.map +1 -0
  98. package/node_modules/@gyoungwe/pi-knowledge/dist/core/ui-service.d.ts +360 -0
  99. package/node_modules/@gyoungwe/pi-knowledge/dist/core/ui-service.d.ts.map +1 -0
  100. package/node_modules/@gyoungwe/pi-knowledge/dist/core/ui-state.d.ts +28 -0
  101. package/node_modules/@gyoungwe/pi-knowledge/dist/core/ui-state.d.ts.map +1 -0
  102. package/node_modules/@gyoungwe/pi-knowledge/dist/core/wiki-model-review.d.ts +167 -0
  103. package/node_modules/@gyoungwe/pi-knowledge/dist/core/wiki-model-review.d.ts.map +1 -0
  104. package/node_modules/@gyoungwe/pi-knowledge/dist/core/wiki-policy.d.ts +34 -0
  105. package/node_modules/@gyoungwe/pi-knowledge/dist/core/wiki-policy.d.ts.map +1 -0
  106. package/node_modules/@gyoungwe/pi-knowledge/dist/core/wiki-review.d.ts +74 -0
  107. package/node_modules/@gyoungwe/pi-knowledge/dist/core/wiki-review.d.ts.map +1 -0
  108. package/node_modules/@gyoungwe/pi-knowledge/dist/core/worker.d.ts +2 -0
  109. package/node_modules/@gyoungwe/pi-knowledge/dist/core/worker.d.ts.map +1 -0
  110. package/node_modules/@gyoungwe/pi-knowledge/dist/extension/internal-knowledge-extension.d.ts +42 -0
  111. package/node_modules/@gyoungwe/pi-knowledge/dist/extension/internal-knowledge-extension.d.ts.map +1 -0
  112. package/node_modules/@gyoungwe/pi-knowledge/dist/extension/knowledge-extension.d.ts +5 -0
  113. package/node_modules/@gyoungwe/pi-knowledge/dist/extension/knowledge-extension.d.ts.map +1 -0
  114. package/node_modules/@gyoungwe/pi-knowledge/dist/extension/knowledge-worker.d.ts +6 -0
  115. package/node_modules/@gyoungwe/pi-knowledge/dist/extension/knowledge-worker.d.ts.map +1 -0
  116. package/node_modules/@gyoungwe/pi-knowledge/dist/host.d.ts +7 -0
  117. package/node_modules/@gyoungwe/pi-knowledge/dist/host.d.ts.map +1 -0
  118. package/node_modules/@gyoungwe/pi-knowledge/dist/host.mjs +11638 -0
  119. package/node_modules/@gyoungwe/pi-knowledge/dist/index.d.ts +6 -0
  120. package/node_modules/@gyoungwe/pi-knowledge/dist/index.d.ts.map +1 -0
  121. package/node_modules/@gyoungwe/pi-knowledge/dist/index.mjs +4728 -10301
  122. package/node_modules/@gyoungwe/pi-knowledge/dist/maintenance/plan.d.ts +41 -0
  123. package/node_modules/@gyoungwe/pi-knowledge/dist/maintenance/plan.d.ts.map +1 -0
  124. package/node_modules/@gyoungwe/pi-knowledge/dist/maintenance/prompts.d.ts +10 -0
  125. package/node_modules/@gyoungwe/pi-knowledge/dist/maintenance/prompts.d.ts.map +1 -0
  126. package/node_modules/@gyoungwe/pi-knowledge/dist/maintenance/run.d.ts +31 -0
  127. package/node_modules/@gyoungwe/pi-knowledge/dist/maintenance/run.d.ts.map +1 -0
  128. package/node_modules/@gyoungwe/pi-knowledge/lib/knowledge/runtime/.knowledge-worker-manifest.json +9 -0
  129. package/node_modules/@gyoungwe/pi-knowledge/lib/knowledge/runtime/worker.mjs +142 -12
  130. package/node_modules/@gyoungwe/pi-knowledge/package.json +21 -3
  131. package/node_modules/@gyoungwe/pi-knowledge/plugin.manifest.json +23 -1
  132. package/node_modules/@gyoungwe/pi-research/build-manifest.json +2 -2
  133. package/node_modules/@gyoungwe/pi-research/dist/index.mjs +3141 -613
  134. package/node_modules/@gyoungwe/pi-research/package.json +1 -1
  135. package/node_modules/@gyoungwe/plugin-api/dist/index.d.ts +101 -0
  136. package/node_modules/@gyoungwe/plugin-api/dist/index.d.ts.map +1 -1
  137. package/node_modules/@gyoungwe/plugin-api/dist/index.js +124 -0
  138. package/node_modules/@gyoungwe/plugin-api/dist/index.js.map +1 -1
  139. package/node_modules/@gyoungwe/plugin-api/dist/knowledge.d.ts +486 -0
  140. package/node_modules/@gyoungwe/plugin-api/dist/knowledge.d.ts.map +1 -0
  141. package/node_modules/@gyoungwe/plugin-api/dist/knowledge.js +251 -0
  142. package/node_modules/@gyoungwe/plugin-api/dist/knowledge.js.map +1 -0
  143. package/node_modules/@gyoungwe/plugin-api/package.json +6 -1
  144. package/package.json +6 -6
  145. package/plugin.manifest.json +39 -3
@@ -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,2 @@
1
+ export {};
2
+ //# sourceMappingURL=worker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"worker.d.ts","sourceRoot":"","sources":["../../src/core/worker.ts"],"names":[],"mappings":""}
@@ -0,0 +1,42 @@
1
+ import type { KnowledgeExtensionHost } from "@gyoungwe/plugin-api/knowledge";
2
+ export declare function configureKnowledgeExtensionHost(host?: KnowledgeExtensionHost): void;
3
+ /**
4
+ * 知识闭环(每轮引导):先查本地 → 本地不够才联网 → 把联网所得按类型沉淀为新笔记(直接入库)→ 回答并标注来源。
5
+ * 第二次问同类问题时,答案应来自上一次沉淀的本地笔记。
6
+ */
7
+ export declare const LOCAL_FIRST_GUIDANCE: string;
8
+ /**
9
+ * wiki_review 里程碑验收(挂钩 2):research_propose_wiki_update 产生的候选是「待外部审阅的对象」,
10
+ * 只有用户在 Wiki 审阅页通过(宿主读回 applied 且来源未变)才算完成;任务卡上的「确认」不能替代。
11
+ */
12
+ export declare function registerWikiReviewAcceptance(): any;
13
+ export declare function registerKnowledgeInterface(pi: any, { readOnly, runtime }?: {
14
+ readOnly?: boolean | undefined;
15
+ runtime?: null | undefined;
16
+ }): {
17
+ setupCompleted: () => void;
18
+ beforeStart: () => Promise<{}>;
19
+ withTurnBinding: (_ctx: any, operation: any) => Promise<any>;
20
+ } | {
21
+ beforeStart(event: any, ctx: any): Promise<{
22
+ guidance?: undefined;
23
+ message?: undefined;
24
+ } | {
25
+ guidance: any;
26
+ message?: undefined;
27
+ } | {
28
+ message: {
29
+ customType: string;
30
+ display: boolean;
31
+ content: any;
32
+ details: {
33
+ vaultId: string;
34
+ revision: number;
35
+ };
36
+ };
37
+ guidance: string;
38
+ }>;
39
+ setupCompleted(ctx: any, result: any): void;
40
+ withTurnBinding(ctx: any, operation: any): Promise<any>;
41
+ };
42
+ //# sourceMappingURL=internal-knowledge-extension.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"internal-knowledge-extension.d.ts","sourceRoot":"","sources":["../../src/extension/internal-knowledge-extension.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAI7E,wBAAgB,+BAA+B,CAAC,IAAI,GAAE,sBAA2B,GAAG,IAAI,CAEvF;AAgDD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,QAMgH,CAAC;AAalJ;;;GAGG;AACH,wBAAgB,4BAA4B,QAiC3C;AAkCD,wBAAgB,0BAA0B,CAAC,EAAE,KAAA,EAAE,EAAE,QAAgB,EAAE,OAAc,EAAE;;;CAAK;;;;;;;;;;;;;;;;;;;;;;;;;EA26CvF"}
@@ -0,0 +1,5 @@
1
+ import { registerKnowledgeInterface, registerWikiReviewAcceptance } from "./internal-knowledge-extension.js";
2
+ export { registerKnowledgeInterface, registerWikiReviewAcceptance };
3
+ export { createSpecialistBudget, decideSpecialistRun } from "../core/orchestration-policy.js";
4
+ export default function registerPiKnowledge(pi: any): void;
5
+ //# sourceMappingURL=knowledge-extension.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"knowledge-extension.d.ts","sourceRoot":"","sources":["../../src/extension/knowledge-extension.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,0BAA0B,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAiE7G,OAAO,EAAE,0BAA0B,EAAE,4BAA4B,EAAE,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAE9F,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,EAAE,EAAE,GAAG,GAAG,IAAI,CAIzD"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Package-local worker entry. The core worker is deliberately kept as a
3
+ * separate resource so KnowledgeService can start it with worker_threads.
4
+ */
5
+ import "../core/worker.js";
6
+ //# sourceMappingURL=knowledge-worker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"knowledge-worker.d.ts","sourceRoot":"","sources":["../../src/extension/knowledge-worker.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,mBAAmB,CAAC"}
@@ -0,0 +1,7 @@
1
+ /** Stable host entry for the installable knowledge package. */
2
+ export * from "./core/index.js";
3
+ export * from "./maintenance/plan.js";
4
+ export * from "./maintenance/prompts.js";
5
+ export * from "./maintenance/run.js";
6
+ export { configureKnowledgeExtensionHost, registerKnowledgeInterface, registerWikiReviewAcceptance } from "./extension/internal-knowledge-extension.js";
7
+ //# sourceMappingURL=host.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"host.d.ts","sourceRoot":"","sources":["../src/host.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,+BAA+B,EAAE,0BAA0B,EAAE,4BAA4B,EAAE,MAAM,6CAA6C,CAAC"}