pinokiod 8.3.12 → 8.3.14
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/kernel/agent_instructions.js +0 -1
- package/kernel/api/index.js +76 -12
- package/kernel/environment.js +1 -1
- package/kernel/index.js +15 -2
- package/kernel/plugin_sources.js +1 -1
- package/kernel/prototype.js +1 -1
- package/kernel/request_file.js +5 -14
- package/kernel/shell.js +12 -0
- package/kernel/shells.js +13 -1
- package/package.json +1 -1
- package/server/index.js +10 -5
- package/server/lib/agent_jobs.js +198 -0
- package/server/lib/agent_sessions.js +131 -0
- package/server/lib/brain.js +161 -91
- package/server/lib/content_validation.js +1 -1
- package/server/public/agent-bar-app.js +28 -6
- package/server/public/agent-bar-compose.css +675 -0
- package/server/public/agent-bar-compose.js +618 -0
- package/server/public/agent-bar-panel.css +2 -0
- package/server/public/agent-bar-panel.js +22 -7
- package/server/public/agent-bar-shell.css +38 -0
- package/server/public/agent-bar-shell.js +128 -34
- package/server/public/agent-bar.css +7 -1
- package/server/public/agent-bar.js +8 -1
- package/server/public/terminal_input_utils.js +9 -1
- package/server/views/app.ejs +5 -1
- package/server/views/partials/main_sidebar.ejs +2 -0
- package/system/plugin/antigravity-cli-auto/pinokio.js +44 -6
- package/system/plugin/claude/pinokio.js +43 -1
- package/system/plugin/claude-auto/pinokio.js +43 -1
- package/system/plugin/codex/pinokio.js +42 -1
- package/system/plugin/codex-auto/pinokio.js +42 -1
- package/system/plugin/grok/pinokio.js +1 -1
- package/system/plugin/grok-auto/pinokio.js +37 -10
- package/system/plugin/opencode/pinokio.js +24 -0
- package/system/plugin/opencode-auto/pinokio.js +82 -10
- package/test/agent-bar-compose.test.js +487 -0
- package/test/agent-bar-shell.test.js +149 -0
- package/test/agent-instructions.test.js +0 -2
- package/test/agent-jobs.test.js +534 -0
- package/test/agent-sessions.test.js +130 -0
- package/test/antigravity-cli-plugin.test.js +63 -18
- package/test/anywhere-api.test.js +1 -1
- package/test/anywhere-onboarding.test.js +1 -2
- package/test/brain.test.js +116 -69
- package/test/grok-plugin.test.js +2 -1
- package/test/opencode-plugin.test.js +7 -4
- package/test/plugin-action-functions.test.js +423 -0
- package/test/request-file.test.js +1 -12
- package/test/shell-log-path.test.js +64 -0
- package/test/shell-stop-while-starting.test.js +70 -0
- package/test/shells-live-error.test.js +66 -2
- package/test/terminal-mouse-input.test.js +27 -0
|
@@ -8,7 +8,7 @@ module.exports = {
|
|
|
8
8
|
id: "run",
|
|
9
9
|
method: "shell.run",
|
|
10
10
|
params: {
|
|
11
|
-
shell: "
|
|
11
|
+
shell: "bash",
|
|
12
12
|
conda: {
|
|
13
13
|
skip: true
|
|
14
14
|
},
|
|
@@ -45,5 +45,46 @@ module.exports = {
|
|
|
45
45
|
path: "{{args.cwd}}",
|
|
46
46
|
input: true
|
|
47
47
|
}
|
|
48
|
+
}],
|
|
49
|
+
// The same agent's one-off command: it does the request, prints its answer and
|
|
50
|
+
// ends. It is started with permission to act, since nobody is there to give it.
|
|
51
|
+
job: [{
|
|
52
|
+
when: "{{platform === 'win32'}}",
|
|
53
|
+
method: "shell.run",
|
|
54
|
+
params: {
|
|
55
|
+
shell: "bash",
|
|
56
|
+
conda: {
|
|
57
|
+
skip: true
|
|
58
|
+
},
|
|
59
|
+
message: {
|
|
60
|
+
_: [
|
|
61
|
+
"npx",
|
|
62
|
+
"-y",
|
|
63
|
+
"@openai/codex@latest",
|
|
64
|
+
"exec",
|
|
65
|
+
"--skip-git-repo-check",
|
|
66
|
+
"--dangerously-bypass-approvals-and-sandbox",
|
|
67
|
+
"{{args.prompt}}"
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
path: "{{args.cwd}}"
|
|
71
|
+
}
|
|
72
|
+
}, {
|
|
73
|
+
when: "{{platform !== 'win32'}}",
|
|
74
|
+
method: "shell.run",
|
|
75
|
+
params: {
|
|
76
|
+
message: {
|
|
77
|
+
_: [
|
|
78
|
+
"npx",
|
|
79
|
+
"-y",
|
|
80
|
+
"@openai/codex@latest",
|
|
81
|
+
"exec",
|
|
82
|
+
"--skip-git-repo-check",
|
|
83
|
+
"--dangerously-bypass-approvals-and-sandbox",
|
|
84
|
+
"{{args.prompt}}"
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
path: "{{args.cwd}}"
|
|
88
|
+
}
|
|
48
89
|
}]
|
|
49
90
|
}
|
|
@@ -1,20 +1,47 @@
|
|
|
1
|
-
const grok = require("../grok/pinokio")
|
|
2
|
-
|
|
3
1
|
module.exports = {
|
|
4
|
-
...grok,
|
|
5
2
|
title: "Grok Build Auto",
|
|
3
|
+
icon: "grok.png",
|
|
6
4
|
description: "Grok Build with tool permission prompts automatically approved unless explicitly denied.",
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
link: "https://github.com/xai-org/grok-build",
|
|
6
|
+
run: [{
|
|
7
|
+
when: "{{platform === 'win32'}}",
|
|
8
|
+
id: "run",
|
|
9
|
+
method: "shell.run",
|
|
9
10
|
params: {
|
|
10
|
-
|
|
11
|
+
shell: "bash",
|
|
12
|
+
conda: {
|
|
13
|
+
skip: true
|
|
14
|
+
},
|
|
11
15
|
message: {
|
|
12
16
|
_: [
|
|
13
|
-
|
|
17
|
+
"npx",
|
|
18
|
+
"-y",
|
|
19
|
+
"@xai-official/grok@latest",
|
|
14
20
|
"--always-approve",
|
|
15
|
-
|
|
21
|
+
"{{args.prompt || undefined}}"
|
|
16
22
|
]
|
|
17
|
-
}
|
|
23
|
+
},
|
|
24
|
+
path: "{{args.cwd}}",
|
|
25
|
+
input: true,
|
|
26
|
+
buffer: 1024
|
|
18
27
|
}
|
|
19
|
-
}
|
|
28
|
+
}, {
|
|
29
|
+
when: "{{platform !== 'win32'}}",
|
|
30
|
+
id: "run",
|
|
31
|
+
method: "shell.run",
|
|
32
|
+
params: {
|
|
33
|
+
message: {
|
|
34
|
+
_: [
|
|
35
|
+
"npx",
|
|
36
|
+
"-y",
|
|
37
|
+
"@xai-official/grok@latest",
|
|
38
|
+
"--always-approve",
|
|
39
|
+
"{{args.prompt || undefined}}"
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
path: "{{args.cwd}}",
|
|
43
|
+
input: true,
|
|
44
|
+
buffer: 1024
|
|
45
|
+
}
|
|
46
|
+
}]
|
|
20
47
|
}
|
|
@@ -59,5 +59,29 @@ module.exports = {
|
|
|
59
59
|
path: "{{args.cwd}}",
|
|
60
60
|
input: true
|
|
61
61
|
}
|
|
62
|
+
}],
|
|
63
|
+
// The same agent's one-off command: it does the request, prints its answer and
|
|
64
|
+
// ends. It is started with permission to act, since nobody is there to give it.
|
|
65
|
+
job: [{
|
|
66
|
+
when: "{{platform === 'win32'}}",
|
|
67
|
+
method: "shell.run",
|
|
68
|
+
params: {
|
|
69
|
+
shell: "bash",
|
|
70
|
+
message: {
|
|
71
|
+
_: ["opencode", "run", "{{args.prompt}}"],
|
|
72
|
+
auto: true
|
|
73
|
+
},
|
|
74
|
+
path: "{{args.cwd}}"
|
|
75
|
+
}
|
|
76
|
+
}, {
|
|
77
|
+
when: "{{platform !== 'win32'}}",
|
|
78
|
+
method: "shell.run",
|
|
79
|
+
params: {
|
|
80
|
+
message: {
|
|
81
|
+
_: ["opencode", "run", "{{args.prompt}}"],
|
|
82
|
+
auto: true
|
|
83
|
+
},
|
|
84
|
+
path: "{{args.cwd}}"
|
|
85
|
+
}
|
|
62
86
|
}]
|
|
63
87
|
}
|
|
@@ -1,17 +1,89 @@
|
|
|
1
|
-
const opencode = require("../opencode/pinokio")
|
|
2
|
-
|
|
3
1
|
module.exports = {
|
|
4
|
-
...opencode,
|
|
5
2
|
title: "Opencode Auto",
|
|
3
|
+
icon: "icon.png",
|
|
6
4
|
description: "OpenCode with permission prompts automatically approved unless explicitly denied.",
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
link: "https://opencode.ai/",
|
|
6
|
+
path: "plugin",
|
|
7
|
+
async installed(kernel) {
|
|
8
|
+
return Boolean(kernel.which("opencode"))
|
|
9
|
+
},
|
|
10
|
+
install: [{
|
|
11
|
+
method: "shell.run",
|
|
12
|
+
params: {
|
|
13
|
+
message: "npm install -g opencode-ai@latest"
|
|
14
|
+
}
|
|
15
|
+
}],
|
|
16
|
+
uninstall: [{
|
|
17
|
+
method: "shell.run",
|
|
18
|
+
params: {
|
|
19
|
+
message: "npm uninstall -g opencode-ai"
|
|
20
|
+
}
|
|
21
|
+
}, {
|
|
22
|
+
method: "fs.rm",
|
|
23
|
+
params: {
|
|
24
|
+
path: "."
|
|
25
|
+
}
|
|
26
|
+
}],
|
|
27
|
+
update: [{
|
|
28
|
+
method: "shell.run",
|
|
29
|
+
params: {
|
|
30
|
+
message: "git pull",
|
|
31
|
+
}
|
|
32
|
+
}, {
|
|
33
|
+
method: "shell.run",
|
|
34
|
+
params: {
|
|
35
|
+
message: "npm install -g opencode-ai@latest"
|
|
36
|
+
}
|
|
37
|
+
}],
|
|
38
|
+
run: [{
|
|
39
|
+
when: "{{platform === 'win32'}}",
|
|
40
|
+
method: "shell.run",
|
|
41
|
+
params: {
|
|
42
|
+
shell: "bash",
|
|
43
|
+
message: {
|
|
44
|
+
_: ["opencode"],
|
|
45
|
+
prompt: "{{args.prompt || undefined}}",
|
|
46
|
+
auto: true
|
|
47
|
+
},
|
|
48
|
+
path: "{{args.cwd}}",
|
|
49
|
+
input: true
|
|
50
|
+
}
|
|
51
|
+
}, {
|
|
52
|
+
when: "{{platform !== 'win32'}}",
|
|
53
|
+
id: "run",
|
|
54
|
+
method: "shell.run",
|
|
55
|
+
params: {
|
|
56
|
+
message: {
|
|
57
|
+
_: ["opencode"],
|
|
58
|
+
prompt: "{{args.prompt || undefined}}",
|
|
59
|
+
auto: true
|
|
60
|
+
},
|
|
61
|
+
path: "{{args.cwd}}",
|
|
62
|
+
input: true
|
|
63
|
+
}
|
|
64
|
+
}],
|
|
65
|
+
// The same agent's one-off command: it does the request, prints its answer and
|
|
66
|
+
// ends. It is started with permission to act, since nobody is there to give it.
|
|
67
|
+
job: [{
|
|
68
|
+
when: "{{platform === 'win32'}}",
|
|
69
|
+
method: "shell.run",
|
|
70
|
+
params: {
|
|
71
|
+
shell: "bash",
|
|
72
|
+
message: {
|
|
73
|
+
_: ["opencode", "run", "{{args.prompt}}"],
|
|
74
|
+
auto: true
|
|
75
|
+
},
|
|
76
|
+
path: "{{args.cwd}}"
|
|
77
|
+
}
|
|
78
|
+
}, {
|
|
79
|
+
when: "{{platform !== 'win32'}}",
|
|
80
|
+
method: "shell.run",
|
|
9
81
|
params: {
|
|
10
|
-
...step.params,
|
|
11
82
|
message: {
|
|
12
|
-
|
|
13
|
-
auto: true
|
|
83
|
+
_: ["opencode", "run", "{{args.prompt}}"],
|
|
84
|
+
auto: true
|
|
14
85
|
},
|
|
15
|
-
|
|
16
|
-
|
|
86
|
+
path: "{{args.cwd}}"
|
|
87
|
+
}
|
|
88
|
+
}]
|
|
17
89
|
}
|