robotrock 1.3.2 → 1.3.4

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.
Files changed (46) hide show
  1. package/README.md +22 -0
  2. package/dist/ai/index.js +8 -0
  3. package/dist/ai/index.js.map +1 -1
  4. package/dist/ai/trigger.js +8 -0
  5. package/dist/ai/trigger.js.map +1 -1
  6. package/dist/ai/workflow.js +8 -0
  7. package/dist/ai/workflow.js.map +1 -1
  8. package/dist/eve/agent/index.d.ts +67 -3
  9. package/dist/eve/agent/index.js +209 -153
  10. package/dist/eve/agent/index.js.map +1 -1
  11. package/dist/eve/index.d.ts +2 -1
  12. package/dist/eve/index.js +62 -47
  13. package/dist/eve/index.js.map +1 -1
  14. package/dist/eve/tools/admin/assign-tasks.d.ts +15 -4
  15. package/dist/eve/tools/admin/assign-tasks.js +8 -43
  16. package/dist/eve/tools/admin/assign-tasks.js.map +1 -1
  17. package/dist/eve/tools/admin/manage-groups.d.ts +2 -3
  18. package/dist/eve/tools/admin/manage-groups.js +18 -71
  19. package/dist/eve/tools/admin/manage-groups.js.map +1 -1
  20. package/dist/eve/tools/admin/manage-team-members.d.ts +2 -3
  21. package/dist/eve/tools/admin/manage-team-members.js +20 -64
  22. package/dist/eve/tools/admin/manage-team-members.js.map +1 -1
  23. package/dist/eve/tools/admin/query-tasks.d.ts +5 -6
  24. package/dist/eve/tools/admin/query-tasks.js +22 -86
  25. package/dist/eve/tools/admin/query-tasks.js.map +1 -1
  26. package/dist/eve/tools/catalog/search-products.d.ts +4 -5
  27. package/dist/eve/tools/catalog/search-products.js +2 -33
  28. package/dist/eve/tools/catalog/search-products.js.map +1 -1
  29. package/dist/eve/tools/identity/index.d.ts +0 -1
  30. package/dist/eve/tools/identity/index.js +15 -44
  31. package/dist/eve/tools/identity/index.js.map +1 -1
  32. package/dist/eve/tools/identity/my-access.d.ts +2 -3
  33. package/dist/eve/tools/identity/my-access.js +15 -44
  34. package/dist/eve/tools/identity/my-access.js.map +1 -1
  35. package/dist/eve/tools/identity/whoami.js.map +1 -1
  36. package/dist/eve/tools/inbox/create-task.js.map +1 -1
  37. package/dist/eve/tools/inbox/index.js.map +1 -1
  38. package/dist/eve/tools/index.d.ts +1 -1
  39. package/dist/eve/tools/index.js +44 -193
  40. package/dist/eve/tools/index.js.map +1 -1
  41. package/dist/{index-DePyAbTI.d.ts → index-Blq0XoAr.d.ts} +17 -16
  42. package/dist/index.d.ts +2 -1
  43. package/dist/index.js +19 -7
  44. package/dist/index.js.map +1 -1
  45. package/dist/tool-ui-hint-CMpug5sC.d.ts +13 -0
  46. package/package.json +2 -2
@@ -979,17 +979,12 @@ function requireBoundAgentAdminClient(ctx) {
979
979
  return createBoundAgentAdminClient(ctx);
980
980
  }
981
981
 
982
- // src/eve/tool-result-display.ts
983
- function toolDisplayResult(data, options) {
984
- const display = options?.widget || options?.title || options?.description ? {
985
- ...options.widget ? { widget: options.widget } : {},
986
- ...options.title ? { title: options.title } : {},
987
- ...options.description ? { description: options.description } : {}
988
- } : void 0;
982
+ // src/eve/tool-ui-hint.ts
983
+ var TOOL_UI_HINT_FIELD = "uiHint";
984
+ function withUiHint(result, hint) {
989
985
  return {
990
- ...display ? { display } : {},
991
- data,
992
- ...options?.ui ? { ui: options.ui } : {}
986
+ ...result,
987
+ [TOOL_UI_HINT_FIELD]: hint
993
988
  };
994
989
  }
995
990
 
@@ -1007,45 +1002,20 @@ function withReplyGuidance(result, guidance) {
1007
1002
 
1008
1003
  // src/eve/tool-display-format.ts
1009
1004
  function formatToolObjectResult(data, options) {
1010
- return withReplyGuidance(
1011
- toolDisplayResult(data, {
1012
- title: options.title,
1013
- description: options.description,
1014
- ui: options.ui
1015
- }),
1016
- options.replyGuidance
1017
- );
1005
+ const withGuidance = withReplyGuidance(data, options.replyGuidance);
1006
+ if (options.uiHint) {
1007
+ return withUiHint(withGuidance, options.uiHint);
1008
+ }
1009
+ return withGuidance;
1018
1010
  }
1019
1011
  function formatToolListResult(listKey, items, options) {
1020
- const listFieldUi = options.itemWidget ? {
1021
- "ui:widget": "list",
1022
- items: {
1023
- "ui:widget": options.itemWidget,
1024
- ...options.itemUi ?? {}
1025
- }
1026
- } : {
1027
- "ui:widget": "table",
1028
- ...options.itemUi ? { items: options.itemUi } : {}
1029
- };
1030
- return formatToolObjectResult(
1031
- { [listKey]: items },
1032
- {
1033
- title: options.title,
1034
- ui: {
1035
- [listKey]: listFieldUi
1036
- },
1037
- replyGuidance: options.replyGuidance
1038
- }
1012
+ return withUiHint(
1013
+ withReplyGuidance({ [listKey]: items }, options.replyGuidance),
1014
+ "list"
1039
1015
  );
1040
1016
  }
1041
1017
 
1042
1018
  // src/eve/tools/admin/format-groups-list.ts
1043
- var GROUP_ITEM_UI = {
1044
- name: { "ui:title": "Name" },
1045
- slug: { "ui:title": "Slug" },
1046
- description: { "ui:title": "Description" },
1047
- memberCount: { "ui:title": "Members", "ui:widget": "number" }
1048
- };
1049
1019
  function serializeGroupRow(group) {
1050
1020
  return {
1051
1021
  name: group.name,
@@ -1055,13 +1025,10 @@ function serializeGroupRow(group) {
1055
1025
  };
1056
1026
  }
1057
1027
  function formatGroupsListResult(groups) {
1058
- const countLabel = groups.length === 1 ? "1 group" : `${groups.length} groups`;
1059
1028
  return formatToolListResult(
1060
1029
  "groups",
1061
1030
  groups.map(serializeGroupRow),
1062
1031
  {
1063
- title: countLabel,
1064
- itemWidget: "tenantGroup",
1065
1032
  replyGuidance: MANAGE_GROUPS_LIST_REPLY_GUIDANCE
1066
1033
  }
1067
1034
  );
@@ -1078,28 +1045,12 @@ function formatGroupDetailResult(group) {
1078
1045
  }))
1079
1046
  },
1080
1047
  {
1081
- title: group.name,
1082
- ui: {
1083
- name: { "ui:title": "Name" },
1084
- slug: { "ui:title": "Slug" },
1085
- description: { "ui:title": "Description" },
1086
- members: {
1087
- "ui:widget": "list",
1088
- "ui:title": "Members",
1089
- items: {
1090
- name: { "ui:title": "Name" },
1091
- email: { "ui:title": "Email" }
1092
- }
1093
- }
1094
- },
1095
1048
  replyGuidance: MANAGE_GROUPS_DETAIL_REPLY_GUIDANCE
1096
1049
  }
1097
1050
  );
1098
1051
  }
1099
1052
  function formatGroupSummaryResult(group) {
1100
1053
  return formatToolObjectResult(serializeGroupRow(group), {
1101
- title: group.name,
1102
- ui: GROUP_ITEM_UI,
1103
1054
  replyGuidance: MANAGE_GROUPS_DETAIL_REPLY_GUIDANCE
1104
1055
  });
1105
1056
  }
@@ -1168,9 +1119,8 @@ var manageGroupsInputSchema = z5.object({
1168
1119
  break;
1169
1120
  }
1170
1121
  });
1171
- function formatGroupMutationResult(payload, title) {
1122
+ function formatGroupMutationResult(payload) {
1172
1123
  return formatToolObjectResult(payload, {
1173
- title,
1174
1124
  replyGuidance: ADMIN_MUTATION_REPLY_GUIDANCE
1175
1125
  });
1176
1126
  }
@@ -1182,7 +1132,7 @@ function resolveMemberRef(input) {
1182
1132
  }
1183
1133
  function defineManageGroupsTool() {
1184
1134
  return defineTool({
1185
- description: "Tenant-admin tool for workspace groups: list, get, create, update, delete, and manage group membership. Requires tenant admin access. Use group slug (e.g. finance) from list results for get and membership actions \u2014 internal ids are optional. Use member email for add_member and remove_member when user ids are unknown. Results render as chat UI cards \u2014 do not restate group or member fields in your reply.",
1135
+ description: "Tenant-admin tool for workspace groups: list, get, create, update, delete, and manage group membership. Requires tenant admin access. Call get_my_access in the same turn before this tool to verify admin access (the check renders as its own chat tool card). Use group slug (e.g. finance) from list results for get and membership actions \u2014 internal ids are optional. Use member email for add_member and remove_member when user ids are unknown. Results render as chat UI cards \u2014 do not restate group or member fields in your reply.",
1186
1136
  inputSchema: manageGroupsInputSchema,
1187
1137
  async execute(input, ctx) {
1188
1138
  const api = requireBoundAgentAdminClient(ctx);
@@ -1213,8 +1163,7 @@ function defineManageGroupsTool() {
1213
1163
  case "delete": {
1214
1164
  const result = await api.groups.delete(resolveGroupRef(input));
1215
1165
  return formatGroupMutationResult(
1216
- result,
1217
- "Group deleted"
1166
+ result
1218
1167
  );
1219
1168
  }
1220
1169
  case "add_member": {
@@ -1223,8 +1172,7 @@ function defineManageGroupsTool() {
1223
1172
  resolveMemberRef(input)
1224
1173
  );
1225
1174
  return formatGroupMutationResult(
1226
- result,
1227
- "Group member added"
1175
+ result
1228
1176
  );
1229
1177
  }
1230
1178
  case "remove_member": {
@@ -1233,8 +1181,7 @@ function defineManageGroupsTool() {
1233
1181
  resolveMemberRef(input)
1234
1182
  );
1235
1183
  return formatGroupMutationResult(
1236
- result,
1237
- "Group member removed"
1184
+ result
1238
1185
  );
1239
1186
  }
1240
1187
  }