@opengeni/api-router 6.35.1-canary.45058281793001 → 6.36.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/app.js CHANGED
@@ -29,7 +29,7 @@ import {
29
29
  withDefaultEnabledCapabilityMcpTools,
30
30
  workflowIdForSession,
31
31
  workspaceActorContextExempt
32
- } from "./chunk-6BS2WYCV.js";
32
+ } from "./chunk-2VYWF2LZ.js";
33
33
  import "./chunk-M6YFLNSY.js";
34
34
  export {
35
35
  API_MAX_REQUEST_BODY_BYTES,
@@ -19634,6 +19634,8 @@ function siteDataPrincipal(grant, subjectId, scheduledTaskId = null) {
19634
19634
  }
19635
19635
  function siteDataActor(grant, subjectId) {
19636
19636
  if (grant.principalKind === "agent_attempt") return agentPrincipal(grant);
19637
+ const connectionId = outsideAgentReach(grant)?.connectionId;
19638
+ if (connectionId) return `agent:connection:${connectionId}`;
19637
19639
  return siteDataPrincipal(grant, subjectId);
19638
19640
  }
19639
19641
  var PERSONLESS_MANAGER_KINDS = /* @__PURE__ */ new Set(["api_key", "configured_key", "service"]);
@@ -24185,7 +24187,7 @@ function registerSiteDataTools(server, deps, grant, authorize3, json3, siteAgent
24185
24187
  server.registerTool(
24186
24188
  "app_data_define_collection",
24187
24189
  {
24188
- description: 'Create, update or delete a collection of JSON records for an app. Pages read and write it with site.data. Access modes: shared (viewers read and write every record), shared_read (viewers read; only managers write, e.g. a dashboard fed by a schedule), per_viewer (each viewer sees only their own records; managers see all unless privateRecords), append_only (viewers add and read their own, e.g. a form). Change the access mode only while the collection is empty. Set action to "delete" with confirm: true to delete the collection and its records.',
24190
+ description: `Create, update or delete a collection of JSON records for an app. Pages read and write it with site.data. Access modes: shared (viewers read and write every record), shared_read (viewers read; only managers write, e.g. a dashboard fed by a schedule), per_viewer (each viewer sees only their own records; managers see all unless privateRecords), append_only (viewers add and read their own, e.g. a form). Change the access mode only while the collection is empty. Set action to "delete" with confirm: true to delete the collection and its records. To fill a collection from a connected tool for everyone (no viewer needs their own connection), save a data sync with app_sync_save; to take in another service's events, save an app webhook with app_webhook_save.`,
24189
24191
  inputSchema: contractToolInput(
24190
24192
  z43.object({
24191
24193
  siteId: SiteIdInput,
@@ -154687,7 +154689,8 @@ function registerSkillContentRoutes(app, deps) {
154687
154689
  z72.object({
154688
154690
  limit: z72.coerce.number().int().min(1).max(250).default(100),
154689
154691
  cursor: z72.string().max(2048).optional(),
154690
- sessionId: z72.uuid().optional()
154692
+ sessionId: z72.uuid().optional(),
154693
+ scope: z72.enum(["workspace", "organization", "user"]).optional()
154691
154694
  }),
154692
154695
  c.req.query(),
154693
154696
  { status: 422, message: "Invalid Skill list query" }
@@ -154718,7 +154721,8 @@ function registerSkillContentRoutes(app, deps) {
154718
154721
  metadataOnly: true,
154719
154722
  ...everywhere,
154720
154723
  ...after ? { after } : {},
154721
- ...query.sessionId ? { sessionId: query.sessionId } : {}
154724
+ ...query.sessionId ? { sessionId: query.sessionId } : {},
154725
+ ...query.scope ? { scope: query.scope } : {}
154722
154726
  }
154723
154727
  );
154724
154728
  const page2 = rows7.slice(0, query.limit);
@@ -185566,7 +185570,9 @@ function createAppComposition(deps, lifecycle2 = {}) {
185566
185570
  // reaches only members-only apps.
185567
185571
  ...caller.kind === "person" ? {
185568
185572
  outsideAgent: {
185569
- appData: connectionSettings?.settings.appDataAccess ?? "viewer"
185573
+ appData: connectionSettings?.settings.appDataAccess ?? "viewer",
185574
+ // Its writes are recorded as this connected agent, not as the person.
185575
+ ...connectionSettings ? { connectionId: connectionSettings.id } : {}
185570
185576
  }
185571
185577
  } : {},
185572
185578
  ...connectionSettings ? {
@@ -187859,4 +187865,4 @@ export {
187859
187865
  withDefaultEnabledCapabilityMcpTools,
187860
187866
  workflowIdForSession5 as workflowIdForSession
187861
187867
  };
187862
- //# sourceMappingURL=chunk-6BS2WYCV.js.map
187868
+ //# sourceMappingURL=chunk-2VYWF2LZ.js.map