@amykit/plugin-claude 0.3.1 → 0.5.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 CHANGED
@@ -2,14 +2,15 @@
2
2
 
3
3
  # @amykit/plugin-claude
4
4
 
5
- The claude CLI as the agent, with git on the side.
5
+ The claude CLI as the agent, over its JSON envelope.
6
6
 
7
- A plugin for [amy](https://github.com/nicolasmelo1/amy). It provides `claude` in the `agent` collection and `claude` in the `harness` collection.
7
+ A plugin for [amy](https://github.com/nicolasmelo1/amy). It provides `claude` in the `harness` collection.
8
8
 
9
9
  ## Install
10
10
 
11
11
  ```sh
12
- npm install -g @amykit/plugin-claude
12
+ # Add @amykit/plugin-claude to amy.yaml, then install configured plugins:
13
+ amy init --install
13
14
  ```
14
15
 
15
16
  Then name it in `~/.amy/config.yaml`:
@@ -26,19 +27,15 @@ workflows:
26
27
  ```yaml
27
28
  plugins:
28
29
  "@amykit/plugin-claude":
29
- defaultBranch: "main"
30
30
  model: ""
31
31
  models: []
32
- reviewerHints: {}
33
32
  timeoutMs: 1800000
34
33
  ```
35
34
 
36
35
  | Setting | Type | Required | Default | What it is |
37
36
  | :-- | :-- | :-- | :-- | :-- |
38
- | `defaultBranch` | `string` | no | `main` | the branch new work is cut from, which is not always `main` |
39
37
  | `model` | `string` | no | `""` | passed to the CLI as --model, which is the flag it accepts |
40
38
  | `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` |
41
- | `reviewerHints` | `record` | no | `{}` | guidance appended when answering a particular reviewer, by host login |
42
39
  | `timeoutMs` | `number` | no | `1800000` | how long one agent call may run before it is given up on |
43
40
 
44
41
  Every field is checked at boot against the schema this package declares. A key that is
@@ -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,YA2B1B,CAAC"}
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,YAiB1B,CAAC"}
package/dist/config.js CHANGED
@@ -1,10 +1,5 @@
1
1
  /** What this plugin needs told to it, and nothing more. */
2
2
  export const configSchema = {
3
- defaultBranch: {
4
- type: "string",
5
- description: "the branch new work is cut from, which is not always `main`",
6
- default: "main",
7
- },
8
3
  model: {
9
4
  type: "string",
10
5
  description: "passed to the CLI as --model, which is the flag it accepts",
@@ -15,11 +10,6 @@ export const configSchema = {
15
10
  description: "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`",
16
11
  default: [],
17
12
  },
18
- reviewerHints: {
19
- type: "record",
20
- description: "guidance appended when answering a particular reviewer, by host login",
21
- default: {},
22
- },
23
13
  timeoutMs: {
24
14
  type: "number",
25
15
  description: "how long one agent call may run before it is given up on",
@@ -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,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,SAAS,EAAE;QACT,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,0DAA0D;QACvE,OAAO,EAAE,EAAE,GAAG,EAAE,GAAG,IAAI;KACxB;CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,MAAM,EAAE,MAAM,cAAc,CAAC;AAK3C,eAAO,MAAM,MAAM,EAAE,MA+BpB,CAAC"}
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAKtC,eAAO,MAAM,MAAM,EAAE,MAwBpB,CAAC"}
package/dist/plugin.js CHANGED
@@ -1,4 +1,3 @@
1
- import { Git } from "@amykit/core";
2
1
  import { contributeTiers } from "@amykit/agent-kit";
3
2
  import { ClaudeHarness } from "./ClaudeHarness.js";
4
3
  import { configSchema } from "./config.js";
@@ -7,10 +6,6 @@ export const plugin = {
7
6
  version: "0.1.0",
8
7
  configSchema,
9
8
  register(registry, ctx) {
10
- const git = new Git(ctx.runner, {
11
- workspaceRoot: ctx.paths.workspace,
12
- defaultBranch: ctx.config.defaultBranch,
13
- });
14
9
  const tiers = ctx.config.models;
15
10
  // Contributed rather than mounted as the `agent` port: only one plugin
16
11
  // can own a port, and three harnesses that each wanted to be *the* agent
@@ -22,8 +17,6 @@ export const plugin = {
22
17
  // never leaves a ceiling in money with nothing to spend against it.
23
18
  pricesItsOwnRuns: true,
24
19
  models: tiers.length > 0 ? tiers : [ctx.config.model || ""],
25
- git,
26
- agent: { reviewerHints: ctx.config.reviewerHints },
27
20
  make: (model) => new ClaudeHarness(ctx.runner, {
28
21
  model: model || undefined,
29
22
  timeoutMs: ctx.config.timeoutMs,
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.js","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAU,MAAM,cAAc,CAAC;AAC3C,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,CAAC,GAAG,CAAC,MAAM,EAAE;YAC9B,aAAa,EAAE,GAAG,CAAC,KAAK,CAAC,SAAS;YAClC,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,aAAuB;SAClD,CAAC,CAAC;QAEH,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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,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,7 +1,7 @@
1
1
  {
2
2
  "name": "@amykit/plugin-claude",
3
- "version": "0.3.1",
4
- "description": "The claude CLI as the agent, with git on the side.",
3
+ "version": "0.5.0",
4
+ "description": "The claude CLI as the agent, over its JSON envelope.",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "author": "Nicolas Melo",
@@ -28,9 +28,9 @@
28
28
  "dist"
29
29
  ],
30
30
  "dependencies": {
31
- "@amykit/agent-kit": "^0.3.1",
32
- "@amykit/core": "^0.3.1",
33
- "@amykit/model-specs": "^0.3.1"
31
+ "@amykit/agent-kit": "^0.5.0",
32
+ "@amykit/core": "^0.5.0",
33
+ "@amykit/model-specs": "^0.5.0"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@amykit/test-fixtures": "^0.1.0"