@gyoungwe/research-suite 0.1.5 → 0.1.7
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/build-manifest.json +2 -2
- package/node_modules/@gyoungwe/pi-core/dist/index.mjs +391 -10
- 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 +6 -6
- package/plugin.manifest.json +39 -3
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/** @param {Record<string, any>} [options] */
|
|
2
|
+
export declare function knowledgeReadStart({ start_line, startLine }?: {}): any;
|
|
3
|
+
export declare function shouldOrientKnowledge(prompt: any): boolean;
|
|
4
|
+
export declare function createKnowledgeSpecialists(pi: any, { getCurrent, readOnly }: {
|
|
5
|
+
getCurrent: any;
|
|
6
|
+
readOnly?: boolean | undefined;
|
|
7
|
+
}): {
|
|
8
|
+
begin: (prompt?: string) => void;
|
|
9
|
+
run: (ctx: any, role: any, { task, sourcePaths, sourceHashes, summary, automatic, targetPath, }?: {
|
|
10
|
+
task?: string | undefined;
|
|
11
|
+
sourcePaths?: never[] | undefined;
|
|
12
|
+
sourceHashes?: never[] | undefined;
|
|
13
|
+
summary?: string | undefined;
|
|
14
|
+
automatic?: boolean | undefined;
|
|
15
|
+
targetPath?: null | undefined;
|
|
16
|
+
}) => Promise<any>;
|
|
17
|
+
orient: (ctx: any) => Promise<any[]>;
|
|
18
|
+
compact: (result: any) => {
|
|
19
|
+
role: any;
|
|
20
|
+
status: any;
|
|
21
|
+
reason: any;
|
|
22
|
+
reasonCode: any;
|
|
23
|
+
decision: any;
|
|
24
|
+
nextAction: string;
|
|
25
|
+
summary?: undefined;
|
|
26
|
+
cautions?: undefined;
|
|
27
|
+
refs?: undefined;
|
|
28
|
+
search?: undefined;
|
|
29
|
+
usageReported?: undefined;
|
|
30
|
+
elapsedMs?: undefined;
|
|
31
|
+
budget?: undefined;
|
|
32
|
+
warning?: undefined;
|
|
33
|
+
} | {
|
|
34
|
+
role: any;
|
|
35
|
+
status: any;
|
|
36
|
+
decision: string;
|
|
37
|
+
summary: any;
|
|
38
|
+
cautions: any;
|
|
39
|
+
refs: any;
|
|
40
|
+
search: any;
|
|
41
|
+
usageReported: boolean;
|
|
42
|
+
elapsedMs: any;
|
|
43
|
+
budget: import("./orchestration-policy.js").SpecialistBudgetSnapshot;
|
|
44
|
+
warning: string;
|
|
45
|
+
reason?: undefined;
|
|
46
|
+
reasonCode?: undefined;
|
|
47
|
+
nextAction?: undefined;
|
|
48
|
+
};
|
|
49
|
+
goal: () => string;
|
|
50
|
+
budget: () => import("./orchestration-policy.js").SpecialistBudgetSnapshot;
|
|
51
|
+
decisions: () => any[];
|
|
52
|
+
decisionHistory: () => any[];
|
|
53
|
+
close: () => void;
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=specialists.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"specialists.d.ts","sourceRoot":"","sources":["../../src/core/specialists.ts"],"names":[],"mappings":"AAoDA,6CAA6C;AAC7C,wBAAgB,kBAAkB,CAAC,EAAE,UAAU,EAAE,SAAS,EAAE,KAAK,OAMhE;AACD,wBAAgB,qBAAqB,CAAC,MAAM,KAAA,WAe3C;AACD,wBAAgB,0BAA0B,CAAC,EAAE,KAAA,EAAE,EAAE,UAAU,EAAE,QAAgB,EAAE;;;CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6hB9E"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export interface TaskFeedbackEvent {
|
|
2
|
+
toolCallId?: unknown;
|
|
3
|
+
toolName?: unknown;
|
|
4
|
+
details?: Record<string, unknown> | null;
|
|
5
|
+
content?: readonly TaskFeedbackContent[];
|
|
6
|
+
isError?: boolean;
|
|
7
|
+
input?: Record<string, unknown> | null;
|
|
8
|
+
}
|
|
9
|
+
export interface TaskFeedbackContent {
|
|
10
|
+
type?: string;
|
|
11
|
+
text?: unknown;
|
|
12
|
+
}
|
|
13
|
+
export interface TaskFeedbackContext {
|
|
14
|
+
cwd: string;
|
|
15
|
+
}
|
|
16
|
+
export interface TaskFeedbackFile {
|
|
17
|
+
name: string;
|
|
18
|
+
path: string;
|
|
19
|
+
}
|
|
20
|
+
export interface TaskFeedbackFailure {
|
|
21
|
+
tool: string;
|
|
22
|
+
reason: string;
|
|
23
|
+
}
|
|
24
|
+
export interface TaskFeedbackFacts {
|
|
25
|
+
archivedSources: number;
|
|
26
|
+
summarySaved: boolean;
|
|
27
|
+
explainerSaved: boolean;
|
|
28
|
+
pendingWikiCandidates: number;
|
|
29
|
+
files: TaskFeedbackFile[];
|
|
30
|
+
failures: TaskFeedbackFailure[];
|
|
31
|
+
}
|
|
32
|
+
export interface TaskFeedback {
|
|
33
|
+
begin(): void;
|
|
34
|
+
observe(event: TaskFeedbackEvent, ctx: TaskFeedbackContext): Promise<void>;
|
|
35
|
+
facts(): TaskFeedbackFacts;
|
|
36
|
+
report(reason: string, message: string, paths?: readonly string[]): string;
|
|
37
|
+
}
|
|
38
|
+
/** Observed tool receipts only; raw model drafts and thinking are never retained. */
|
|
39
|
+
export declare function createTaskFeedback(): TaskFeedback;
|
|
40
|
+
export interface ResearchToolResultEvent {
|
|
41
|
+
toolName?: unknown;
|
|
42
|
+
content?: readonly TaskFeedbackContent[];
|
|
43
|
+
details?: Record<string, unknown> | null;
|
|
44
|
+
isError?: boolean;
|
|
45
|
+
}
|
|
46
|
+
/** Prevent binary PDF bytes and explicit failed receipts from masquerading as evidence. */
|
|
47
|
+
export declare function guardResearchToolResult(event: ResearchToolResultEvent): {
|
|
48
|
+
content: Array<{
|
|
49
|
+
type: "text";
|
|
50
|
+
text: string;
|
|
51
|
+
}>;
|
|
52
|
+
isError: true;
|
|
53
|
+
details: Record<string, unknown>;
|
|
54
|
+
} | {
|
|
55
|
+
isError: true;
|
|
56
|
+
} | undefined;
|
|
57
|
+
//# sourceMappingURL=task-feedback.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task-feedback.d.ts","sourceRoot":"","sources":["../../src/core/task-feedback.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,iBAAiB;IACjC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IACzC,OAAO,CAAC,EAAE,SAAS,mBAAmB,EAAE,CAAC;IACzC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;CACvC;AAED,MAAM,WAAW,mBAAmB;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,mBAAmB;IACnC,GAAG,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,gBAAgB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,mBAAmB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iBAAiB;IACjC,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,OAAO,CAAC;IACtB,cAAc,EAAE,OAAO,CAAC;IACxB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,KAAK,EAAE,gBAAgB,EAAE,CAAC;IAC1B,QAAQ,EAAE,mBAAmB,EAAE,CAAC;CAChC;AAED,MAAM,WAAW,YAAY;IAC5B,KAAK,IAAI,IAAI,CAAC;IACd,OAAO,CAAC,KAAK,EAAE,iBAAiB,EAAE,GAAG,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3E,KAAK,IAAI,iBAAiB,CAAC;IAC3B,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAAC;CAC3E;AAuBD,qFAAqF;AACrF,wBAAgB,kBAAkB,IAAI,YAAY,CA4HjD;AAED,MAAM,WAAW,uBAAuB;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,SAAS,mBAAmB,EAAE,CAAC;IACzC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IACzC,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,2FAA2F;AAC3F,wBAAgB,uBAAuB,CACtC,KAAK,EAAE,uBAAuB,GAE5B;IAAE,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAAC,OAAO,EAAE,IAAI,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAE,GACnG;IAAE,OAAO,EAAE,IAAI,CAAA;CAAE,GACjB,SAAS,CAuBX"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface ToolBudgetOptions {
|
|
2
|
+
maxReads?: number;
|
|
3
|
+
maxSearches?: number;
|
|
4
|
+
maxRepeats?: number;
|
|
5
|
+
}
|
|
6
|
+
export interface ToolBudgetFailure {
|
|
7
|
+
status: "budget-exhausted";
|
|
8
|
+
code: "tool-loop";
|
|
9
|
+
message: string;
|
|
10
|
+
next: string;
|
|
11
|
+
}
|
|
12
|
+
export interface ToolBudget {
|
|
13
|
+
reset(): void;
|
|
14
|
+
consume(kind: "read" | "search", key: unknown, options?: {
|
|
15
|
+
recovery?: boolean;
|
|
16
|
+
}): ToolBudgetFailure | null;
|
|
17
|
+
snapshot(): {
|
|
18
|
+
reads: number;
|
|
19
|
+
searches: number;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
/** Per-turn budget for parent knowledge read/search tools. */
|
|
23
|
+
export declare function createToolBudget(options?: ToolBudgetOptions): ToolBudget;
|
|
24
|
+
//# sourceMappingURL=tool-budget.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-budget.d.ts","sourceRoot":"","sources":["../../src/core/tool-budget.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,iBAAiB;IACjC,MAAM,EAAE,kBAAkB,CAAC;IAC3B,IAAI,EAAE,WAAW,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,UAAU;IAC1B,KAAK,IAAI,IAAI,CAAC;IACd,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,iBAAiB,GAAG,IAAI,CAAC;IAC3G,QAAQ,IAAI;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;CAChD;AAED,8DAA8D;AAC9D,wBAAgB,gBAAgB,CAAC,OAAO,GAAE,iBAAsB,GAAG,UAAU,CAwC5E"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface TopicCandidateInput {
|
|
2
|
+
summary?: unknown;
|
|
3
|
+
query?: unknown;
|
|
4
|
+
resultSlug?: unknown;
|
|
5
|
+
sourcePaths?: readonly unknown[];
|
|
6
|
+
}
|
|
7
|
+
export interface TopicCandidate {
|
|
8
|
+
eligible: true;
|
|
9
|
+
input: {
|
|
10
|
+
path: string;
|
|
11
|
+
title: string;
|
|
12
|
+
markdown: string;
|
|
13
|
+
rationale: string;
|
|
14
|
+
source_paths: unknown[];
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export type TopicCandidateResult = TopicCandidate | {
|
|
18
|
+
eligible: false;
|
|
19
|
+
reason: string;
|
|
20
|
+
};
|
|
21
|
+
export declare function autoTopicCandidate({ summary, query, resultSlug, sourcePaths, }?: TopicCandidateInput): TopicCandidateResult;
|
|
22
|
+
//# sourceMappingURL=topic-candidate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"topic-candidate.d.ts","sourceRoot":"","sources":["../../src/core/topic-candidate.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IACnC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,SAAS,OAAO,EAAE,CAAC;CACjC;AAED,MAAM,WAAW,cAAc;IAC9B,QAAQ,EAAE,IAAI,CAAC;IACf,KAAK,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;QACjB,SAAS,EAAE,MAAM,CAAC;QAClB,YAAY,EAAE,OAAO,EAAE,CAAC;KACxB,CAAC;CACF;AAED,MAAM,MAAM,oBAAoB,GAAG,cAAc,GAAG;IAAE,QAAQ,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AA2BxF,wBAAgB,kBAAkB,CAAC,EAClC,OAAO,EACP,KAAK,EACL,UAAU,EACV,WAAgB,GAChB,GAAE,mBAAwB,GAAG,oBAAoB,CAkBjD"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
export declare const TOPIC_MEMORY_VERSION = 1;
|
|
2
|
+
export declare const TOPIC_MEMORY_LIMITS: Readonly<{
|
|
3
|
+
maxTopics: 64;
|
|
4
|
+
maxSummaryChars: 4000;
|
|
5
|
+
maxContextChars: 2400;
|
|
6
|
+
maxEntities: 24;
|
|
7
|
+
maxQuestions: 16;
|
|
8
|
+
maxSources: 24;
|
|
9
|
+
maxArtifacts: 12;
|
|
10
|
+
maxHistory: 8;
|
|
11
|
+
maxRecentRuns: 12;
|
|
12
|
+
maxClaims: 64;
|
|
13
|
+
maxConflicts: 32;
|
|
14
|
+
maxFileBytes: number;
|
|
15
|
+
}>;
|
|
16
|
+
export declare function classifyTopic(existing: any, incoming: any): "stale" | "duplicate" | "new" | "conflict-candidate" | "additional";
|
|
17
|
+
/** @param {Record<string, any>} [options] */
|
|
18
|
+
export declare function createTopicMemory({ binding, project, directory }?: {
|
|
19
|
+
directory?: string | null | undefined;
|
|
20
|
+
}): {
|
|
21
|
+
path: string;
|
|
22
|
+
scope: {
|
|
23
|
+
vaultId: any;
|
|
24
|
+
project: string;
|
|
25
|
+
};
|
|
26
|
+
read: () => Promise<any>;
|
|
27
|
+
list: (query?: string, { includeArchived }?: {
|
|
28
|
+
includeArchived?: boolean | undefined;
|
|
29
|
+
}) => Promise<{
|
|
30
|
+
revision: any;
|
|
31
|
+
topics: any;
|
|
32
|
+
}>;
|
|
33
|
+
get: (idOrName: any) => Promise<{
|
|
34
|
+
revision: any;
|
|
35
|
+
matches: any;
|
|
36
|
+
}>;
|
|
37
|
+
context: (topic: any) => Promise<string | null>;
|
|
38
|
+
refreshSourceCheck: (topicId: any) => Promise<{
|
|
39
|
+
topic: {
|
|
40
|
+
status: any;
|
|
41
|
+
id: any;
|
|
42
|
+
title: any;
|
|
43
|
+
aliases: any;
|
|
44
|
+
summary: any;
|
|
45
|
+
entities: any;
|
|
46
|
+
unresolvedQuestions: any;
|
|
47
|
+
sources: any;
|
|
48
|
+
artifacts: any;
|
|
49
|
+
revision: any;
|
|
50
|
+
updatedAt: any;
|
|
51
|
+
lastRunHash: any;
|
|
52
|
+
lastRunId: any;
|
|
53
|
+
recentRuns: any;
|
|
54
|
+
proposalIds: any;
|
|
55
|
+
keyFindings: any;
|
|
56
|
+
claims: any;
|
|
57
|
+
conflicts: any;
|
|
58
|
+
history: any;
|
|
59
|
+
};
|
|
60
|
+
stale: {
|
|
61
|
+
path: any;
|
|
62
|
+
reason: string;
|
|
63
|
+
}[];
|
|
64
|
+
status: any;
|
|
65
|
+
}>;
|
|
66
|
+
link: (topicId: any, { proposalIds, artifacts }?: {
|
|
67
|
+
proposalIds?: never[] | undefined;
|
|
68
|
+
artifacts?: never[] | undefined;
|
|
69
|
+
}) => Promise<unknown>;
|
|
70
|
+
update: (input: any, expectedRevision: any) => Promise<unknown>;
|
|
71
|
+
archive: (id: any, expectedRevision: any) => Promise<unknown>;
|
|
72
|
+
record: (input: any, expectedRevision: any) => Promise<any>;
|
|
73
|
+
};
|
|
74
|
+
export declare function topicRunHash(summary: any, sources?: never[]): string;
|
|
75
|
+
export declare function listTopics(options?: {}): Promise<any>;
|
|
76
|
+
export declare function readTopic(options?: {}): Promise<any>;
|
|
77
|
+
export declare function updateTopic(options?: {}): Promise<unknown>;
|
|
78
|
+
export declare function archiveTopic(options?: {}): Promise<unknown>;
|
|
79
|
+
//# sourceMappingURL=topic-memory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"topic-memory.d.ts","sourceRoot":"","sources":["../../src/core/topic-memory.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,oBAAoB,IAAI,CAAC;AACtC,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;EAa9B,CAAC;AAiTH,wBAAgB,aAAa,CAAC,QAAQ,KAAA,EAAE,QAAQ,KAAA,uEAuB/C;AAED,6CAA6C;AAC7C,wBAAgB,iBAAiB,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,SAAgC,EAAE;;CAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyW5F;AAED,wBAAgB,YAAY,CAAC,OAAO,KAAA,EAAE,OAAO,UAAK,UAUjD;AAED,wBAAsB,UAAU,CAAC,OAAO,KAAK,gBAE5C;AAED,wBAAsB,SAAS,CAAC,OAAO,KAAK,gBAE3C;AAED,wBAAsB,WAAW,CAAC,OAAO,KAAK,oBAI7C;AAED,wBAAsB,YAAY,CAAC,OAAO,KAAK,oBAG9C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"topic-probe.d.ts","sourceRoot":"","sources":["../../src/core/topic-probe.ts"],"names":[],"mappings":"AAiBA,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,GAAG,IAAI,CAkB1F"}
|
|
@@ -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"}
|