@axiom-lattice/protocols 4.4.1 → 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.
- package/.turbo/turbo-build.log +10 -10
- package/CHANGELOG.md +12 -0
- package/dist/index.d.mts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/TrustedRunContextProtocol.ts +17 -2
- package/src/__tests__/TrustedRunContextProtocol.test.ts +39 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @axiom-lattice/protocols@4.
|
|
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
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
[34mCLI[39m Target: es2020
|
|
9
9
|
[34mCJS[39m Build start
|
|
10
10
|
[34mESM[39m Build start
|
|
11
|
-
[
|
|
12
|
-
[
|
|
13
|
-
[
|
|
14
|
-
[
|
|
15
|
-
[
|
|
16
|
-
[
|
|
11
|
+
[32mCJS[39m [1mdist/index.js [22m[32m45.77 KB[39m
|
|
12
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m166.43 KB[39m
|
|
13
|
+
[32mCJS[39m ⚡️ Build success in 496ms
|
|
14
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m41.17 KB[39m
|
|
15
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m162.75 KB[39m
|
|
16
|
+
[32mESM[39m ⚡️ Build success in 519ms
|
|
17
17
|
[34mDTS[39m Build start
|
|
18
|
-
[32mDTS[39m ⚡️ Build success in
|
|
19
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m221.
|
|
20
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[32m221.
|
|
18
|
+
[32mDTS[39m ⚡️ Build success in 12748ms
|
|
19
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m221.93 KB[39m
|
|
20
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m221.93 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
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
|
+
|
|
3
15
|
## 4.4.1
|
|
4
16
|
|
|
5
17
|
### Patch 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
|
-
|
|
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;
|