@noirhare/dsh-nr-agent-presets 0.0.3 → 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.
- package/lib/index.js +3 -1
- package/package.json +4 -4
package/lib/index.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import Path from "node:path";
|
|
2
2
|
//#region src/index.ts
|
|
3
|
+
const id = "dsh-nr-agent-presets";
|
|
4
|
+
const root = Path.resolve(import.meta.dirname, "agent-presets");
|
|
3
5
|
const inject = ["agentPresets"];
|
|
4
6
|
function apply(ctx) {
|
|
5
|
-
ctx.agentPresets.registerRoot(
|
|
7
|
+
ctx.effect(() => ctx.agentPresets.registerRoot(id, root), `${id}:root`);
|
|
6
8
|
}
|
|
7
9
|
//#endregion
|
|
8
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.
|
|
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.
|
|
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
|
-
"
|
|
29
|
-
"
|
|
28
|
+
"typecheck": "tsc --noEmit",
|
|
29
|
+
"prepublish": "pnpm typecheck && pnpm build"
|
|
30
30
|
}
|
|
31
31
|
}
|