@uru-intelligence/cli 0.7.0 → 0.8.0

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/dist/library.mjs CHANGED
@@ -6097,6 +6097,12 @@ var libraryImportOutputSchema = {
6097
6097
  var text = { type: "string" };
6098
6098
  var nullableText = { type: ["string", "null"] };
6099
6099
  var flag = { type: "boolean" };
6100
+ var nullableFlag = { type: ["boolean", "null"] };
6101
+ var effort = {
6102
+ type: ["string", "null"],
6103
+ enum: ["off", "minimal", "low", "medium", "high", "xhigh", "max", null]
6104
+ };
6105
+ var turnLimit = { type: ["integer", "null"], minimum: 1, maximum: 1000 };
6100
6106
  function object2(properties, required) {
6101
6107
  const returned = { type: "object", additionalProperties: true, properties, required: [...required] };
6102
6108
  return returned;
@@ -6118,10 +6124,28 @@ var agentView = object2({
6118
6124
  instructions: text,
6119
6125
  status: text,
6120
6126
  model: nullableText,
6127
+ reasoning_effort: effort,
6128
+ turn_limit: turnLimit,
6129
+ never_pick_automatically: flag,
6130
+ helper_on: nullableFlag,
6121
6131
  locks,
6122
6132
  version: { type: "integer", minimum: 0 },
6123
6133
  updated_at: text
6124
- }, ["item_id", "name", "role", "description", "instructions", "status", "model", "locks", "version", "updated_at"]);
6134
+ }, [
6135
+ "item_id",
6136
+ "name",
6137
+ "role",
6138
+ "description",
6139
+ "instructions",
6140
+ "status",
6141
+ "model",
6142
+ "reasoning_effort",
6143
+ "turn_limit",
6144
+ "never_pick_automatically",
6145
+ "locks",
6146
+ "version",
6147
+ "updated_at"
6148
+ ]);
6125
6149
  var listOutputSchema = {
6126
6150
  type: "object",
6127
6151
  additionalProperties: true,
@@ -6136,13 +6160,66 @@ var agentOutputSchema = {
6136
6160
  additionalProperties: true,
6137
6161
  properties: { agent: agentView }
6138
6162
  };
6139
- var writeOutputSchema = object2({ message: text, agent: agentView }, ["message", "agent"]);
6163
+ var writeOutputSchema = {
6164
+ type: "object",
6165
+ additionalProperties: true,
6166
+ properties: { message: text, agent: agentView }
6167
+ };
6168
+ var agentName = object2({ item_id: text, name: text }, ["item_id", "name"]);
6169
+ var helperOutputSchema = {
6170
+ type: "object",
6171
+ additionalProperties: true,
6172
+ properties: {
6173
+ message: text,
6174
+ agent: agentName,
6175
+ helper_on: flag
6176
+ }
6177
+ };
6178
+ var needRow = object2({
6179
+ id: text,
6180
+ kind: { type: "string", enum: ["app", "gem_tool", "connector"] },
6181
+ app: nullableText,
6182
+ gem_tool: nullableText,
6183
+ connector_url: nullableText,
6184
+ name: text,
6185
+ status: {
6186
+ type: "string",
6187
+ enum: ["connected", "not_connected", "can_adopt", "waiting", "not_allowed", "not_in_workspace", "ask_gem_owner"]
6188
+ },
6189
+ account_name: nullableText,
6190
+ source: { type: ["string", "null"], enum: ["mine", "adopted", "company", "uru", null] },
6191
+ main: flag,
6192
+ offered_by: nullableText,
6193
+ offer_id: nullableText,
6194
+ workspace_name: nullableText
6195
+ }, ["id", "kind", "name", "status"]);
6196
+ var needsOutputSchema = {
6197
+ type: "object",
6198
+ additionalProperties: true,
6199
+ properties: { agent: agentName, can_edit: flag, needs: { type: "array", items: needRow } }
6200
+ };
6201
+ var needsWriteOutputSchema = {
6202
+ type: "object",
6203
+ additionalProperties: true,
6204
+ properties: {
6205
+ message: text,
6206
+ agent: agentName,
6207
+ can_edit: flag,
6208
+ needs: { type: "array", items: needRow },
6209
+ added: { type: "array", items: text },
6210
+ removed: { type: "array", items: text }
6211
+ }
6212
+ };
6140
6213
  function buildAgentsOperations(op) {
6141
6214
  const returned = [
6142
6215
  withOutputSchema(op("agents.list", "agents", "List the Agents you can open, with an optional search text.", "agents_query", "list", "read"), listOutputSchema),
6143
- withOutputSchema(op("agents.get", "agents", "Read one Agent: its name, role, description, instructions, model, status and locks.", "agents_query", "get", "read"), agentOutputSchema),
6216
+ withOutputSchema(op("agents.get", "agents", "Read one Agent: its name, role, description, instructions, model, effort, turn limit, helper settings, status and locks.", "agents_query", "get", "read"), agentOutputSchema),
6144
6217
  withOutputSchema(op("agents.create", "agents", "Make a new Agent with a name and what it does.", "agents", "create", "write"), writeOutputSchema),
6145
- withOutputSchema(op("agents.update", "agents", "Change an Agent: its name, role, description, instructions, model, status or locks. Send only the fields to change.", "agents", "update", "write"), writeOutputSchema)
6218
+ withOutputSchema(op("agents.update", "agents", "Change an Agent: its name, role, description, instructions, model, effort, turn limit, never pick automatically, status or locks. Send only the fields to change.", "agents", "update", "write"), writeOutputSchema),
6219
+ withOutputSchema(op("agents.helper_set", "agents", "Choose, for yourself only, whether Uru can pick this Agent to help you.", "agents", "helper_set", "write"), helperOutputSchema),
6220
+ withOutputSchema(op("agents.needs_list", "agents", "List the apps, Gem tools and custom connectors an Agent needs, each with your own status: Connected, Not connected, Can adopt, Waiting or Not allowed.", "agents_query", "needs_list", "read"), needsOutputSchema),
6221
+ withOutputSchema(op("agents.needs_add", "agents", "Name apps, Gem tools or custom connectors an Agent needs. A Need grants nothing: each person uses their own account. Only a signed-in person who can edit the Agent does this.", "agents", "needs_add", "write"), needsWriteOutputSchema),
6222
+ withOutputSchema(op("agents.needs_remove", "agents", "Remove Needs from an Agent: a list of apps, Gem tools or custom connectors, the same list agents.needs_add takes. Only a signed-in person who can edit the Agent does this.", "agents", "needs_remove", "write"), needsWriteOutputSchema)
6146
6223
  ];
6147
6224
  return returned;
6148
6225
  }
@@ -6206,6 +6283,7 @@ function buildAppsOperations(op) {
6206
6283
 
6207
6284
  // ../../packages/platform-operations/src/operation_groups_rules.ts
6208
6285
  var ASKING_LEVELS = ["never", "on_write", "always"];
6286
+ var RULE_TARGET_WORDS = ["me", "workspace"];
6209
6287
  var levelOutputSchema = {
6210
6288
  type: "object",
6211
6289
  additionalProperties: true,
@@ -6214,28 +6292,241 @@ var levelOutputSchema = {
6214
6292
  level_name: { type: "string" },
6215
6293
  changed_chats: { type: "integer", minimum: 0 },
6216
6294
  message: { type: "string" }
6295
+ }
6296
+ };
6297
+ var ruleRow = {
6298
+ type: "object",
6299
+ additionalProperties: false,
6300
+ properties: {
6301
+ app: { type: "string" },
6302
+ action: { type: "string" },
6303
+ name: { type: "string" }
6217
6304
  },
6218
- required: ["level", "level_name"]
6305
+ required: ["app", "action", "name"]
6306
+ };
6307
+ var ruleRows = { type: "array", items: ruleRow };
6308
+ var rulesOutputSchema = {
6309
+ type: "object",
6310
+ additionalProperties: true,
6311
+ properties: {
6312
+ target: { type: "string", enum: ["agent", ...RULE_TARGET_WORDS] },
6313
+ agent: {
6314
+ type: ["object", "null"],
6315
+ additionalProperties: false,
6316
+ properties: { item_id: { type: "string" }, name: { type: "string" } },
6317
+ required: ["item_id", "name"]
6318
+ },
6319
+ mode: { type: ["string", "null"] },
6320
+ mode_name: { type: ["string", "null"] },
6321
+ version: { type: ["string", "null"] },
6322
+ can_edit: { type: "boolean" },
6323
+ not_allowed: ruleRows,
6324
+ allowed: ruleRows,
6325
+ ask_first: ruleRows,
6326
+ summary: { type: "string" },
6327
+ added: ruleRows,
6328
+ removed: ruleRows,
6329
+ viewer_accounts: {
6330
+ type: "object",
6331
+ additionalProperties: false,
6332
+ properties: {
6333
+ name: { type: "string" },
6334
+ allowed: { type: "boolean" },
6335
+ state: { type: "string", enum: ["on", "off"] }
6336
+ },
6337
+ required: ["name", "allowed", "state"]
6338
+ },
6339
+ message: { type: "string" }
6340
+ }
6219
6341
  };
6220
6342
  function buildRulesOperations(op) {
6221
6343
  const returned = [
6222
6344
  withOutputSchema(op("rules.level_get", "rules", "Read your asking level: never (ask only when it is important), on_write (ask before anything that changes something) or always (ask before every action).", "rules_query", "level_get", "read"), levelOutputSchema),
6223
- withOutputSchema(op("rules.level_set", "rules", "Change your asking level for your chats: never, on_write or always. Only you can change it, and only in Uru can you lower it.", "rules", "level_set", "write"), levelOutputSchema)
6345
+ withOutputSchema(op("rules.level_set", "rules", "Change your asking level for your chats: never, on_write or always. Only you can change it, and only in Uru can you lower it.", "rules", "level_set", "write"), levelOutputSchema),
6346
+ withOutputSchema(op("rules.get", "rules", "Read the tool rules of an Agent, your own rules, or the workspace rules: the mode of an Agent and its Not allowed, Allowed and Ask first lists, each rule as an app and an action with its plain name.", "rules_query", "get", "read"), rulesOutputSchema),
6347
+ withOutputSchema(op("rules.set_mode", "rules", "Change the tool mode of an Agent: all (every tool of the person who runs it), all_except (every tool but the Not allowed list) or only_these (only the Allowed list). Rules the new mode does not keep go away.", "rules", "set_mode", "write"), rulesOutputSchema),
6348
+ withOutputSchema(op("rules.add", "rules", "Add rules to one list of an Agent, your own rules or the workspace rules: not_allowed, allowed or ask_first. A rule is an app and an action, or every action of the app.", "rules", "add", "write"), rulesOutputSchema),
6349
+ withOutputSchema(op("rules.viewer_accounts_set", "rules", `Turn the workspace rule "Members and visitors can use their own accounts in Gems" on (allowed true) or off (allowed false). It covers every app and custom MCP server. Off stops new connects and new Gem calls on people's own accounts at once; a call already sent finishes. Only a workspace admin changes it, and only in Uru can it be turned on.`, "rules", "viewer_accounts_set", "write"), rulesOutputSchema),
6350
+ withOutputSchema(op("rules.remove", "rules", "Remove rules from one list of an Agent, your own rules or the workspace rules.", "rules", "remove", "write"), rulesOutputSchema)
6224
6351
  ];
6225
6352
  return returned;
6226
6353
  }
6227
6354
 
6355
+ // ../../packages/platform-operations/src/operation_groups_brand.ts
6356
+ var brandOutputSchema = {
6357
+ type: "object",
6358
+ additionalProperties: true,
6359
+ properties: {
6360
+ is_set: { type: "boolean" },
6361
+ display_name: { type: ["string", "null"] },
6362
+ workspace_name: { type: "string" },
6363
+ colors: { type: "object", additionalProperties: { type: "string" } },
6364
+ heading_font: { type: "string", enum: ["sans", "serif", "mono"] },
6365
+ corners: { type: "string", enum: ["square", "soft", "round"] },
6366
+ voice: { type: ["string", "null"] },
6367
+ has_logo: { type: "boolean" },
6368
+ revision: { type: "integer", minimum: 0 },
6369
+ can_edit: { type: "boolean" },
6370
+ message: { type: "string" }
6371
+ }
6372
+ };
6373
+ var designCheckOutputSchema = {
6374
+ type: "object",
6375
+ additionalProperties: true,
6376
+ properties: {
6377
+ warnings: { type: "integer", minimum: 0 },
6378
+ checked_files: { type: "integer", minimum: 0 },
6379
+ items: {
6380
+ type: "array",
6381
+ items: {
6382
+ type: "object",
6383
+ additionalProperties: true,
6384
+ properties: {
6385
+ rule: { type: "string" },
6386
+ status: { type: "string", enum: ["pass", "warning"] },
6387
+ title: { type: "string" },
6388
+ detail: { type: "string" },
6389
+ fix: { type: ["object", "null"], additionalProperties: true }
6390
+ },
6391
+ required: ["rule", "status", "title", "detail", "fix"]
6392
+ }
6393
+ },
6394
+ message: { type: "string" }
6395
+ }
6396
+ };
6397
+ function buildBrandOperations(op) {
6398
+ return [
6399
+ withOutputSchema(op("workspace.brand_get", "workspace", "Read the workspace brand: name, colors, heading font, corners, voice and whether it has a logo.", "brand_query", "get", "read"), brandOutputSchema),
6400
+ withOutputSchema(op("workspace.brand_check", "workspace", "Run the design check on the workspace brand: text contrast of its colors and a logo. Each result names its rule and a fix.", "brand_query", "check", "read"), designCheckOutputSchema),
6401
+ withOutputSchema(op("workspace.brand_gem_check", "workspace", "Run the design check on one Gem's source against the workspace brand: colors outside the brand, hard to read text, brand and logo not used. A fix is a request that makes a Draft.", "brand_query", "gem_check", "read"), designCheckOutputSchema),
6402
+ withOutputSchema(op("workspace.brand_set", "workspace", "Change the workspace brand. Workspace Owners and Admins only. Fields you leave out keep their value. New Gems and the next Publish of a Gem take the change; a live Gem never changes by itself.", "brand", "update", "write"), brandOutputSchema)
6403
+ ];
6404
+ }
6405
+
6406
+ // ../../packages/platform-operations/src/operation_groups_workspace_tables.ts
6407
+ var rowsOutputSchema = {
6408
+ type: "object",
6409
+ additionalProperties: false,
6410
+ properties: {
6411
+ rows: { type: "array", items: { type: "object", additionalProperties: true } },
6412
+ count: { type: "integer", minimum: 0 }
6413
+ },
6414
+ required: ["rows", "count"]
6415
+ };
6416
+ var countOutputSchema = {
6417
+ type: "object",
6418
+ additionalProperties: false,
6419
+ properties: { count: { type: "integer", minimum: 0 } },
6420
+ required: ["count"]
6421
+ };
6422
+ function buildWorkspaceTablesOperations(op) {
6423
+ return [
6424
+ withOutputSchema(op("workspace.tables_read", "workspace", "Read rows of one workspace table with typed conditions, an order and a limit. Row rules decide which rows you see.", "workspace_tables_query", "read", "read"), rowsOutputSchema),
6425
+ withOutputSchema(op("workspace.tables_insert", "workspace", "Insert up to 100 rows into one workspace table. Asks first unless your asking level is never ask; row rules decide whether it may run.", "workspace_tables", "insert", "write"), countOutputSchema),
6426
+ withOutputSchema(op("workspace.tables_update", "workspace", "Change the rows of one workspace table that match at least one condition. Asks first unless your asking level is never ask. Answers how many rows changed.", "workspace_tables", "update", "write"), countOutputSchema),
6427
+ withOutputSchema(op("workspace.tables_delete", "workspace", "Delete the rows of one workspace table that match at least one condition. Asks first unless your asking level is never ask. Only a backup brings the rows back.", "workspace_tables", "delete", "destructive"), countOutputSchema)
6428
+ ];
6429
+ }
6430
+
6431
+ // ../../packages/platform-operations/src/operation_groups_gem_owner.ts
6432
+ var settingsSchema = {
6433
+ type: "object",
6434
+ additionalProperties: true,
6435
+ properties: {
6436
+ whoCanJoin: { type: "string", enum: ["invited", "domain", "anyone"] },
6437
+ domains: { type: "array", items: { type: "string" } },
6438
+ defaultRole: { type: ["string", "null"] },
6439
+ providersOff: { type: "array", items: { type: "string" } },
6440
+ googleApp: { type: "string", enum: ["uru", "workspace"] }
6441
+ }
6442
+ };
6443
+ var settingsViewOutputSchema = {
6444
+ type: "object",
6445
+ additionalProperties: true,
6446
+ properties: {
6447
+ settings: settingsSchema,
6448
+ anyoneAvailable: { type: "boolean" },
6449
+ google: { type: "object", additionalProperties: true }
6450
+ }
6451
+ };
6452
+ var personSchema = {
6453
+ type: "object",
6454
+ additionalProperties: true,
6455
+ properties: {
6456
+ id: { type: "string" },
6457
+ email: { type: "string" },
6458
+ status: { type: "string", enum: ["active", "removed", "blocked"] },
6459
+ gemRole: { type: ["string", "null"] },
6460
+ joinedVia: { type: ["string", "null"] },
6461
+ lastSignedInAt: { type: ["string", "null"] },
6462
+ createdAt: { type: "string" }
6463
+ }
6464
+ };
6465
+ var peopleOutputSchema = {
6466
+ type: "object",
6467
+ additionalProperties: true,
6468
+ properties: { people: { type: "array", items: personSchema } }
6469
+ };
6470
+ var personOutputSchema = {
6471
+ type: "object",
6472
+ additionalProperties: true,
6473
+ properties: { person: personSchema }
6474
+ };
6475
+ var googleAppOutputSchema = {
6476
+ type: "object",
6477
+ additionalProperties: true,
6478
+ properties: {
6479
+ app: { type: ["object", "null"], additionalProperties: true },
6480
+ redirectUri: { type: "string" }
6481
+ }
6482
+ };
6483
+ var removedOutputSchema = {
6484
+ type: "object",
6485
+ additionalProperties: true,
6486
+ properties: { removed: { type: "boolean" } }
6487
+ };
6488
+ var movePlanOutputSchema = {
6489
+ type: "object",
6490
+ additionalProperties: true,
6491
+ properties: {
6492
+ mode: { type: "string", enum: ["plan"] },
6493
+ plans: { type: "array", items: { type: "object", additionalProperties: true } }
6494
+ }
6495
+ };
6496
+ var moveUndoOutputSchema = {
6497
+ type: "object",
6498
+ additionalProperties: true,
6499
+ properties: {
6500
+ mode: { type: "string", enum: ["undo"] },
6501
+ move: { type: "object", additionalProperties: true }
6502
+ }
6503
+ };
6504
+ function buildGemOwnerOperations(op) {
6505
+ return [
6506
+ withOutputSchema(op("workspace.gem_sign_in_settings", "workspace", "Read who can join a Gem's own sign-in (invited, domain or anyone), the email domains, the default role, the providers turned off and the Google app the Gem uses. Owner or editor of the Gem.", "gem_sign_in", "settings", "read"), settingsViewOutputSchema),
6507
+ withOutputSchema(op("workspace.gem_sign_in_settings_set", "workspace", "Change who can join a Gem's own sign-in, the email domains, the default role, the providers turned off or the Google app. Only the settings you send change. Owner or editor of the Gem.", "gem_sign_in", "settings_set", "write"), settingsViewOutputSchema),
6508
+ withOutputSchema(op("workspace.gem_sign_in_people", "workspace", "List the people of a Gem's own sign-in, newest first, with their state and Gem role. Owner or editor of the Gem.", "gem_sign_in", "people_list", "read"), peopleOutputSchema),
6509
+ withOutputSchema(op("workspace.gem_sign_in_person_invite", "workspace", "Put an email address on a Gem's sign-in list, with a Gem role. Owner or editor of the Gem.", "gem_sign_in", "person_invite", "write"), personOutputSchema),
6510
+ withOutputSchema(op("workspace.gem_sign_in_person_remove", "workspace", "Remove a person from a Gem's sign-in, or block them with block true. Every session of the person ends at once. Owner or editor of the Gem.", "gem_sign_in", "person_remove", "destructive"), personOutputSchema),
6511
+ withOutputSchema(op("workspace.gem_sign_in_person_restore", "workspace", "Let a removed or blocked person sign in to a Gem again. Owner or editor of the Gem.", "gem_sign_in", "person_restore", "write"), personOutputSchema),
6512
+ withOutputSchema(op("workspace.gem_google_app", "workspace", "Read the workspace's own Google sign-in app for its Gems: the client id and the redirect URI to register, never its secret. Workspace Owners and Admins. Set it with uru gems sign-in google-app set, which reads the secret from standard input.", "gem_sign_in", "google_app", "read"), googleAppOutputSchema),
6513
+ withOutputSchema(op("workspace.gem_google_app_remove", "workspace", "Remove the workspace's own Google sign-in app. Gems that use it can no longer sign people in with Google. Workspace Owners and Admins.", "gem_sign_in", "google_app_remove", "destructive"), removedOutputSchema),
6514
+ withOutputSchema(op("workspace.gem_outside_db_move_plan", "workspace", "A dry run of the move of a Gem off its old outside-database paths onto a read-only outside Postgres connection: what would move, what each path still needs and what blocks it. It changes nothing. Apply with uru gems outside-db move apply, which reads the password from URU_OUTSIDE_DB_PASSWORD. Editor of the Gem, from your own sign-in.", "gem_outside_databases", "move_plan", "read"), movePlanOutputSchema),
6515
+ withOutputSchema(op("workspace.gem_outside_db_move_undo", "workspace", "Take out the outside database connection that a move made (move_id from workspace.gem_outside_db_move_plan). Gem code that reads it stops working. Editor of the Gem, from your own sign-in.", "gem_outside_databases", "move_undo", "destructive"), moveUndoOutputSchema)
6516
+ ];
6517
+ }
6518
+
6228
6519
  // ../../packages/platform-operations/src/operation_groups_connections.ts
6229
- var CONNECTIONS_ACCESS_OPS = [
6520
+ var CONNECTIONS_ACCOUNT_ACCESS_OPS = [
6230
6521
  "offer_answer",
6231
6522
  "workspace_actions_set",
6232
6523
  "adopt",
6233
6524
  "adoption_withdraw",
6234
6525
  "adoption_answer",
6235
- "adoption_revoke",
6236
- "gem_tool_ask",
6237
- "gem_tool_answer"
6526
+ "adoption_revoke"
6238
6527
  ];
6528
+ var CONNECTIONS_GEM_TOOL_OPS = ["gem_tool_offer", "gem_tool_ask", "gem_tool_answer"];
6529
+ var CONNECTIONS_ACCESS_OPS = [...CONNECTIONS_ACCOUNT_ACCESS_OPS, ...CONNECTIONS_GEM_TOOL_OPS];
6239
6530
  var CONNECTIONS_WRITE_OPS = [
6240
6531
  "connect",
6241
6532
  "connector_add",
@@ -6244,6 +6535,7 @@ var CONNECTIONS_WRITE_OPS = [
6244
6535
  "disconnect",
6245
6536
  "offer",
6246
6537
  "offer_withdraw",
6538
+ "connect_ask",
6247
6539
  ...CONNECTIONS_ACCESS_OPS
6248
6540
  ];
6249
6541
  var CONNECTIONS_PERSON_ONLY_OPS = [
@@ -6251,7 +6543,8 @@ var CONNECTIONS_PERSON_ONLY_OPS = [
6251
6543
  "actions_set",
6252
6544
  "offer",
6253
6545
  "offer_withdraw",
6254
- ...CONNECTIONS_ACCESS_OPS
6546
+ "connect_ask",
6547
+ ...CONNECTIONS_ACCOUNT_ACCESS_OPS
6255
6548
  ];
6256
6549
  var text3 = { type: "string" };
6257
6550
  var nullableText3 = { type: ["string", "null"] };
@@ -6332,7 +6625,15 @@ var writeOutputSchema2 = object4({
6332
6625
  gem_title: text3,
6333
6626
  requests: { type: "array", items: gemToolRow },
6334
6627
  outcome: text3,
6335
- state: text3
6628
+ state: text3,
6629
+ status: { type: ["string", "null"], enum: ["approved", "waiting", "rejected", "withdrawn", "revoked", null] },
6630
+ waiting_for: { type: ["string", "null"], enum: ["workspace_admin", "gem_owner", null] },
6631
+ tool: text3,
6632
+ name: nullableText3,
6633
+ definition: nullableText3,
6634
+ changed: { type: ["object", "null"], additionalProperties: true },
6635
+ person: object4({ user_id: text3, name: text3 }, ["user_id", "name"]),
6636
+ asked_at: text3
6336
6637
  }, ["message"]);
6337
6638
  function buildConnectionsOperations(op) {
6338
6639
  const returned = [
@@ -6347,12 +6648,14 @@ function buildConnectionsOperations(op) {
6347
6648
  withOutputSchema(op("connections.offer_withdraw", "connections", "Take back the offer of one of your accounts. People who use it lose it. Only a signed-in person can do this.", "connections", "offer_withdraw", "write"), writeOutputSchema2),
6348
6649
  withOutputSchema(op("connections.offer_answer", "connections", "Approve or reject an account a person offered to this workspace. Only a workspace admin or owner can do this, and only a signed-in person.", "connections", "offer_answer", "write"), writeOutputSchema2),
6349
6650
  withOutputSchema(op("connections.workspace_actions_set", "connections", "Set which actions of an offered account people in this workspace may use, and which actions nobody may use. Only a workspace admin or owner can do this, and only a signed-in person.", "connections", "workspace_actions_set", "write"), writeOutputSchema2),
6350
- withOutputSchema(op("connections.adopt", "connections", "Ask to use an account another person offered to this workspace. An admin approves, then you can use it in every chat. Only a signed-in person can do this.", "connections", "adopt", "write"), writeOutputSchema2),
6651
+ withOutputSchema(op("connections.adopt", "connections", "Ask to use an account another person offered to this workspace. An admin approves, then you can use it in every chat: until then the answer is status waiting, waiting_for workspace_admin. Only a signed-in person can do this.", "connections", "adopt", "write"), writeOutputSchema2),
6351
6652
  withOutputSchema(op("connections.adoption_withdraw", "connections", "Take back your own ask to use an offered account, or stop using it. Only a signed-in person can do this.", "connections", "adoption_withdraw", "write"), writeOutputSchema2),
6352
6653
  withOutputSchema(op("connections.adoption_answer", "connections", "Approve or reject a person's ask to use an offered account. Only a workspace admin or owner can do this, and only a signed-in person.", "connections", "adoption_answer", "write"), writeOutputSchema2),
6353
6654
  withOutputSchema(op("connections.adoption_revoke", "connections", "End one person's use of an offered account. That person withdraws it, or a workspace admin revokes it. Only a signed-in person can do this.", "connections", "adoption_revoke", "destructive"), writeOutputSchema2),
6354
- withOutputSchema(op("connections.gem_tool_ask", "connections", "Ask the owner of a Gem to let you use one of its offered tasks as a tool in this workspace. Only a signed-in person can do this.", "connections", "gem_tool_ask", "write"), writeOutputSchema2),
6355
- withOutputSchema(op("connections.gem_tool_answer", "connections", "Approve or block a person's ask to use a task of your Gem as a tool. Only the Gem owner can do this, and only a signed-in person.", "connections", "gem_tool_answer", "write"), writeOutputSchema2)
6655
+ withOutputSchema(op("connections.gem_tool_offer", "connections", "Offer a task of your Gem as a tool, so people the Gem is shared with can ask to use it, or stop offering it (offered: false). Without its definition nothing is offered: the answer is status waiting, waiting_for gem_owner, with the task, its current definition and, for a task that is offered and changed, what changed. Show the person the task, then send that definition to confirm it. Only the Gem owner can do this, and only a signed-in person.", "connections", "gem_tool_offer", "write"), writeOutputSchema2),
6656
+ withOutputSchema(op("connections.gem_tool_ask", "connections", "Ask the owner of a Gem to let you use one of its offered tasks as a tool in this workspace. Until the owner answers, the answer is status waiting, waiting_for gem_owner. Only a signed-in person can do this.", "connections", "gem_tool_ask", "write"), writeOutputSchema2),
6657
+ withOutputSchema(op("connections.gem_tool_answer", "connections", "Approve or block a person's ask to use a task of your Gem as a tool. Only the Gem owner can do this, and only a signed-in person.", "connections", "gem_tool_answer", "write"), writeOutputSchema2),
6658
+ withOutputSchema(op("connections.connect_ask", "connections", "Ask a member of this workspace to connect an app in Uru. They get an Uru notice with a link to connect their own account. It gives no one access to anything. Only a signed-in person can do this.", "connections", "connect_ask", "write"), writeOutputSchema2)
6356
6659
  ];
6357
6660
  return returned;
6358
6661
  }
@@ -6472,6 +6775,100 @@ var workspaceMembersOutputSchema = {
6472
6775
  count: { type: "integer" }
6473
6776
  }
6474
6777
  };
6778
+ var organizationInstructionsOutputSchema = {
6779
+ type: "object",
6780
+ additionalProperties: false,
6781
+ required: [
6782
+ "organizationId",
6783
+ "organizationName",
6784
+ "text",
6785
+ "versionId",
6786
+ "updatedAt",
6787
+ "layerOrder",
6788
+ "editPath",
6789
+ "editNote"
6790
+ ],
6791
+ properties: {
6792
+ organizationId: { type: "string" },
6793
+ organizationName: { type: "string" },
6794
+ text: { type: "string" },
6795
+ versionId: { type: ["string", "null"] },
6796
+ updatedAt: { type: ["string", "null"] },
6797
+ layerOrder: { type: "array", items: { type: "string" } },
6798
+ editPath: { type: "string" },
6799
+ editNote: { type: "string" }
6800
+ }
6801
+ };
6802
+ var workspaceLeaverAccessOutputSchema = {
6803
+ type: "object",
6804
+ additionalProperties: false,
6805
+ required: ["items", "automations", "allItems"],
6806
+ properties: {
6807
+ items: {
6808
+ type: "array",
6809
+ items: {
6810
+ type: "object",
6811
+ additionalProperties: false,
6812
+ required: ["kind", "gemId", "gemTitle", "binding", "leaver", "mustAct"],
6813
+ properties: {
6814
+ kind: { type: "string", enum: ["gem_owner_left", "binding_binder_left"] },
6815
+ gemId: { type: "string" },
6816
+ gemTitle: { type: "string" },
6817
+ binding: {
6818
+ type: ["object", "null"],
6819
+ additionalProperties: false,
6820
+ properties: {
6821
+ id: { type: "string" },
6822
+ kind: { type: "string" },
6823
+ name: { type: "string" }
6824
+ }
6825
+ },
6826
+ leaver: {
6827
+ type: "object",
6828
+ additionalProperties: false,
6829
+ required: ["userId", "name"],
6830
+ properties: {
6831
+ userId: { type: "string" },
6832
+ name: { type: ["string", "null"] }
6833
+ }
6834
+ },
6835
+ mustAct: {
6836
+ type: "object",
6837
+ additionalProperties: false,
6838
+ required: ["who", "userId", "name"],
6839
+ properties: {
6840
+ who: { type: "string", enum: ["gem_owner", "workspace_admins"] },
6841
+ userId: { type: ["string", "null"] },
6842
+ name: { type: ["string", "null"] }
6843
+ }
6844
+ }
6845
+ }
6846
+ }
6847
+ },
6848
+ automations: {
6849
+ type: "array",
6850
+ items: {
6851
+ type: "object",
6852
+ additionalProperties: false,
6853
+ required: ["kind", "automationId", "leaver"],
6854
+ properties: {
6855
+ kind: { type: "string", enum: ["automation_owner_left"] },
6856
+ automationId: { type: "string" },
6857
+ leaver: {
6858
+ type: "object",
6859
+ additionalProperties: false,
6860
+ required: ["userId", "name"],
6861
+ properties: {
6862
+ userId: { type: "string" },
6863
+ name: { type: ["string", "null"] }
6864
+ }
6865
+ }
6866
+ }
6867
+ }
6868
+ },
6869
+ allItems: { type: "boolean" }
6870
+ }
6871
+ };
6475
6872
  var listWorkspaceTeamsOutputSchema = {
6476
6873
  type: "object",
6477
6874
  additionalProperties: true,
@@ -6775,6 +7172,111 @@ var webAccessTakeBackOutputSchema = {
6775
7172
  },
6776
7173
  required: ["thread_id", "host", "taken_back", "message"]
6777
7174
  };
7175
+ var setupInvitationSchema = {
7176
+ type: "object",
7177
+ additionalProperties: false,
7178
+ required: ["email", "role"],
7179
+ properties: {
7180
+ email: { type: "string" },
7181
+ role: { type: "string", enum: ["admin", "member", "viewer"] }
7182
+ }
7183
+ };
7184
+ var workspaceSetupLinkOutputSchema = {
7185
+ type: "object",
7186
+ additionalProperties: true,
7187
+ properties: {
7188
+ kind: { type: "string", enum: ["create", "invite", "client"] },
7189
+ url: { type: "string" },
7190
+ organization_id: { type: "string" },
7191
+ workspace_id: { type: "string" },
7192
+ name: { type: "string" },
7193
+ invitations: { type: "array", items: setupInvitationSchema },
7194
+ gem_ids: { type: "array", items: { type: "string" } },
7195
+ builder_sign_in: { type: "string" },
7196
+ note: { type: "string" }
7197
+ }
7198
+ };
7199
+ var workspaceHandOverPlanOutputSchema = {
7200
+ type: "object",
7201
+ additionalProperties: true,
7202
+ properties: {
7203
+ person: { type: "object", additionalProperties: true },
7204
+ items: {
7205
+ type: "array",
7206
+ items: {
7207
+ type: "object",
7208
+ additionalProperties: true,
7209
+ required: ["itemId", "kind", "name", "ownerless"],
7210
+ properties: {
7211
+ itemId: { type: "string" },
7212
+ kind: { type: "string" },
7213
+ name: { type: "string" },
7214
+ ownerless: { type: "boolean" },
7215
+ parentFolderId: { type: ["string", "null"] }
7216
+ }
7217
+ }
7218
+ },
7219
+ bindings: { type: "array", items: { type: "object", additionalProperties: true } },
7220
+ personalConnectionCount: { type: "integer" },
7221
+ takers: { type: "array", items: { type: "object", additionalProperties: true } },
7222
+ note: { type: "string" }
7223
+ }
7224
+ };
7225
+ var workspaceHandOverLinkOutputSchema = {
7226
+ type: "object",
7227
+ additionalProperties: true,
7228
+ properties: {
7229
+ url: { type: "string" },
7230
+ person_user_id: { type: "string" },
7231
+ assignments: { type: "array", items: { type: "object", additionalProperties: true } },
7232
+ remains: { type: "integer" },
7233
+ note: { type: "string" }
7234
+ }
7235
+ };
7236
+ var workspaceAuditOutputSchema = {
7237
+ type: "object",
7238
+ additionalProperties: true,
7239
+ properties: {
7240
+ workspaces: { type: "array", items: openObjectSchema },
7241
+ auditors: { type: "array", items: openObjectSchema },
7242
+ entries: { type: "array", items: openObjectSchema },
7243
+ members: { type: "array", items: openObjectSchema },
7244
+ status: { type: "string", enum: ["confirm_on_screen"] },
7245
+ url: { type: "string" }
7246
+ }
7247
+ };
7248
+ var gemServiceBindingViewProperties = {
7249
+ id: { type: "string" },
7250
+ artifactId: { type: "string" },
7251
+ gemTitle: { type: ["string", "null"] },
7252
+ slot: { type: "string" },
7253
+ connectionId: { type: "string" },
7254
+ grant: { type: "string", enum: ["workspace", "named_admin"] },
7255
+ approvedBy: {
7256
+ type: "object",
7257
+ additionalProperties: false,
7258
+ properties: { userId: { type: ["string", "null"] }, name: { type: ["string", "null"] } }
7259
+ },
7260
+ approvedAt: { type: "string" },
7261
+ reviewedAt: { type: "string" },
7262
+ reviewDueAt: { type: "string" },
7263
+ live: { type: "boolean" },
7264
+ stopCode: { type: ["string", "null"] },
7265
+ notice: { type: "string" }
7266
+ };
7267
+ var gemServiceBindingsOutputSchema = {
7268
+ type: "object",
7269
+ additionalProperties: false,
7270
+ properties: {
7271
+ items: {
7272
+ type: "array",
7273
+ items: { type: "object", additionalProperties: false, properties: gemServiceBindingViewProperties }
7274
+ },
7275
+ ...gemServiceBindingViewProperties,
7276
+ revoked: { type: "boolean" },
7277
+ message: { type: "string" }
7278
+ }
7279
+ };
6778
7280
 
6779
7281
  // ../../packages/platform-operations/src/operation_groups_notifications.ts
6780
7282
  function buildNotificationOperations(op) {
@@ -6834,6 +7336,19 @@ function buildSkillOperations(op) {
6834
7336
  ];
6835
7337
  }
6836
7338
 
7339
+ // ../../packages/platform-operations/src/operation_groups_workspace_audit.ts
7340
+ function buildWorkspaceAuditOperations(op) {
7341
+ return [
7342
+ withOutputSchema(op("workspace.audit_workspaces", "workspace", "List the workspaces where you hold the Auditor role.", "workspace_audit", "workspaces", "read"), workspaceAuditOutputSchema),
7343
+ withOutputSchema(op("workspace.audit_settings", "workspace", "Read a workspace's settings, read-only, as its Auditor, Owner or Admin. No secret value.", "workspace_audit", "settings", "read"), workspaceAuditOutputSchema),
7344
+ withOutputSchema(op("workspace.audit_activity", "workspace", "Read a workspace's activity record (who did what and when), as its Auditor, Owner or Admin.", "workspace_audit", "activity", "read"), workspaceAuditOutputSchema),
7345
+ withOutputSchema(op("workspace.auditors_list", "workspace", "List a workspace's Auditors.", "workspace_audit", "auditors", "read"), workspaceAuditOutputSchema),
7346
+ withOutputSchema(op("workspace.auditor_add", "workspace", "Prepare to give a person the Auditor role. Changes nothing: answers the Uru screen link where a signed-in Owner or Admin confirms it.", "workspace_audit", "add_auditor", "read"), workspaceAuditOutputSchema),
7347
+ withOutputSchema(op("workspace.outside_visitors", "workspace", "Read a workspace's outside visitor count (people who are not members and signed in to its Gems) and its free limit while the limit is on, as its Auditor, Owner or Admin.", "workspace_audit", "outside_visitors", "read"), workspaceAuditOutputSchema),
7348
+ withOutputSchema(op("workspace.auditor_remove", "workspace", "Prepare to remove the Auditor role. Changes nothing: answers the Uru screen link where a signed-in Owner or Admin confirms it.", "workspace_audit", "remove_auditor", "read"), workspaceAuditOutputSchema)
7349
+ ];
7350
+ }
7351
+
6837
7352
  // ../../packages/platform-operations/src/output_schemas_reach.ts
6838
7353
  var openObject2 = { type: "object", additionalProperties: true };
6839
7354
  var openObjectList2 = { type: "array", items: openObject2 };
@@ -7264,6 +7779,16 @@ var GEM_OPERATION_INPUT_FIELDS = {
7264
7779
  "app_directory"
7265
7780
  ],
7266
7781
  git_source_copy: [...GEM_TARGET],
7782
+ copy: [...GEM_TARGET, "source_revision_id", "target_workspace_id", "datasets", "idempotency_key"],
7783
+ mold_create: [...GEM_TARGET, "version_id", "title", "parts", "idempotency_key"],
7784
+ mold_version_add: ["mold_id", "version_id", "parts", "idempotency_key"],
7785
+ mold_control: ["mold_id", "mold_action"],
7786
+ mold_version_control: ["mold_version_id", "mold_action"],
7787
+ pour: ["mold_version_id", "idempotency_key"],
7788
+ pour_built_in: ["built_in_mold", "path"],
7789
+ pour_unlink: [...GEM_TARGET],
7790
+ pour_fill: [...GEM_TARGET, "values", "base_source_revision_id"],
7791
+ pour_parts_set: [...GEM_TARGET, "parts", "expected_parts_hash"],
7267
7792
  fs_write: [...GEM_TARGET, "content", "content_base64", "create", "entrypoint", ...GEM_SOURCE_WITNESS],
7268
7793
  fs_batch_write: [...GEM_TARGET, "files", ...GEM_SOURCE_WITNESS],
7269
7794
  fs_sync: [...GEM_TARGET, "files", "delete_paths", "upload_id", ...GEM_SOURCE_WITNESS],
@@ -7310,6 +7835,7 @@ var GEM_OPERATION_INPUT_FIELDS = {
7310
7835
  "files",
7311
7836
  ...GEM_SOURCE_WITNESS,
7312
7837
  "force",
7838
+ "move_jobs",
7313
7839
  "name",
7314
7840
  "message",
7315
7841
  "tags",
@@ -7335,6 +7861,7 @@ var GEM_OPERATION_INPUT_FIELDS = {
7335
7861
  "allow_actions",
7336
7862
  "explicit_tool_action_regrant"
7337
7863
  ],
7864
+ binding_preset: [...GEM_TARGET, "source_ref", "reads_only"],
7338
7865
  resolve_safe_bindings: [...GEM_TARGET, "build_id"],
7339
7866
  store_secret: [...GEM_TARGET, "secret_name", "secret_value", "metadata"],
7340
7867
  delete_secret: [...GEM_TARGET, "secret_name", "metadata"],
@@ -7353,6 +7880,7 @@ var GEM_OPERATION_INPUT_FIELDS = {
7353
7880
  ...GEM_MUTATION_IDEMPOTENCY_FIELDS.public_tool_delegation_revoke
7354
7881
  ],
7355
7882
  run_recover: [...GEM_TARGET, "run_id", "plan_token"],
7883
+ data_restore: [...GEM_TARGET, "at", "plan_token", "idempotency_key"],
7356
7884
  run_cancel: [...GEM_TARGET, "run_id"],
7357
7885
  runtime_stop: [...GEM_TARGET],
7358
7886
  runtime_start: [...GEM_TARGET],
@@ -7369,6 +7897,8 @@ var GEM_OPERATION_INPUT_FIELDS = {
7369
7897
  schedule_pause: [...GEM_TARGET, "capability_name"],
7370
7898
  schedule_resume: [...GEM_TARGET, "capability_name"],
7371
7899
  schedule_target_set: [...GEM_TARGET, "capability_name", "release_id", "expected_deployment_id"],
7900
+ schedule_follow_gem: [...GEM_TARGET, "capability_name"],
7901
+ event_target_follow_gem: [...GEM_TARGET, "capability_name", "event_type"],
7372
7902
  schedule_run_now: [...GEM_TARGET, ...GEM_MUTATION_IDEMPOTENCY_FIELDS.schedule_run_now],
7373
7903
  event_target_update: [...GEM_TARGET, "target_id", "state", "input"],
7374
7904
  event_target_release_set: [
@@ -7382,11 +7912,17 @@ var GEM_OPERATION_INPUT_FIELDS = {
7382
7912
  domains_set: [...GEM_TARGET, "hostname"],
7383
7913
  domains_check: [...GEM_TARGET, "app_domain_id"],
7384
7914
  domains_delete: [...GEM_TARGET, "app_domain_id"],
7915
+ domains_set_primary: [...GEM_TARGET, "hostname"],
7385
7916
  call_action: [...GEM_TARGET, "capability_name", "input", "idempotency_key", "deployment_id"],
7386
7917
  job_start: [...GEM_TARGET, "capability_name", "input", "idempotency_key", "deployment_id"],
7387
7918
  job_cancel: [...GEM_TARGET, "execution_id", "deployment_id", "idempotency_key"],
7388
7919
  storage_shared_delete: [...GEM_TARGET, "key"],
7389
- storage_shared_clear: [...GEM_TARGET]
7920
+ storage_shared_clear: [...GEM_TARGET],
7921
+ notices_set: [...GEM_TARGET, "muted"],
7922
+ notice_test: [...GEM_TARGET],
7923
+ visitor_data_run: [...GEM_TARGET, "request_id", "keep_dataset_ids"],
7924
+ visitor_data_refuse: [...GEM_TARGET, "request_id", "note"],
7925
+ address_set: [...GEM_TARGET, "label"]
7390
7926
  },
7391
7927
  gem_query: {
7392
7928
  git_source_connections_list: ["page", "detail"],
@@ -7395,10 +7931,18 @@ var GEM_OPERATION_INPUT_FIELDS = {
7395
7931
  git_source_status: [...GEM_QUERY_TARGET],
7396
7932
  git_source_preview_inspect: [...GEM_QUERY_TARGET, "preview_id", "head_sha"],
7397
7933
  git_source_preview_open: [...GEM_QUERY_TARGET, "preview_id"],
7934
+ copy_plan: [...GEM_QUERY_TARGET, "source_revision_id", "target_workspace_id"],
7935
+ copy_origin: [...GEM_QUERY_TARGET],
7936
+ mold_list: ["detail"],
7937
+ pour_list: ["detail"],
7938
+ mold_state: [...GEM_QUERY_TARGET],
7939
+ mold_part_find: [...GEM_QUERY_TARGET, "sample"],
7940
+ pour_values: [...GEM_QUERY_TARGET],
7398
7941
  inspect: [...GEM_QUERY_TARGET, "build_id", "limit", "include_binding_choices"],
7399
7942
  fs_tree: [...GEM_QUERY_TARGET, "recursive", "source_revision_id"],
7400
7943
  fs_read: [...GEM_QUERY_TARGET, "source_revision_id", "offset", "limit"],
7401
7944
  fs_patch_preview: [...GEM_QUERY_TARGET, "file_path", "patch"],
7945
+ bindings: [...GEM_QUERY_TARGET],
7402
7946
  fs_status: [...GEM_QUERY_TARGET, "base", "paths"],
7403
7947
  fs_diff: [...GEM_QUERY_TARGET, "base", "mode", "paths", "patch_byte_limit"],
7404
7948
  validate: [...GEM_QUERY_TARGET],
@@ -7436,6 +7980,7 @@ var GEM_OPERATION_INPUT_FIELDS = {
7436
7980
  ],
7437
7981
  logs: [
7438
7982
  ...GEM_QUERY_TARGET,
7983
+ "kind",
7439
7984
  "cursor",
7440
7985
  "limit",
7441
7986
  "deployment_id",
@@ -7449,6 +7994,7 @@ var GEM_OPERATION_INPUT_FIELDS = {
7449
7994
  runs_list: [...GEM_QUERY_TARGET, "limit", "cursor", "status", "version_id"],
7450
7995
  run_get: [...GEM_QUERY_TARGET, "run_id"],
7451
7996
  run_recovery_preview: [...GEM_QUERY_TARGET, "run_id"],
7997
+ data_restore_plan: [...GEM_QUERY_TARGET, "at"],
7452
7998
  capabilities_list: [...GEM_QUERY_TARGET, "deployment_id", "build_id", "limit"],
7453
7999
  schedules_list: [...GEM_QUERY_TARGET, "release_id"],
7454
8000
  event_targets_list: [...GEM_QUERY_TARGET, "release_id"],
@@ -7460,7 +8006,10 @@ var GEM_OPERATION_INPUT_FIELDS = {
7460
8006
  job_status: [...GEM_QUERY_TARGET, "deployment_id", "execution_id"],
7461
8007
  storage_usage: [...GEM_QUERY_TARGET],
7462
8008
  storage_shared_list: [...GEM_QUERY_TARGET, "prefix", "cursor", "limit"],
7463
- storage_shared_get: [...GEM_QUERY_TARGET, "key"]
8009
+ storage_shared_get: [...GEM_QUERY_TARGET, "key"],
8010
+ notices_get: [...GEM_QUERY_TARGET],
8011
+ visitor_data_requests: [...GEM_QUERY_TARGET],
8012
+ address_show: [...GEM_QUERY_TARGET]
7464
8013
  }
7465
8014
  };
7466
8015
  function buildGemOperations(op) {
@@ -7475,9 +8024,31 @@ function buildGemOperations(op) {
7475
8024
  op("gems.git_source_status", "gems", "Read Git source binding, policy, import, preview, and allowed-action state for a Gem.", "gem_query", "git_source_status", "read"),
7476
8025
  op("gems.git_source_command", "gems", "Apply a bounded Git source command such as refresh, retry, policy change, publish, or preview approval.", "gem_control_plane", "git_source_command", "write"),
7477
8026
  op("gems.git_source_copy", "gems", "Make a new, unlinked, editable Gem from a GitHub-linked Gem's latest saved Version. The copy carries no Shares, secrets, tool grants, schedules or Git binding.", "gem_control_plane", "git_source_copy", "write"),
8027
+ op("gems.copy", "gems", "Make a private copy of a Gem from one exact saved state: Current or a named Version source. It records where the copy began, lands in the same workspace or an approved one of the same Org, and gives each Dataset the Gem names a new empty Dataset (or a matching one you choose). It carries no rows, bindings, secrets, accounts, Shares, people or chat. A retry with the same idempotency_key returns the first copy.", "gem_control_plane", "copy", "write"),
8028
+ op("gems.copy_plan", "gems", "Show what a copy of a Gem would do: the exact source revision, the approved target workspaces, and each Dataset with the Datasets it may map to.", "gem_query", "copy_plan", "read"),
8029
+ op("gems.copy_origin", "gems", 'Show where a Gem was copied from: the source and its Version when you may see the source, or "Unknown source" when the start is not proved.', "gem_query", "copy_origin", "read"),
8030
+ op("gems.mold_create", "gems", "Make a Mold from one saved Gem Version (version_id, with a ready build) of a Gem you own: a saved base you can make new Gems from. It freezes the exact source and files as Mold Version 1. A Gem made from a Mold cannot become a Mold yet. A retry with the same idempotency_key returns the first Mold.", "gem_control_plane", "mold_create", "write"),
8031
+ op("gems.mold_version_add", "gems", "Freeze another saved Gem Version of the Mold's Gem as the next Mold Version. A Mold Version never changes after it is frozen: a fix is a new Mold Version. It is never published.", "gem_control_plane", "mold_version_add", "write"),
8032
+ op("gems.mold_control", "gems", "Hide, show again, recall or remove one of your Molds (mold_action). Hidden and recalled Molds take no new Pours; none of these changes a Gem already made.", "gem_control_plane", "mold_control", "write"),
8033
+ op("gems.mold_version_control", "gems", "Put a Mold Version on hold, make it available again, or recall it (mold_action hold, release or recall). It changes no Gem already made.", "gem_control_plane", "mold_version_control", "write"),
8034
+ op("gems.pour", "gems", "Make one private Gem (a Pour) from one of your Mold Versions. It starts unshared and Not published, gets a new empty Dataset for each Dataset the source names, and carries no rows, bindings, secrets, accounts, Shares or people. A retry with the same idempotency_key returns the first Pour; a recalled or held Mold Version makes nothing.", "gem_control_plane", "pour", "write"),
8035
+ op("gems.pour_built_in", "gems", "Make one private Gem from a built-in Mold that Uru ships (built_in_mold, from gems.mold_list builtInMolds) at path. Each call makes one new Gem, unshared and Not published, with no link back to the built-in Mold.", "gem_control_plane", "pour_built_in", "write"),
8036
+ op("gems.pour_unlink", "gems", "Remove the link from a Pour you own to its Mold. The Pour keeps every file and Version; it only leaves the Pour list and later updates.", "gem_control_plane", "pour_unlink", "write"),
8037
+ op("gems.mold_list", "gems", "List your Molds in this workspace with their Mold Versions and states.", "gem_query", "mold_list", "read"),
8038
+ op("gems.pour_list", "gems", 'List your linked Pours in this workspace with the state of each Mold Version, and "A newer Mold Version exists" when one does. Updates are not available yet.', "gem_query", "pour_list", "read"),
8039
+ op("gems.mold_state", "gems", "Show the Mold state of one Gem: your Molds made from it, and, for a Pour, its Mold Version, link and update notice.", "gem_query", "mold_state", "read"),
8040
+ op("gems.mold_part_find", "gems", "List every file and line of a Gem you own where a sample value (a title, a color) appears, CSS and secondary files included, before you mark it as a part. It changes no code: change each place through a normal Edit.", "gem_query", "mold_part_find", "read"),
8041
+ op("gems.pour_values", "gems", "Read a Pour's own parts (id, label, type, limits, help, default, choices), its saved values in gem.values.json, what each part shows, the partsHash and the sourceRevisionId to fill on. The form only stops mistakes; the owner can still edit all code.", "gem_query", "pour_values", "read"),
8042
+ op("gems.pour_fill", "gems", "Fill a Pour's parts (values: part id to value, on base_source_revision_id). Each value is checked against the Pour's own parts, never the Mold; a recalled, hidden, removed or unlinked Mold gives the same result. It saves only gem.values.json as a normal Edit and never publishes. Bad text, colors, choices, pictures and unknown part ids are refused.", "gem_control_plane", "pour_fill", "write"),
8043
+ op("gems.pour_parts_set", "gems", "Change this Gem's parts: replace a Pour's own part definitions (parts) on the expected_parts_hash you read. The saved values must still pass. The Mold and its link never change them.", "gem_control_plane", "pour_parts_set", "write"),
7478
8044
  op("gems.git_source_preview_inspect", "gems", "Inspect the exact preview head and resource policy before approval.", "gem_query", "git_source_preview_inspect", "read"),
7479
8045
  op("gems.git_source_preview_open", "gems", "Mint an authenticated URL for a ready Git source preview.", "gem_query", "git_source_preview_open", "read"),
7480
8046
  op("gems.inspect", "gems", "Inspect Gem release readiness, bindings, secrets, and setup checks.", "gem_query", "inspect", "read"),
8047
+ op("gems.bindings", "gems", "Show a Gem's bindings in one place: each slot of its live Version with its mode (binder or viewer), whose account it uses (the Binder's name, or each viewer's own account with a count of live viewer links for an editor, never a viewer's name or id), its connection, provider and status, and each Dataset it binds with its name for an editor. The Connections tab shows the same answer.", "gem_query", "bindings", "read"),
8048
+ op("gems.row_rules_list", "gems", "List the row rules on a Gem's Dataset bindings: for each Dataset the rule kind (own_rows or field_matches), the field and the viewer attribute. Anyone who can open the Gem.", "gem_row_rules", "list", "read"),
8049
+ op("gems.row_rule_set", "gems", "Set the row rule of one Dataset a Gem binds, so each viewer reads and changes only their rows: own_rows (the field holds the viewer's Uru user id) or field_matches (the field equals the viewer's user_id, confirmed email or gem_role). The server applies it on every Gem read and write. Editors of the Gem.", "gem_row_rules", "save", "write"),
8050
+ op("gems.row_rule_remove", "gems", "Remove the row rule of one Dataset a Gem binds; every viewer sees the Dataset's rows as before. Editors of the Gem.", "gem_row_rules", "remove", "destructive"),
8051
+ op("gems.row_rule_view_as", "gems", "Show the rows of one ruled Dataset that a chosen person or Gem role sees, through the same server rule, read only. Each view is logged. Editors of the Gem.", "gem_row_rules", "view_as", "read"),
7481
8052
  op("gems.fs_tree", "gems", "List the source file tree of a Gem project directory.", "gem_query", "fs_tree", "read"),
7482
8053
  op("gems.fs_read", "gems", "Read a file from a Gem project directory.", "gem_query", "fs_read", "read"),
7483
8054
  op("gems.fs_write", "gems", "Write a file inside a Gem project directory. Send base_source_revision_id: the currentSourceRevisionId of your last read or write. A write from an old state is refused and lists the newer edits.", "gem_control_plane", "fs_write", "write"),
@@ -7507,9 +8078,10 @@ function buildGemOperations(op) {
7507
8078
  op("gems.version_preview", "gems", "Open or provision an isolated preview for one Version without changing Shares.", "gem_control_plane", "version_preview", "write"),
7508
8079
  op("gems.version_retry", "gems", "Re-queue the build of a Version that failed and never sealed a Build, keeping the same Version identity and source snapshot. Available for every Gem, whether its source is Uru or GitHub. Only a failed Version qualifies, and a build already in flight is refused.", "gem_control_plane", "version_retry", "write"),
7509
8080
  op("gems.build_logs", "gems", "Read build diagnostics for a Gem build.", "gem_query", "build_logs", "read"),
7510
- op("gems.build_job", "gems", "Read hosted compile status by hosted_job_id. Reports queued, pending, running, succeeded, failed, or expired, plus build_id when a durable Build was persisted, plus compact logs. A failed or expired compile adds failure_kind (a listed kind, or unknown) and failure_reason with kind, known, stage, reason, and next_step in plain words.", "gem_query", "build_job", "read"),
8081
+ op("gems.build_job", "gems", "Read hosted compile status by hosted_job_id. Reports queued, pending, running, succeeded, failed, or expired, plus build_id when a durable Build was persisted, plus compact logs. A failed or expired compile adds failure_kind (a listed kind, or unknown) and failure_reason with kind, known, stage, reason, and next_step in plain words. A compile that installed packages without a frozen Bun lockfile adds install_warning with code, lockfile_state, and message.", "gem_query", "build_job", "read"),
7511
8082
  op("gems.build_inspect", "gems", "Inspect a Gem runtime contract and release overview.", "gem_query", "build_inspect", "read"),
7512
8083
  op("gems.upsert_binding", "gems", "Bind a declared Gem need to an approved platform resource. Keep an existing generic tool target exactly as returned by Gem inspection. New tool roles use the expected binding-set version and hash with a complete binding_choices map of opaque connection_ref values read from gems.inspect. A direct action call name is not a binding target. A Gem has one set of tool bindings: its preview builds and its releases use it alike.", "gem_control_plane", "upsert_binding", "write"),
8084
+ op("gems.binding_preset", "gems", "Turn a tool role's reads-only preset on or off: an Uru filter that lets the Gem run only the account's actions that the provider classifies as reads. The provider grant does not change.", "gem_control_plane", "binding_preset", "write"),
7513
8085
  op("gems.resolve_safe_bindings", "gems", "Resolve deterministic safe bindings for a ready Gem build.", "gem_control_plane", "resolve_safe_bindings", "write"),
7514
8086
  op("gems.store_secret", "gems", "Store a user-supplied Gem secret value server-side.", "gem_control_plane", "store_secret", "write"),
7515
8087
  op("gems.releases_list", "gems", "List logical hosted Releases.", "gem_query", "releases_list", "read"),
@@ -7521,7 +8093,7 @@ function buildGemOperations(op) {
7521
8093
  op("gems.release_change_resume", "gems", "Resume one saved Release change for targets that are safe to retry.", "gem_control_plane", "release_change_resume", "write"),
7522
8094
  op("gems.status", "gems", "Read Gem deployment status, checks, runtime runs, and recent logs.", "gem_query", "deployment_status", "read"),
7523
8095
  op("gems.checks", "gems", "Inspect registered checks for a Gem deployment or immutable version.", "gem_query", "checks", "read"),
7524
- op("gems.logs", "gems", "Read server-side Gem runtime logs with filters.", "gem_query", "logs", "read"),
8096
+ op("gems.logs", "gems", "Read server-side Gem runtime logs with filters. With kind (lines, errors, requests or builds), an editor reads the Gem log feed: log lines of both serving lanes (30 days), errors, the request log without bodies (90 days), or failed builds with a plain reason and one next step (90 days). The feed needs the gem_logs_feed release switch.", "gem_query", "logs", "read"),
7525
8097
  op("gems.debug_token", "gems", "Mint a short-lived, single-deployment debug session for live Gem inspection.", "gem_control_plane", "debug_token", "write"),
7526
8098
  op("gems.security_scan", "gems", "Run the check before Publish on one Gem Version, without Publish. gems.version_publish runs the same check.", "gem_control_plane", "security_scan", "write"),
7527
8099
  op("gems.public_tool_delegation_enable", "gems", "Enable one bounded anonymous public-tool delegation for a Gem tool on one Share.", "gem_control_plane", "public_tool_delegation_enable", "write"),
@@ -7530,6 +8102,8 @@ function buildGemOperations(op) {
7530
8102
  op("gems.run_get", "gems", "Inspect one bounded Gem execution.", "gem_query", "run_get", "read"),
7531
8103
  op("gems.run_recovery_preview", "gems", "Preview recovery for a stuck Gem job whose provider create is known not to have succeeded.", "gem_query", "run_recovery_preview", "read"),
7532
8104
  op("gems.run_recover", "gems", "Recover one stuck Gem job by reusing its saved admission after a current safe recovery plan is checked.", "gem_control_plane", "run_recover", "destructive"),
8105
+ op("gems.data_restore_plan", "gems", "Show what putting a Gem's data back to one time would do: for each Dataset the Gem uses, its revision at that time, the changes after it, and the other Gems that use it. It changes nothing and gives the plan_token for gems.data_restore.", "gem_query", "data_restore_plan", "read"),
8106
+ op("gems.data_restore", "gems", "Put every Dataset a Gem uses back to one time, after gems.data_restore_plan. It refuses when the data changed after the plan. It starts one Dataset restore job for each Dataset; each restore is a new revision, so each Dataset's History keeps the state before, and the report names the job and the revision that undoes it. Roll back never runs it.", "gem_control_plane", "data_restore", "write"),
7533
8107
  op("gems.run_cancel", "gems", "Cancel one running Gem execution when supported.", "gem_control_plane", "run_cancel", "destructive"),
7534
8108
  op("gems.runtime_stop", "gems", "Stop the machine a serverful Gem serves from, right now. This is not an off switch: the platform starts the machine again on the next visitor request. Use it to clear a wedged runtime, not to take a Gem offline. Revoke its Shares for that.", "gem_control_plane", "runtime_stop", "destructive"),
7535
8109
  op("gems.runtime_start", "gems", "Start the machine a serverful Gem serves from, without waiting for a visitor request to wake it.", "gem_control_plane", "runtime_start", "write"),
@@ -7540,22 +8114,33 @@ function buildGemOperations(op) {
7540
8114
  op("gems.schedule_arm", "gems", "Arm one declared Gem job schedule.", "gem_control_plane", "schedule_arm", "write"),
7541
8115
  op("gems.schedule_pause", "gems", "Pause one declared Gem job schedule.", "gem_control_plane", "schedule_pause", "write"),
7542
8116
  op("gems.schedule_resume", "gems", "Resume one declared Gem job schedule.", "gem_control_plane", "schedule_resume", "write"),
7543
- op("gems.schedule_target_set", "gems", "Select one ready Release for future runs of one Gem schedule. A Share Version change does not change this target.", "gem_control_plane", "schedule_target_set", "write"),
8117
+ op("gems.schedule_target_set", "gems", "Select one ready Release for future runs of one Gem schedule. It pins the schedule there: a Publish no longer moves it until gems.schedule_follow_gem.", "gem_control_plane", "schedule_target_set", "write"),
8118
+ op("gems.schedule_follow_gem", "gems", "Set one Gem schedule to follow the Gem again: from its next run it uses the published Version, and each Publish moves it.", "gem_control_plane", "schedule_follow_gem", "write"),
8119
+ op("gems.event_target_follow_gem", "gems", "Set one event-started Gem job to follow the Gem again: from its next run it uses the published Version, and each Publish moves it.", "gem_control_plane", "event_target_follow_gem", "write"),
7544
8120
  op("gems.schedule_run_now", "gems", "Run one active Gem job schedule now.", "gem_control_plane", "schedule_run_now", "write"),
7545
8121
  op("gems.event_targets_list", "gems", "List a Gem's event rules that start jobs from reported platform events.", "gem_query", "event_targets_list", "read"),
7546
8122
  op("gems.event_target_update", "gems", "Update one Gem event rule's paused state or job input.", "gem_control_plane", "event_target_update", "write"),
7547
- op("gems.event_target_release_set", "gems", "Select one ready Release for one event-started Gem job. Other event rules keep their targets.", "gem_control_plane", "event_target_release_set", "write"),
8123
+ op("gems.event_target_release_set", "gems", "Select one ready Release for one event-started Gem job. Other event rules keep their targets. It pins the job there: a Publish no longer moves it until gems.event_target_follow_gem.", "gem_control_plane", "event_target_release_set", "write"),
7548
8124
  op("gems.event_target_run_now", "gems", "Run one active Gem event rule now.", "gem_control_plane", "event_target_run_now", "write"),
7549
8125
  op("gems.analytics", "gems", "Read access-checked Share view summaries and run-ledger totals for a Gem without returning customer content.", "gem_query", "get_gem_analytics", "read"),
7550
- op("gems.domains_set", "gems", "Attach or update a custom domain for a Gem. Pass the hostname only; " + "the current Release is resolved for you. Requires a ready Release.", "gem_control_plane", "domains_set", "write"),
8126
+ op("gems.domains_set", "gems", "Attach or update a custom domain for a Gem. Pass the hostname only; " + "the current Release is resolved for you. Requires a ready Release. " + "Once active, the first or primary domain becomes the Gem's address and " + "its other addresses redirect there; Shares still decide who can open it.", "gem_control_plane", "domains_set", "write"),
7551
8127
  op("gems.domains_list", "gems", "List custom domains for a Gem.", "gem_query", "domains_list", "read"),
7552
8128
  op("gems.domains_check", "gems", "Check one custom domain and refresh its provider state.", "gem_control_plane", "domains_check", "write"),
7553
8129
  op("gems.domains_delete", "gems", "Delete one custom domain after provider cleanup succeeds.", "gem_control_plane", "domains_delete", "destructive"),
8130
+ op("gems.domains_set_primary", "gems", "Make one Live custom domain the Gem's primary address: it serves the Gem, " + "and the Uru address and the other Live domains forward to it. Pass the " + "hostname. The old primary stays Live and forwards. A domain that is not " + "Live is refused. Same rights as the other domain writes.", "gem_control_plane", "domains_set_primary", "write"),
7554
8131
  op("gems.storage_usage", "gems", "Show how much of the Gem's 20 MB storage its viewers use, in total and in the shared scope.", "gem_query", "storage_usage", "read"),
7555
8132
  op("gems.storage_shared_list", "gems", "List the keys of the Gem's shared storage, with their sizes. Personal data of viewers is never listed.", "gem_query", "storage_shared_list", "read"),
7556
8133
  op("gems.storage_shared_get", "gems", "Read one key of the Gem's shared storage.", "gem_query", "storage_shared_get", "read"),
7557
8134
  op("gems.storage_shared_delete", "gems", "Delete one key of the Gem's shared storage. Every viewer stops seeing it.", "gem_control_plane", "storage_shared_delete", "destructive"),
7558
8135
  op("gems.storage_shared_clear", "gems", "Delete every key of the Gem's shared storage. Personal data of viewers stays.", "gem_control_plane", "storage_shared_clear", "destructive"),
8136
+ op("gems.notices_get", "gems", "Read whether you get this Gem's notices. A Gem's server code sends notices with the SDK notify call to its owner and editors.", "gem_query", "notices_get", "read"),
8137
+ op("gems.notices_set", "gems", "Turn every notice of this Gem off (muted true) or back on (muted false) for you only.", "gem_control_plane", "notices_set", "write"),
8138
+ op("gems.notice_test", "gems", "Send a test notice from this Gem to your own Activity. Owner and editors only.", "gem_control_plane", "notice_test", "write"),
8139
+ op("gems.visitor_data_requests", "gems", "List the outside visitors' requests to delete their data in this Gem. An open request names the visitor and the Datasets a delete touches. Editors only.", "gem_query", "visitor_data_requests", "read"),
8140
+ op("gems.visitor_data_run", "gems", "Delete one visitor's data in this Gem for their open request: rows only they own, their saved values and files, their place on the people list and their sessions. Rows of keep_dataset_ids stay without their name. It cannot be undone. Editors only.", "gem_control_plane", "visitor_data_run", "destructive"),
8141
+ op("gems.visitor_data_refuse", "gems", "Refuse one visitor's open request to delete their data in this Gem, with an optional note the visitor reads. Nothing is deleted. Editors only.", "gem_control_plane", "visitor_data_refuse", "write"),
8142
+ op("gems.address_show", "gems", "Read every web address of the Gem: its web address, its old addresses that still forward, and its custom domains with their state and DNS records. Says which address serves the Gem, which forward to it, and who can open the Gem at each. Only people who can publish the Gem can read it.", "gem_query", "address_show", "read"),
8143
+ op("gems.address_set", "gems", "Choose or change the Gem's web address label (3 to 63 lowercase letters, digits and hyphens). The old address forwards for 90 days and is never given to another Gem. Only people who can publish the Gem can change it.", "gem_control_plane", "address_set", "write"),
7559
8144
  op("gems.api_describe", "gems", "Describe a Gem's declared queries, actions, jobs and datasets for the " + "selected Release. Returns the saved input and output schemas when " + "the source declares them, together with the exact Release identity. " + "An undeclared schema stays unknown; the platform does not infer it. " + "A Gem with no callable operations reports that state explicitly.", "gem_query", "api_describe", "read"),
7560
8145
  op("gems.tool_declaration", "gems", "Read the Gem declaration of catalog actions by their Executor tool " + "paths, as tools.search returns them. Each answer carries the exact " + "integration, operation and binding to put in a Gem's uru.json, or " + "null when the action cannot be bound in a Gem.", "gem_query", "tool_declaration", "read"),
7561
8146
  op("gems.call_query", "gems", "Run one of a Gem's declared queries and return its result. Read-only. " + "Use gem_query op='api_describe' to list what this Gem declares; a name " + "it does not declare is refused rather than guessed at.", "gem_query", "call_query", "read"),
@@ -7564,7 +8149,10 @@ function buildGemOperations(op) {
7564
8149
  op("gems.job_start", "gems", "Start one of a Gem's declared jobs. Writes a durable audit row before " + "starting, and returns the request id that row is filed under.", "gem_control_plane", "job_start", "write"),
7565
8150
  op("gems.job_status", "gems", "Read the pending or terminal result for one job started by job_start. " + "Supply the exact deployment_id and execution_id returned by that call. " + "The result remains available after the short-lived status cache expires. " + "A failed job has explanation: why it failed and one next step.", "gem_query", "job_status", "read"),
7566
8151
  withOutputSchema(op("gems.components_list", "gems", "List verified Gem component templates.", "GEM_COMPONENTS_LIST", undefined, "read"), gemComponentsListOutputSchema),
7567
- withOutputSchema(op("gems.components_get", "gems", "Fetch one verified Gem component definition.", "GEM_COMPONENTS_GET", undefined, "read"), gemComponentsGetOutputSchema)
8152
+ withOutputSchema(op("gems.components_get", "gems", "Fetch one verified Gem component definition.", "GEM_COMPONENTS_GET", undefined, "read"), gemComponentsGetOutputSchema),
8153
+ op("gems.own_app_show", "gems", "Show a Gem's own Google app for its viewer connections: the client ID and whether a secret is set, never the secret. The Gem's owner or a workspace Owner or Admin.", "gem_own_app", "show", "read"),
8154
+ op("gems.own_app_set", "gems", "Set a Gem's own Google app (client_id, client_secret) for its viewer connections; the secret goes to Uru's vault and is never answered. Moving people from Uru's app to your own makes each person connect again. Gmail and Drive need Google's yearly security review.", "gem_own_app", "save", "write"),
8155
+ op("gems.own_app_remove", "gems", "Remove a Gem's own Google app; new viewer connects use Uru's app, and each person who connected with the own app connects again.", "gem_own_app", "remove", "destructive")
7568
8156
  ];
7569
8157
  return gemOperations;
7570
8158
  }
@@ -7831,6 +8419,36 @@ var homeActivityWriteOutputSchema = {
7831
8419
  },
7832
8420
  required: ["updated_count", "notification_ids"]
7833
8421
  };
8422
+ var homeFocusCardSchema = {
8423
+ type: "object",
8424
+ additionalProperties: true,
8425
+ properties: {
8426
+ workspace_id: { type: "string", format: "uuid" },
8427
+ at: { type: "string", description: "The time the tab sorts by: the share, the newest share sent, the creation or the last open." },
8428
+ item_id: { type: "string" },
8429
+ resource_id: { type: "string" },
8430
+ resource_type: { type: "string" },
8431
+ name: { type: "string" },
8432
+ path: nullableString3,
8433
+ owner_user_id: nullableString3,
8434
+ access_role: nullableString3,
8435
+ created_at: { type: "string" },
8436
+ modified_at: { type: "string" },
8437
+ content_trust: { const: "untrusted_user_content" }
8438
+ },
8439
+ required: ["workspace_id", "at", "item_id", "resource_id", "resource_type", "name"]
8440
+ };
8441
+ var homeFocusListOutputSchema = {
8442
+ type: "object",
8443
+ additionalProperties: true,
8444
+ properties: {
8445
+ tab: { type: "string", enum: ["shared-with-you", "shared-by-you", "recently-created", "recently-viewed"] },
8446
+ cards: { type: "array", items: homeFocusCardSchema },
8447
+ total: { type: "integer", minimum: 0 },
8448
+ next_cursor: nullableString3
8449
+ },
8450
+ required: ["tab", "cards", "total", "next_cursor"]
8451
+ };
7834
8452
  var gemToolErrorSchema = {
7835
8453
  type: "object",
7836
8454
  additionalProperties: false,
@@ -7890,6 +8508,19 @@ function buildHomeActivityOperations(op) {
7890
8508
  return returned;
7891
8509
  }
7892
8510
 
8511
+ // ../../packages/platform-operations/src/operation_groups_home_focus.ts
8512
+ var SURFACES4 = ["cli", "mcp", "docs"];
8513
+ function withOutputSchema5(operation, outputSchema) {
8514
+ const returned = { ...operation, outputSchema };
8515
+ return returned;
8516
+ }
8517
+ function buildHomeFocusOperations(op) {
8518
+ const returned = [
8519
+ withOutputSchema5(op("home.focus_list", "home", "List one page of a Home Focus tab (shared with you, shared by you, recently created, recently viewed) over the workspaces your Home covers, newest first. The read records no view.", "home_focus_read", "focus_list", "read", SURFACES4, "universal"), homeFocusListOutputSchema)
8520
+ ];
8521
+ return returned;
8522
+ }
8523
+
7893
8524
  // ../../packages/platform-operations/src/operation_groups_shares.ts
7894
8525
  var SHARE_MUTATION_IDEMPOTENCY_FIELDS = {
7895
8526
  share_create: ["idempotency_key"],
@@ -7900,7 +8531,8 @@ var SHARE_MUTATION_IDEMPOTENCY_FIELDS = {
7900
8531
  share_move_person: ["share_id", "recipient_id", "role", "idempotency_key"],
7901
8532
  share_revoke: ["share_id", "idempotency_key"],
7902
8533
  share_rotate: ["share_id", "idempotency_key"],
7903
- share_resend_email: ["share_id", "recipient_id", "idempotency_key"]
8534
+ share_resend_email: ["share_id", "recipient_id", "idempotency_key"],
8535
+ gem_parts_share: ["emails", "item_ids", "idempotency_key"]
7904
8536
  };
7905
8537
  var SHARE_ITEM = ["item_id", "path"];
7906
8538
  var SHARE_PAGE = ["cursor", "limit"];
@@ -7953,6 +8585,8 @@ var SHARE_OPERATION_INPUT_FIELDS = {
7953
8585
  send_allowance: [],
7954
8586
  access_requests: ["request_state"],
7955
8587
  link_open: ["link"],
8588
+ share_team_choices: [...SHARE_ITEM],
8589
+ gem_parts: [...SHARE_ITEM, "emails"],
7956
8590
  list_permissions: [...SHARE_ITEM],
7957
8591
  list_versions: [...SHARE_ITEM, "limit", "offset", "content_limit", "content_offset"],
7958
8592
  get_version: [...SHARE_ITEM, "version_id"],
@@ -7961,7 +8595,7 @@ var SHARE_OPERATION_INPUT_FIELDS = {
7961
8595
  },
7962
8596
  library_collab: {
7963
8597
  share_items: ["item_ids", "idempotency_key", ...SHARE_CREATE_BODY],
7964
- share_create: [...SHARE_ITEM, "idempotency_key", ...SHARE_CREATE_BODY],
8598
+ share_create: [...SHARE_ITEM, "idempotency_key", ...SHARE_CREATE_BODY, "gem_role_key"],
7965
8599
  share_update: [
7966
8600
  "share_id",
7967
8601
  "idempotency_key",
@@ -7977,24 +8611,39 @@ var SHARE_OPERATION_INPUT_FIELDS = {
7977
8611
  "audience_confirm_link_off",
7978
8612
  "search_indexing_disabled",
7979
8613
  "link_preview_enabled",
8614
+ "reader_session_seconds",
7980
8615
  "confirm_used_items"
7981
8616
  ],
7982
- share_add_people: ["share_id", "idempotency_key", "people", "notify", "confirm_used_items"],
8617
+ share_add_people: [
8618
+ "share_id",
8619
+ "idempotency_key",
8620
+ "people",
8621
+ "notify",
8622
+ "confirm_used_items",
8623
+ "gem_role_key"
8624
+ ],
7983
8625
  share_remove_person: [...SHARE_MUTATION_IDEMPOTENCY_FIELDS.share_remove_person],
7984
8626
  share_move_person: [
7985
8627
  ...SHARE_MUTATION_IDEMPOTENCY_FIELDS.share_move_person,
7986
8628
  "notify",
7987
8629
  "message",
7988
8630
  "expires_at",
7989
- "confirm_used_items"
8631
+ "confirm_used_items",
8632
+ "gem_role_key"
7990
8633
  ],
7991
8634
  share_revoke: [...SHARE_MUTATION_IDEMPOTENCY_FIELDS.share_revoke],
7992
8635
  share_rotate: [...SHARE_MUTATION_IDEMPOTENCY_FIELDS.share_rotate, "rotate_scope"],
8636
+ share_sign_out: ["share_id", "email"],
7993
8637
  share_resend_email: [...SHARE_MUTATION_IDEMPOTENCY_FIELDS.share_resend_email],
7994
8638
  share_owner_link: [...SHARE_ITEM],
8639
+ gem_role_set: ["share_id", "entry", "gem_role_key", "expected_gem_role_key"],
8640
+ gem_role_move: [...SHARE_ITEM, "from_gem_role_key", "to_gem_role_key"],
7995
8641
  received_place: [...SHARE_ITEM, "to_workspace_id", "take_out"],
7996
8642
  received_remove: [...SHARE_ITEM],
7997
8643
  sent_revoke: ["recipient_ids", "audience_ids"],
8644
+ share_team_add: ["share_id", "team_id", "gem_role_key"],
8645
+ share_team_remove: ["share_id", "team_id"],
8646
+ gem_parts_share: [...SHARE_ITEM, ...SHARE_MUTATION_IDEMPOTENCY_FIELDS.gem_parts_share],
7998
8647
  set_share_settings: [
7999
8648
  ...SHARE_ITEM,
8000
8649
  "writers_can_share",
@@ -8022,7 +8671,7 @@ function buildShareOperations(op) {
8022
8671
  withOutputSchema(op("shares.sent_list", "shares", "List what you shared, one row per person or general access level.", "sharing_query", "sent_list", "read"), libraryCollabOutputSchema),
8023
8672
  withOutputSchema(op("shares.counts", "shares", "Count the shares that need you and the people you shared with who have not signed up yet.", "sharing_query", "share_counts", "read"), libraryCollabOutputSchema),
8024
8673
  withOutputSchema(op("shares.send_allowance", "shares", "Read how many more people you can email today.", "sharing_query", "send_allowance", "read"), libraryCollabOutputSchema),
8025
- withOutputSchema(op("shares.access_requests", "shares", "List pending, verified requests for access to shares you sent.", "sharing_query", "access_requests", "read"), libraryCollabOutputSchema),
8674
+ withOutputSchema(op("shares.access_requests", "shares", "List pending, verified requests for access to shares you sent and items you own, and asks to join the own sign-in of Gems you own (target_kind gem_people). Answer them in Uru; an agent cannot.", "sharing_query", "access_requests", "read"), libraryCollabOutputSchema),
8026
8675
  withOutputSchema(op("shares.link_open", "shares", "Open a share link by its address or key under the link's own gate: its state, item kind and name, your role, the sharer's first name, and its content when it needs no code or passcode. A link that needs a code or passcode answers its gate only: open that one in a browser.", "sharing_query", "link_open", "read"), libraryCollabOutputSchema),
8027
8676
  withOutputSchema(op("shares.items", "shares", "Share selected Library items with the same people and settings, with a separate result and link for each item.", "library_collab", "share_items", "write"), libraryCollabOutputSchema),
8028
8677
  withOutputSchema(op("shares.create", "shares", "Share any Library item, such as a file, folder or Gem, with named people such as a client, with general access, or both. Each new person gets their own link and one email unless notify is false. A person who already has access keeps one access, changed to this role and these settings.", "library_collab", "share_create", "write"), libraryCollabOutputSchema),
@@ -8032,11 +8681,19 @@ function buildShareOperations(op) {
8032
8681
  withOutputSchema(op("shares.people_move", "shares", "Change one person's role on an item in one step, by their row. They keep their link, and their end, note, gate, download and open notices stay. Their other links end.", "library_collab", "share_move_person", "destructive"), libraryCollabOutputSchema),
8033
8682
  withOutputSchema(op("shares.revoke", "shares", "Revoke one share. Every link it carries stops working at once.", "library_collab", "share_revoke", "destructive"), libraryCollabOutputSchema),
8034
8683
  withOutputSchema(op("shares.link_rotate", "shares", "Replace a share's general access link, or on a Gem with scope all every person's link too. Each replaced link stops working at once.", "library_collab", "share_rotate", "destructive"), libraryCollabOutputSchema),
8684
+ withOutputSchema(op("shares.sign_out", "shares", "Sign one person out of a share by their address. Their open sessions end on the next request and they prove their address again; their access stays. Remove the person to end access.", "library_collab", "share_sign_out", "destructive"), libraryCollabOutputSchema),
8035
8685
  withOutputSchema(op("shares.email_resend", "shares", "Send one named person their share email again.", "library_collab", "share_resend_email", "write"), libraryCollabOutputSchema),
8036
8686
  withOutputSchema(op("shares.owner_link", "shares", "Make your own link to a Gem you own, when it is missing, and answer it: one row, yours, with its own key, Version, gate and expiry. It emails nobody and counts no opens.", "library_collab", "share_owner_link", "write"), libraryCollabOutputSchema),
8687
+ withOutputSchema(op("shares.gem_role_set", "shares", "Set the Gem role of one person, General access level or email domain on a Gem Viewer share. Send the role it holds now as expected_gem_role_key: when someone changed it since you read it, nothing changes and the answer is role_changed with the current role. Owner, Editor and Commenter are not Gem roles.", "library_collab", "gem_role_set", "write"), libraryCollabOutputSchema),
8688
+ withOutputSchema(op("shares.gem_role_move", "shares", "Move everyone who holds one Gem role on a Gem to another Gem role, in one step: people, General access levels and email domains on every live Viewer share. The new role must be in the Version each share serves (role_not_published).", "library_collab", "gem_role_move", "destructive"), libraryCollabOutputSchema),
8037
8689
  withOutputSchema(op("shares.received_place", "shares", "Add or put a file or other item someone shared with you into your Library in one of your workspaces, or take it out. The item itself never moves.", "library_collab", "received_place", "write"), libraryCollabOutputSchema),
8038
8690
  withOutputSchema(op("shares.received_remove", "shares", "Remove something shared with you: your access ends and its card leaves your list. Access a workspace gives you stays.", "library_collab", "received_remove", "destructive"), libraryCollabOutputSchema),
8039
- withOutputSchema(op("shares.sent_revoke", "shares", "Close person rows and general access levels you shared, by id.", "library_collab", "sent_revoke", "destructive"), libraryCollabOutputSchema)
8691
+ withOutputSchema(op("shares.sent_revoke", "shares", "Close person rows and general access levels you shared, by id.", "library_collab", "sent_revoke", "destructive"), libraryCollabOutputSchema),
8692
+ withOutputSchema(op("shares.team_choices", "shares", "List the teams of a Gem's workspace you can share it with, with how many people each has.", "sharing_query", "share_team_choices", "read"), libraryCollabOutputSchema),
8693
+ withOutputSchema(op("shares.team_add", "shares", "Share a Gem with a team of its workspace on one viewer share, with a viewer role. Who is in the team is read at each open: a person who joins gets access at once, and a person who leaves loses it at once.", "library_collab", "share_team_add", "write"), libraryCollabOutputSchema),
8694
+ withOutputSchema(op("shares.team_remove", "shares", "Take a team off a Gem viewer share. Access that came through the team ends at once, and its open sessions end.", "library_collab", "share_team_remove", "destructive"), libraryCollabOutputSchema),
8695
+ withOutputSchema(op("shares.gem_parts", "shares", "List the parts of a Gem that people you made its Editors cannot open: its Datasets and the files and Datasets in its folder, each with its owner and whether you may share it, and the accounts the Gem runs. Changes nothing.", "sharing_query", "gem_parts", "read"), libraryCollabOutputSchema),
8696
+ withOutputSchema(op("shares.gem_parts_share", "shares", "Give a Gem's Editors Editor access to the parts of it you pick, in one step, with no email. Only an Editor of the Gem gets a part, and a part only its owner may share is refused.", "library_collab", "gem_parts_share", "write"), libraryCollabOutputSchema)
8040
8697
  ];
8041
8698
  }
8042
8699
 
@@ -8975,7 +9632,8 @@ var PERSON_SCOPED_TOOL_IDS = new Set([
8975
9632
  "HOME_WORKSPACES_QUERY",
8976
9633
  "HOME_WORKSPACES_MANAGE",
8977
9634
  "HOME_ACTIVITY_QUERY",
8978
- "HOME_ACTIVITY_MANAGE"
9635
+ "HOME_ACTIVITY_MANAGE",
9636
+ "HOME_FOCUS_READ"
8979
9637
  ]);
8980
9638
  var LIST_WORKSPACES_ORGANIZATION_KINDS = ["starter", "organization"];
8981
9639
  var LIST_WORKSPACES_ACCESS_MODES = [
@@ -9037,7 +9695,15 @@ var LIBRARY_TEXT_WITNESS = ["base_source_revision_id", "base_source_hash", "chan
9037
9695
  var AUTOMATION_TARGET = ["automation_id", "item_id", "path"];
9038
9696
  var LIBRARY_OPERATION_INPUT_FIELDS = {
9039
9697
  library_query: {
9040
- ls: [...LIBRARY_ITEM, "resource_type", "recursive", "include_trashed", "limit", "cursor"],
9698
+ ls: [
9699
+ ...LIBRARY_ITEM,
9700
+ "resource_type",
9701
+ "recursive",
9702
+ "include_trashed",
9703
+ "favorites_only",
9704
+ "limit",
9705
+ "cursor"
9706
+ ],
9041
9707
  stat: [...LIBRARY_ITEM, "include_trashed", "include_metadata"],
9042
9708
  read: [...LIBRARY_ITEM, "resource_type", "limit", "offset"],
9043
9709
  search: ["query", "path", "resource_type", "include_trashed", "limit", "cursor"],
@@ -9213,6 +9879,8 @@ function buildOperationGroups(op) {
9213
9879
  withOutputSchema(op("datasets.rows_upsert", "datasets", "Insert or update Dataset rows.", "dataset_rows", "upsert", "write"), datasetResultOutputSchema),
9214
9880
  withOutputSchema(op("datasets.rows_delete", "datasets", "Soft-delete Dataset rows.", "dataset_rows", "delete", "write"), datasetResultOutputSchema),
9215
9881
  withOutputSchema(op("datasets.rows_restore", "datasets", "Restore soft-deleted Dataset rows.", "dataset_rows", "restore", "write"), datasetResultOutputSchema),
9882
+ withOutputSchema(op("datasets.import", "datasets", "Import a CSV or JSON file into a Dataset as new rows, all or nothing.", "dataset_import", undefined, "write"), datasetResultOutputSchema),
9883
+ withOutputSchema(op("datasets.export", "datasets", "Export the current rows of a Dataset as one CSV or JSON file.", "dataset_export", undefined, "read"), datasetResultOutputSchema),
9216
9884
  withOutputSchema(op("datasets.restore", "datasets", "Restore a supported saved Dataset state as a new forward change.", "dataset_restore", undefined, "write"), datasetResultOutputSchema),
9217
9885
  withOutputSchema(op("datasets.jobs", "datasets", "List Dataset work jobs.", "dataset_jobs", undefined, "read"), datasetResultOutputSchema),
9218
9886
  withOutputSchema(op("datasets.job_get", "datasets", "Read one Dataset work job.", "dataset_job_get", undefined, "read"), datasetResultOutputSchema),
@@ -9223,7 +9891,18 @@ function buildOperationGroups(op) {
9223
9891
  const workspaceOperations = [
9224
9892
  withOutputSchema(op("workspace.list", "workspace", "List available workspaces.", "list_workspaces", undefined, "read"), LIST_WORKSPACES_TOOL_DESCRIPTOR.outputSchema),
9225
9893
  withOutputSchema(op("workspace.teams_list", "workspace", "List workspace teams.", "list_workspace_teams", undefined, "read"), listWorkspaceTeamsOutputSchema),
9226
- withOutputSchema(op("workspace.members_list", "workspace", "List workspace members for sharing.", "workspace_members_list", undefined, "read"), workspaceMembersOutputSchema)
9894
+ withOutputSchema(op("workspace.members_list", "workspace", "List workspace members for sharing.", "workspace_members_list", undefined, "read"), workspaceMembersOutputSchema),
9895
+ withOutputSchema(op("workspace.organization_instructions", "workspace", "Read the instructions of this workspace's Organization. Org Owners and Admins edit them on the screen only.", "organization_instructions", undefined, "read"), organizationInstructionsOutputSchema),
9896
+ withOutputSchema(op("workspace.setup_link", "workspace", "Prepare a new workspace in this Organization, with its name and invitations, and get a link a person opens to check and create it. Nothing is made until they confirm.", "workspace_setup", "setup_link", "read"), workspaceSetupLinkOutputSchema),
9897
+ withOutputSchema(op("workspace.invite_link", "workspace", "Prepare invitations into this workspace, each with the role admin, member or viewer, and get a link an Owner or Admin opens to send them. Nothing is sent until they confirm.", "workspace_setup", "invite_link", "read"), workspaceSetupLinkOutputSchema),
9898
+ withOutputSchema(op("workspace.hand_over_plan", "workspace", "List what a person owns, binds and runs in this workspace, and who can take each item. Owners and Admins only.", "workspace_setup", "hand_over_plan", "read"), workspaceHandOverPlanOutputSchema),
9899
+ withOutputSchema(op("workspace.hand_over_link", "workspace", "Prepare a hand-over of a person's items, each to the member chosen for it, and get a link an Owner or Admin opens to confirm. Accounts never move.", "workspace_setup", "hand_over_link", "read"), workspaceHandOverLinkOutputSchema),
9900
+ withOutputSchema(op("workspace.leaver_access_list", "workspace", "List what people who left the workspace still hold or lend (Gems, Gem bindings and automations), and who must act.", "workspace_leaver_access_list", undefined, "read"), workspaceLeaverAccessOutputSchema),
9901
+ withOutputSchema(op("workspace.client_setup_link", "workspace", "Prepare a client workspace in one link: a new workspace in this Organization, its invitations and copies of chosen Gems of this workspace with new empty Datasets. A person opens the link and confirms once; the answer says ready or the one step that stopped. It also gives the CLI sign-in each builder runs for that client.", "workspace_setup", "client_setup_link", "read"), workspaceSetupLinkOutputSchema),
9902
+ withOutputSchema(op("workspace.gem_service_bindings_list", "workspace", "List the Gem tool roles whose jobs run on a workspace account, whose account runs them, whether they run now and when their review is due. Owners and Admins only.", "gem_service_bindings", "list", "read"), gemServiceBindingsOutputSchema),
9903
+ withOutputSchema(op("workspace.gem_service_bindings_approve", "workspace", "Approve one Binder tool role of a Gem so its jobs run on a workspace account. Needs the admin in signed-in Uru.", "gem_service_bindings", "approve", "write"), gemServiceBindingsOutputSchema),
9904
+ withOutputSchema(op("workspace.gem_service_bindings_review", "workspace", "Review one approval for 90 more days and accept its current actions. Needs the admin in signed-in Uru.", "gem_service_bindings", "review", "write"), gemServiceBindingsOutputSchema),
9905
+ withOutputSchema(op("workspace.gem_service_bindings_revoke", "workspace", "Stop one approval; jobs on that tool role use its Binder again. Owners and Admins, or the person whose own account it runs on.", "gem_service_bindings", "revoke", "destructive"), gemServiceBindingsOutputSchema)
9227
9906
  ];
9228
9907
  const automationOperations = [
9229
9908
  withOutputSchema(op("automations.list", "automations", "List the automations you can open in the active workspace.", "automation_query", "list", "read"), automationQueryOutputSchema),
@@ -9281,10 +9960,10 @@ function buildOperationGroups(op) {
9281
9960
  ];
9282
9961
  const registryUtilityOperations = [
9283
9962
  withOutputSchema(op("tools.support_read", "tools", "Read fixed safe platform support facts with a saved Agent identity and an explicit staff read grant.", "platform_support_read", undefined, "read"), platformSupportReadOutputSchema),
9284
- withOutputSchema(op("tools.search", "tools", "Search platform tools by task.", "search_tools", undefined, "read"), searchToolsOutputSchema),
9285
- withOutputSchema(op("tools.list", "tools", "List platform tools.", "list_platform_tools", undefined, "read", ["cli", "docs"]), platformToolListOutputSchema),
9286
- withOutputSchema(op("tools.schema", "tools", "Read a platform tool schema.", "get_platform_tool_schema", undefined, "read", ["cli", "docs"]), platformToolSchemaOutputSchema),
9287
- withOutputSchema(op("tools.run", "tools", "Run a platform tool by name.", "execute_platform_tool_by_name", undefined, "write", ["cli", "docs"]), platformToolRunOutputSchema)
9963
+ withOutputSchema(op("tools.search", "tools", "Search Uru tools by task.", "search_tools", undefined, "read"), searchToolsOutputSchema),
9964
+ withOutputSchema(op("tools.list", "tools", "List Uru tools.", "list_platform_tools", undefined, "read", ["cli", "docs"]), platformToolListOutputSchema),
9965
+ withOutputSchema(op("tools.schema", "tools", "Read the schema of one Uru tool.", "get_platform_tool_schema", undefined, "read", ["cli", "docs"]), platformToolSchemaOutputSchema),
9966
+ withOutputSchema(op("tools.run", "tools", "Run one Uru tool by name.", "execute_platform_tool_by_name", undefined, "write", ["cli", "docs"]), platformToolRunOutputSchema)
9288
9967
  ];
9289
9968
  const homeOperations = [
9290
9969
  ...buildHomePinListOperations(op),
@@ -9304,7 +9983,8 @@ function buildOperationGroups(op) {
9304
9983
  withOutputSchema(op("home.notice_end", "home", "End a live Home notice now. Only a person signed in to Uru ends a required notice.", "home_notices_manage", "notice_end", "write", ["cli", "mcp", "docs"], "universal"), homeNoticesManageOutputSchema),
9305
9984
  withOutputSchema(op("home.notice_delete", "home", "Delete a scheduled Home notice nobody has seen.", "home_notices_manage", "notice_delete", "destructive", ["cli", "mcp", "docs"], "universal"), homeNoticesManageOutputSchema),
9306
9985
  ...buildHomePersonOperations(op),
9307
- ...buildHomeActivityOperations(op)
9986
+ ...buildHomeActivityOperations(op),
9987
+ ...buildHomeFocusOperations(op)
9308
9988
  ];
9309
9989
  return {
9310
9990
  gemOperations,
@@ -9416,7 +10096,7 @@ var deletedPlatformToolReplacements = new Map([
9416
10096
  var renamedPlatformToolOperationIds = new Map([
9417
10097
  ["bundles", ["bundles.create", "bundles.update", "bundles.delete", "bundles.items_add", "bundles.items_remove", "bundles.items_reorder"]],
9418
10098
  ["bundles_query", ["bundles.list", "bundles.get"]],
9419
- ["agents_query", ["agents.list", "agents.get"]],
10099
+ ["agents_query", ["agents.list", "agents.get", "agents.needs_list"]],
9420
10100
  ["workspace_members_list", ["workspace.members_list"]],
9421
10101
  ["home_timeline_query", ["home.timeline_rules_list", "home.timeline_day", "home.timeline_calendar_events"]],
9422
10102
  ["home_timeline_manage", ["home.timeline_rule_create", "home.timeline_rule_update", "home.timeline_rule_delete", "home.timeline_rules_reorder"]]
@@ -9441,6 +10121,7 @@ var renamedSharingOperationIds = [
9441
10121
  ["sharing.share_move_person", "shares.people_move"],
9442
10122
  ["sharing.share_revoke", "shares.revoke"],
9443
10123
  ["sharing.share_rotate", "shares.link_rotate"],
10124
+ ["sharing.share_sign_out", "shares.sign_out"],
9444
10125
  ["sharing.share_resend_email", "shares.email_resend"],
9445
10126
  ["sharing.share_owner_link", "shares.owner_link"],
9446
10127
  ["sharing.received_place", "shares.received_place"],
@@ -9474,7 +10155,25 @@ var singularFamilyVerbs = {
9474
10155
  "git_source_copy",
9475
10156
  "git_source_preview_inspect",
9476
10157
  "git_source_preview_open",
10158
+ "copy",
10159
+ "copy_plan",
10160
+ "copy_origin",
10161
+ "mold_create",
10162
+ "mold_version_add",
10163
+ "mold_control",
10164
+ "mold_version_control",
10165
+ "pour",
10166
+ "pour_built_in",
10167
+ "pour_unlink",
10168
+ "mold_list",
10169
+ "pour_list",
10170
+ "mold_state",
10171
+ "mold_part_find",
10172
+ "pour_values",
10173
+ "pour_fill",
10174
+ "pour_parts_set",
9477
10175
  "inspect",
10176
+ "bindings",
9478
10177
  "fs_tree",
9479
10178
  "fs_read",
9480
10179
  "fs_write",
@@ -9505,6 +10204,7 @@ var singularFamilyVerbs = {
9505
10204
  "build_job",
9506
10205
  "build_inspect",
9507
10206
  "upsert_binding",
10207
+ "binding_preset",
9508
10208
  "resolve_safe_bindings",
9509
10209
  "store_secret",
9510
10210
  "releases_list",
@@ -9526,6 +10226,8 @@ var singularFamilyVerbs = {
9526
10226
  "run_recovery_preview",
9527
10227
  "run_recover",
9528
10228
  "run_cancel",
10229
+ "data_restore_plan",
10230
+ "data_restore",
9529
10231
  "runtime_stop",
9530
10232
  "runtime_start",
9531
10233
  "runtime_restart",
@@ -9536,21 +10238,32 @@ var singularFamilyVerbs = {
9536
10238
  "schedule_pause",
9537
10239
  "schedule_resume",
9538
10240
  "schedule_target_set",
10241
+ "schedule_follow_gem",
9539
10242
  "schedule_run_now",
9540
10243
  "event_targets_list",
9541
10244
  "event_target_update",
9542
10245
  "event_target_release_set",
10246
+ "event_target_follow_gem",
9543
10247
  "event_target_run_now",
9544
10248
  "analytics",
9545
10249
  "domains_set",
9546
10250
  "domains_list",
9547
10251
  "domains_check",
9548
10252
  "domains_delete",
10253
+ "domains_set_primary",
9549
10254
  "storage_usage",
9550
10255
  "storage_shared_list",
9551
10256
  "storage_shared_get",
9552
10257
  "storage_shared_delete",
9553
10258
  "storage_shared_clear",
10259
+ "notices_get",
10260
+ "notices_set",
10261
+ "notice_test",
10262
+ "visitor_data_requests",
10263
+ "visitor_data_run",
10264
+ "visitor_data_refuse",
10265
+ "address_show",
10266
+ "address_set",
9554
10267
  "api_describe",
9555
10268
  "tool_declaration",
9556
10269
  "call_query",
@@ -9680,6 +10393,7 @@ var {
9680
10393
  var plannedOperations = buildPlannedOperations(op);
9681
10394
  var platformOperations = [
9682
10395
  ...buildNotificationOperations(op),
10396
+ ...buildWorkspaceAuditOperations(op),
9683
10397
  ...buildSkillOperations(op),
9684
10398
  ...gemOperations,
9685
10399
  ...libraryOperations,
@@ -9690,6 +10404,9 @@ var platformOperations = [
9690
10404
  ...buildLinksOperations(op),
9691
10405
  ...buildAgentsOperations(op),
9692
10406
  ...buildRulesOperations(op),
10407
+ ...buildBrandOperations(op),
10408
+ ...buildWorkspaceTablesOperations(op),
10409
+ ...buildGemOwnerOperations(op),
9693
10410
  ...distributionOperations,
9694
10411
  ...collectionsOperations,
9695
10412
  ...datasetOperations,
@@ -9747,8 +10464,173 @@ function op(id, family, summary, backendToolName, backendOp, safety, surfaces =
9747
10464
 
9748
10465
  // ../../packages/types/src/automations/library_references.ts
9749
10466
  var AUTOMATION_REFERENCE_NOT_SHARED_WORDS = "Not shared with you";
9750
- // ../../packages/types/src/shareAccessRequests.ts
9751
- var SHARE_READER_SESSION_SECONDS = 7 * 24 * 60 * 60;
10467
+ // ../../packages/types/src/shareAllowlist.ts
10468
+ var CONSUMER_MAIL_DOMAINS = new Set([
10469
+ "10minutemail.com",
10470
+ "126.com",
10471
+ "139.com",
10472
+ "163.com",
10473
+ "aim.com",
10474
+ "alice.it",
10475
+ "aol.com",
10476
+ "att.net",
10477
+ "bigpond.com",
10478
+ "bk.ru",
10479
+ "btinternet.com",
10480
+ "burnermail.io",
10481
+ "charter.net",
10482
+ "comcast.net",
10483
+ "cox.net",
10484
+ "daum.net",
10485
+ "dispostable.com",
10486
+ "duck.com",
10487
+ "emailondeck.com",
10488
+ "fakeinbox.com",
10489
+ "fastmail.com",
10490
+ "foxmail.com",
10491
+ "free.fr",
10492
+ "getnada.com",
10493
+ "gmail.com",
10494
+ "gmx.at",
10495
+ "gmx.ch",
10496
+ "gmx.co.uk",
10497
+ "gmx.com",
10498
+ "gmx.de",
10499
+ "gmx.fr",
10500
+ "gmx.net",
10501
+ "gmx.us",
10502
+ "googlemail.com",
10503
+ "guerrillamail.com",
10504
+ "guerrillamail.net",
10505
+ "hanmail.net",
10506
+ "hey.com",
10507
+ "hotmail.be",
10508
+ "hotmail.ca",
10509
+ "hotmail.co.jp",
10510
+ "hotmail.co.uk",
10511
+ "hotmail.com",
10512
+ "hotmail.com.au",
10513
+ "hotmail.com.br",
10514
+ "hotmail.de",
10515
+ "hotmail.es",
10516
+ "hotmail.fr",
10517
+ "hotmail.it",
10518
+ "hotmail.nl",
10519
+ "icloud.com",
10520
+ "inbox.ru",
10521
+ "interia.pl",
10522
+ "laposte.net",
10523
+ "libero.it",
10524
+ "list.ru",
10525
+ "live.be",
10526
+ "live.ca",
10527
+ "live.co.uk",
10528
+ "live.com",
10529
+ "live.com.au",
10530
+ "live.com.mx",
10531
+ "live.de",
10532
+ "live.fr",
10533
+ "live.it",
10534
+ "live.jp",
10535
+ "live.nl",
10536
+ "mac.com",
10537
+ "mail.com",
10538
+ "mail.ru",
10539
+ "maildrop.cc",
10540
+ "mailinator.com",
10541
+ "mailnesia.com",
10542
+ "me.com",
10543
+ "mintemail.com",
10544
+ "mohmal.com",
10545
+ "msn.com",
10546
+ "mytemp.email",
10547
+ "naver.com",
10548
+ "ntlworld.com",
10549
+ "o2.pl",
10550
+ "onet.pl",
10551
+ "orange.fr",
10552
+ "outlook.co.uk",
10553
+ "outlook.com",
10554
+ "outlook.com.au",
10555
+ "outlook.com.br",
10556
+ "outlook.de",
10557
+ "outlook.es",
10558
+ "outlook.fr",
10559
+ "outlook.in",
10560
+ "outlook.it",
10561
+ "outlook.jp",
10562
+ "pm.me",
10563
+ "privaterelay.appleid.com",
10564
+ "proton.ch",
10565
+ "proton.me",
10566
+ "protonmail.ch",
10567
+ "protonmail.com",
10568
+ "qq.com",
10569
+ "rambler.ru",
10570
+ "rediffmail.com",
10571
+ "rocketmail.com",
10572
+ "rogers.com",
10573
+ "sbcglobal.net",
10574
+ "seznam.cz",
10575
+ "sfr.fr",
10576
+ "sharklasers.com",
10577
+ "shaw.ca",
10578
+ "sina.cn",
10579
+ "sina.com",
10580
+ "sky.com",
10581
+ "sohu.com",
10582
+ "spamgourmet.com",
10583
+ "sympatico.ca",
10584
+ "t-online.de",
10585
+ "temp-mail.org",
10586
+ "tempail.com",
10587
+ "tempmail.com",
10588
+ "throwawaymail.com",
10589
+ "tiscali.it",
10590
+ "trashmail.com",
10591
+ "tuta.com",
10592
+ "tuta.io",
10593
+ "tutamail.com",
10594
+ "tutanota.com",
10595
+ "tutanota.de",
10596
+ "verizon.net",
10597
+ "virgilio.it",
10598
+ "virginmedia.com",
10599
+ "wanadoo.fr",
10600
+ "web.de",
10601
+ "wp.pl",
10602
+ "ya.ru",
10603
+ "yahoo.ca",
10604
+ "yahoo.co.id",
10605
+ "yahoo.co.in",
10606
+ "yahoo.co.jp",
10607
+ "yahoo.co.uk",
10608
+ "yahoo.com",
10609
+ "yahoo.com.ar",
10610
+ "yahoo.com.au",
10611
+ "yahoo.com.br",
10612
+ "yahoo.com.hk",
10613
+ "yahoo.com.mx",
10614
+ "yahoo.com.sg",
10615
+ "yahoo.com.tw",
10616
+ "yahoo.de",
10617
+ "yahoo.es",
10618
+ "yahoo.fr",
10619
+ "yahoo.it",
10620
+ "yandex.by",
10621
+ "yandex.com",
10622
+ "yandex.kz",
10623
+ "yandex.ru",
10624
+ "yandex.ua",
10625
+ "yeah.net",
10626
+ "ymail.com",
10627
+ "yopmail.com",
10628
+ "yopmail.fr",
10629
+ "zoho.com"
10630
+ ]);
10631
+ var SHARE_READER_SESSION_MIN_SECONDS = 60 * 60;
10632
+ var SHARE_READER_SESSION_MAX_SECONDS = 30 * 24 * 60 * 60;
10633
+ var SHARE_READER_SESSION_DEFAULT_SECONDS = 7 * 24 * 60 * 60;
9752
10634
  // ../../packages/types/src/shares.ts
9753
10635
  var GEM_SHARED_WITH_YOU_CODE = "gem_shared_with_you";
9754
10636
  var SHARE_USED_ITEMS_WORDS = {
@@ -9764,7 +10646,7 @@ var SHARE_PAGE_CONTENT_TEXT_MAX_BYTES = 1024 * 1024;
9764
10646
  // package.json
9765
10647
  var package_default = {
9766
10648
  name: "@uru-intelligence/cli",
9767
- version: "0.7.0",
10649
+ version: "0.8.0",
9768
10650
  private: false,
9769
10651
  description: "Uru full-platform command line interface",
9770
10652
  repository: {
@@ -9789,10 +10671,10 @@ var package_default = {
9789
10671
  access: "public"
9790
10672
  },
9791
10673
  scripts: {
9792
- lint: "node ../../scripts/run-with-repo-node.mjs oxlint --type-aware --deny-warnings -c ../../.oxlintrc.json . && node ../../scripts/checks/check-bun-test-integrity.mjs",
10674
+ lint: "node ../../scripts/run-with-repo-node.mjs oxlint --type-aware --deny-warnings -c ../../.oxlintrc.json . && node ../../packages/checks/check-bun-test-integrity.mjs",
9793
10675
  "lint:fix": "node ../../scripts/run-with-repo-node.mjs oxlint --type-aware --deny-warnings -c ../../.oxlintrc.json --fix .",
9794
10676
  "type-check": "tsc --noEmit",
9795
- "test:safety": "node ../../scripts/ci/run-named-test-files.mjs bun test --files-from test-lists/test-safety.txt",
10677
+ "test:safety": "node ../../packages/ci-tooling/run-named-test-files.mjs bun test --files-from test-lists/test-safety.txt",
9796
10678
  ci: "bun run lint && bun run type-check && bun run test:safety && bun run docs:check && bun run changelog:check && bun run build && bun run smoke:package && bun run smoke:binaries",
9797
10679
  build: "node scripts/build.mjs && bun run check:dist-company-names",
9798
10680
  "check:dist-company-names": "bun ../../scripts/check-cli-dist-company-names.ts",
@@ -9808,6 +10690,7 @@ var package_default = {
9808
10690
  },
9809
10691
  devDependencies: {
9810
10692
  "@types/node": "24.13.3",
10693
+ "@uru-intelligence/app": "workspace:*",
9811
10694
  "@uru/api-client": "workspace:*",
9812
10695
  "@uru/platform-operations": "workspace:*",
9813
10696
  "@uru/release-contracts": "workspace:*",