total-recall-brain 3.40.0 → 3.40.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/README.md +152 -41
- package/bin/total-recall.mjs +16 -76
- package/docs/reference/cli-reference.md +10 -10
- package/extension/background.js +6 -2
- package/extension/config.js +8 -0
- package/extension/lib/brain-client.js +29 -4
- package/extension/options/options.html +1 -0
- package/extension/sidepanel/sidepanel.html +1 -0
- package/frontend/dist/assets/{index-CvQRdT2j.css → index-AGUes-VG.css} +1 -1
- package/frontend/dist/assets/index-Bt5iVPZj.js +5618 -0
- package/frontend/dist/index.html +2 -2
- package/frontend/src/api/keys.ts +9 -2
- package/frontend/src/api/plugins.ts +4 -0
- package/frontend/src/components/plugins/card/CardEngine.tsx +2 -1
- package/frontend/src/components/plugins/card/card.css +1 -1
- package/frontend/src/pages/IntegrationsPage.tsx +315 -8
- package/frontend/src/pages/PluginsPage.tsx +532 -87
- package/package.json +6 -5
- package/scaffold/.agent/skills/meta-harness/references/optimized/original.md +1 -1
- package/scaffold/.agent/skills/meta-harness/references/optimized/section-09.md +1 -1
- package/scaffold/.agent/skills/total-recall/plugins/auth/package-lock.json +10 -10
- package/scaffold/.agent/skills/total-recall/plugins/auth/package.json +1 -6
- package/scaffold/.agent/skills/total-recall/plugins/auth/plugin.json +0 -1
- package/scaffold/.agent/skills/total-recall/plugins/auth/src/browser-session.mjs +309 -4
- package/scaffold/.agent/skills/total-recall/plugins/auth/src/cli-secret.mjs +44 -34
- package/scaffold/.agent/skills/total-recall/plugins/auth/src/google-oauth.mjs +6 -4
- package/scaffold/.agent/skills/total-recall/plugins/auth/src/provider-catalog.mjs +1 -1
- package/scaffold/.agent/skills/total-recall/plugins/auth/src/provider-rotation-recipes.mjs +118 -4
- package/scaffold/.agent/skills/total-recall/plugins/auth/src/routes/auth.mjs +2 -2
- package/scaffold/.agent/skills/total-recall/plugins/auth/src/secrets-env-export.mjs +3 -3
- package/scaffold/.agent/skills/total-recall/plugins/auth/src/secrets-remote-deploy.mjs +1 -1
- package/scaffold/.agent/skills/total-recall/plugins/auth/src/secrets-rotate.mjs +24 -6
- package/scaffold/.agent/skills/total-recall/plugins/auth/ui/card.js +164 -123
- package/scaffold/.agent/skills/total-recall/plugins/cli-agents/README.md +65 -0
- package/scaffold/.agent/skills/total-recall/plugins/cli-agents/cli.mjs +76 -0
- package/scaffold/.agent/skills/total-recall/plugins/cli-agents/package.json +19 -0
- package/scaffold/.agent/skills/total-recall/plugins/cli-agents/plugin.json +290 -0
- package/scaffold/.agent/skills/total-recall/plugins/cli-agents/src/adapters/dsh.mjs +446 -0
- package/scaffold/.agent/skills/total-recall/plugins/cli-agents/src/documentation.mjs +152 -0
- package/scaffold/.agent/skills/total-recall/plugins/cli-agents/src/executor.mjs +71 -0
- package/scaffold/.agent/skills/total-recall/plugins/cli-agents/src/runtime.mjs +36 -0
- package/scaffold/.agent/skills/total-recall/plugins/cli-agents/src/setup.mjs +35 -0
- package/scaffold/.agent/skills/total-recall/plugins/cli-agents/src/worker.mjs +175 -0
- package/scaffold/.agent/skills/total-recall/plugins/cli-agents/ui/card.js +18 -0
- package/scaffold/.agent/skills/total-recall/plugins/code-quality/LICENSE +21 -0
- package/scaffold/.agent/skills/total-recall/plugins/code-quality/README.md +84 -0
- package/scaffold/.agent/skills/total-recall/plugins/code-quality/cli.mjs +79 -0
- package/scaffold/.agent/skills/total-recall/plugins/code-quality/commands/check.mjs +6 -0
- package/scaffold/.agent/skills/total-recall/plugins/code-quality/commands/report.mjs +6 -0
- package/scaffold/.agent/skills/total-recall/plugins/code-quality/commands/run-core.mjs +27 -0
- package/scaffold/.agent/skills/total-recall/plugins/code-quality/commands/snapshot.mjs +163 -0
- package/scaffold/.agent/skills/total-recall/plugins/code-quality/core/check.mjs +757 -0
- package/scaffold/.agent/skills/total-recall/plugins/code-quality/core/config.schema.json +86 -0
- package/scaffold/.agent/skills/total-recall/plugins/code-quality/core/detect.mjs +89 -0
- package/scaffold/.agent/skills/total-recall/plugins/code-quality/core/report-data.mjs +145 -0
- package/scaffold/.agent/skills/total-recall/plugins/code-quality/core/report.mjs +210 -0
- package/scaffold/.agent/skills/total-recall/plugins/code-quality/core/state.mjs +20 -0
- package/scaffold/.agent/skills/total-recall/plugins/code-quality/package-lock.json +2869 -0
- package/scaffold/.agent/skills/total-recall/plugins/code-quality/package.json +28 -0
- package/scaffold/.agent/skills/total-recall/plugins/code-quality/plugin.json +186 -0
- package/scaffold/.agent/skills/total-recall/plugins/code-quality/ui/DESIGN.md +18 -0
- package/scaffold/.agent/skills/total-recall/plugins/code-quality/ui/card.js +272 -0
- package/scaffold/.agent/skills/total-recall/plugins/code-quality/ui/code-quality-report.mjs +129 -0
- package/scaffold/.agent/skills/total-recall/plugins/composable-cli/LICENSE +21 -0
- package/scaffold/.agent/skills/total-recall/plugins/composable-cli/README.md +73 -0
- package/scaffold/.agent/skills/total-recall/plugins/composable-cli/cli.mjs +375 -0
- package/scaffold/.agent/skills/total-recall/plugins/composable-cli/examples/commands/echo-tool.mjs +23 -0
- package/scaffold/.agent/skills/total-recall/plugins/composable-cli/examples/commands/group.mjs +262 -0
- package/scaffold/.agent/skills/total-recall/plugins/composable-cli/examples/commands/project-id.mjs +74 -0
- package/scaffold/.agent/skills/total-recall/plugins/composable-cli/package-lock.json +2869 -0
- package/scaffold/.agent/skills/total-recall/plugins/composable-cli/package.json +31 -0
- package/scaffold/.agent/skills/total-recall/plugins/composable-cli/plugin.json +221 -0
- package/scaffold/.agent/skills/total-recall/plugins/composable-cli/schemas/cli_command.schema.json +107 -0
- package/scaffold/.agent/skills/total-recall/plugins/composable-cli/skills/composable-cli/SKILL.md +63 -0
- package/scaffold/.agent/skills/total-recall/plugins/composable-cli/src/command.mjs +313 -0
- package/scaffold/.agent/skills/total-recall/plugins/composable-cli/src/compile.mjs +19 -0
- package/scaffold/.agent/skills/total-recall/plugins/composable-cli/src/compose.mjs +144 -0
- package/scaffold/.agent/skills/total-recall/plugins/composable-cli/src/contract.mjs +110 -0
- package/scaffold/.agent/skills/total-recall/plugins/composable-cli/src/library.mjs +23 -0
- package/scaffold/.agent/skills/total-recall/plugins/composable-cli/src/registry.mjs +192 -0
- package/scaffold/.agent/skills/total-recall/plugins/composable-cli/src/resolve.mjs +221 -0
- package/scaffold/.agent/skills/total-recall/plugins/composable-cli/src/risk.mjs +126 -0
- package/scaffold/.agent/skills/total-recall/plugins/composable-cli/src/ssss-documents.mjs +29 -0
- package/scaffold/.agent/skills/total-recall/plugins/composable-cli/ui/DESIGN.md +18 -0
- package/scaffold/.agent/skills/total-recall/plugins/composable-cli/ui/card.js +273 -0
- package/scaffold/.agent/skills/total-recall/plugins/embeddings/LICENSE +21 -0
- package/scaffold/.agent/skills/total-recall/plugins/embeddings/README.md +20 -0
- package/scaffold/.agent/skills/total-recall/plugins/embeddings/cli.mjs +310 -0
- package/scaffold/.agent/skills/total-recall/plugins/embeddings/package-lock.json +2826 -0
- package/scaffold/.agent/skills/total-recall/plugins/embeddings/package.json +11 -0
- package/scaffold/.agent/skills/total-recall/plugins/embeddings/plugin.json +62 -0
- package/scaffold/.agent/skills/total-recall/plugins/embeddings/ui/card.js +297 -0
- package/scaffold/.agent/skills/total-recall/plugins/git-sentinel/LICENSE +21 -0
- package/scaffold/.agent/skills/total-recall/plugins/git-sentinel/README.md +43 -0
- package/scaffold/.agent/skills/total-recall/plugins/git-sentinel/cli.mjs +258 -0
- package/scaffold/.agent/skills/total-recall/plugins/git-sentinel/package-lock.json +4005 -0
- package/scaffold/.agent/skills/total-recall/plugins/git-sentinel/package.json +20 -0
- package/scaffold/.agent/skills/total-recall/plugins/git-sentinel/plugin.json +125 -0
- package/scaffold/.agent/skills/total-recall/plugins/git-sentinel/ui/DESIGN.md +18 -0
- package/scaffold/.agent/skills/total-recall/plugins/git-sentinel/ui/card.js +278 -0
- package/scaffold/.agent/skills/total-recall/plugins/mesh/README.md +9 -0
- package/scaffold/.agent/skills/total-recall/plugins/mesh/cli.mjs +6 -0
- package/scaffold/.agent/skills/total-recall/plugins/mesh/package-lock.json +4721 -0
- package/scaffold/.agent/skills/total-recall/plugins/mesh/package.json +3 -21
- package/scaffold/.agent/skills/total-recall/plugins/mesh/plugin.json +14 -1
- package/scaffold/.agent/skills/total-recall/plugins/mesh/src/cli/mesh.mjs +10 -0
- package/scaffold/.agent/skills/total-recall/plugins/mesh/src/core/headscale-client.mjs +5 -1
- package/scaffold/.agent/skills/total-recall/plugins/mesh/src/core/leader-election.mjs +4 -13
- package/scaffold/.agent/skills/total-recall/plugins/mesh/src/core/mesh-access-verify.mjs +22 -0
- package/scaffold/.agent/skills/total-recall/plugins/mesh/src/core/mesh-files.mjs +18 -0
- package/scaffold/.agent/skills/total-recall/plugins/mesh/src/core/mesh.mjs +2 -0
- package/scaffold/.agent/skills/total-recall/plugins/mesh/test-support/memory-root.mjs +14 -0
- package/scaffold/.agent/skills/total-recall/plugins/openwiki/LICENSE +21 -0
- package/scaffold/.agent/skills/total-recall/plugins/openwiki/README.md +35 -0
- package/scaffold/.agent/skills/total-recall/plugins/openwiki/cli.mjs +124 -0
- package/scaffold/.agent/skills/total-recall/plugins/openwiki/package-lock.json +4097 -0
- package/scaffold/.agent/skills/total-recall/plugins/openwiki/package.json +12 -0
- package/scaffold/.agent/skills/total-recall/plugins/openwiki/plugin.json +165 -0
- package/scaffold/.agent/skills/total-recall/plugins/openwiki/src/ingest.mjs +127 -0
- package/scaffold/.agent/skills/total-recall/plugins/openwiki/ui/DESIGN.md +18 -0
- package/scaffold/.agent/skills/total-recall/plugins/openwiki/ui/card.js +279 -0
- package/scaffold/.agent/skills/total-recall/plugins/openwiki/ui/panel.js +539 -0
- package/scaffold/.agent/skills/total-recall/plugins/security/LICENSE +21 -0
- package/scaffold/.agent/skills/total-recall/plugins/security/README.md +67 -0
- package/scaffold/.agent/skills/total-recall/plugins/security/cli.mjs +932 -0
- package/scaffold/.agent/skills/total-recall/plugins/security/package-lock.json +3256 -0
- package/scaffold/.agent/skills/total-recall/plugins/security/package.json +25 -0
- package/scaffold/.agent/skills/total-recall/plugins/security/plugin.json +297 -0
- package/scaffold/.agent/skills/total-recall/plugins/security/scripts/build-ui.mjs +4 -0
- package/scaffold/.agent/skills/total-recall/plugins/security/skills/security/SKILL.md +37 -0
- package/scaffold/.agent/skills/total-recall/plugins/security/src/android.mjs +21 -0
- package/scaffold/.agent/skills/total-recall/plugins/security/src/devices.mjs +94 -0
- package/scaffold/.agent/skills/total-recall/plugins/security/src/machines.mjs +164 -0
- package/scaffold/.agent/skills/total-recall/plugins/security/src/scanner.mjs +41 -0
- package/scaffold/.agent/skills/total-recall/plugins/security/src/windows.mjs +42 -0
- package/scaffold/.agent/skills/total-recall/plugins/security/ui/DESIGN.md +18 -0
- package/scaffold/.agent/skills/total-recall/plugins/security/ui/card.js +95 -0
- package/scaffold/.agent/skills/total-recall/plugins/security/ui/panel.js +98 -0
- package/scaffold/.agent/skills/total-recall/references/auth.md +1 -1
- package/src/cli/backup.mjs +71 -3
- package/src/cli/brief.mjs +33 -9
- package/src/cli/command.mjs +2 -7
- package/src/cli/config.mjs +1 -0
- package/src/cli/connect.mjs +5 -0
- package/src/cli/context.mjs +2 -1
- package/src/cli/daemon.mjs +36 -1
- package/src/cli/doctor.mjs +6 -0
- package/src/cli/harness.mjs +3 -0
- package/src/cli/help.mjs +26 -0
- package/src/cli/init.mjs +4 -4
- package/src/cli/memory-entry.mjs +1 -0
- package/src/cli/memory-init.mjs +2 -0
- package/src/cli/plugin/index.mjs +11 -0
- package/src/cli/plugin/install.mjs +2 -1
- package/src/cli/rebuild.mjs +3 -1
- package/src/cli/startup.mjs +2 -1
- package/src/cli/update.mjs +19 -0
- package/src/core/automatic-brain-updates.mjs +67 -0
- package/src/core/brain-updates.mjs +21 -2
- package/src/core/cli-commands.mjs +71 -0
- package/src/core/cli-maintenance.mjs +45 -0
- package/src/core/cli-quick-reference.mjs +20 -0
- package/src/core/cli-semantic-index.mjs +722 -0
- package/src/core/context-compiler.mjs +27 -1
- package/src/core/crons.mjs +2 -13
- package/src/core/daemon-control.mjs +6 -4
- package/src/core/daemon-loop.mjs +12 -8
- package/src/core/default-plugins.mjs +5 -0
- package/src/core/global-brain-updates.mjs +39 -0
- package/src/core/mesh-brain-updates.mjs +30 -0
- package/src/core/meta-harness.mjs +108 -0
- package/src/core/plugin-dependencies.mjs +2 -1
- package/src/core/plugin-loader.mjs +2 -1
- package/src/core/plugin-runner.mjs +12 -4
- package/src/core/plugin-setup.mjs +20 -0
- package/src/core/plugin-store.mjs +22 -4
- package/src/core/plugin-tasks.mjs +1 -1
- package/src/core/project-brain.mjs +2 -0
- package/src/core/project-status.mjs +64 -0
- package/src/core/required-plugins.mjs +46 -0
- package/src/core/scaffold-plugins.mjs +17 -3
- package/src/core/source-brain-updates.mjs +47 -0
- package/src/core/startup-health.mjs +5 -3
- package/src/core/surface.mjs +44 -10
- package/src/server/routes/extension.mjs +53 -8
- package/templates/onboarding-interview.md +1 -1
- package/frontend/dist/assets/index-SOVUlZqm.js +0 -5596
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "tr-plugin-composable-cli",
|
|
3
|
+
"version": "0.2.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Total Recall composable CLI plugin: create, compose, register, test and safely run custom verbs; every command listed in the instruction surfaces.",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"ssss": "ssss",
|
|
8
|
+
"test": "node --test test/*.test.mjs",
|
|
9
|
+
"export": "ssss export vault --profile sale --out dist/bundle.ucw.json",
|
|
10
|
+
"validate": "ssss conformance --engine"
|
|
11
|
+
},
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"@gregiteen/ssss-cli": "0.11.2"
|
|
14
|
+
},
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"files": [
|
|
17
|
+
"cli.mjs",
|
|
18
|
+
"plugin.json",
|
|
19
|
+
"README.md",
|
|
20
|
+
"LICENSE",
|
|
21
|
+
"examples/",
|
|
22
|
+
"schemas/",
|
|
23
|
+
"skills/",
|
|
24
|
+
"src/",
|
|
25
|
+
"!src/**/*.spec.mjs",
|
|
26
|
+
"ui/"
|
|
27
|
+
],
|
|
28
|
+
"publishConfig": {
|
|
29
|
+
"access": "public"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://github.com/gregiteen/total-recall/blob/main/metadata.plugin.schema.json",
|
|
3
|
+
"id": "composable-cli",
|
|
4
|
+
"name": "Composable CLI",
|
|
5
|
+
"version": "0.2.1",
|
|
6
|
+
"description": "Dynamic agent command composition engine with pipeline registration, versioning, and execution.",
|
|
7
|
+
"author": "Total Recall contributors",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"branding": {
|
|
10
|
+
"name": "CmdSmith",
|
|
11
|
+
"color": "#0891b2",
|
|
12
|
+
"badge": "Pipeline Forge",
|
|
13
|
+
"font": "space-grotesk"
|
|
14
|
+
},
|
|
15
|
+
"secrets": [
|
|
16
|
+
{
|
|
17
|
+
"key": "COMPOSABLE_CLI_AUTH_TOKEN",
|
|
18
|
+
"description": "Optional token for distributed command runners",
|
|
19
|
+
"required": false
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"cli": {
|
|
23
|
+
"command": "composable-cli",
|
|
24
|
+
"handler": "./cli.mjs",
|
|
25
|
+
"subcommands": [
|
|
26
|
+
{
|
|
27
|
+
"name": "status",
|
|
28
|
+
"description": "Show which Composable CLI subcommands are implemented",
|
|
29
|
+
"effect": "read"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "create",
|
|
33
|
+
"description": "Create a new custom CLI command",
|
|
34
|
+
"effect": "write"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "read",
|
|
38
|
+
"description": "Show the source of a custom command",
|
|
39
|
+
"effect": "read"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "update",
|
|
43
|
+
"description": "Update an existing custom command",
|
|
44
|
+
"effect": "write"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "remove",
|
|
48
|
+
"description": "Delete a custom command",
|
|
49
|
+
"effect": "destructive"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "list",
|
|
53
|
+
"description": "List all custom commands in scope",
|
|
54
|
+
"effect": "read"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "show",
|
|
58
|
+
"description": "Show command metadata and source",
|
|
59
|
+
"effect": "read"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "history",
|
|
63
|
+
"description": "Show version history of a command",
|
|
64
|
+
"effect": "read"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "rollback",
|
|
68
|
+
"description": "Roll back a command to a previous version",
|
|
69
|
+
"effect": "write"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"name": "test",
|
|
73
|
+
"description": "Show the test file for a command",
|
|
74
|
+
"effect": "read"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "promote",
|
|
78
|
+
"description": "Promote a command into a plugin directory",
|
|
79
|
+
"effect": "write"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"name": "library",
|
|
83
|
+
"description": "Discover installed plugin operations and scoped composed commands without execution",
|
|
84
|
+
"effect": "read",
|
|
85
|
+
"output": "json",
|
|
86
|
+
"args": [
|
|
87
|
+
{
|
|
88
|
+
"name": "plugin",
|
|
89
|
+
"label": "Plugin ID",
|
|
90
|
+
"type": "string",
|
|
91
|
+
"flag": "--plugin",
|
|
92
|
+
"required": false
|
|
93
|
+
}
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
"deploy": {
|
|
99
|
+
"targets": [
|
|
100
|
+
"ssss-app",
|
|
101
|
+
"nextjs",
|
|
102
|
+
"react",
|
|
103
|
+
"flask"
|
|
104
|
+
],
|
|
105
|
+
"required_ssss_version": ">=0.9.3",
|
|
106
|
+
"access_grants": [
|
|
107
|
+
"auth:session:verify",
|
|
108
|
+
"ssss:vault:read",
|
|
109
|
+
"ssss:vault:write",
|
|
110
|
+
"ssss:events:append"
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
"skills": [
|
|
114
|
+
{
|
|
115
|
+
"id": "composable-cli",
|
|
116
|
+
"path": "./skills/composable-cli/SKILL.md",
|
|
117
|
+
"description": "Total Recall composable CLI plugin: create, compose, register, test and safely run custom verbs; every command listed in the instruction surfaces."
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
"card_face": {
|
|
121
|
+
"skin": "studio-rack",
|
|
122
|
+
"theme": "vibrant",
|
|
123
|
+
"headline": "Dynamic Agent Command Composition",
|
|
124
|
+
"primary_color": "#14b8a6",
|
|
125
|
+
"secondary_color": "#134e4a",
|
|
126
|
+
"accent_color": "#2dd4bf",
|
|
127
|
+
"touch_layout": "comfortable",
|
|
128
|
+
"interactive": true,
|
|
129
|
+
"quick_actions": [
|
|
130
|
+
{
|
|
131
|
+
"subcommand": "status",
|
|
132
|
+
"label": "STATUS"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"subcommand": "create",
|
|
136
|
+
"label": "CREATE"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"subcommand": "read",
|
|
140
|
+
"label": "READ"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"subcommand": "update",
|
|
144
|
+
"label": "UPDATE"
|
|
145
|
+
}
|
|
146
|
+
]
|
|
147
|
+
},
|
|
148
|
+
"ui": {
|
|
149
|
+
"elements": [
|
|
150
|
+
{
|
|
151
|
+
"id": "card",
|
|
152
|
+
"kind": "card",
|
|
153
|
+
"tag": "tr-composable-cli-card",
|
|
154
|
+
"module": "ui/card.js",
|
|
155
|
+
"description": "Pipeline Card Face"
|
|
156
|
+
}
|
|
157
|
+
]
|
|
158
|
+
},
|
|
159
|
+
"ssss_schemas": {
|
|
160
|
+
"categories": [
|
|
161
|
+
{
|
|
162
|
+
"name": "composable-commands",
|
|
163
|
+
"description": "Registered composable CLI commands and aliases",
|
|
164
|
+
"node_type": "memory"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"name": "composed-workflows",
|
|
168
|
+
"description": "Composed multi-step CLI workflow definitions",
|
|
169
|
+
"node_type": "memory"
|
|
170
|
+
}
|
|
171
|
+
]
|
|
172
|
+
},
|
|
173
|
+
"auth": {
|
|
174
|
+
"plugin": "auth",
|
|
175
|
+
"methods": [
|
|
176
|
+
"passkey",
|
|
177
|
+
"google-oauth2"
|
|
178
|
+
],
|
|
179
|
+
"session_verification": true
|
|
180
|
+
},
|
|
181
|
+
"status": {
|
|
182
|
+
"command": "status",
|
|
183
|
+
"refresh_seconds": 300
|
|
184
|
+
},
|
|
185
|
+
"distribution": {
|
|
186
|
+
"tier": "official",
|
|
187
|
+
"license": "open"
|
|
188
|
+
},
|
|
189
|
+
"card_layout": {
|
|
190
|
+
"template": "workbench",
|
|
191
|
+
"regions": [
|
|
192
|
+
{
|
|
193
|
+
"widget": "status",
|
|
194
|
+
"title": "Status"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"widget": "live",
|
|
198
|
+
"title": "Live view"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"widget": "list",
|
|
202
|
+
"title": "Details",
|
|
203
|
+
"source": {
|
|
204
|
+
"command": "list"
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"widget": "actions",
|
|
209
|
+
"title": "Commands"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"widget": "credentials",
|
|
213
|
+
"title": "Credentials"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"widget": "activity",
|
|
217
|
+
"title": "Recent activity"
|
|
218
|
+
}
|
|
219
|
+
]
|
|
220
|
+
}
|
|
221
|
+
}
|
package/scaffold/.agent/skills/total-recall/plugins/composable-cli/schemas/cli_command.schema.json
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://github.com/gregiteen/tr-plugin-composable-cli/schemas/cli_command.schema.json",
|
|
4
|
+
"title": "CLI Command",
|
|
5
|
+
"description": "SSSS document type for a registered composable CLI command. Lives beside the command's .mjs file as <scope dir>/commands/<name>.md.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"type": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"const": "cli_command",
|
|
11
|
+
"description": "SSSS document type marker"
|
|
12
|
+
},
|
|
13
|
+
"id": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"format": "uuid",
|
|
16
|
+
"description": "Stable UUID identifying this command registration"
|
|
17
|
+
},
|
|
18
|
+
"name": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"pattern": "^[a-z][a-z0-9-]{0,63}$",
|
|
21
|
+
"description": "Command name invoked as `total-recall <name>`"
|
|
22
|
+
},
|
|
23
|
+
"scope": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"enum": ["project", "group", "global"],
|
|
26
|
+
"description": "Visibility scope of the command"
|
|
27
|
+
},
|
|
28
|
+
"owner_project": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"format": "uuid",
|
|
31
|
+
"description": "Project UUID that owns this command (scope=project)"
|
|
32
|
+
},
|
|
33
|
+
"group": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"format": "uuid",
|
|
36
|
+
"description": "Group UUID for group-scoped commands (scope=group)"
|
|
37
|
+
},
|
|
38
|
+
"risk": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"enum": ["read", "write", "money", "dns-cert", "production-deploy", "secret-revoke"],
|
|
41
|
+
"description": "Risk class governing dry-run / --yes behavior"
|
|
42
|
+
},
|
|
43
|
+
"version": {
|
|
44
|
+
"type": "integer",
|
|
45
|
+
"minimum": 1,
|
|
46
|
+
"description": "Current version number; incremented on every update"
|
|
47
|
+
},
|
|
48
|
+
"author": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"description": "Agent or user id that created the command"
|
|
51
|
+
},
|
|
52
|
+
"created": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"format": "date-time",
|
|
55
|
+
"description": "ISO 8601 creation timestamp"
|
|
56
|
+
},
|
|
57
|
+
"updated": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"format": "date-time",
|
|
60
|
+
"description": "ISO 8601 last-updated timestamp"
|
|
61
|
+
},
|
|
62
|
+
"description": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"description": "Human-readable command description"
|
|
65
|
+
},
|
|
66
|
+
"background_allowed": {
|
|
67
|
+
"type": "boolean",
|
|
68
|
+
"description": "Whether the command supports --background execution"
|
|
69
|
+
},
|
|
70
|
+
"code_sha256": {
|
|
71
|
+
"type": "string",
|
|
72
|
+
"pattern": "^[0-9a-f]{64}$",
|
|
73
|
+
"description": "SHA-256 hash of the current command file content"
|
|
74
|
+
},
|
|
75
|
+
"last_test": {
|
|
76
|
+
"type": "string",
|
|
77
|
+
"format": "date-time",
|
|
78
|
+
"description": "ISO 8601 timestamp of the last test run"
|
|
79
|
+
},
|
|
80
|
+
"last_test_ok": {
|
|
81
|
+
"type": "boolean",
|
|
82
|
+
"description": "Whether the last test run passed"
|
|
83
|
+
},
|
|
84
|
+
"source": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"enum": ["inline", "from-plugin", "config-for-skill", "upgraded", "nickname"],
|
|
87
|
+
"description": "How the command was created"
|
|
88
|
+
},
|
|
89
|
+
"tags": {
|
|
90
|
+
"type": "array",
|
|
91
|
+
"items": { "type": "string" },
|
|
92
|
+
"description": "Arbitrary tags for categorization"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"required": [
|
|
96
|
+
"type",
|
|
97
|
+
"id",
|
|
98
|
+
"name",
|
|
99
|
+
"scope",
|
|
100
|
+
"risk",
|
|
101
|
+
"version",
|
|
102
|
+
"author",
|
|
103
|
+
"created",
|
|
104
|
+
"updated"
|
|
105
|
+
],
|
|
106
|
+
"additionalProperties": false
|
|
107
|
+
}
|
package/scaffold/.agent/skills/total-recall/plugins/composable-cli/skills/composable-cli/SKILL.md
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: composable-cli
|
|
3
|
+
description: "Total Recall composable CLI plugin: create, compose, register, test and safely run custom verbs; every command listed in the instruction surfaces."
|
|
4
|
+
version: 0.2.0
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Composable CLI
|
|
8
|
+
|
|
9
|
+
Total Recall composable CLI plugin: create, compose, register, test and safely run custom verbs.
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
This skill is provided by the `composable-cli` Total Recall capability plugin.
|
|
14
|
+
|
|
15
|
+
### Composable CLI
|
|
16
|
+
```bash
|
|
17
|
+
npx total-recall composable-cli status
|
|
18
|
+
npx total-recall composable-cli create <name> <code> [--description "..." --risk read|write|money|...]
|
|
19
|
+
npx total-recall composable-cli list [--json]
|
|
20
|
+
npx total-recall composable-cli show <name> [--json]
|
|
21
|
+
npx total-recall composable-cli history <name>
|
|
22
|
+
npx total-recall composable-cli upgrade <name>
|
|
23
|
+
npx total-recall composable-cli promote <name> --to-plugin <dir>
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
### Commands (via `total-recall`)
|
|
27
|
+
```bash
|
|
28
|
+
total-recall command create <name> "<code>" [--description "..."] [--risk <class>]
|
|
29
|
+
total-recall command list [--json]
|
|
30
|
+
total-recall command show <name> [--json]
|
|
31
|
+
total-recall command history <name>
|
|
32
|
+
total-recall command rollback <name> <version>
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### v2 Command Contract
|
|
36
|
+
Commands export `meta` and a default function:
|
|
37
|
+
```js
|
|
38
|
+
export const meta = {
|
|
39
|
+
name: 'my-command',
|
|
40
|
+
description: 'Does something useful',
|
|
41
|
+
risk: 'read',
|
|
42
|
+
version: 2,
|
|
43
|
+
background: false,
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export default async function main(args, { tr, json, dryRun, log }) {
|
|
47
|
+
const id = await tr('project-id', ['--json']);
|
|
48
|
+
return { data: { project: id.data?.project_id } };
|
|
49
|
+
}
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### Risk Classes
|
|
53
|
+
| Risk | Default | --yes required |
|
|
54
|
+
|------|---------|----------------|
|
|
55
|
+
| read, write | runs | no |
|
|
56
|
+
| money, dns-cert, production-deploy, secret-revoke | dry-run (exit 3) | yes |
|
|
57
|
+
|
|
58
|
+
### Composition
|
|
59
|
+
```js
|
|
60
|
+
import { tr } from 'tr-plugin-composable-cli/src/compose.mjs';
|
|
61
|
+
const result = await tr('project-id', ['--json']);
|
|
62
|
+
// -> { ok: true, exitCode: 0, data: { project_id: '...' } }
|
|
63
|
+
```
|