@amykit/plugin-claude 0.3.1 → 0.4.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/README.md +4 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +10 -0
- package/dist/config.js.map +1 -1
- package/dist/plugin.d.ts.map +1 -1
- package/dist/plugin.js +6 -1
- package/dist/plugin.js.map +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -26,6 +26,8 @@ workflows:
|
|
|
26
26
|
```yaml
|
|
27
27
|
plugins:
|
|
28
28
|
"@amykit/plugin-claude":
|
|
29
|
+
baseBranch: {}
|
|
30
|
+
checkouts: {}
|
|
29
31
|
defaultBranch: "main"
|
|
30
32
|
model: ""
|
|
31
33
|
models: []
|
|
@@ -35,6 +37,8 @@ plugins:
|
|
|
35
37
|
|
|
36
38
|
| Setting | Type | Required | Default | What it is |
|
|
37
39
|
| :-- | :-- | :-- | :-- | :-- |
|
|
40
|
+
| `baseBranch` | `record` | no | `{}` | where one repository's base branch is, instead of the fallback. A repository named here has its work cut from, and its pull requests opened against, that branch |
|
|
41
|
+
| `checkouts` | `record` | no | `{}` | where one repository's checkout is, instead of under the workspace root, which is where the agent is sent |
|
|
38
42
|
| `defaultBranch` | `string` | no | `main` | the branch new work is cut from, which is not always `main` |
|
|
39
43
|
| `model` | `string` | no | `""` | passed to the CLI as --model, which is the flag it accepts |
|
|
40
44
|
| `models` | `string[]` | no | `[]` | the model tiers to offer the relay, cheapest first. One agent is contributed per tier, named `claude:<model>`. Empty means a single agent using `model` |
|
package/dist/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,2DAA2D;AAC3D,eAAO,MAAM,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,2DAA2D;AAC3D,eAAO,MAAM,YAAY,EAAE,YAuC1B,CAAC"}
|
package/dist/config.js
CHANGED
|
@@ -5,6 +5,16 @@ export const configSchema = {
|
|
|
5
5
|
description: "the branch new work is cut from, which is not always `main`",
|
|
6
6
|
default: "main",
|
|
7
7
|
},
|
|
8
|
+
baseBranch: {
|
|
9
|
+
type: "record",
|
|
10
|
+
description: "where one repository's base branch is, instead of the fallback. A repository named here has its work cut from, and its pull requests opened against, that branch",
|
|
11
|
+
default: {},
|
|
12
|
+
},
|
|
13
|
+
checkouts: {
|
|
14
|
+
type: "record",
|
|
15
|
+
description: "where one repository's checkout is, instead of under the workspace root, which is where the agent is sent",
|
|
16
|
+
default: {},
|
|
17
|
+
},
|
|
8
18
|
model: {
|
|
9
19
|
type: "string",
|
|
10
20
|
description: "passed to the CLI as --model, which is the flag it accepts",
|
package/dist/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAEA,2DAA2D;AAC3D,MAAM,CAAC,MAAM,YAAY,GAAiB;IACxC,aAAa,EAAE;QACb,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,6DAA6D;QAC1E,OAAO,EAAE,MAAM;KAChB;IACD,KAAK,EAAE;QACL,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,4DAA4D;QACzE,OAAO,EAAE,EAAE;KACZ;IACD,MAAM,EAAE;QACN,IAAI,EAAE,UAAU;QAChB,WAAW,EACT,yJAAyJ;QAC3J,OAAO,EAAE,EAAE;KACZ;IACD,aAAa,EAAE;QACb,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,uEAAuE;QACpF,OAAO,EAAE,EAAE;KACZ;IACD,SAAS,EAAE;QACT,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,0DAA0D;QACvE,OAAO,EAAE,EAAE,GAAG,EAAE,GAAG,IAAI;KACxB;CACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAEA,2DAA2D;AAC3D,MAAM,CAAC,MAAM,YAAY,GAAiB;IACxC,aAAa,EAAE;QACb,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,6DAA6D;QAC1E,OAAO,EAAE,MAAM;KAChB;IACD,UAAU,EAAE;QACV,IAAI,EAAE,QAAQ;QACd,WAAW,EACT,kKAAkK;QACpK,OAAO,EAAE,EAAE;KACZ;IACD,SAAS,EAAE;QACT,IAAI,EAAE,QAAQ;QACd,WAAW,EACT,2GAA2G;QAC7G,OAAO,EAAE,EAAE;KACZ;IACD,KAAK,EAAE;QACL,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,4DAA4D;QACzE,OAAO,EAAE,EAAE;KACZ;IACD,MAAM,EAAE;QACN,IAAI,EAAE,UAAU;QAChB,WAAW,EACT,yJAAyJ;QAC3J,OAAO,EAAE,EAAE;KACZ;IACD,aAAa,EAAE;QACb,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,uEAAuE;QACpF,OAAO,EAAE,EAAE;KACZ;IACD,SAAS,EAAE;QACT,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,0DAA0D;QACvE,OAAO,EAAE,EAAE,GAAG,EAAE,GAAG,IAAI;KACxB;CACF,CAAC"}
|
package/dist/plugin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,MAAM,EAAY,MAAM,cAAc,CAAC;AAKrD,eAAO,MAAM,MAAM,EAAE,MAuCpB,CAAC"}
|
package/dist/plugin.js
CHANGED
|
@@ -9,8 +9,13 @@ export const plugin = {
|
|
|
9
9
|
register(registry, ctx) {
|
|
10
10
|
const git = new Git(ctx.runner, {
|
|
11
11
|
workspaceRoot: ctx.paths.workspace,
|
|
12
|
+
checkouts: ctx.paths.checkouts,
|
|
12
13
|
defaultBranch: ctx.config.defaultBranch,
|
|
13
|
-
|
|
14
|
+
baseBranch: ctx.config.baseBranch,
|
|
15
|
+
},
|
|
16
|
+
// The gate (and the agent it hands paths to) runs where the work runs:
|
|
17
|
+
// with a worktree port mounted, that is the item's own tree.
|
|
18
|
+
ctx.port("worktree"));
|
|
14
19
|
const tiers = ctx.config.models;
|
|
15
20
|
// Contributed rather than mounted as the `agent` port: only one plugin
|
|
16
21
|
// can own a port, and three harnesses that each wanted to be *the* agent
|
package/dist/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAoB,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,CAAC,MAAM,MAAM,GAAW;IAC5B,IAAI,EAAE,uBAAuB;IAC7B,OAAO,EAAE,OAAO;IAChB,YAAY;IACZ,QAAQ,CAAC,QAAQ,EAAE,GAAG;QACpB,MAAM,GAAG,GAAG,IAAI,GAAG,CACjB,GAAG,CAAC,MAAM,EACV;YACE,aAAa,EAAE,GAAG,CAAC,KAAK,CAAC,SAAS;YAClC,SAAS,EAAE,GAAG,CAAC,KAAK,CAAC,SAAS;YAC9B,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,aAAuB;YACjD,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,UAAgD;SACxE;QACD,uEAAuE;QACvE,6DAA6D;QAC7D,GAAG,CAAC,IAAI,CAAC,UAAU,CAAyB,CAC7C,CAAC;QAEF,MAAM,KAAK,GAAG,GAAG,CAAC,MAAM,CAAC,MAAkB,CAAC;QAE5C,uEAAuE;QACvE,yEAAyE;QACzE,0EAA0E;QAC1E,eAAe,CAAC,QAAQ,EAAE;YACxB,OAAO,EAAE,QAAQ;YACjB,gEAAgE;YAChE,mEAAmE;YACnE,oEAAoE;YACpE,gBAAgB,EAAE,IAAI;YACtB,MAAM,EAAE,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAE,GAAG,CAAC,MAAM,CAAC,KAAgB,IAAI,EAAE,CAAC;YACvE,GAAG;YACH,KAAK,EAAE,EAAE,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,aAAuC,EAAE;YAC5E,IAAI,EAAE,CAAC,KAAK,EAAE,EAAE,CACd,IAAI,aAAa,CAAC,GAAG,CAAC,MAAM,EAAE;gBAC5B,KAAK,EAAE,KAAK,IAAI,SAAS;gBACzB,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,SAAmB;aAC1C,CAAC;SACL,CAAC,CAAC;IACL,CAAC;CACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amykit/plugin-claude",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "The claude CLI as the agent, with git on the side.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"dist"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@amykit/agent-kit": "^0.
|
|
32
|
-
"@amykit/core": "^0.
|
|
33
|
-
"@amykit/model-specs": "^0.
|
|
31
|
+
"@amykit/agent-kit": "^0.4.0",
|
|
32
|
+
"@amykit/core": "^0.4.0",
|
|
33
|
+
"@amykit/model-specs": "^0.4.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@amykit/test-fixtures": "^0.1.0"
|