@funny-booth/devagent 0.1.18 → 0.1.19
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/bin/devagent.js +9 -0
- package/package.json +2 -2
package/bin/devagent.js
CHANGED
|
@@ -21,6 +21,15 @@ if (args[0] === "secret") {
|
|
|
21
21
|
process.env.TOOL_NAME = cfg.toolName;
|
|
22
22
|
process.env.PORTAL_URL = process.env.PORTAL_URL || cfg.portalUrl;
|
|
23
23
|
require("@funny-booth/agent-core/dist/index.js");
|
|
24
|
+
} else if (args[0] === "agent") {
|
|
25
|
+
// 自作エージェント(作業フォルダや PC の .claude/agents/<name>.md)を起動する。VS Code 拡張の「自作エージェント」から呼ばれる
|
|
26
|
+
const pkg = JSON.parse(readFileSync(join(__dirname, "..", "package.json"), "utf-8"));
|
|
27
|
+
cfg.packageName = pkg.name;
|
|
28
|
+
cfg.packageVersion = pkg.version;
|
|
29
|
+
require("@funny-booth/agent-core/dist/launcher.js").runMyAgent(args[1], cfg).catch((e) => {
|
|
30
|
+
process.stderr.write(String((e && e.stack) || e) + "\n");
|
|
31
|
+
process.exit(1);
|
|
32
|
+
});
|
|
24
33
|
} else {
|
|
25
34
|
process.stdout.write(
|
|
26
35
|
"開発エージェント (DevAgent)\n\n" +
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funny-booth/devagent",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.19",
|
|
4
4
|
"description": "開発エージェント 起動CLI",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"publishConfig": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"prepublishOnly": "node scripts/generate-bins.mjs"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@funny-booth/agent-core": "^0.1.
|
|
43
|
+
"@funny-booth/agent-core": "^0.1.31"
|
|
44
44
|
},
|
|
45
45
|
"engines": {
|
|
46
46
|
"node": ">=18"
|