@delfini/drift-engine 0.1.0 → 0.2.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.
@@ -0,0 +1,3 @@
1
+ export { normalizeDocScope, validateDocScopeEntry, classifyEntry, isFileInDocScope, } from './doc-scope.js';
2
+ export type DocScopeEntryKind = ReturnType<typeof import('./doc-scope.js').classifyEntry>;
3
+ //# sourceMappingURL=doc-scope-entry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"doc-scope-entry.d.ts","sourceRoot":"","sources":["../src/doc-scope-entry.ts"],"names":[],"mappings":"AAiBA,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,aAAa,EACb,gBAAgB,GACjB,MAAM,gBAAgB,CAAA;AAIvB,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,cAAc,gBAAgB,EAAE,aAAa,CAAC,CAAA"}
@@ -0,0 +1,17 @@
1
+ // packages/drift-engine/src/doc-scope-entry.ts
2
+ //
3
+ // Dedicated entry module for the `@delfini/drift-engine/doc-scope` subpath
4
+ // export (Story P3.9.2, ADR-2026-06-09). After the monorepo split the closed
5
+ // platform repo (Legends-of-Tech/delfini-platform) consumes the doc-scope
6
+ // algebra from the PUBLISHED package — but it pins zod@4 while this package
7
+ // pins zod@3, so it must never resolve the zod-typed root entry
8
+ // (`analysisSchema`, `buildPrompt`, ...). This subpath exposes ONLY the four
9
+ // pure algebra functions plus their non-zod classification union; its entire
10
+ // .d.ts closure imports nothing but `picomatch`.
11
+ //
12
+ // HARD CONSTRAINT: re-export ONLY from `./doc-scope.js`. Importing `./index.js`,
13
+ // `./schema.js`, `./prompt-builder.js`, or `./reconcile.js` here would
14
+ // transitively pull zod into this surface and silently break the zod-isolation
15
+ // guarantee (the leak smoke in apps/web/src/server/docs-dialect-parity.test.ts
16
+ // fails loudly if that happens).
17
+ export { normalizeDocScope, validateDocScopeEntry, classifyEntry, isFileInDocScope, } from './doc-scope.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delfini/drift-engine",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "private": false,
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -13,6 +13,10 @@
13
13
  "types": "./dist/index.d.ts",
14
14
  "import": "./dist/index.js"
15
15
  },
16
+ "./doc-scope": {
17
+ "types": "./dist/doc-scope-entry.d.ts",
18
+ "import": "./dist/doc-scope-entry.js"
19
+ },
16
20
  "./prompt.md": "./src/prompt.md"
17
21
  },
18
22
  "files": [