pi-landstrip 0.17.41 → 0.17.42
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/README.md +3 -2
- package/dist/index.ts +14 -4
- package/dist/subagents.json +2 -2
- package/package.json +2 -2
- package/subagents.json +2 -2
package/README.md
CHANGED
|
@@ -111,8 +111,9 @@ global or trusted-project concurrency limit.
|
|
|
111
111
|
|
|
112
112
|
The `/agents` selector provides OpenCode-compatible `build` and `plan` roles by
|
|
113
113
|
default. Build has normal development access; plan asks before shell commands
|
|
114
|
-
and file changes. Built-in colors match OpenCode's agent palette
|
|
115
|
-
build,
|
|
114
|
+
and file changes. Built-in colors match OpenCode's TUI agent palette
|
|
115
|
+
(`secondary` for build, `accent` for plan) and appear in the status line and
|
|
116
|
+
agent selectors.
|
|
116
117
|
The selection controls the root system prompt and permissions and is restored
|
|
117
118
|
with the session.
|
|
118
119
|
|
package/dist/index.ts
CHANGED
|
@@ -160,13 +160,22 @@ var OPENCODE_THEME_COLORS = new Set([
|
|
|
160
160
|
]);
|
|
161
161
|
var THEME_COLOR_ALIASES = {
|
|
162
162
|
primary: "accent",
|
|
163
|
-
secondary: "
|
|
163
|
+
secondary: "customMessageLabel",
|
|
164
164
|
accent: "accent",
|
|
165
165
|
success: "success",
|
|
166
166
|
warning: "warning",
|
|
167
167
|
error: "error",
|
|
168
168
|
info: "accent"
|
|
169
169
|
};
|
|
170
|
+
var NAMED_COLOR_ANSI = {
|
|
171
|
+
primary: "\x1B[36m",
|
|
172
|
+
secondary: "\x1B[35m",
|
|
173
|
+
accent: "\x1B[36m",
|
|
174
|
+
success: "\x1B[32m",
|
|
175
|
+
warning: "\x1B[33m",
|
|
176
|
+
error: "\x1B[31m",
|
|
177
|
+
info: "\x1B[36m"
|
|
178
|
+
};
|
|
170
179
|
function isAgentColor(value) {
|
|
171
180
|
if (/^#[0-9a-fA-F]{6}$/.test(value))
|
|
172
181
|
return true;
|
|
@@ -183,9 +192,10 @@ function colorizeAgentText(color, text, themeFg, fallback = "accent") {
|
|
|
183
192
|
return themeFg ? themeFg(fallback, text) : text;
|
|
184
193
|
if (color.startsWith("#"))
|
|
185
194
|
return hexFg(color, text);
|
|
186
|
-
if (
|
|
187
|
-
return text;
|
|
188
|
-
|
|
195
|
+
if (themeFg)
|
|
196
|
+
return themeFg(THEME_COLOR_ALIASES[color] ?? fallback, text);
|
|
197
|
+
const ansi = NAMED_COLOR_ANSI[color];
|
|
198
|
+
return ansi ? `${ansi}${text}\x1B[39m` : text;
|
|
189
199
|
}
|
|
190
200
|
|
|
191
201
|
class AsyncQueue {
|
package/dist/subagents.json
CHANGED
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
"build": {
|
|
5
5
|
"description": "Default primary agent with full development access",
|
|
6
6
|
"mode": "primary",
|
|
7
|
-
"color": "
|
|
7
|
+
"color": "secondary",
|
|
8
8
|
"prompt": "Work in build mode. Implement, test, and complete the requested changes."
|
|
9
9
|
},
|
|
10
10
|
"plan": {
|
|
11
11
|
"description": "Planning agent that asks before commands or file changes",
|
|
12
12
|
"mode": "primary",
|
|
13
|
-
"color": "
|
|
13
|
+
"color": "accent",
|
|
14
14
|
"prompt": "Work in plan mode. Analyze the problem and produce a clear plan before making changes.",
|
|
15
15
|
"permission": { "edit": "ask", "bash": "ask", "task": "ask" }
|
|
16
16
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-landstrip",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.42",
|
|
4
4
|
"description": "Sandbox-aware Pi subagents and interactive command permissions",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"landstrip",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"ci:test": "npm run test"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@landstrip/landstrip": "^0.17.
|
|
43
|
+
"@landstrip/landstrip": "^0.17.42",
|
|
44
44
|
"minimatch": "^10.2.5",
|
|
45
45
|
"yaml": "^2.9.0"
|
|
46
46
|
},
|
package/subagents.json
CHANGED
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
"build": {
|
|
5
5
|
"description": "Default primary agent with full development access",
|
|
6
6
|
"mode": "primary",
|
|
7
|
-
"color": "
|
|
7
|
+
"color": "secondary",
|
|
8
8
|
"prompt": "Work in build mode. Implement, test, and complete the requested changes."
|
|
9
9
|
},
|
|
10
10
|
"plan": {
|
|
11
11
|
"description": "Planning agent that asks before commands or file changes",
|
|
12
12
|
"mode": "primary",
|
|
13
|
-
"color": "
|
|
13
|
+
"color": "accent",
|
|
14
14
|
"prompt": "Work in plan mode. Analyze the problem and produce a clear plan before making changes.",
|
|
15
15
|
"permission": { "edit": "ask", "bash": "ask", "task": "ask" }
|
|
16
16
|
},
|