@superglue/cli 1.1.95 → 1.1.97
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/.claude-plugin/plugin.json +1 -1
- package/dist/cli.js +196 -128
- package/dist/skills/superglue/SKILL.md +10 -10
- package/dist/skills/superglue/references/access-rules.md +16 -12
- package/package.json +1 -1
- package/skills/superglue/SKILL.md +10 -10
- package/skills/superglue/references/access-rules.md +16 -12
|
@@ -208,27 +208,27 @@ Optional flags:
|
|
|
208
208
|
|
|
209
209
|
### Tool Translation (web agent tool → CLI command)
|
|
210
210
|
|
|
211
|
-
Agents familiar with the web
|
|
211
|
+
Agents familiar with the web agent (its native tools and the `superglue` node module used inside `run_command`) can map them directly to CLI commands:
|
|
212
212
|
|
|
213
213
|
| Web agent tool | CLI command | Notes |
|
|
214
214
|
| ------------------------------------------------ | ---------------------------------------------- | ------------------------------------------------------------------ |
|
|
215
|
-
| `
|
|
216
|
-
| `
|
|
215
|
+
| `tools.writeTool` (superglue module; new id) | `sg tool build --config '{...}'` | CLI is not AI-powered — you provide the full JSON config |
|
|
216
|
+
| `tools.writeTool` (superglue/approved; saved id) | `sg tool edit --tool <id> --patches '[...]'` | JSON Patch (RFC 6902). Use `--draft <id>` for drafts |
|
|
217
217
|
| `run_tool` | `sg tool run --tool <id>` / `--draft <id>` | Add `--include-step-results` to inspect per-step data |
|
|
218
218
|
| `run_command` with `vfs` for `/org/tools/` | `sg tool find --id <id>` / `sg tool find <q>` | Full config with `--id`, compact search with a query string |
|
|
219
|
-
| `
|
|
220
|
-
| `
|
|
219
|
+
| `tools.writeSystem` (superglue module; new id) | `sg system create --name "..." --url "..."` | Use `--template <id>` when available |
|
|
220
|
+
| `tools.writeSystem` (superglue/approved; saved) | `sg system edit --id <id> ...` | Edits the system with that exact ID |
|
|
221
221
|
| `run_command` with `vfs` for `/org/systems/` | `sg system find <query>` / `--id <id>` | Returns secret-key presence and the system URL |
|
|
222
222
|
| Credentials VFS / saved credentials | `sg system credentials get/set/clear` | Manage the current user's credentials for a system |
|
|
223
|
-
| `
|
|
223
|
+
| `tools.callSystem` | `sg system call --url "..." --system-id <id>` | Authenticated ad-hoc calls for testing / schema introspection |
|
|
224
224
|
| `run_command search` | `sg system search-docs --system-id <id> -k` | Targeted keyword search over ingested system docs |
|
|
225
225
|
| `authenticate_oauth` | `sg system oauth --system-id <id> [--scopes]` | Opens browser flow. Supports `--grant-type client_credentials` too |
|
|
226
226
|
| `run_command` with `vfs` for `/org/runs/` | `sg run list` / `sg run get <runId>` | Filter `list` by `--tool`, `--status`, `--source`, `--limit` |
|
|
227
227
|
| `run_command` with `vfs` for `/org/mcp-servers/` | `sg mcp list` / `sg mcp find --id <id>` | Returns endpoint, auth mode, selected tool IDs, and client config |
|
|
228
|
-
| `
|
|
229
|
-
| `
|
|
230
|
-
| `
|
|
231
|
-
| `
|
|
228
|
+
| `tools.writeMcpServer` (superglue module; new) | `sg mcp create --name <n> --tool <id>` | Creates a named MCP endpoint for selected saved tools |
|
|
229
|
+
| `tools.writeMcpServer` (superglue/approved) | `sg mcp edit --id <id> ...` | Edits name, auth mode, description, or selected tool IDs |
|
|
230
|
+
| `tools.writeSchedule` (superglue module; new) | `sg schedule create --tool <id> --cron <expr>` | Creates a cron schedule for a saved tool |
|
|
231
|
+
| `tools.writeSchedule` (superglue/approved; id) | `sg schedule edit --tool <id> --id <schedule>` | Updates, enables, or disables an existing schedule |
|
|
232
232
|
| (no direct equivalent) | `sg login`, `sg update`, `sg skill` | CLI-specific setup, updater, and this reference system |
|
|
233
233
|
|
|
234
234
|
Web-agent-only concepts with no CLI equivalent: `run_command`'s virtual filesystem (CLI uses concrete `sg` subcommands), `authenticate_oauth`'s dedicated MCP `authenticate` tool (CLI uses `sg system oauth`).
|
|
@@ -46,7 +46,7 @@ Current configured role access and ownership grants are generally stored as `edi
|
|
|
46
46
|
|
|
47
47
|
- `access_rule` — explicit admin/Access Rules edit.
|
|
48
48
|
- `ownership` — authorization projection from the resource creator.
|
|
49
|
-
- `share` — explicit
|
|
49
|
+
- `share` — explicit sharing with an organization user or role.
|
|
50
50
|
|
|
51
51
|
Ownership source of truth remains the tool/system row. Ownership grants are a permission projection and should be preserved by ordinary role edits.
|
|
52
52
|
|
|
@@ -82,24 +82,28 @@ Users can also have additional custom roles on top of their base role. Custom ro
|
|
|
82
82
|
|
|
83
83
|
## Personal Roles
|
|
84
84
|
|
|
85
|
-
Personal roles are per-user containers for ownership
|
|
85
|
+
Personal roles are per-user containers for ownership and user-targeted share grants.
|
|
86
86
|
|
|
87
87
|
- Each user can have at most one personal role.
|
|
88
88
|
- Ownership grants are added automatically when a user creates a tool or system.
|
|
89
89
|
- Personal role grants are unioned with the user's other roles.
|
|
90
|
-
-
|
|
90
|
+
- Ordinary role edits preserve personal roles and their ownership/share grants.
|
|
91
91
|
|
|
92
92
|
## Sharing Semantics
|
|
93
93
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
-
|
|
97
|
-
-
|
|
98
|
-
-
|
|
99
|
-
-
|
|
100
|
-
-
|
|
101
|
-
-
|
|
102
|
-
-
|
|
94
|
+
Sharing supports saved tools, systems, credentials, projects, playbooks, artifacts, and files.
|
|
95
|
+
|
|
96
|
+
- Targets are organization users or roles. The admin role and personal roles cannot be role targets.
|
|
97
|
+
- User-targeted shares live on personal roles; role-targeted shares live on the selected role.
|
|
98
|
+
- Sharing requires resource `editor` access. Direct shares grant `viewer` or `editor` through `source: "share"`.
|
|
99
|
+
- Editors can update or remove direct shares. Removing one preserves ownership, access-rule grants, and access from other roles.
|
|
100
|
+
- Credential sharing and revocation require the credential owner or an admin, even when another user has credential `editor`.
|
|
101
|
+
- Recipients can remove their own direct share, including credential shares, without editor access.
|
|
102
|
+
- Tool sharing grants missing system `viewer` access when the actor can pass it on. Otherwise, nothing is shared.
|
|
103
|
+
- Tool sharing does not share credentials. Credential sharing also grants missing viewer access to its owning system.
|
|
104
|
+
- Removing a tool or credential share does not remove the required-system shares it created.
|
|
105
|
+
- Sharing systems or playbooks does not cascade to their tools, systems, or credentials.
|
|
106
|
+
- Project sharing can include manageable current members when requested. It does not share future members or revoke member shares later.
|
|
103
107
|
|
|
104
108
|
## Auto-Grant On Resource Creation
|
|
105
109
|
|
package/package.json
CHANGED
|
@@ -208,27 +208,27 @@ Optional flags:
|
|
|
208
208
|
|
|
209
209
|
### Tool Translation (web agent tool → CLI command)
|
|
210
210
|
|
|
211
|
-
Agents familiar with the web
|
|
211
|
+
Agents familiar with the web agent (its native tools and the `superglue` node module used inside `run_command`) can map them directly to CLI commands:
|
|
212
212
|
|
|
213
213
|
| Web agent tool | CLI command | Notes |
|
|
214
214
|
| ------------------------------------------------ | ---------------------------------------------- | ------------------------------------------------------------------ |
|
|
215
|
-
| `
|
|
216
|
-
| `
|
|
215
|
+
| `tools.writeTool` (superglue module; new id) | `sg tool build --config '{...}'` | CLI is not AI-powered — you provide the full JSON config |
|
|
216
|
+
| `tools.writeTool` (superglue/approved; saved id) | `sg tool edit --tool <id> --patches '[...]'` | JSON Patch (RFC 6902). Use `--draft <id>` for drafts |
|
|
217
217
|
| `run_tool` | `sg tool run --tool <id>` / `--draft <id>` | Add `--include-step-results` to inspect per-step data |
|
|
218
218
|
| `run_command` with `vfs` for `/org/tools/` | `sg tool find --id <id>` / `sg tool find <q>` | Full config with `--id`, compact search with a query string |
|
|
219
|
-
| `
|
|
220
|
-
| `
|
|
219
|
+
| `tools.writeSystem` (superglue module; new id) | `sg system create --name "..." --url "..."` | Use `--template <id>` when available |
|
|
220
|
+
| `tools.writeSystem` (superglue/approved; saved) | `sg system edit --id <id> ...` | Edits the system with that exact ID |
|
|
221
221
|
| `run_command` with `vfs` for `/org/systems/` | `sg system find <query>` / `--id <id>` | Returns secret-key presence and the system URL |
|
|
222
222
|
| Credentials VFS / saved credentials | `sg system credentials get/set/clear` | Manage the current user's credentials for a system |
|
|
223
|
-
| `
|
|
223
|
+
| `tools.callSystem` | `sg system call --url "..." --system-id <id>` | Authenticated ad-hoc calls for testing / schema introspection |
|
|
224
224
|
| `run_command search` | `sg system search-docs --system-id <id> -k` | Targeted keyword search over ingested system docs |
|
|
225
225
|
| `authenticate_oauth` | `sg system oauth --system-id <id> [--scopes]` | Opens browser flow. Supports `--grant-type client_credentials` too |
|
|
226
226
|
| `run_command` with `vfs` for `/org/runs/` | `sg run list` / `sg run get <runId>` | Filter `list` by `--tool`, `--status`, `--source`, `--limit` |
|
|
227
227
|
| `run_command` with `vfs` for `/org/mcp-servers/` | `sg mcp list` / `sg mcp find --id <id>` | Returns endpoint, auth mode, selected tool IDs, and client config |
|
|
228
|
-
| `
|
|
229
|
-
| `
|
|
230
|
-
| `
|
|
231
|
-
| `
|
|
228
|
+
| `tools.writeMcpServer` (superglue module; new) | `sg mcp create --name <n> --tool <id>` | Creates a named MCP endpoint for selected saved tools |
|
|
229
|
+
| `tools.writeMcpServer` (superglue/approved) | `sg mcp edit --id <id> ...` | Edits name, auth mode, description, or selected tool IDs |
|
|
230
|
+
| `tools.writeSchedule` (superglue module; new) | `sg schedule create --tool <id> --cron <expr>` | Creates a cron schedule for a saved tool |
|
|
231
|
+
| `tools.writeSchedule` (superglue/approved; id) | `sg schedule edit --tool <id> --id <schedule>` | Updates, enables, or disables an existing schedule |
|
|
232
232
|
| (no direct equivalent) | `sg login`, `sg update`, `sg skill` | CLI-specific setup, updater, and this reference system |
|
|
233
233
|
|
|
234
234
|
Web-agent-only concepts with no CLI equivalent: `run_command`'s virtual filesystem (CLI uses concrete `sg` subcommands), `authenticate_oauth`'s dedicated MCP `authenticate` tool (CLI uses `sg system oauth`).
|
|
@@ -46,7 +46,7 @@ Current configured role access and ownership grants are generally stored as `edi
|
|
|
46
46
|
|
|
47
47
|
- `access_rule` — explicit admin/Access Rules edit.
|
|
48
48
|
- `ownership` — authorization projection from the resource creator.
|
|
49
|
-
- `share` — explicit
|
|
49
|
+
- `share` — explicit sharing with an organization user or role.
|
|
50
50
|
|
|
51
51
|
Ownership source of truth remains the tool/system row. Ownership grants are a permission projection and should be preserved by ordinary role edits.
|
|
52
52
|
|
|
@@ -82,24 +82,28 @@ Users can also have additional custom roles on top of their base role. Custom ro
|
|
|
82
82
|
|
|
83
83
|
## Personal Roles
|
|
84
84
|
|
|
85
|
-
Personal roles are per-user containers for ownership
|
|
85
|
+
Personal roles are per-user containers for ownership and user-targeted share grants.
|
|
86
86
|
|
|
87
87
|
- Each user can have at most one personal role.
|
|
88
88
|
- Ownership grants are added automatically when a user creates a tool or system.
|
|
89
89
|
- Personal role grants are unioned with the user's other roles.
|
|
90
|
-
-
|
|
90
|
+
- Ordinary role edits preserve personal roles and their ownership/share grants.
|
|
91
91
|
|
|
92
92
|
## Sharing Semantics
|
|
93
93
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
-
|
|
97
|
-
-
|
|
98
|
-
-
|
|
99
|
-
-
|
|
100
|
-
-
|
|
101
|
-
-
|
|
102
|
-
-
|
|
94
|
+
Sharing supports saved tools, systems, credentials, projects, playbooks, artifacts, and files.
|
|
95
|
+
|
|
96
|
+
- Targets are organization users or roles. The admin role and personal roles cannot be role targets.
|
|
97
|
+
- User-targeted shares live on personal roles; role-targeted shares live on the selected role.
|
|
98
|
+
- Sharing requires resource `editor` access. Direct shares grant `viewer` or `editor` through `source: "share"`.
|
|
99
|
+
- Editors can update or remove direct shares. Removing one preserves ownership, access-rule grants, and access from other roles.
|
|
100
|
+
- Credential sharing and revocation require the credential owner or an admin, even when another user has credential `editor`.
|
|
101
|
+
- Recipients can remove their own direct share, including credential shares, without editor access.
|
|
102
|
+
- Tool sharing grants missing system `viewer` access when the actor can pass it on. Otherwise, nothing is shared.
|
|
103
|
+
- Tool sharing does not share credentials. Credential sharing also grants missing viewer access to its owning system.
|
|
104
|
+
- Removing a tool or credential share does not remove the required-system shares it created.
|
|
105
|
+
- Sharing systems or playbooks does not cascade to their tools, systems, or credentials.
|
|
106
|
+
- Project sharing can include manageable current members when requested. It does not share future members or revoke member shares later.
|
|
103
107
|
|
|
104
108
|
## Auto-Grant On Resource Creation
|
|
105
109
|
|