carveout 0.1.2 → 0.3.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.
- package/NOTICE.md +44 -0
- package/dist/src/api.d.ts +147 -1
- package/dist/src/api.js +157 -1
- package/dist/src/carve.d.ts +55 -2
- package/dist/src/carve.js +31 -19
- package/dist/src/cut.d.ts +17 -0
- package/dist/src/cut.js +13 -7
- package/dist/src/extract.d.ts +31 -0
- package/dist/src/extract.js +31 -0
- package/dist/src/graph.d.ts +7 -2
- package/dist/src/graph.js +7 -4
- package/dist/src/project/mock-runtime.d.ts +9 -0
- package/dist/src/project/mock-runtime.js +81 -0
- package/dist/src/project/paths.d.ts +10 -0
- package/dist/src/project/paths.js +35 -0
- package/dist/src/project/project.d.ts +3 -6
- package/dist/src/project/project.js +3 -104
- package/dist/src/pseudonyms/carry.d.ts +161 -0
- package/dist/src/pseudonyms/carry.js +301 -0
- package/dist/src/pseudonyms/draft.js +1 -1
- package/dist/src/pseudonyms/folder.js +2 -40
- package/dist/src/pseudonyms/legacy/aliases-v1.d.ts +107 -0
- package/dist/src/pseudonyms/legacy/aliases-v1.js +391 -0
- package/dist/src/pseudonyms/legacy/vocabulary-v1.d.ts +107 -0
- package/dist/src/pseudonyms/legacy/vocabulary-v1.js +460 -0
- package/dist/src/pseudonyms/legacy.d.ts +34 -0
- package/dist/src/pseudonyms/legacy.js +46 -0
- package/dist/src/pseudonyms/vocabulary.d.ts +20 -0
- package/dist/src/pseudonyms/vocabulary.js +57 -0
- package/dist/src/pseudonyms.d.ts +20 -0
- package/dist/src/pseudonyms.js +20 -0
- package/package.json +9 -1
- package/skills/carveout/SKILL.md +15 -12
- package/skills/carveout-gate/SKILL.md +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "carveout",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
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",
|
|
@@ -48,6 +48,14 @@
|
|
|
48
48
|
"types": "./dist/src/api.d.ts",
|
|
49
49
|
"default": "./dist/src/api.js"
|
|
50
50
|
},
|
|
51
|
+
"./extract": {
|
|
52
|
+
"types": "./dist/src/extract.d.ts",
|
|
53
|
+
"default": "./dist/src/extract.js"
|
|
54
|
+
},
|
|
55
|
+
"./pseudonyms": {
|
|
56
|
+
"types": "./dist/src/pseudonyms.d.ts",
|
|
57
|
+
"default": "./dist/src/pseudonyms.js"
|
|
58
|
+
},
|
|
51
59
|
"./package.json": "./package.json"
|
|
52
60
|
},
|
|
53
61
|
"files": [
|
package/skills/carveout/SKILL.md
CHANGED
|
@@ -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.
|
|
20
|
+
the carveout@0.3.0 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.
|
|
25
|
+
`carveout <command>` is the CLI, `carveout@0.3.0`. When `carveout --version`
|
|
26
26
|
prints another version or nothing, ask the person before installing it:
|
|
27
|
-
`npm i -g carveout@0.
|
|
27
|
+
`npm i -g carveout@0.3.0`, or put `npx carveout@0.3.0` 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.
|
|
@@ -69,15 +69,18 @@ kept. The sections below are each step in full.
|
|
|
69
69
|
|
|
70
70
|
## Hosted mode
|
|
71
71
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
`
|
|
75
|
-
|
|
76
|
-
`
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
72
|
+
With the `lunox` MCP tools signed in (bundled; `/mcp` signs in), read with the
|
|
73
|
+
`list_*`/`get_*` tools. Write only when asked: a bounty (`post_bounty` or
|
|
74
|
+
`import_github_issue`, `size_bounty` is a paid run, `get_decisions` and
|
|
75
|
+
`confirm_link`), a slice (`plan_slice`, `start_sandbox`, `cut_slice`), its
|
|
76
|
+
build (`prepare`, then `get_handout`: public files and the hidden suite's hash
|
|
77
|
+
only), a contractor's patch (`submit_patch`, `get_verdict`, one `retry`).
|
|
78
|
+
Approvals, decisions, publishing and merging back happen in the web app. Model
|
|
79
|
+
runs (`size_bounty`, `prepare`, `retry`) count against a monthly token limit
|
|
80
|
+
(`get_usage`); on `quota_exceeded`, tell the person when it resets and do not
|
|
81
|
+
retry. `insufficient_scope` means signing in again through `/mcp`. Never ask
|
|
82
|
+
for a token; the CLI signs in with `carveout login`. Local mode, below, is the
|
|
83
|
+
default.
|
|
81
84
|
|
|
82
85
|
## 1. Plan
|
|
83
86
|
|
|
@@ -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.
|
|
17
|
+
Node 22.12 or later, git and npm. Runs the carveout@0.3.0 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.
|
|
26
|
+
`carveout <command>` is the CLI, `carveout@0.3.0`. When `carveout --version`
|
|
27
27
|
prints another version or nothing, ask the person before installing it:
|
|
28
|
-
`npm i -g carveout@0.
|
|
28
|
+
`npm i -g carveout@0.3.0`, or put `npx carveout@0.3.0` 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.
|