@superglue/cli 1.1.96 → 1.1.98

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.
@@ -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 tool names can map them directly to CLI commands:
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
- | `build_tool` | `sg tool build --config '{...}'` | CLI is not AI-powered — you provide the full JSON config |
216
- | `edit_tool` | `sg tool edit --tool <id> --patches '[...]'` | JSON Patch (RFC 6902). Use `--draft <id>` for drafts |
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
- | `create_system` | `sg system create --name "..." --url "..."` | Use `--template <id>` when available |
220
- | `edit_system` | `sg system edit --id <id> ...` | Edits the system with that exact ID |
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
- | `call_system` | `sg system call --url "..." --system-id <id>` | Authenticated ad-hoc calls for testing / schema introspection |
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
- | `create_mcp_server` | `sg mcp create --name <n> --tool <id>` | Creates a named MCP endpoint for selected saved tools |
229
- | `edit_mcp_server` | `sg mcp edit --id <id> ...` | Edits name, auth mode, description, or selected tool IDs |
230
- | `create_schedule` | `sg schedule create --tool <id> --cron <expr>` | Creates a cron schedule for a saved tool |
231
- | `edit_schedule` | `sg schedule edit --tool <id> --id <schedule>` | Updates, enables, or disables an existing schedule |
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 user-to-user sharing through the app/agent sharing flow.
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, share, and explicit access-rule grants.
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
- - Managed via the Personal Roles tab in Access Rules and backend role APIs.
90
+ - Ordinary role edits preserve personal roles and their ownership/share grants.
91
91
 
92
92
  ## Sharing Semantics
93
93
 
94
- V1 sharing targets organization users only. It does not share directly to base roles or custom roles.
95
-
96
- - Sharing writes `source: "share"` grants into the target user's personal role.
97
- - A user can grant only permissions up to their own effective access: viewer can grant viewer, editor can grant viewer or editor.
98
- - If the target already has the requested permission or stronger from any active grant, sharing is redundant and should be blocked.
99
- - If the target has viewer access and the acting user can grant editor, sharing can promote the user to editor through the personal `source: "share"` grant.
100
- - Sharing a tool also grants viewer access to required systems when the recipient lacks system access.
101
- - Tool sharing is atomic. If any selected user or required system grant cannot be applied, nothing is shared.
102
- - Normal users cannot unshare in V1. Admin cleanup should use Access Rules/admin grant management.
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superglue/cli",
3
- "version": "1.1.96",
3
+ "version": "1.1.98",
4
4
  "bin": {
5
5
  "sg": "./dist/cli.js"
6
6
  },
@@ -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 tool names can map them directly to CLI commands:
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
- | `build_tool` | `sg tool build --config '{...}'` | CLI is not AI-powered — you provide the full JSON config |
216
- | `edit_tool` | `sg tool edit --tool <id> --patches '[...]'` | JSON Patch (RFC 6902). Use `--draft <id>` for drafts |
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
- | `create_system` | `sg system create --name "..." --url "..."` | Use `--template <id>` when available |
220
- | `edit_system` | `sg system edit --id <id> ...` | Edits the system with that exact ID |
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
- | `call_system` | `sg system call --url "..." --system-id <id>` | Authenticated ad-hoc calls for testing / schema introspection |
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
- | `create_mcp_server` | `sg mcp create --name <n> --tool <id>` | Creates a named MCP endpoint for selected saved tools |
229
- | `edit_mcp_server` | `sg mcp edit --id <id> ...` | Edits name, auth mode, description, or selected tool IDs |
230
- | `create_schedule` | `sg schedule create --tool <id> --cron <expr>` | Creates a cron schedule for a saved tool |
231
- | `edit_schedule` | `sg schedule edit --tool <id> --id <schedule>` | Updates, enables, or disables an existing schedule |
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 user-to-user sharing through the app/agent sharing flow.
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, share, and explicit access-rule grants.
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
- - Managed via the Personal Roles tab in Access Rules and backend role APIs.
90
+ - Ordinary role edits preserve personal roles and their ownership/share grants.
91
91
 
92
92
  ## Sharing Semantics
93
93
 
94
- V1 sharing targets organization users only. It does not share directly to base roles or custom roles.
95
-
96
- - Sharing writes `source: "share"` grants into the target user's personal role.
97
- - A user can grant only permissions up to their own effective access: viewer can grant viewer, editor can grant viewer or editor.
98
- - If the target already has the requested permission or stronger from any active grant, sharing is redundant and should be blocked.
99
- - If the target has viewer access and the acting user can grant editor, sharing can promote the user to editor through the personal `source: "share"` grant.
100
- - Sharing a tool also grants viewer access to required systems when the recipient lacks system access.
101
- - Tool sharing is atomic. If any selected user or required system grant cannot be applied, nothing is shared.
102
- - Normal users cannot unshare in V1. Admin cleanup should use Access Rules/admin grant management.
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