@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.
Files changed (146) hide show
  1. package/build-manifest.json +2 -2
  2. package/node_modules/@gyoungwe/pi-core/README.md +5 -3
  3. package/node_modules/@gyoungwe/pi-core/build-manifest.json +2 -2
  4. package/node_modules/@gyoungwe/pi-core/dist/index.mjs +435 -151
  5. package/node_modules/@gyoungwe/pi-core/package.json +1 -1
  6. package/node_modules/@gyoungwe/pi-knowledge/build-manifest.json +68 -3
  7. package/node_modules/@gyoungwe/pi-knowledge/dist/core/capability-discovery.d.ts +7 -0
  8. package/node_modules/@gyoungwe/pi-knowledge/dist/core/capability-discovery.d.ts.map +1 -0
  9. package/node_modules/@gyoungwe/pi-knowledge/dist/core/claim-conflicts.d.ts +30 -0
  10. package/node_modules/@gyoungwe/pi-knowledge/dist/core/claim-conflicts.d.ts.map +1 -0
  11. package/node_modules/@gyoungwe/pi-knowledge/dist/core/config.d.ts +55 -0
  12. package/node_modules/@gyoungwe/pi-knowledge/dist/core/config.d.ts.map +1 -0
  13. package/node_modules/@gyoungwe/pi-knowledge/dist/core/daily-discovery-prompt.d.ts +11 -0
  14. package/node_modules/@gyoungwe/pi-knowledge/dist/core/daily-discovery-prompt.d.ts.map +1 -0
  15. package/node_modules/@gyoungwe/pi-knowledge/dist/core/daily-discovery.d.ts +26 -0
  16. package/node_modules/@gyoungwe/pi-knowledge/dist/core/daily-discovery.d.ts.map +1 -0
  17. package/node_modules/@gyoungwe/pi-knowledge/dist/core/deliverable-review.d.ts +127 -0
  18. package/node_modules/@gyoungwe/pi-knowledge/dist/core/deliverable-review.d.ts.map +1 -0
  19. package/node_modules/@gyoungwe/pi-knowledge/dist/core/evolution.d.ts +39 -0
  20. package/node_modules/@gyoungwe/pi-knowledge/dist/core/evolution.d.ts.map +1 -0
  21. package/node_modules/@gyoungwe/pi-knowledge/dist/core/experience-store.d.ts +290 -0
  22. package/node_modules/@gyoungwe/pi-knowledge/dist/core/experience-store.d.ts.map +1 -0
  23. package/node_modules/@gyoungwe/pi-knowledge/dist/core/extension-helpers.d.ts +38 -0
  24. package/node_modules/@gyoungwe/pi-knowledge/dist/core/extension-helpers.d.ts.map +1 -0
  25. package/node_modules/@gyoungwe/pi-knowledge/dist/core/files.d.ts +39 -0
  26. package/node_modules/@gyoungwe/pi-knowledge/dist/core/files.d.ts.map +1 -0
  27. package/node_modules/@gyoungwe/pi-knowledge/dist/core/flow-cards.d.ts +77 -0
  28. package/node_modules/@gyoungwe/pi-knowledge/dist/core/flow-cards.d.ts.map +1 -0
  29. package/node_modules/@gyoungwe/pi-knowledge/dist/core/graph-cache.d.ts +14 -0
  30. package/node_modules/@gyoungwe/pi-knowledge/dist/core/graph-cache.d.ts.map +1 -0
  31. package/node_modules/@gyoungwe/pi-knowledge/dist/core/graph-retrieval.d.ts +44 -0
  32. package/node_modules/@gyoungwe/pi-knowledge/dist/core/graph-retrieval.d.ts.map +1 -0
  33. package/node_modules/@gyoungwe/pi-knowledge/dist/core/host.d.ts +9 -0
  34. package/node_modules/@gyoungwe/pi-knowledge/dist/core/host.d.ts.map +1 -0
  35. package/node_modules/@gyoungwe/pi-knowledge/dist/core/index.d.ts +46 -0
  36. package/node_modules/@gyoungwe/pi-knowledge/dist/core/index.d.ts.map +1 -0
  37. package/node_modules/@gyoungwe/pi-knowledge/dist/core/ingest-frontmatter.d.ts +125 -0
  38. package/node_modules/@gyoungwe/pi-knowledge/dist/core/ingest-frontmatter.d.ts.map +1 -0
  39. package/node_modules/@gyoungwe/pi-knowledge/dist/core/ingest-identity.d.ts +93 -0
  40. package/node_modules/@gyoungwe/pi-knowledge/dist/core/ingest-identity.d.ts.map +1 -0
  41. package/node_modules/@gyoungwe/pi-knowledge/dist/core/ingest-policy.d.ts +63 -0
  42. package/node_modules/@gyoungwe/pi-knowledge/dist/core/ingest-policy.d.ts.map +1 -0
  43. package/node_modules/@gyoungwe/pi-knowledge/dist/core/layout.d.ts +47 -0
  44. package/node_modules/@gyoungwe/pi-knowledge/dist/core/layout.d.ts.map +1 -0
  45. package/node_modules/@gyoungwe/pi-knowledge/dist/core/maintenance.d.ts +16 -0
  46. package/node_modules/@gyoungwe/pi-knowledge/dist/core/maintenance.d.ts.map +1 -0
  47. package/node_modules/@gyoungwe/pi-knowledge/dist/core/memory-note.d.ts +14 -0
  48. package/node_modules/@gyoungwe/pi-knowledge/dist/core/memory-note.d.ts.map +1 -0
  49. package/node_modules/@gyoungwe/pi-knowledge/dist/core/metacognitive-policy.d.ts +116 -0
  50. package/node_modules/@gyoungwe/pi-knowledge/dist/core/metacognitive-policy.d.ts.map +1 -0
  51. package/node_modules/@gyoungwe/pi-knowledge/dist/core/note-title.d.ts +8 -0
  52. package/node_modules/@gyoungwe/pi-knowledge/dist/core/note-title.d.ts.map +1 -0
  53. package/node_modules/@gyoungwe/pi-knowledge/dist/core/orchestration-policy.d.ts +84 -0
  54. package/node_modules/@gyoungwe/pi-knowledge/dist/core/orchestration-policy.d.ts.map +1 -0
  55. package/node_modules/@gyoungwe/pi-knowledge/dist/core/project-identity.d.ts +70 -0
  56. package/node_modules/@gyoungwe/pi-knowledge/dist/core/project-identity.d.ts.map +1 -0
  57. package/node_modules/@gyoungwe/pi-knowledge/dist/core/publication-policy.d.ts +39 -0
  58. package/node_modules/@gyoungwe/pi-knowledge/dist/core/publication-policy.d.ts.map +1 -0
  59. package/node_modules/@gyoungwe/pi-knowledge/dist/core/publication.d.ts +24 -0
  60. package/node_modules/@gyoungwe/pi-knowledge/dist/core/publication.d.ts.map +1 -0
  61. package/node_modules/@gyoungwe/pi-knowledge/dist/core/recent-by-category.d.ts +15 -0
  62. package/node_modules/@gyoungwe/pi-knowledge/dist/core/recent-by-category.d.ts.map +1 -0
  63. package/node_modules/@gyoungwe/pi-knowledge/dist/core/related-notes.d.ts +4 -0
  64. package/node_modules/@gyoungwe/pi-knowledge/dist/core/related-notes.d.ts.map +1 -0
  65. package/node_modules/@gyoungwe/pi-knowledge/dist/core/reuse.d.ts +124 -0
  66. package/node_modules/@gyoungwe/pi-knowledge/dist/core/reuse.d.ts.map +1 -0
  67. package/node_modules/@gyoungwe/pi-knowledge/dist/core/review-policy.d.ts +12 -0
  68. package/node_modules/@gyoungwe/pi-knowledge/dist/core/review-policy.d.ts.map +1 -0
  69. package/node_modules/@gyoungwe/pi-knowledge/dist/core/runtime-host.d.ts +98 -0
  70. package/node_modules/@gyoungwe/pi-knowledge/dist/core/runtime-host.d.ts.map +1 -0
  71. package/node_modules/@gyoungwe/pi-knowledge/dist/core/search-policy.d.ts +14 -0
  72. package/node_modules/@gyoungwe/pi-knowledge/dist/core/search-policy.d.ts.map +1 -0
  73. package/node_modules/@gyoungwe/pi-knowledge/dist/core/semantic-model.d.ts +85 -0
  74. package/node_modules/@gyoungwe/pi-knowledge/dist/core/semantic-model.d.ts.map +1 -0
  75. package/node_modules/@gyoungwe/pi-knowledge/dist/core/semantic-provider.d.ts +41 -0
  76. package/node_modules/@gyoungwe/pi-knowledge/dist/core/semantic-provider.d.ts.map +1 -0
  77. package/node_modules/@gyoungwe/pi-knowledge/dist/core/semantic-settings.d.ts +30 -0
  78. package/node_modules/@gyoungwe/pi-knowledge/dist/core/semantic-settings.d.ts.map +1 -0
  79. package/node_modules/@gyoungwe/pi-knowledge/dist/core/service.d.ts +171 -0
  80. package/node_modules/@gyoungwe/pi-knowledge/dist/core/service.d.ts.map +1 -0
  81. package/node_modules/@gyoungwe/pi-knowledge/dist/core/source-links.d.ts +13 -0
  82. package/node_modules/@gyoungwe/pi-knowledge/dist/core/source-links.d.ts.map +1 -0
  83. package/node_modules/@gyoungwe/pi-knowledge/dist/core/specialist-delivery.d.ts +8 -0
  84. package/node_modules/@gyoungwe/pi-knowledge/dist/core/specialist-delivery.d.ts.map +1 -0
  85. package/node_modules/@gyoungwe/pi-knowledge/dist/core/specialist-host.d.ts +61 -0
  86. package/node_modules/@gyoungwe/pi-knowledge/dist/core/specialist-host.d.ts.map +1 -0
  87. package/node_modules/@gyoungwe/pi-knowledge/dist/core/specialists.d.ts +55 -0
  88. package/node_modules/@gyoungwe/pi-knowledge/dist/core/specialists.d.ts.map +1 -0
  89. package/node_modules/@gyoungwe/pi-knowledge/dist/core/task-feedback.d.ts +57 -0
  90. package/node_modules/@gyoungwe/pi-knowledge/dist/core/task-feedback.d.ts.map +1 -0
  91. package/node_modules/@gyoungwe/pi-knowledge/dist/core/tool-budget.d.ts +24 -0
  92. package/node_modules/@gyoungwe/pi-knowledge/dist/core/tool-budget.d.ts.map +1 -0
  93. package/node_modules/@gyoungwe/pi-knowledge/dist/core/topic-candidate.d.ts +22 -0
  94. package/node_modules/@gyoungwe/pi-knowledge/dist/core/topic-candidate.d.ts.map +1 -0
  95. package/node_modules/@gyoungwe/pi-knowledge/dist/core/topic-memory.d.ts +79 -0
  96. package/node_modules/@gyoungwe/pi-knowledge/dist/core/topic-memory.d.ts.map +1 -0
  97. package/node_modules/@gyoungwe/pi-knowledge/dist/core/topic-probe.d.ts +2 -0
  98. package/node_modules/@gyoungwe/pi-knowledge/dist/core/topic-probe.d.ts.map +1 -0
  99. package/node_modules/@gyoungwe/pi-knowledge/dist/core/ui-service.d.ts +360 -0
  100. package/node_modules/@gyoungwe/pi-knowledge/dist/core/ui-service.d.ts.map +1 -0
  101. package/node_modules/@gyoungwe/pi-knowledge/dist/core/ui-state.d.ts +28 -0
  102. package/node_modules/@gyoungwe/pi-knowledge/dist/core/ui-state.d.ts.map +1 -0
  103. package/node_modules/@gyoungwe/pi-knowledge/dist/core/wiki-model-review.d.ts +167 -0
  104. package/node_modules/@gyoungwe/pi-knowledge/dist/core/wiki-model-review.d.ts.map +1 -0
  105. package/node_modules/@gyoungwe/pi-knowledge/dist/core/wiki-policy.d.ts +34 -0
  106. package/node_modules/@gyoungwe/pi-knowledge/dist/core/wiki-policy.d.ts.map +1 -0
  107. package/node_modules/@gyoungwe/pi-knowledge/dist/core/wiki-review.d.ts +74 -0
  108. package/node_modules/@gyoungwe/pi-knowledge/dist/core/wiki-review.d.ts.map +1 -0
  109. package/node_modules/@gyoungwe/pi-knowledge/dist/core/worker.d.ts +2 -0
  110. package/node_modules/@gyoungwe/pi-knowledge/dist/core/worker.d.ts.map +1 -0
  111. package/node_modules/@gyoungwe/pi-knowledge/dist/extension/internal-knowledge-extension.d.ts +42 -0
  112. package/node_modules/@gyoungwe/pi-knowledge/dist/extension/internal-knowledge-extension.d.ts.map +1 -0
  113. package/node_modules/@gyoungwe/pi-knowledge/dist/extension/knowledge-extension.d.ts +5 -0
  114. package/node_modules/@gyoungwe/pi-knowledge/dist/extension/knowledge-extension.d.ts.map +1 -0
  115. package/node_modules/@gyoungwe/pi-knowledge/dist/extension/knowledge-worker.d.ts +6 -0
  116. package/node_modules/@gyoungwe/pi-knowledge/dist/extension/knowledge-worker.d.ts.map +1 -0
  117. package/node_modules/@gyoungwe/pi-knowledge/dist/host.d.ts +7 -0
  118. package/node_modules/@gyoungwe/pi-knowledge/dist/host.d.ts.map +1 -0
  119. package/node_modules/@gyoungwe/pi-knowledge/dist/host.mjs +11638 -0
  120. package/node_modules/@gyoungwe/pi-knowledge/dist/index.d.ts +6 -0
  121. package/node_modules/@gyoungwe/pi-knowledge/dist/index.d.ts.map +1 -0
  122. package/node_modules/@gyoungwe/pi-knowledge/dist/index.mjs +4728 -10301
  123. package/node_modules/@gyoungwe/pi-knowledge/dist/maintenance/plan.d.ts +41 -0
  124. package/node_modules/@gyoungwe/pi-knowledge/dist/maintenance/plan.d.ts.map +1 -0
  125. package/node_modules/@gyoungwe/pi-knowledge/dist/maintenance/prompts.d.ts +10 -0
  126. package/node_modules/@gyoungwe/pi-knowledge/dist/maintenance/prompts.d.ts.map +1 -0
  127. package/node_modules/@gyoungwe/pi-knowledge/dist/maintenance/run.d.ts +31 -0
  128. package/node_modules/@gyoungwe/pi-knowledge/dist/maintenance/run.d.ts.map +1 -0
  129. package/node_modules/@gyoungwe/pi-knowledge/lib/knowledge/runtime/.knowledge-worker-manifest.json +9 -0
  130. package/node_modules/@gyoungwe/pi-knowledge/lib/knowledge/runtime/worker.mjs +142 -12
  131. package/node_modules/@gyoungwe/pi-knowledge/package.json +21 -3
  132. package/node_modules/@gyoungwe/pi-knowledge/plugin.manifest.json +23 -1
  133. package/node_modules/@gyoungwe/pi-research/build-manifest.json +2 -2
  134. package/node_modules/@gyoungwe/pi-research/dist/index.mjs +3141 -613
  135. package/node_modules/@gyoungwe/pi-research/package.json +1 -1
  136. package/node_modules/@gyoungwe/plugin-api/dist/index.d.ts +101 -0
  137. package/node_modules/@gyoungwe/plugin-api/dist/index.d.ts.map +1 -1
  138. package/node_modules/@gyoungwe/plugin-api/dist/index.js +124 -0
  139. package/node_modules/@gyoungwe/plugin-api/dist/index.js.map +1 -1
  140. package/node_modules/@gyoungwe/plugin-api/dist/knowledge.d.ts +486 -0
  141. package/node_modules/@gyoungwe/plugin-api/dist/knowledge.d.ts.map +1 -0
  142. package/node_modules/@gyoungwe/plugin-api/dist/knowledge.js +251 -0
  143. package/node_modules/@gyoungwe/plugin-api/dist/knowledge.js.map +1 -0
  144. package/node_modules/@gyoungwe/plugin-api/package.json +6 -1
  145. package/package.json +58 -44
  146. package/plugin.manifest.json +39 -3
@@ -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"}