@treeseed/sdk 0.13.0-rc.33 → 0.13.0-rc.34
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.
|
@@ -12,6 +12,7 @@ const operationBindings = {
|
|
|
12
12
|
"auth login": protocol("protocol.oauth.device.login"),
|
|
13
13
|
"auth logout": protocol("protocol.oauth.revoke"),
|
|
14
14
|
"auth status": operation("accounts.current.show"),
|
|
15
|
+
"users create": protocol("protocol.accounts.create"),
|
|
15
16
|
"send": operation("communications.send", [field("path", "teamId", "context", "team", true), field("path", "channel", "argument", "channel", true), field("body", "message", "argument", "message", true), field("body", "projectId", "context", "project"), field("body", "recipients", "option", "to"), field("body", "topic", "option"), field("body", "waitSeconds", "option", "wait", false, "integer")]),
|
|
16
17
|
"secrets list": local("local.secrets.list"),
|
|
17
18
|
"secrets status": local("local.secrets.status"),
|
|
@@ -132,12 +133,25 @@ function hostReset() {
|
|
|
132
133
|
value.options = [...value.options ?? [], { name: "--confirm", description: "Confirm deletion of all manager-owned component data and receipts.", type: "boolean" }];
|
|
133
134
|
return value;
|
|
134
135
|
}
|
|
136
|
+
function userCreate() {
|
|
137
|
+
const value = leaf("create", "mutation", void 0, "credential");
|
|
138
|
+
if (value.nodeType !== "leaf") throw new Error("User creation must be a leaf command.");
|
|
139
|
+
value.description = "Create a local TreeSeed user with a securely prompted password.";
|
|
140
|
+
value.options = [
|
|
141
|
+
...value.options ?? [],
|
|
142
|
+
{ name: "--email", description: "Email address for the new user.", type: "string" },
|
|
143
|
+
{ name: "--username", description: "Unique username for the new user.", type: "string" },
|
|
144
|
+
{ name: "--display-name", description: "Human-readable display name.", type: "string" }
|
|
145
|
+
];
|
|
146
|
+
return value;
|
|
147
|
+
}
|
|
135
148
|
const commandTree = {
|
|
136
149
|
schemaVersion: "treeseed.command-tree/v1",
|
|
137
150
|
executable: "trsd",
|
|
138
151
|
commands: [
|
|
139
152
|
{ nodeType: "leaf", segment: "send", description: "Send a message to project agents through a team discussion channel.", kind: "mutation", arguments: [{ name: "channel", description: "Team discussion channel.", required: true }, { name: "message", description: "Markdown message to send.", required: true }], options: [planOption, { name: "--team", description: "Team identity or slug.", type: "string" }, { name: "--project", description: "Default project for unqualified agent names.", type: "string" }, { name: "--to", description: "Agent target; use project/agent when names may be ambiguous.", type: "string[]" }, { name: "--topic", description: "Optional discussion topic.", type: "string" }, { name: "--wait", description: "Seconds to wait for durable responses.", type: "number", defaultValue: 0 }], authorization: { capability: "agents.execute", confirmation: "never" }, resultSchemaId: "treeseed.communication-send-receipt/v1", execution: unavailable() },
|
|
140
153
|
branch("auth", [leaf("login", "mutation", void 0, "credential"), leaf("logout", "mutation"), leaf("status")]),
|
|
154
|
+
branch("users", [userCreate()]),
|
|
141
155
|
branch("secrets", [leaf("list"), leaf("status"), leaf("unlock", "mutation", void 0, "credential"), leaf("lock", "mutation"), leaf("rotate", "mutation", void 0, "credential")]),
|
|
142
156
|
branch("host", [
|
|
143
157
|
leaf("status"),
|