superacli 1.1.10 → 1.1.12
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/__tests__/jsalt-plugin.test.js +108 -0
- package/gateway.log +2040 -0
- package/package.json +1 -1
- package/plugins/clawteam/README.md +54 -0
- package/plugins/clawteam/learn.md +58 -0
- package/plugins/clawteam/plugin.json +141 -0
- package/plugins/clawteam/scripts/post-install.js +163 -0
- package/plugins/clawteam/scripts/post-uninstall.js +25 -0
- package/plugins/clawteam/scripts/system-setup.js +82 -0
- package/plugins/clawteam/skills/case-study/SKILL.md +110 -0
- package/plugins/clawteam/skills/setup/SKILL.md +44 -0
- package/plugins/clawteam/skills/usage/SKILL.md +45 -0
- package/plugins/jsalt/README.md +36 -0
- package/plugins/jsalt/plugin.json +109 -0
- package/plugins/jsalt/skills/quickstart/SKILL.md +94 -0
- package/plugins/opencode/plugin.json +43 -0
- package/plugins/plugins.json +19 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
skill_name: clawteam.usage.agent
|
|
3
|
+
description: Workflow for agents to discover team members and delegate complex tasks via ClawTeam.
|
|
4
|
+
tags: clawteam,collaboration,delegation,agents
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# ClawTeam Agent Usage
|
|
8
|
+
|
|
9
|
+
This skill guides agents in utilizing the ClawTeam network for collaborative task execution.
|
|
10
|
+
|
|
11
|
+
## 1) Discovery
|
|
12
|
+
|
|
13
|
+
List active agents in the network to identify expert capabilities:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
supercli clawteam agents list --json
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## 2) Task Delegation
|
|
20
|
+
|
|
21
|
+
When you identify a task that requires a specialized agent (e.g., security audit, frontend design), use the delegation primitive.
|
|
22
|
+
|
|
23
|
+
**Command Structure:**
|
|
24
|
+
```bash
|
|
25
|
+
supercli clawteam task delegate --agent <agent_id> --task "<task_description>" --json
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
**Example:**
|
|
29
|
+
```bash
|
|
30
|
+
supercli clawteam task delegate --agent "security-bot" --task "Review the latest PR for security vulnerabilities" --json
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## 3) Monitoring Status
|
|
34
|
+
|
|
35
|
+
Check the status of the local gateway to ensure connectivity to the team network:
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
supercli clawteam gateway status --json
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## 4) Case Study
|
|
42
|
+
|
|
43
|
+
For a complete end-to-end example of building a persistent SPA via delegation, refer to:
|
|
44
|
+
`supercli skills get clawteam-local:clawteam.case_study.veg_basket_poc`
|
|
45
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# JSALT Plugin
|
|
2
|
+
|
|
3
|
+
`jsalt` helps agents learn and use the JSALT (JSA) framework by combining:
|
|
4
|
+
|
|
5
|
+
- learnable framework guidance via `plugins learn`
|
|
6
|
+
- executable `jsa-ast` wrappers for validation and AST output
|
|
7
|
+
- passthrough access for full upstream CLI coverage
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npm install -g jsalt
|
|
13
|
+
supercli plugins install ./plugins/jsalt --json
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Learn First (Recommended)
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
supercli plugins learn jsalt
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
This prints agent-focused JSALT syntax, common patterns, and examples for `.jsa` coding workflows.
|
|
23
|
+
|
|
24
|
+
## Commands
|
|
25
|
+
|
|
26
|
+
- `supercli jsalt cli help`
|
|
27
|
+
- `supercli jsalt ast validate --path examples/counter.jsa`
|
|
28
|
+
- `supercli jsalt ast json --path examples/counter.jsa`
|
|
29
|
+
- `supercli jsalt ast tree --path examples/counter.jsa`
|
|
30
|
+
- `supercli jsalt <any jsa-ast args...>`
|
|
31
|
+
|
|
32
|
+
## Notes
|
|
33
|
+
|
|
34
|
+
- Use `ast json` when an agent needs structured AST for planning or code transformation.
|
|
35
|
+
- Use `ast validate` in CI or pre-commit checks for `.jsa` syntax safety.
|
|
36
|
+
- Use passthrough when you need upstream flags not covered by wrappers.
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "jsalt",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "jsalt plugin exposing JSA docs-oriented workflows and jsa-ast validation commands",
|
|
5
|
+
"source": "https://github.com/javimosch/jsalt",
|
|
6
|
+
"tags": ["jsalt", "jsa", "frontend", "ast", "validation", "agents"],
|
|
7
|
+
"checks": [
|
|
8
|
+
{ "type": "binary", "name": "jsa-ast", "args": ["--help"] }
|
|
9
|
+
],
|
|
10
|
+
"install_guidance": {
|
|
11
|
+
"plugin": "jsalt",
|
|
12
|
+
"binary": "jsa-ast",
|
|
13
|
+
"check": "jsa-ast --help",
|
|
14
|
+
"install_steps": [
|
|
15
|
+
"npm install -g jsalt",
|
|
16
|
+
"jsa-ast --help",
|
|
17
|
+
"supercli plugins install ./plugins/jsalt --json"
|
|
18
|
+
],
|
|
19
|
+
"note": "Use 'supercli plugins learn jsalt' to load agent-focused JSALT syntax, patterns, and examples before generating .jsa applications."
|
|
20
|
+
},
|
|
21
|
+
"learn": {
|
|
22
|
+
"file": "skills/quickstart/SKILL.md"
|
|
23
|
+
},
|
|
24
|
+
"commands": [
|
|
25
|
+
{
|
|
26
|
+
"namespace": "jsalt",
|
|
27
|
+
"resource": "cli",
|
|
28
|
+
"action": "help",
|
|
29
|
+
"description": "Show jsa-ast CLI usage help",
|
|
30
|
+
"adapter": "process",
|
|
31
|
+
"adapterConfig": {
|
|
32
|
+
"command": "jsa-ast",
|
|
33
|
+
"baseArgs": ["--help"],
|
|
34
|
+
"parseJson": false,
|
|
35
|
+
"timeout_ms": 15000,
|
|
36
|
+
"missingDependencyHelp": "Install jsalt globally: npm install -g jsalt"
|
|
37
|
+
},
|
|
38
|
+
"args": []
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"namespace": "jsalt",
|
|
42
|
+
"resource": "ast",
|
|
43
|
+
"action": "validate",
|
|
44
|
+
"description": "Validate .jsa syntax for a file or directory",
|
|
45
|
+
"adapter": "process",
|
|
46
|
+
"adapterConfig": {
|
|
47
|
+
"command": "jsa-ast",
|
|
48
|
+
"positionalArgs": ["path"],
|
|
49
|
+
"parseJson": false,
|
|
50
|
+
"timeout_ms": 15000,
|
|
51
|
+
"missingDependencyHelp": "Install jsalt globally: npm install -g jsalt"
|
|
52
|
+
},
|
|
53
|
+
"args": [
|
|
54
|
+
{ "name": "path", "type": "string", "required": true, "description": "File, directory, or glob to validate" }
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"namespace": "jsalt",
|
|
59
|
+
"resource": "ast",
|
|
60
|
+
"action": "json",
|
|
61
|
+
"description": "Parse .jsa and emit machine-readable JSON AST",
|
|
62
|
+
"adapter": "process",
|
|
63
|
+
"adapterConfig": {
|
|
64
|
+
"command": "jsa-ast",
|
|
65
|
+
"baseArgs": ["--json"],
|
|
66
|
+
"positionalArgs": ["path"],
|
|
67
|
+
"parseJson": true,
|
|
68
|
+
"timeout_ms": 15000,
|
|
69
|
+
"missingDependencyHelp": "Install jsalt globally: npm install -g jsalt"
|
|
70
|
+
},
|
|
71
|
+
"args": [
|
|
72
|
+
{ "name": "path", "type": "string", "required": true, "description": "File, directory, or glob to parse" }
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"namespace": "jsalt",
|
|
77
|
+
"resource": "ast",
|
|
78
|
+
"action": "tree",
|
|
79
|
+
"description": "Render parsed .jsa structure as a tree",
|
|
80
|
+
"adapter": "process",
|
|
81
|
+
"adapterConfig": {
|
|
82
|
+
"command": "jsa-ast",
|
|
83
|
+
"baseArgs": ["--tree"],
|
|
84
|
+
"positionalArgs": ["path"],
|
|
85
|
+
"parseJson": false,
|
|
86
|
+
"timeout_ms": 15000,
|
|
87
|
+
"missingDependencyHelp": "Install jsalt globally: npm install -g jsalt"
|
|
88
|
+
},
|
|
89
|
+
"args": [
|
|
90
|
+
{ "name": "path", "type": "string", "required": true, "description": "File, directory, or glob to parse" }
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"namespace": "jsalt",
|
|
95
|
+
"resource": "_",
|
|
96
|
+
"action": "_",
|
|
97
|
+
"description": "Passthrough to run any jsa-ast command",
|
|
98
|
+
"adapter": "process",
|
|
99
|
+
"adapterConfig": {
|
|
100
|
+
"command": "jsa-ast",
|
|
101
|
+
"passthrough": true,
|
|
102
|
+
"parseJson": true,
|
|
103
|
+
"timeout_ms": 15000,
|
|
104
|
+
"missingDependencyHelp": "Install jsalt globally: npm install -g jsalt"
|
|
105
|
+
},
|
|
106
|
+
"args": []
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
---
|
|
2
|
+
skill_name: jsalt.quickstart
|
|
3
|
+
description: Agent workflow for learning JSALT and building .jsa apps with executable validation and AST checks.
|
|
4
|
+
tags: jsalt,jsa,frontend,ast,validation,agents
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# jsalt Quickstart
|
|
8
|
+
|
|
9
|
+
Use this when you need to generate or edit JSALT (`.jsa`) apps with reliable syntax validation.
|
|
10
|
+
|
|
11
|
+
## 1) Install plugin and dependency
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
supercli plugins learn jsalt
|
|
15
|
+
npm install -g jsalt
|
|
16
|
+
supercli plugins install ./plugins/jsalt --json
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## 2) Validate CLI wiring
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
supercli jsalt cli help
|
|
23
|
+
supercli plugins doctor jsalt --json
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## 3) Core JSALT syntax checklist
|
|
27
|
+
|
|
28
|
+
- `let key = value` for reactive state.
|
|
29
|
+
- `const x = computed(() => expr)` for derived state.
|
|
30
|
+
- `fn name = "handler code"` for reusable handlers.
|
|
31
|
+
- `watch key = "handler code"` for side effects.
|
|
32
|
+
- `on mount = "..."` and `on destroy = "..."` for lifecycle.
|
|
33
|
+
- Element shape: `div#id.class { css: value } @click = "..." = "content"`.
|
|
34
|
+
|
|
35
|
+
## 4) Useful directives for agent-generated UI
|
|
36
|
+
|
|
37
|
+
- `if = "${expr}"` conditional render.
|
|
38
|
+
- `show = "${expr}"` visibility toggle.
|
|
39
|
+
- `each = "${array}"` loops (`item`, `idx` available).
|
|
40
|
+
- `bind = "stateKey"` two-way form binding.
|
|
41
|
+
- `:attr = "..."` dynamic attributes.
|
|
42
|
+
- `html = "..."` raw HTML when needed.
|
|
43
|
+
- `transition = "fade"` enter transition classes.
|
|
44
|
+
|
|
45
|
+
## 5) Validate and inspect AST during generation
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
supercli jsalt ast validate --path app.jsa
|
|
49
|
+
supercli jsalt ast json --path app.jsa
|
|
50
|
+
supercli jsalt ast tree --path app.jsa
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## 6) Full passthrough for advanced runs
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
supercli jsalt app.jsa --json
|
|
57
|
+
supercli jsalt examples --tree
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## 7) Minimal example patterns
|
|
61
|
+
|
|
62
|
+
Counter:
|
|
63
|
+
|
|
64
|
+
```jsa
|
|
65
|
+
let count = 0
|
|
66
|
+
const doubled = computed(() => count * 2)
|
|
67
|
+
fn inc = "setState('count', getState('count') + 1)"
|
|
68
|
+
|
|
69
|
+
div
|
|
70
|
+
h1 = "Count: ${count}"
|
|
71
|
+
p = "Doubled: ${doubled}"
|
|
72
|
+
button @click = "inc()" = "+"
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Todo list loop:
|
|
76
|
+
|
|
77
|
+
```jsa
|
|
78
|
+
let items = []
|
|
79
|
+
let text = ""
|
|
80
|
+
fn add = "if(!getState('text')) return; setState('items', [...getState('items'), getState('text')]); setState('text', '')"
|
|
81
|
+
|
|
82
|
+
div
|
|
83
|
+
input bind = "text"
|
|
84
|
+
button @click = "add()" = "Add"
|
|
85
|
+
ul
|
|
86
|
+
li each = "${items}" = "${idx + 1}. ${item}"
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
## 8) Agent workflow recommendation
|
|
90
|
+
|
|
91
|
+
1. Draft `.jsa` using the syntax checklist.
|
|
92
|
+
2. Run `ast validate` after each meaningful edit.
|
|
93
|
+
3. Run `ast json` when tooling needs structural introspection.
|
|
94
|
+
4. Prefer simple handlers and immutable updates for predictable diffs.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "opencode",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "OpenCode AI assistant CLI plugin for natural language coding tasks",
|
|
5
|
+
"source": "https://github.com/opencode-ai/opencode",
|
|
6
|
+
"tags": ["opencode", "ai", "coding", "assistant", "refactoring"],
|
|
7
|
+
"checks": [
|
|
8
|
+
{
|
|
9
|
+
"type": "binary",
|
|
10
|
+
"name": "opencode"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"commands": [
|
|
14
|
+
{
|
|
15
|
+
"namespace": "opencode",
|
|
16
|
+
"resource": "_",
|
|
17
|
+
"action": "_",
|
|
18
|
+
"description": "Passthrough to opencode CLI",
|
|
19
|
+
"adapter": "process",
|
|
20
|
+
"adapterConfig": {
|
|
21
|
+
"command": "opencode",
|
|
22
|
+
"passthrough": true,
|
|
23
|
+
"parseJson": false,
|
|
24
|
+
"missingDependencyHelp": "OpenCode CLI not found. Install with: npm i -g opencode"
|
|
25
|
+
},
|
|
26
|
+
"args": []
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"namespace": "opencode",
|
|
30
|
+
"resource": "cli",
|
|
31
|
+
"action": "version",
|
|
32
|
+
"description": "Check OpenCode CLI version and availability",
|
|
33
|
+
"adapter": "process",
|
|
34
|
+
"adapterConfig": {
|
|
35
|
+
"command": "opencode",
|
|
36
|
+
"baseArgs": ["--version"],
|
|
37
|
+
"parseJson": false,
|
|
38
|
+
"missingDependencyHelp": "OpenCode CLI not found. Install with: npm i -g opencode"
|
|
39
|
+
},
|
|
40
|
+
"args": []
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
}
|
package/plugins/plugins.json
CHANGED
|
@@ -10,6 +10,15 @@
|
|
|
10
10
|
"manifest_path": "plugins/beads/plugin.json"
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
|
+
{
|
|
14
|
+
"name": "opencode",
|
|
15
|
+
"description": "OpenCode AI assistant CLI plugin for natural language coding tasks",
|
|
16
|
+
"tags": ["opencode", "ai", "coding", "assistant", "refactoring"],
|
|
17
|
+
"source": {
|
|
18
|
+
"type": "bundled",
|
|
19
|
+
"manifest_path": "plugins/opencode/plugin.json"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
13
22
|
{
|
|
14
23
|
"name": "gwc",
|
|
15
24
|
"description": "Google Workspace CLI passthrough plugin",
|
|
@@ -326,6 +335,16 @@
|
|
|
326
335
|
"manifest_path": "plugins/nullclaw/plugin.json"
|
|
327
336
|
}
|
|
328
337
|
},
|
|
338
|
+
{
|
|
339
|
+
"name": "clawteam",
|
|
340
|
+
"description": "Collaborative agent sharing and discovery for teams via ClawTeam",
|
|
341
|
+
"tags": ["agents", "collaboration", "teamwork", "openclaw"],
|
|
342
|
+
"has_learn": true,
|
|
343
|
+
"source": {
|
|
344
|
+
"type": "bundled",
|
|
345
|
+
"manifest_path": "plugins/clawteam/plugin.json"
|
|
346
|
+
}
|
|
347
|
+
},
|
|
329
348
|
{
|
|
330
349
|
"name": "commiat",
|
|
331
350
|
"description": "AI-assisted git commit message plugin",
|