@pikaa-ai/pikaa 0.4.0 → 0.4.1
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/dist/cli.js +40 -11
- package/dist/index.js +31 -2
- package/package.json +9 -9
package/dist/cli.js
CHANGED
|
@@ -4784,7 +4784,30 @@ class AgentRoleRegistry {
|
|
|
4784
4784
|
name: "default",
|
|
4785
4785
|
description: "Generalist autonomous developer agent capable of coding, testing, and debugging.",
|
|
4786
4786
|
systemPrompt: "You are Groupy, an expert autonomous software engineer. Think carefully, use tools surgically, and verify every step.",
|
|
4787
|
-
nicknameCandidates: ["Pikaa", "Heca", "Bankli", "Moli"]
|
|
4787
|
+
nicknameCandidates: ["Pikaa", "Heca", "Bankli", "Moli"],
|
|
4788
|
+
allowedToolNames: [
|
|
4789
|
+
"read_file",
|
|
4790
|
+
"view_file",
|
|
4791
|
+
"write_file",
|
|
4792
|
+
"apply_patch",
|
|
4793
|
+
"list_dir",
|
|
4794
|
+
"shell",
|
|
4795
|
+
"update_plan",
|
|
4796
|
+
"ask_question",
|
|
4797
|
+
"request_user_input",
|
|
4798
|
+
"remember",
|
|
4799
|
+
"list_memories",
|
|
4800
|
+
"read_memory",
|
|
4801
|
+
"save_memory",
|
|
4802
|
+
"spawn_agent",
|
|
4803
|
+
"wait_agent",
|
|
4804
|
+
"send_input",
|
|
4805
|
+
"close_agent",
|
|
4806
|
+
"list_agents",
|
|
4807
|
+
"create_worktree",
|
|
4808
|
+
"list_worktrees",
|
|
4809
|
+
"merge_worktree"
|
|
4810
|
+
]
|
|
4788
4811
|
});
|
|
4789
4812
|
this.registerRole({
|
|
4790
4813
|
name: "reviewer",
|
|
@@ -4881,7 +4904,13 @@ class AgentRoleRegistry {
|
|
|
4881
4904
|
if (!role || !role.allowedToolNames)
|
|
4882
4905
|
return sourceRouter;
|
|
4883
4906
|
const filtered = sourceRouter.list().filter((t) => {
|
|
4884
|
-
return role.allowedToolNames.some((allowed) =>
|
|
4907
|
+
return role.allowedToolNames.some((allowed) => {
|
|
4908
|
+
if (t.name === allowed)
|
|
4909
|
+
return true;
|
|
4910
|
+
if (allowed.endsWith("*") && t.name.startsWith(allowed.slice(0, -1)))
|
|
4911
|
+
return true;
|
|
4912
|
+
return false;
|
|
4913
|
+
});
|
|
4885
4914
|
});
|
|
4886
4915
|
const newRouter = new sourceRouter.constructor;
|
|
4887
4916
|
for (const tool of filtered) {
|
|
@@ -8155,7 +8184,7 @@ function parsePatch(oldSrc, newSrc, contextLines = 3) {
|
|
|
8155
8184
|
// package.json
|
|
8156
8185
|
var package_default = {
|
|
8157
8186
|
name: "@pikaa-ai/pikaa",
|
|
8158
|
-
version: "0.4.
|
|
8187
|
+
version: "0.4.1",
|
|
8159
8188
|
description: "PIKAA CLI - AI coding agent that runs locally in your terminal.",
|
|
8160
8189
|
main: "./dist/index.js",
|
|
8161
8190
|
module: "./dist/index.js",
|
|
@@ -8187,14 +8216,14 @@ var package_default = {
|
|
|
8187
8216
|
prepublishOnly: "bun run build:js"
|
|
8188
8217
|
},
|
|
8189
8218
|
optionalDependencies: {
|
|
8190
|
-
"@pikaa-ai/pikaa-linux-x64": "0.4.
|
|
8191
|
-
"@pikaa-ai/pikaa-linux-x64-musl": "0.4.
|
|
8192
|
-
"@pikaa-ai/pikaa-linux-arm64": "0.4.
|
|
8193
|
-
"@pikaa-ai/pikaa-linux-arm64-musl": "0.4.
|
|
8194
|
-
"@pikaa-ai/pikaa-darwin-x64": "0.4.
|
|
8195
|
-
"@pikaa-ai/pikaa-darwin-arm64": "0.4.
|
|
8196
|
-
"@pikaa-ai/pikaa-windows-x64": "0.4.
|
|
8197
|
-
"@pikaa-ai/pikaa-windows-arm64": "0.4.
|
|
8219
|
+
"@pikaa-ai/pikaa-linux-x64": "0.4.1",
|
|
8220
|
+
"@pikaa-ai/pikaa-linux-x64-musl": "0.4.1",
|
|
8221
|
+
"@pikaa-ai/pikaa-linux-arm64": "0.4.1",
|
|
8222
|
+
"@pikaa-ai/pikaa-linux-arm64-musl": "0.4.1",
|
|
8223
|
+
"@pikaa-ai/pikaa-darwin-x64": "0.4.1",
|
|
8224
|
+
"@pikaa-ai/pikaa-darwin-arm64": "0.4.1",
|
|
8225
|
+
"@pikaa-ai/pikaa-windows-x64": "0.4.1",
|
|
8226
|
+
"@pikaa-ai/pikaa-windows-arm64": "0.4.1"
|
|
8198
8227
|
},
|
|
8199
8228
|
keywords: [
|
|
8200
8229
|
"ai",
|
package/dist/index.js
CHANGED
|
@@ -9628,7 +9628,30 @@ class AgentRoleRegistry {
|
|
|
9628
9628
|
name: "default",
|
|
9629
9629
|
description: "Generalist autonomous developer agent capable of coding, testing, and debugging.",
|
|
9630
9630
|
systemPrompt: "You are Groupy, an expert autonomous software engineer. Think carefully, use tools surgically, and verify every step.",
|
|
9631
|
-
nicknameCandidates: ["Pikaa", "Heca", "Bankli", "Moli"]
|
|
9631
|
+
nicknameCandidates: ["Pikaa", "Heca", "Bankli", "Moli"],
|
|
9632
|
+
allowedToolNames: [
|
|
9633
|
+
"read_file",
|
|
9634
|
+
"view_file",
|
|
9635
|
+
"write_file",
|
|
9636
|
+
"apply_patch",
|
|
9637
|
+
"list_dir",
|
|
9638
|
+
"shell",
|
|
9639
|
+
"update_plan",
|
|
9640
|
+
"ask_question",
|
|
9641
|
+
"request_user_input",
|
|
9642
|
+
"remember",
|
|
9643
|
+
"list_memories",
|
|
9644
|
+
"read_memory",
|
|
9645
|
+
"save_memory",
|
|
9646
|
+
"spawn_agent",
|
|
9647
|
+
"wait_agent",
|
|
9648
|
+
"send_input",
|
|
9649
|
+
"close_agent",
|
|
9650
|
+
"list_agents",
|
|
9651
|
+
"create_worktree",
|
|
9652
|
+
"list_worktrees",
|
|
9653
|
+
"merge_worktree"
|
|
9654
|
+
]
|
|
9632
9655
|
});
|
|
9633
9656
|
this.registerRole({
|
|
9634
9657
|
name: "reviewer",
|
|
@@ -9725,7 +9748,13 @@ class AgentRoleRegistry {
|
|
|
9725
9748
|
if (!role || !role.allowedToolNames)
|
|
9726
9749
|
return sourceRouter;
|
|
9727
9750
|
const filtered = sourceRouter.list().filter((t) => {
|
|
9728
|
-
return role.allowedToolNames.some((allowed) =>
|
|
9751
|
+
return role.allowedToolNames.some((allowed) => {
|
|
9752
|
+
if (t.name === allowed)
|
|
9753
|
+
return true;
|
|
9754
|
+
if (allowed.endsWith("*") && t.name.startsWith(allowed.slice(0, -1)))
|
|
9755
|
+
return true;
|
|
9756
|
+
return false;
|
|
9757
|
+
});
|
|
9729
9758
|
});
|
|
9730
9759
|
const newRouter = new sourceRouter.constructor;
|
|
9731
9760
|
for (const tool of filtered) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pikaa-ai/pikaa",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "PIKAA CLI - AI coding agent that runs locally in your terminal.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
"prepublishOnly": "bun run build:js"
|
|
33
33
|
},
|
|
34
34
|
"optionalDependencies": {
|
|
35
|
-
"@pikaa-ai/pikaa-linux-x64": "0.4.
|
|
36
|
-
"@pikaa-ai/pikaa-linux-x64-musl": "0.4.
|
|
37
|
-
"@pikaa-ai/pikaa-linux-arm64": "0.4.
|
|
38
|
-
"@pikaa-ai/pikaa-linux-arm64-musl": "0.4.
|
|
39
|
-
"@pikaa-ai/pikaa-darwin-x64": "0.4.
|
|
40
|
-
"@pikaa-ai/pikaa-darwin-arm64": "0.4.
|
|
41
|
-
"@pikaa-ai/pikaa-windows-x64": "0.4.
|
|
42
|
-
"@pikaa-ai/pikaa-windows-arm64": "0.4.
|
|
35
|
+
"@pikaa-ai/pikaa-linux-x64": "0.4.1",
|
|
36
|
+
"@pikaa-ai/pikaa-linux-x64-musl": "0.4.1",
|
|
37
|
+
"@pikaa-ai/pikaa-linux-arm64": "0.4.1",
|
|
38
|
+
"@pikaa-ai/pikaa-linux-arm64-musl": "0.4.1",
|
|
39
|
+
"@pikaa-ai/pikaa-darwin-x64": "0.4.1",
|
|
40
|
+
"@pikaa-ai/pikaa-darwin-arm64": "0.4.1",
|
|
41
|
+
"@pikaa-ai/pikaa-windows-x64": "0.4.1",
|
|
42
|
+
"@pikaa-ai/pikaa-windows-arm64": "0.4.1"
|
|
43
43
|
},
|
|
44
44
|
"keywords": [
|
|
45
45
|
"ai",
|