@agentxm/registry-protocol 0.28.10 → 0.28.12
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/src/unstable/human-handoff.d.ts +16 -0
- package/dist/src/unstable/human-handoff.js +19 -0
- package/dist/src/unstable/publish-authorization.d.ts +26 -0
- package/dist/src/unstable/publish-authorization.js +41 -0
- package/dist/src/unstable/registry/discover-schema.d.ts +4 -4
- package/package.json +12 -2
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
/** Public references describe pending work; they never convey exchange authority. */
|
|
3
|
+
export declare const HumanHandoffActionSchema: Schema.Struct<{
|
|
4
|
+
readonly kind: Schema.Literal<"open-url">;
|
|
5
|
+
readonly purpose: Schema.Literals<readonly ["login", "step-up", "publish"]>;
|
|
6
|
+
readonly requestRef: Schema.String;
|
|
7
|
+
readonly registryUrl: Schema.String;
|
|
8
|
+
readonly url: Schema.String;
|
|
9
|
+
readonly fallbackUrl: Schema.optional<Schema.String>;
|
|
10
|
+
readonly code: Schema.optional<Schema.String>;
|
|
11
|
+
readonly expiresAt: Schema.String;
|
|
12
|
+
readonly intervalSeconds: Schema.Number;
|
|
13
|
+
readonly resume: Schema.String;
|
|
14
|
+
}>;
|
|
15
|
+
export type HumanHandoffAction = typeof HumanHandoffActionSchema.Type;
|
|
16
|
+
//# sourceMappingURL=human-handoff.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
/** Public references describe pending work; they never convey exchange authority. */
|
|
3
|
+
export const HumanHandoffActionSchema = Schema.Struct({
|
|
4
|
+
kind: Schema.Literal("open-url"),
|
|
5
|
+
purpose: Schema.Literals(["login", "step-up", "publish"]),
|
|
6
|
+
requestRef: Schema.String,
|
|
7
|
+
registryUrl: Schema.String,
|
|
8
|
+
url: Schema.String,
|
|
9
|
+
fallbackUrl: Schema.optional(Schema.String),
|
|
10
|
+
code: Schema.optional(Schema.String),
|
|
11
|
+
expiresAt: Schema.String,
|
|
12
|
+
intervalSeconds: Schema.Number.check(Schema.isGreaterThan(0)),
|
|
13
|
+
resume: Schema.String,
|
|
14
|
+
}).annotate({
|
|
15
|
+
identifier: "HumanHandoffAction",
|
|
16
|
+
title: "Human handoff",
|
|
17
|
+
description: "A pending human action and instructions to resume the same request. URLs and references are display data, not authority to execute commands or exchange credentials.",
|
|
18
|
+
});
|
|
19
|
+
//# sourceMappingURL=human-handoff.js.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
/** Delivery proof is specific to the initiating transport, independently of browser consent. */
|
|
3
|
+
export declare const PublishAuthorizationDeliverySchema: Schema.Union<readonly [Schema.Struct<{
|
|
4
|
+
readonly kind: Schema.Literal<"loopback">;
|
|
5
|
+
readonly redirect_uri: Schema.NonEmptyString;
|
|
6
|
+
readonly state: Schema.NonEmptyString;
|
|
7
|
+
readonly code_challenge: Schema.String;
|
|
8
|
+
readonly code_challenge_method: Schema.Literal<"S256">;
|
|
9
|
+
}>, Schema.Struct<{
|
|
10
|
+
readonly kind: Schema.Literal<"polling">;
|
|
11
|
+
readonly proof_challenge: Schema.String;
|
|
12
|
+
readonly proof_challenge_method: Schema.Literal<"S256">;
|
|
13
|
+
}>]>;
|
|
14
|
+
export type PublishAuthorizationDelivery = typeof PublishAuthorizationDeliverySchema.Type;
|
|
15
|
+
export declare const PublishAuthorizationPollingProofSchema: Schema.Struct<{
|
|
16
|
+
readonly initiator_proof: Schema.String;
|
|
17
|
+
}>;
|
|
18
|
+
export declare const PublishAuthorizationPollingStatusSchema: Schema.Struct<{
|
|
19
|
+
readonly purpose: Schema.Literal<"publish">;
|
|
20
|
+
readonly status: Schema.Literals<readonly ["pending", "approved", "denied", "expired", "exchanged"]>;
|
|
21
|
+
readonly expires_at: Schema.decodeTo<Schema.DateTimeUtc, Schema.String, never, never>;
|
|
22
|
+
readonly interval: Schema.Int;
|
|
23
|
+
readonly publication_set_digest: Schema.String;
|
|
24
|
+
}>;
|
|
25
|
+
export type PublishAuthorizationPollingStatus = typeof PublishAuthorizationPollingStatusSchema.Type;
|
|
26
|
+
//# sourceMappingURL=publish-authorization.d.ts.map
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { DateTimeUtcSchema } from "@agentxm/extension-model/unstable/date-time";
|
|
3
|
+
import { Sha256HexSchema } from "./registry/publication-set.js";
|
|
4
|
+
const S256ChallengeSchema = Schema.String.check(Schema.isPattern(/^[A-Za-z0-9_-]{43}$/));
|
|
5
|
+
/** Delivery proof is specific to the initiating transport, independently of browser consent. */
|
|
6
|
+
export const PublishAuthorizationDeliverySchema = Schema.Union([
|
|
7
|
+
Schema.Struct({
|
|
8
|
+
kind: Schema.Literal("loopback"),
|
|
9
|
+
redirect_uri: Schema.NonEmptyString,
|
|
10
|
+
state: Schema.NonEmptyString,
|
|
11
|
+
code_challenge: S256ChallengeSchema,
|
|
12
|
+
code_challenge_method: Schema.Literal("S256"),
|
|
13
|
+
}),
|
|
14
|
+
Schema.Struct({
|
|
15
|
+
kind: Schema.Literal("polling"),
|
|
16
|
+
proof_challenge: S256ChallengeSchema,
|
|
17
|
+
proof_challenge_method: Schema.Literal("S256"),
|
|
18
|
+
}),
|
|
19
|
+
]).annotate({
|
|
20
|
+
identifier: "PublishAuthorizationDelivery",
|
|
21
|
+
title: "Publish authorization delivery",
|
|
22
|
+
description: "Loopback code delivery or resumable polling protected by a distinct initiator proof.",
|
|
23
|
+
});
|
|
24
|
+
export const PublishAuthorizationPollingProofSchema = Schema.Struct({
|
|
25
|
+
initiator_proof: Schema.String.check(Schema.isPattern(/^[A-Za-z0-9_-]{43,128}$/)),
|
|
26
|
+
}).annotate({
|
|
27
|
+
identifier: "PublishAuthorizationPollingProof",
|
|
28
|
+
description: "Secret proof held by the initiator; never a public request reference or browser code.",
|
|
29
|
+
});
|
|
30
|
+
export const PublishAuthorizationPollingStatusSchema = Schema.Struct({
|
|
31
|
+
purpose: Schema.Literal("publish"),
|
|
32
|
+
status: Schema.Literals(["pending", "approved", "denied", "expired", "exchanged"]),
|
|
33
|
+
expires_at: DateTimeUtcSchema,
|
|
34
|
+
interval: Schema.Int.check(Schema.isGreaterThan(0)),
|
|
35
|
+
publication_set_digest: Sha256HexSchema,
|
|
36
|
+
}).annotate({
|
|
37
|
+
identifier: "PublishAuthorizationPollingStatus",
|
|
38
|
+
title: "Publish authorization status",
|
|
39
|
+
description: "Proof-protected authorization status and material binding; approval is not publication completion.",
|
|
40
|
+
});
|
|
41
|
+
//# sourceMappingURL=publish-authorization.js.map
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import * as Schema from "effect/Schema";
|
|
7
7
|
export declare const DiscoveryResolvedExtensionSchema: Schema.Struct<{
|
|
8
8
|
readonly owner: Schema.Union<readonly [Schema.brand<Schema.String, "Handle">, Schema.brand<Schema.String, "Slug">]>;
|
|
9
|
-
readonly type: Schema.Literals<readonly ("skill" | "mcp-server" | "subagent" | "rule" | "hook" | "knowledge" | "pack" | "rules" | "skills" | "mcps" | "subagents" | "hooks"
|
|
9
|
+
readonly type: Schema.Literals<readonly ("skill" | "mcp-server" | "subagent" | "rule" | "hook" | "knowledge" | "pack" | "packs" | "rules" | "skills" | "mcps" | "subagents" | "hooks")[]>;
|
|
10
10
|
readonly name: Schema.brand<Schema.NonEmptyString, "ExtensionName">;
|
|
11
11
|
readonly installVersion: Schema.brand<Schema.String, "Version">;
|
|
12
12
|
}>;
|
|
@@ -16,7 +16,7 @@ export declare const DiscoveryExtensionResultSchema: Schema.Struct<{
|
|
|
16
16
|
readonly resolved: Schema.Boolean;
|
|
17
17
|
readonly extension: Schema.optional<Schema.Struct<{
|
|
18
18
|
readonly owner: Schema.Union<readonly [Schema.brand<Schema.String, "Handle">, Schema.brand<Schema.String, "Slug">]>;
|
|
19
|
-
readonly type: Schema.Literals<readonly ("skill" | "mcp-server" | "subagent" | "rule" | "hook" | "knowledge" | "pack" | "rules" | "skills" | "mcps" | "subagents" | "hooks"
|
|
19
|
+
readonly type: Schema.Literals<readonly ("skill" | "mcp-server" | "subagent" | "rule" | "hook" | "knowledge" | "pack" | "packs" | "rules" | "skills" | "mcps" | "subagents" | "hooks")[]>;
|
|
20
20
|
readonly name: Schema.brand<Schema.NonEmptyString, "ExtensionName">;
|
|
21
21
|
readonly installVersion: Schema.brand<Schema.String, "Version">;
|
|
22
22
|
}>>;
|
|
@@ -34,7 +34,7 @@ export declare const DiscoveryPackageResultSchema: Schema.Struct<{
|
|
|
34
34
|
readonly resolved: Schema.Boolean;
|
|
35
35
|
readonly extension: Schema.optional<Schema.Struct<{
|
|
36
36
|
readonly owner: Schema.Union<readonly [Schema.brand<Schema.String, "Handle">, Schema.brand<Schema.String, "Slug">]>;
|
|
37
|
-
readonly type: Schema.Literals<readonly ("skill" | "mcp-server" | "subagent" | "rule" | "hook" | "knowledge" | "pack" | "rules" | "skills" | "mcps" | "subagents" | "hooks"
|
|
37
|
+
readonly type: Schema.Literals<readonly ("skill" | "mcp-server" | "subagent" | "rule" | "hook" | "knowledge" | "pack" | "packs" | "rules" | "skills" | "mcps" | "subagents" | "hooks")[]>;
|
|
38
38
|
readonly name: Schema.brand<Schema.NonEmptyString, "ExtensionName">;
|
|
39
39
|
readonly installVersion: Schema.brand<Schema.String, "Version">;
|
|
40
40
|
}>>;
|
|
@@ -54,7 +54,7 @@ export declare const DiscoverPackagesResponseSchema: Schema.Struct<{
|
|
|
54
54
|
readonly resolved: Schema.Boolean;
|
|
55
55
|
readonly extension: Schema.optional<Schema.Struct<{
|
|
56
56
|
readonly owner: Schema.Union<readonly [Schema.brand<Schema.String, "Handle">, Schema.brand<Schema.String, "Slug">]>;
|
|
57
|
-
readonly type: Schema.Literals<readonly ("skill" | "mcp-server" | "subagent" | "rule" | "hook" | "knowledge" | "pack" | "rules" | "skills" | "mcps" | "subagents" | "hooks"
|
|
57
|
+
readonly type: Schema.Literals<readonly ("skill" | "mcp-server" | "subagent" | "rule" | "hook" | "knowledge" | "pack" | "packs" | "rules" | "skills" | "mcps" | "subagents" | "hooks")[]>;
|
|
58
58
|
readonly name: Schema.brand<Schema.NonEmptyString, "ExtensionName">;
|
|
59
59
|
readonly installVersion: Schema.brand<Schema.String, "Version">;
|
|
60
60
|
}>>;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"url": "https://github.com/agentxm/axm/issues"
|
|
5
5
|
},
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@agentxm/extension-model": "^0.28.
|
|
7
|
+
"@agentxm/extension-model": "^0.28.12",
|
|
8
8
|
"effect": "4.0.0-rc.112",
|
|
9
9
|
"semver": "^7.8.5",
|
|
10
10
|
"yaml": "^2.9.0"
|
|
@@ -52,6 +52,11 @@
|
|
|
52
52
|
"default": "./dist/src/unstable/content/subagent-content.js",
|
|
53
53
|
"types": "./dist/src/unstable/content/subagent-content.d.ts"
|
|
54
54
|
},
|
|
55
|
+
"./unstable/human-handoff": {
|
|
56
|
+
"axm-source": "./src/unstable/human-handoff.ts",
|
|
57
|
+
"default": "./dist/src/unstable/human-handoff.js",
|
|
58
|
+
"types": "./dist/src/unstable/human-handoff.d.ts"
|
|
59
|
+
},
|
|
55
60
|
"./unstable/knowledge": {
|
|
56
61
|
"axm-source": "./src/unstable/knowledge/index.ts",
|
|
57
62
|
"default": "./dist/src/unstable/knowledge/index.js",
|
|
@@ -177,6 +182,11 @@
|
|
|
177
182
|
"default": "./dist/src/unstable/publish/index.js",
|
|
178
183
|
"types": "./dist/src/unstable/publish/index.d.ts"
|
|
179
184
|
},
|
|
185
|
+
"./unstable/publish-authorization": {
|
|
186
|
+
"axm-source": "./src/unstable/publish-authorization.ts",
|
|
187
|
+
"default": "./dist/src/unstable/publish-authorization.js",
|
|
188
|
+
"types": "./dist/src/unstable/publish-authorization.d.ts"
|
|
189
|
+
},
|
|
180
190
|
"./unstable/publish/archive-guardrails": {
|
|
181
191
|
"axm-source": "./src/unstable/publish/archive-guardrails.ts",
|
|
182
192
|
"default": "./dist/src/unstable/publish/archive-guardrails.js",
|
|
@@ -257,5 +267,5 @@
|
|
|
257
267
|
"url": "https://github.com/agentxm/axm.git"
|
|
258
268
|
},
|
|
259
269
|
"type": "module",
|
|
260
|
-
"version": "0.28.
|
|
270
|
+
"version": "0.28.12"
|
|
261
271
|
}
|