carveout 0.3.0 → 0.3.1

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.
@@ -15,7 +15,7 @@ import { type SandboxSpec } from "./sandbox.js";
15
15
  import { type Readiness } from "./readiness.js";
16
16
  import { type AliasRule, type FolderPseudonyms } from "./pseudonyms/index.js";
17
17
  import { type Receipt } from "./receipt.js";
18
- export declare const CARVEOUT_VERSION = "0.3.0";
18
+ export declare const CARVEOUT_VERSION = "0.3.1";
19
19
  export declare const RECORD_PATH = "carveout.json";
20
20
  export declare const RECORD_SCHEMA_VERSION = 1;
21
21
  export declare const BOUNDARY_PATH = "BOUNDARY.md";
package/dist/src/carve.js CHANGED
@@ -35,7 +35,7 @@ import { sandboxRun } from "./sandbox.js";
35
35
  import { configuredFolders, liveCandidates } from "./readiness.js";
36
36
  import { exactToFolder, fromFolder, specifierPackages, toFolder, keptNames, looseLeaks, maskKept, pseudonymize, vocabularyBlockers, vocabularyLeaks, workspaceNames, ownedNames, workspaceVocabulary, } from "./pseudonyms/index.js";
37
37
  import { RECEIPT_SCHEMA_VERSION, folderRecordFor, folderView, newCutId, receiptPathFor, trustedBaseline, trustedCut, trustedCutWith, writeReceipt, } from "./receipt.js";
38
- export const CARVEOUT_VERSION = "0.3.0";
38
+ export const CARVEOUT_VERSION = "0.3.1";
39
39
  export const RECORD_PATH = "carveout.json";
40
40
  export const RECORD_SCHEMA_VERSION = 1;
41
41
  /** Blockers that stop a cut before it writes anything. */
@@ -129,5 +129,13 @@ export declare function vocabularyLeaks(files: readonly {
129
129
  readonly path: string;
130
130
  readonly text: string;
131
131
  }[], vocabulary: readonly string[]): VocabularyLeak[];
132
+ /**
133
+ * A blocker of a name a public file still holds: a `ProjectBlocker` that is
134
+ * only ever `vocabulary_leaked`, so a platform whose own blocker type has no
135
+ * `test_runner_mocked` (sandbox-factory's) takes it as one of its own.
136
+ */
137
+ export interface VocabularyBlocker extends ProjectBlocker {
138
+ readonly code: "vocabulary_leaked";
139
+ }
132
140
  /** A blocker for each leak, naming where it was found and what clears it. */
133
- export declare function vocabularyBlockers(leaks: readonly VocabularyLeak[]): ProjectBlocker[];
141
+ export declare function vocabularyBlockers(leaks: readonly VocabularyLeak[]): VocabularyBlocker[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carveout",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Hand one part of a closed TypeScript repository to an outside contractor: a slice, stubbed and mocked, that installs, builds and tests on its own, and a checked patch back. Also checks a change made in the repository: what it reaches, the tests to run, and weakened tests or config edits.",
5
5
  "keywords": [
6
6
  "carveout",
@@ -17,14 +17,14 @@ description: >-
17
17
  license: MIT
18
18
  compatibility: >-
19
19
  Node 22.12 or later, git and npm; Docker to run a returned folder's code. Runs
20
- the carveout@0.3.0 CLI from npm; online cuts read the npm registry.
20
+ the carveout@0.3.1 CLI from npm; online cuts read the npm registry.
21
21
  ---
22
22
 
23
23
  # carveout
24
24
 
25
- `carveout <command>` is the CLI, `carveout@0.3.0`. When `carveout --version`
25
+ `carveout <command>` is the CLI, `carveout@0.3.1`. When `carveout --version`
26
26
  prints another version or nothing, ask the person before installing it:
27
- `npm i -g carveout@0.3.0`, or put `npx carveout@0.3.0` in place of `carveout` in
27
+ `npm i -g carveout@0.3.1`, or put `npx carveout@0.3.1` in place of `carveout` in
28
28
  each command (in a clone of the repository, `node dist/src/cli.js` after
29
29
  `npm install && npm run build`). Node 22.12 or later, and `git` and `npm` on
30
30
  PATH.
@@ -14,7 +14,7 @@ description: >-
14
14
  test to make it pass.
15
15
  license: MIT
16
16
  compatibility: >-
17
- Node 22.12 or later, git and npm. Runs the carveout@0.3.0 CLI from npm.
17
+ Node 22.12 or later, git and npm. Runs the carveout@0.3.1 CLI from npm.
18
18
  ---
19
19
 
20
20
  # carveout-gate
@@ -23,9 +23,9 @@ What a change made in the repository reaches, and whether it weakened the checks
23
23
  that would catch it. To hand a part of the repository to someone outside it
24
24
  instead, use the `carveout` skill.
25
25
 
26
- `carveout <command>` is the CLI, `carveout@0.3.0`. When `carveout --version`
26
+ `carveout <command>` is the CLI, `carveout@0.3.1`. When `carveout --version`
27
27
  prints another version or nothing, ask the person before installing it:
28
- `npm i -g carveout@0.3.0`, or put `npx carveout@0.3.0` in place of `carveout` in
28
+ `npm i -g carveout@0.3.1`, or put `npx carveout@0.3.1` in place of `carveout` in
29
29
  each command (in a clone of the repository, `node dist/src/cli.js` after
30
30
  `npm install && npm run build`). Node 22.12 or later, and `git` and `npm` on
31
31
  PATH.