@axiom-lattice/protocols 4.4.0 → 4.5.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @axiom-lattice/protocols@4.4.0 build /home/runner/work/agentic/agentic/packages/protocols
2
+ > @axiom-lattice/protocols@4.5.0 build /home/runner/work/agentic/agentic/packages/protocols
3
3
  > tsup src/index.ts --format cjs,esm --dts --sourcemap
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -8,13 +8,13 @@
8
8
  CLI Target: es2020
9
9
  CJS Build start
10
10
  ESM Build start
11
- CJS dist/index.js 45.35 KB
12
- CJS dist/index.js.map 165.38 KB
13
- CJS ⚡️ Build success in 441ms
14
- ESM dist/index.mjs 40.76 KB
15
- ESM dist/index.mjs.map 161.70 KB
16
- ESM ⚡️ Build success in 481ms
11
+ CJS dist/index.js 45.77 KB
12
+ CJS dist/index.js.map 166.43 KB
13
+ CJS ⚡️ Build success in 496ms
14
+ ESM dist/index.mjs 41.17 KB
15
+ ESM dist/index.mjs.map 162.75 KB
16
+ ESM ⚡️ Build success in 519ms
17
17
  DTS Build start
18
- DTS ⚡️ Build success in 11888ms
19
- DTS dist/index.d.ts 221.50 KB
20
- DTS dist/index.d.mts 221.50 KB
18
+ DTS ⚡️ Build success in 12748ms
19
+ DTS dist/index.d.ts 221.93 KB
20
+ DTS dist/index.d.mts 221.93 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @axiom-lattice/protocols
2
2
 
3
+ ## 4.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 132c78e: Make the Project members endpoint kind-aware. `GET /api/projects/:projectId/bots` (`ProjectRosterService.list`) returns a `kind: "public"` project's every available agent as an implicit active member (built on the assistant catalog), and any other project's stored roster unchanged. No new endpoint and no new query parameter; `client.projectRooms.bots.list(projectId)` is unchanged. The task start picker reuses it and filters to active members.
8
+
9
+ Adds an optional `rosterExempt` flag to `ProjectTaskTrustedRunContext`; Core skips caller/owner roster authorization when the host stamps it (public project tasks) while still enforcing exact task scope.
10
+
11
+ ### Patch Changes
12
+
13
+ - 132c78e: add document parse
14
+
15
+ ## 4.4.1
16
+
17
+ ### Patch Changes
18
+
19
+ - 26fecff: task refactor
20
+ - 910bd08: enhance tasks
21
+
3
22
  ## 4.4.0
4
23
 
5
24
  ### Minor Changes
package/dist/index.d.mts CHANGED
@@ -6661,6 +6661,14 @@ interface ProjectTaskTrustedRunContext {
6661
6661
  * naming any specific value (ADR-118).
6662
6662
  */
6663
6663
  source?: string;
6664
+ /**
6665
+ * Host-provided signal that this task's owner need not be an active roster bot.
6666
+ *
6667
+ * Optional; `true` when present, `undefined`/`false` is treated as absent. Core uses it to skip
6668
+ * Project roster authorization for the run's caller and owner without interpreting why the host
6669
+ * granted the exemption (ADR-118). The host stamps it only for the workspace general project.
6670
+ */
6671
+ rosterExempt?: boolean;
6664
6672
  }
6665
6673
  /** Host-authenticated metadata that cannot be supplied through public Agent APIs. */
6666
6674
  interface TrustedRunContext {
package/dist/index.d.ts CHANGED
@@ -6661,6 +6661,14 @@ interface ProjectTaskTrustedRunContext {
6661
6661
  * naming any specific value (ADR-118).
6662
6662
  */
6663
6663
  source?: string;
6664
+ /**
6665
+ * Host-provided signal that this task's owner need not be an active roster bot.
6666
+ *
6667
+ * Optional; `true` when present, `undefined`/`false` is treated as absent. Core uses it to skip
6668
+ * Project roster authorization for the run's caller and owner without interpreting why the host
6669
+ * granted the exemption (ADR-118). The host stamps it only for the workspace general project.
6670
+ */
6671
+ rosterExempt?: boolean;
6664
6672
  }
6665
6673
  /** Host-authenticated metadata that cannot be supplied through public Agent APIs. */
6666
6674
  interface TrustedRunContext {
package/dist/index.js CHANGED
@@ -924,9 +924,10 @@ function parseTrustedRunContext(value) {
924
924
  "threadId",
925
925
  "inputMessageId"
926
926
  ];
927
- const projectTaskValues = snapshotExactRecord(contextValues.projectTask, requiredKeys2, ["source"]);
927
+ const projectTaskValues = snapshotExactRecord(contextValues.projectTask, requiredKeys2, ["source", "rosterExempt"]);
928
928
  const projectTaskHasSource = projectTaskValues !== void 0 && Object.prototype.hasOwnProperty.call(projectTaskValues, "source");
929
- if (!projectTaskValues || requiredKeys2.some((key) => typeof projectTaskValues[key] !== "string" || projectTaskValues[key].length === 0) || projectTaskHasSource && projectTaskValues.source !== void 0 && (typeof projectTaskValues.source !== "string" || projectTaskValues.source.length === 0)) {
929
+ const projectTaskHasRosterExempt = projectTaskValues !== void 0 && Object.prototype.hasOwnProperty.call(projectTaskValues, "rosterExempt");
930
+ if (!projectTaskValues || requiredKeys2.some((key) => typeof projectTaskValues[key] !== "string" || projectTaskValues[key].length === 0) || projectTaskHasSource && projectTaskValues.source !== void 0 && (typeof projectTaskValues.source !== "string" || projectTaskValues.source.length === 0) || projectTaskHasRosterExempt && projectTaskValues.rosterExempt !== void 0 && typeof projectTaskValues.rosterExempt !== "boolean") {
930
931
  throw new Error("Invalid trusted agent run context");
931
932
  }
932
933
  const parsedProjectTask = {
@@ -943,6 +944,9 @@ function parseTrustedRunContext(value) {
943
944
  if (projectTaskHasSource && typeof projectTaskValues.source === "string") {
944
945
  parsedProjectTask.source = projectTaskValues.source;
945
946
  }
947
+ if (projectTaskHasRosterExempt && projectTaskValues.rosterExempt === true) {
948
+ parsedProjectTask.rosterExempt = true;
949
+ }
946
950
  return { projectTask: parsedProjectTask };
947
951
  }
948
952
  const projectRoomValue = contextValues?.projectRoom;