@agentproto/corpus 0.1.0-alpha.2 → 0.1.0-alpha.3

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.
@@ -0,0 +1,24 @@
1
+ /**
2
+ * ReportModelPort — the minimal model seam the report's model steps consume.
3
+ *
4
+ * Structural, not nominal: the AIP `ModelPort` (`complete({system?, prompt}) →
5
+ * {result}`) satisfies it as-is, so the same engine runs under any registered
6
+ * model. The single-pass functions here ARE the "model driver" tier; the
7
+ * higher-fidelity claude-code path (Phase C) reuses the same prompt-builders
8
+ * but swaps the executor for file-reading sub-agents.
9
+ */
10
+ interface ReportModelInput {
11
+ readonly system?: string;
12
+ readonly prompt: string;
13
+ }
14
+ interface ReportModelOutput {
15
+ /** Completion payload — string for text, or a structured object. */
16
+ readonly result: string | unknown;
17
+ }
18
+ interface ReportModelPort {
19
+ complete(input: ReportModelInput): Promise<ReportModelOutput>;
20
+ }
21
+ /** Run a prompt and coerce the completion to text. */
22
+ declare function runModel(model: ReportModelPort, input: ReportModelInput): Promise<string>;
23
+
24
+ export { type ReportModelPort as R, type ReportModelInput as a, type ReportModelOutput as b, runModel as r };
@@ -1,5 +1,7 @@
1
1
  import { F as FsPort } from '../fs.port-BHzctsoT.js';
2
2
  import { z } from 'zod';
3
+ import { R as ReportModelPort, a as ReportModelInput } from '../model-CtAaBJn4.js';
4
+ export { b as ReportModelOutput, r as runModel } from '../model-CtAaBJn4.js';
3
5
 
4
6
  /**
5
7
  * ReportConfig — the single source of truth for a long-form report rendered
@@ -385,29 +387,6 @@ interface ApplyEditsOptions {
385
387
  }
386
388
  declare function applyEdits(opts: ApplyEditsOptions): Promise<ApplyEditsResult>;
387
389
 
388
- /**
389
- * ReportModelPort — the minimal model seam the report's model steps consume.
390
- *
391
- * Structural, not nominal: the AIP `ModelPort` (`complete({system?, prompt}) →
392
- * {result}`) satisfies it as-is, so the same engine runs under any registered
393
- * model. The single-pass functions here ARE the "model driver" tier; the
394
- * higher-fidelity claude-code path (Phase C) reuses the same prompt-builders
395
- * but swaps the executor for file-reading sub-agents.
396
- */
397
- interface ReportModelInput {
398
- readonly system?: string;
399
- readonly prompt: string;
400
- }
401
- interface ReportModelOutput {
402
- /** Completion payload — string for text, or a structured object. */
403
- readonly result: string | unknown;
404
- }
405
- interface ReportModelPort {
406
- complete(input: ReportModelInput): Promise<ReportModelOutput>;
407
- }
408
- /** Run a prompt and coerce the completion to text. */
409
- declare function runModel(model: ReportModelPort, input: ReportModelInput): Promise<string>;
410
-
411
390
  /**
412
391
  * analyze — synthesize the distilled entries of each facet into a structured
413
392
  * markdown analysis doc (`sources.<facet>.md`), the deeper context the chapter
@@ -523,4 +502,4 @@ interface PlanOutlineResult {
523
502
  }
524
503
  declare function planOutline(opts: PlanOutlineOptions): Promise<PlanOutlineResult>;
525
504
 
526
- export { type AnalyzeDatasetOptions, type AnalyzeDatasetResult, type AnalyzeFacetInput, type ApplyEditsOptions, type ApplyEditsResult, type AssembleOptions, type AssembleResult, type BibEntry, type BuildPacksOptions, type BuildPacksResult, type BuildReportContentOptions, type ChapterDraft, type ChapterEdit, type ChapterEditSet, type ChapterReviewContext, type ChapterWriteContext, type CollectSectionsOptions, type PackFile, type PlanOutlineOptions, type PlanOutlineResult, type ReportChapter, type ReportConfig, type ReportContent, type ReportCover, type ReportCoverFact, type ReportCoverPage, type ReportModelInput, type ReportModelOutput, type ReportModelPort, type ReportPart, type ReportSection, type StitchOptions, type StitchResult, analyzeDataset, applyEdits, assembleChapters, bibEntrySchema, buildChapterWritePrompt, buildFacetAnalysisPrompt, buildPacks, buildReportContent, buildReviewPrompt, citesOf, cleanDraft, collectReportSections, outOfRangeCites, planOutline, reportChapterSchema, reportConfigSchema, reportContentSchema, reportContentToMarkdown, reportCoverFactSchema, reportCoverPageSchema, reportCoverSchema, reportPartSchema, reportSectionKindSchema, reportSectionSchema, reviewChapter, runModel, stitchReport, writeChapter };
505
+ export { type AnalyzeDatasetOptions, type AnalyzeDatasetResult, type AnalyzeFacetInput, type ApplyEditsOptions, type ApplyEditsResult, type AssembleOptions, type AssembleResult, type BibEntry, type BuildPacksOptions, type BuildPacksResult, type BuildReportContentOptions, type ChapterDraft, type ChapterEdit, type ChapterEditSet, type ChapterReviewContext, type ChapterWriteContext, type CollectSectionsOptions, type PackFile, type PlanOutlineOptions, type PlanOutlineResult, type ReportChapter, type ReportConfig, type ReportContent, type ReportCover, type ReportCoverFact, type ReportCoverPage, ReportModelInput, ReportModelPort, type ReportPart, type ReportSection, type StitchOptions, type StitchResult, analyzeDataset, applyEdits, assembleChapters, bibEntrySchema, buildChapterWritePrompt, buildFacetAnalysisPrompt, buildPacks, buildReportContent, buildReviewPrompt, citesOf, cleanDraft, collectReportSections, outOfRangeCites, planOutline, reportChapterSchema, reportConfigSchema, reportContentSchema, reportContentToMarkdown, reportCoverFactSchema, reportCoverPageSchema, reportCoverSchema, reportPartSchema, reportSectionKindSchema, reportSectionSchema, reviewChapter, stitchReport, writeChapter };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentproto/corpus",
3
- "version": "0.1.0-alpha.2",
3
+ "version": "0.1.0-alpha.3",
4
4
  "description": "@agentproto/corpus — canonical composition of AIP-10 KNOWLEDGE, AIP-12 PLAYBOOK, AIP-18 COLLECTION, AIP-9 OPERATOR, AIP-15 WORKFLOW, AIP-41 ROUTINE into an autonomous knowledge-improvement system. Pure: zero runtime, zero filesystem, zero HTTP — all I/O via injected ports.",
5
5
  "keywords": [
6
6
  "agentproto",
@@ -59,12 +59,12 @@
59
59
  "gray-matter": "^4.0.3",
60
60
  "yaml": "^2.7.0",
61
61
  "zod": "^4.4.3",
62
- "@agentproto/knowledge": "0.1.0-alpha.1",
63
62
  "@agentproto/collection": "0.1.0-alpha.1",
63
+ "@agentproto/knowledge": "0.1.0-alpha.1",
64
64
  "@agentproto/registry": "0.1.0-alpha.1",
65
- "@agentproto/routine": "0.1.0-alpha.1",
66
- "@agentproto/operator": "0.1.0-alpha.1",
67
65
  "@agentproto/playbook": "0.1.0-alpha.1",
66
+ "@agentproto/operator": "0.1.0-alpha.1",
67
+ "@agentproto/routine": "0.1.0-alpha.1",
68
68
  "@agentproto/workflow": "0.1.0-alpha.1"
69
69
  },
70
70
  "devDependencies": {