aas-setup 1.1.0 → 1.1.2
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/configs/opencode/opencode.json +1 -15
- package/configs/pi/prompts/review.md +14 -0
- package/configs/pi/prompts/wr.md +11 -0
- package/configs/pi/web-search.json +5 -0
- package/package.json +1 -1
- package/src/agents/pi.mjs +2 -1
- package/src/agents/types.mjs +1 -0
- package/src/commands/init.mjs +3 -0
|
@@ -1,20 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://opencode.ai/config.json",
|
|
3
|
-
"agent": {
|
|
4
|
-
"build": {
|
|
5
|
-
"permission": {
|
|
6
|
-
"bash": {
|
|
7
|
-
"$HOME/.claude/skills/qmd-knowledge/scripts/record.sh": "allow",
|
|
8
|
-
"$HOME/.config/opencode/skills/qmd-knowledge/scripts/record.sh": "allow",
|
|
9
|
-
"git push": "ask",
|
|
10
|
-
"qmd": "allow",
|
|
11
|
-
"qmd get": "allow",
|
|
12
|
-
"qmd query": "allow",
|
|
13
|
-
"qmd search": "allow"
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
3
|
"default_agent": "plan",
|
|
19
4
|
"formatter": {
|
|
20
5
|
"biome": {
|
|
@@ -99,6 +84,7 @@
|
|
|
99
84
|
}
|
|
100
85
|
},
|
|
101
86
|
"model": "opencode/big-pickle",
|
|
87
|
+
"permission": "allow",
|
|
102
88
|
"plugin": ["@plannotator/opencode@latest", "opencode-chrome-annotation@latest"],
|
|
103
89
|
"provider": {
|
|
104
90
|
"llama.cpp": {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Review staged git changes
|
|
3
|
+
argument-hint: "[path or file]"
|
|
4
|
+
---
|
|
5
|
+
Review the staged changes (`git diff --cached${1:+ -- "$1"}`). Focus on:
|
|
6
|
+
|
|
7
|
+
- Bugs and logic errors
|
|
8
|
+
- Security issues
|
|
9
|
+
- Error handling gaps
|
|
10
|
+
- Naming, readability, and dead code
|
|
11
|
+
- Tests covering the changed behavior
|
|
12
|
+
|
|
13
|
+
Report findings as a concise checklist grouped by file. If nothing is staged,
|
|
14
|
+
say so and stop — do not invent changes.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Finish the current task end-to-end
|
|
3
|
+
argument-hint: "[instructions]"
|
|
4
|
+
---
|
|
5
|
+
Finish the current task end-to-end. ${1:-No additional instructions.}
|
|
6
|
+
|
|
7
|
+
Steps:
|
|
8
|
+
1. Re-read the goal and any open TODO items.
|
|
9
|
+
2. Implement the remaining work, committing in logical chunks.
|
|
10
|
+
3. Run the test suite (`npm test`) and linter (`npx @biomejs/biome check src bin tests`).
|
|
11
|
+
4. If something is genuinely blocked, stop and explain — do not fake completion.
|
package/package.json
CHANGED
package/src/agents/pi.mjs
CHANGED
|
@@ -16,7 +16,8 @@ export const pi = {
|
|
|
16
16
|
},
|
|
17
17
|
deploy: {
|
|
18
18
|
overwriteFiles: ["settings.json", "mcp.json", "models.json", "AGENTS.md"],
|
|
19
|
-
replaceDirs: ["themes"],
|
|
19
|
+
replaceDirs: ["themes", "prompts"],
|
|
20
|
+
overwriteExtra: [{ file: "web-search.json", dest: "~/.pi/web-search.json" }],
|
|
20
21
|
referenceSource: "configs/reference",
|
|
21
22
|
},
|
|
22
23
|
};
|
package/src/agents/types.mjs
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* @typedef {Object} DeploySpec
|
|
14
14
|
* @property {string[]} overwriteFiles — files copied flat into home
|
|
15
15
|
* @property {string[]} replaceDirs — subdirs rm-rf'd then fully replaced
|
|
16
|
+
* @property {{ file: string, dest: string }[]} [overwriteExtra] — files copied to a ~-prefixed dest outside home (e.g. ~/.pi/web-search.json)
|
|
16
17
|
* @property {string} referenceSource — package-relative path to reference docs
|
|
17
18
|
*/
|
|
18
19
|
|
package/src/commands/init.mjs
CHANGED
|
@@ -60,6 +60,9 @@ function deployConfigs(agent, pkgRoot, { dryRun }) {
|
|
|
60
60
|
for (const dir of agent.deploy.replaceDirs) {
|
|
61
61
|
copyDir(resolve(srcDir, dir), resolve(home, dir), { dryRun });
|
|
62
62
|
}
|
|
63
|
+
for (const extra of agent.deploy.overwriteExtra ?? []) {
|
|
64
|
+
copyFile(resolve(srcDir, extra.file), expandHome(extra.dest), { dryRun });
|
|
65
|
+
}
|
|
63
66
|
}
|
|
64
67
|
|
|
65
68
|
function deployReference(agent, pkgRoot, { dryRun }) {
|