@contractspec/module.product-intent-core 1.61.0 → 2.0.0

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.
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=keyword-retriever.test.d.ts.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=product-intent-orchestrator.test.d.ts.map
@@ -24,8 +24,8 @@ var createKeywordEvidenceFetcher = (chunks, options = {}) => async ({
24
24
  // src/orchestrator/product-intent-orchestrator.ts
25
25
  import {
26
26
  ContractSpecPatchModel
27
- } from "@contractspec/lib.contracts/product-intent/types";
28
- import { ProductIntentRegistry } from "@contractspec/lib.contracts/product-intent/registry";
27
+ } from "@contractspec/lib.contracts-spec/product-intent/types";
28
+ import { ProductIntentRegistry } from "@contractspec/lib.contracts-spec/product-intent/registry";
29
29
  import {
30
30
  formatEvidenceForModel,
31
31
  impactEngine,
@@ -1,4 +1,4 @@
1
- import type { EvidenceChunk } from '@contractspec/lib.contracts/product-intent/types';
1
+ import type { EvidenceChunk } from '@contractspec/lib.contracts-spec/product-intent/types';
2
2
  export interface KeywordEvidenceOptions {
3
3
  minScore?: number;
4
4
  }
@@ -6,4 +6,3 @@ export declare const createKeywordEvidenceFetcher: (chunks: EvidenceChunk[], opt
6
6
  query: string;
7
7
  maxChunks?: number;
8
8
  }) => Promise<EvidenceChunk[]>;
9
- //# sourceMappingURL=keyword-retriever.d.ts.map
package/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
1
  export * from './types';
2
2
  export * from './evidence/keyword-retriever';
3
3
  export * from './orchestrator/product-intent-orchestrator';
4
- //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -25,8 +25,8 @@ var createKeywordEvidenceFetcher = (chunks, options = {}) => async ({
25
25
  // src/orchestrator/product-intent-orchestrator.ts
26
26
  import {
27
27
  ContractSpecPatchModel
28
- } from "@contractspec/lib.contracts/product-intent/types";
29
- import { ProductIntentRegistry } from "@contractspec/lib.contracts/product-intent/registry";
28
+ } from "@contractspec/lib.contracts-spec/product-intent/types";
29
+ import { ProductIntentRegistry } from "@contractspec/lib.contracts-spec/product-intent/registry";
30
30
  import {
31
31
  formatEvidenceForModel,
32
32
  impactEngine,
@@ -24,8 +24,8 @@ var createKeywordEvidenceFetcher = (chunks, options = {}) => async ({
24
24
  // src/orchestrator/product-intent-orchestrator.ts
25
25
  import {
26
26
  ContractSpecPatchModel
27
- } from "@contractspec/lib.contracts/product-intent/types";
28
- import { ProductIntentRegistry } from "@contractspec/lib.contracts/product-intent/registry";
27
+ } from "@contractspec/lib.contracts-spec/product-intent/types";
28
+ import { ProductIntentRegistry } from "@contractspec/lib.contracts-spec/product-intent/registry";
29
29
  import {
30
30
  formatEvidenceForModel,
31
31
  impactEngine,
@@ -1,6 +1,6 @@
1
- import { type ContractPatchIntent, type ContractSpecPatch, type EvidenceChunk, type ImpactReport, type InsightExtraction, type OpportunityBrief, type TaskPack } from '@contractspec/lib.contracts/product-intent/types';
2
- import type { ProductIntentSpec } from '@contractspec/lib.contracts/product-intent/spec';
3
- import { ProductIntentRegistry } from '@contractspec/lib.contracts/product-intent/registry';
1
+ import { type ContractPatchIntent, type ContractSpecPatch, type EvidenceChunk, type ImpactReport, type InsightExtraction, type OpportunityBrief, type TaskPack } from '@contractspec/lib.contracts-spec/product-intent/types';
2
+ import type { ProductIntentSpec } from '@contractspec/lib.contracts-spec/product-intent/spec';
3
+ import { ProductIntentRegistry } from '@contractspec/lib.contracts-spec/product-intent/registry';
4
4
  import type { ProductIntentOrchestratorOptions, ProductIntentOrchestratorParams } from '../types';
5
5
  export declare class ProductIntentOrchestrator<Context = unknown> {
6
6
  private options;
@@ -16,4 +16,3 @@ export declare class ProductIntentOrchestrator<Context = unknown> {
16
16
  protected generateTasks(brief: OpportunityBrief, intent: ContractPatchIntent, impact: ImpactReport, repoContext?: string): Promise<TaskPack>;
17
17
  private runModel;
18
18
  }
19
- //# sourceMappingURL=product-intent-orchestrator.d.ts.map
package/dist/types.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import type { EvidenceChunk } from '@contractspec/lib.contracts/product-intent/types';
2
- import type { ProductIntentMeta } from '@contractspec/lib.contracts/product-intent/spec';
3
- import type { ContractPatchIntent, ContractSpecPatch, ImpactReport, InsightExtraction, OpportunityBrief, TaskPack } from '@contractspec/lib.contracts/product-intent/types';
1
+ import type { EvidenceChunk } from '@contractspec/lib.contracts-spec/product-intent/types';
2
+ import type { ProductIntentMeta } from '@contractspec/lib.contracts-spec/product-intent/spec';
3
+ import type { ContractPatchIntent, ContractSpecPatch, ImpactReport, InsightExtraction, OpportunityBrief, TaskPack } from '@contractspec/lib.contracts-spec/product-intent/types';
4
4
  export interface ProductIntentModelRunner {
5
5
  generateJson: (prompt: string) => Promise<string>;
6
6
  }
@@ -29,4 +29,3 @@ export interface ProductIntentOrchestratorParams<Context = unknown> {
29
29
  compilerOutputText?: string;
30
30
  repoContext?: string;
31
31
  }
32
- //# sourceMappingURL=types.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contractspec/module.product-intent-core",
3
- "version": "1.61.0",
3
+ "version": "2.0.0",
4
4
  "description": "Core product intent orchestration and adapters",
5
5
  "keywords": [
6
6
  "contractspec",
@@ -32,13 +32,13 @@
32
32
  "typecheck": "tsc --noEmit"
33
33
  },
34
34
  "dependencies": {
35
- "@contractspec/lib.contracts": "1.61.0",
36
- "@contractspec/lib.product-intent-utils": "1.61.0"
35
+ "@contractspec/lib.contracts-spec": "2.0.0",
36
+ "@contractspec/lib.product-intent-utils": "2.0.0"
37
37
  },
38
38
  "devDependencies": {
39
- "@contractspec/tool.typescript": "1.61.0",
39
+ "@contractspec/tool.typescript": "2.0.0",
40
40
  "typescript": "^5.9.3",
41
- "@contractspec/tool.bun": "1.60.0"
41
+ "@contractspec/tool.bun": "2.0.0"
42
42
  },
43
43
  "exports": {
44
44
  ".": {
@@ -1 +0,0 @@
1
- {"version":3,"file":"keyword-retriever.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/keyword-retriever.test.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"product-intent-orchestrator.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/product-intent-orchestrator.test.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"keyword-retriever.d.ts","sourceRoot":"","sources":["../../src/evidence/keyword-retriever.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kDAAkD,CAAC;AAEtF,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AASD,eAAO,MAAM,4BAA4B,GACtC,QAAQ,aAAa,EAAE,EAAE,UAAS,sBAA2B,MACvD,uBAGJ;IACD,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,KAAG,OAAO,CAAC,aAAa,EAAE,CAwB1B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4CAA4C,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"product-intent-orchestrator.d.ts","sourceRoot":"","sources":["../../src/orchestrator/product-intent-orchestrator.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EAEtB,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,QAAQ,EACd,MAAM,kDAAkD,CAAC;AAC1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iDAAiD,CAAC;AACzF,OAAO,EAAE,qBAAqB,EAAE,MAAM,qDAAqD,CAAC;AAe5F,OAAO,KAAK,EACV,gCAAg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