@noirhare/dsh-nr-agent-presets 0.0.2 → 0.0.4

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.
Files changed (2) hide show
  1. package/lib/index.js +4 -3
  2. package/package.json +4 -4
package/lib/index.js CHANGED
@@ -1,9 +1,10 @@
1
- import NRAgentPresets from "@noirhare/dsh-agent-presets";
2
1
  import Path from "node:path";
3
2
  //#region src/index.ts
4
- const inject = [NRAgentPresets.name];
3
+ const id = "dsh-nr-agent-presets";
4
+ const root = Path.resolve(import.meta.dirname, "agent-presets");
5
+ const inject = ["agentPresets"];
5
6
  function apply(ctx) {
6
- ctx.agentPresets.registerRoot(Path.resolve(import.meta.dirname, "agent-presets"));
7
+ ctx.effect(() => ctx.agentPresets.registerRoot(id, root), `${id}:root`);
7
8
  }
8
9
  //#endregion
9
10
  export { apply, inject };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noirhare/dsh-nr-agent-presets",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "author": "NoirHare",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -20,12 +20,12 @@
20
20
  "access": "public"
21
21
  },
22
22
  "peerDependencies": {
23
- "@noirhare/dsh-agent-presets": "^0.0.1",
23
+ "@noirhare/dsh-agent-presets": "^0.0.2",
24
24
  "@deepseek-ai/cordis": "^4.0.1"
25
25
  },
26
26
  "scripts": {
27
27
  "build": "tsdown",
28
- "dev": "tsdown --watch",
29
- "typecheck": "tsc --noEmit"
28
+ "typecheck": "tsc --noEmit",
29
+ "prepublish": "pnpm typecheck && pnpm build"
30
30
  }
31
31
  }