@axiom-lattice/protocols 4.2.0 → 4.2.1
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 +6 -0
- package/dist/index.d.mts +213 -20
- package/dist/index.d.ts +213 -20
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/A2AApiKeyStoreProtocol.ts +18 -0
- package/src/A2AProtocol.ts +3 -11
- package/src/OpenProtocol.ts +125 -0
- package/src/PluginProtocol.ts +19 -0
- package/src/ProjectRoomMessageStoreProtocol.ts +4 -1
- package/src/SandboxPluginProtocol.ts +62 -0
- package/src/SandboxResourceProtocol.ts +5 -0
- package/src/__tests__/a2a-types.test.ts +0 -6
- package/src/__tests__/open-grants.test.ts +29 -0
- package/src/index.ts +3 -0
package/dist/index.mjs
CHANGED
|
@@ -857,6 +857,15 @@ function parseQueuedExecutionMode(value) {
|
|
|
857
857
|
if (value !== "followup") throw new Error("Invalid queued execution mode");
|
|
858
858
|
return value;
|
|
859
859
|
}
|
|
860
|
+
|
|
861
|
+
// src/OpenProtocol.ts
|
|
862
|
+
function effectiveGrants(record) {
|
|
863
|
+
if (record.grants && record.grants.length > 0) return record.grants;
|
|
864
|
+
if (record.assistantIds && record.assistantIds.length > 0) {
|
|
865
|
+
return [{ domain: "agent", items: record.assistantIds }];
|
|
866
|
+
}
|
|
867
|
+
return [{ domain: "agent" }];
|
|
868
|
+
}
|
|
860
869
|
export {
|
|
861
870
|
AgentType,
|
|
862
871
|
ChannelBindingMigrationConflictError,
|
|
@@ -883,6 +892,7 @@ export {
|
|
|
883
892
|
assertGenericProjectConfig,
|
|
884
893
|
createAgentWebAppStreamProjectionContext,
|
|
885
894
|
descriptorDataValue,
|
|
895
|
+
effectiveGrants,
|
|
886
896
|
getSubAgentsFromConfig,
|
|
887
897
|
getToolsFromConfig,
|
|
888
898
|
hasTools,
|