@agentxm/registry-protocol 0.29.2 → 0.30.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.
@@ -6,5 +6,4 @@
6
6
  export { type DiscoverPackagesResponse, DiscoverPackagesResponseSchema, type DiscoveryExtensionResult, DiscoveryExtensionResultSchema, type DiscoveryPackageResult, DiscoveryPackageResultSchema, type DiscoveryResolvedExtension, DiscoveryResolvedExtensionSchema, } from "./discover-schema.js";
7
7
  export { MAX_PUBLICATION_SET_CANDIDATES, PUBLICATION_SET_CONTRACT, type PackDependencyDescriptor, type PackDependencyFinding, PackDependencyFindingSchema, type PreviewPublicationSetRequest, PreviewPublicationSetRequestSchema, type PreviewPublicationSetResponse, PreviewPublicationSetResponseSchema, type ProspectivePackDependencyState, type ProspectivePublicationCandidate, type PublicationCandidateResult, type PublicationDependencySnapshot, type PublicationDependencyVersionSnapshot, type PublicationDescriptor, type PublicationPackResult, type PublicationTarget, type PublicationVisibilityInput, PublicationVisibilityInputSchema, type Sha256Hex, Sha256HexSchema, archiveSha256Hex, comparePublicationTargets, evaluateProspectivePackDependencies, evaluateProspectivePackDependencyState, normalizePublicationDescriptor, normalizePublicationSet, publicationDescriptorDigest, publicationSetDigest, publicationTargetKey, validatePublicationDescriptors, validatePublicationSetResponse, } from "./publication-set.js";
8
8
  export { type DeprecationManagementView, DeprecationManagementViewSchema, type DeprecationReplacementIntent, DeprecationReplacementIntentSchema, DeprecationRevisionSchema, type DeprecationTransition, DeprecationTransitionSchema, type ExtensionIndex, ExtensionIndexSchema, type VersionEntry, VersionEntrySchema, packagesToPackageUrlParts, } from "./schema.js";
9
- export { resolveVersionEntry, selectVersion } from "./version-selection.js";
10
9
  //# sourceMappingURL=index.d.ts.map
@@ -6,5 +6,4 @@
6
6
  export { DiscoverPackagesResponseSchema, DiscoveryExtensionResultSchema, DiscoveryPackageResultSchema, DiscoveryResolvedExtensionSchema, } from "./discover-schema.js";
7
7
  export { MAX_PUBLICATION_SET_CANDIDATES, PUBLICATION_SET_CONTRACT, PackDependencyFindingSchema, PreviewPublicationSetRequestSchema, PreviewPublicationSetResponseSchema, PublicationVisibilityInputSchema, Sha256HexSchema, archiveSha256Hex, comparePublicationTargets, evaluateProspectivePackDependencies, evaluateProspectivePackDependencyState, normalizePublicationDescriptor, normalizePublicationSet, publicationDescriptorDigest, publicationSetDigest, publicationTargetKey, validatePublicationDescriptors, validatePublicationSetResponse, } from "./publication-set.js";
8
8
  export { DeprecationManagementViewSchema, DeprecationReplacementIntentSchema, DeprecationRevisionSchema, DeprecationTransitionSchema, ExtensionIndexSchema, VersionEntrySchema, packagesToPackageUrlParts, } from "./schema.js";
9
- export { resolveVersionEntry, selectVersion } from "./version-selection.js";
10
9
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -4,13 +4,12 @@
4
4
  "url": "https://github.com/agentxm/axm/issues"
5
5
  },
6
6
  "dependencies": {
7
- "@agentxm/extension-model": "^0.29.2",
7
+ "@agentxm/extension-model": "^0.30.1",
8
8
  "effect": "4.0.0-rc.115",
9
9
  "semver": "^7.8.5"
10
10
  },
11
11
  "description": "AgentXM Registry wire contracts: index, discovery, publication-set, visibility, authorization, and suggested-action schemas. Unstable and unsupported — use the axm.sh CLI.",
12
12
  "devDependencies": {
13
- "@effect/platform-node": "4.0.0-rc.115",
14
13
  "@effect/vitest": "4.0.0-rc.115",
15
14
  "@types/semver": "^7.7.1",
16
15
  "@typescript/native": "npm:typescript@^7.0.2",
@@ -21,50 +20,37 @@
21
20
  "node": ">=22.19.0"
22
21
  },
23
22
  "exports": {
24
- "./unstable/human-handoff": {
25
- "axm-source": "./src/unstable/human-handoff.ts",
26
- "default": "./dist/src/unstable/human-handoff.js",
27
- "types": "./dist/src/unstable/human-handoff.d.ts"
28
- },
29
23
  "./unstable/publish": {
30
- "axm-source": "./src/unstable/publish/index.ts",
31
- "default": "./dist/src/unstable/publish/index.js",
32
- "types": "./dist/src/unstable/publish/index.d.ts"
33
- },
34
- "./unstable/publish-authorization": {
35
- "axm-source": "./src/unstable/publish-authorization.ts",
36
- "default": "./dist/src/unstable/publish-authorization.js",
37
- "types": "./dist/src/unstable/publish-authorization.d.ts"
24
+ "types": "./dist/src/unstable/publish/index.d.ts",
25
+ "default": "./dist/src/unstable/publish/index.js"
38
26
  },
39
27
  "./unstable/registry": {
40
- "axm-source": "./src/unstable/registry/index.ts",
41
- "default": "./dist/src/unstable/registry/index.js",
42
- "types": "./dist/src/unstable/registry/index.d.ts"
28
+ "types": "./dist/src/unstable/registry/index.d.ts",
29
+ "default": "./dist/src/unstable/registry/index.js"
43
30
  },
44
31
  "./unstable/registry/discover-schema": {
45
- "axm-source": "./src/unstable/registry/discover-schema.ts",
46
- "default": "./dist/src/unstable/registry/discover-schema.js",
47
- "types": "./dist/src/unstable/registry/discover-schema.d.ts"
32
+ "types": "./dist/src/unstable/registry/discover-schema.d.ts",
33
+ "default": "./dist/src/unstable/registry/discover-schema.js"
48
34
  },
49
35
  "./unstable/registry/publication-set": {
50
- "axm-source": "./src/unstable/registry/publication-set.ts",
51
- "default": "./dist/src/unstable/registry/publication-set.js",
52
- "types": "./dist/src/unstable/registry/publication-set.d.ts"
36
+ "types": "./dist/src/unstable/registry/publication-set.d.ts",
37
+ "default": "./dist/src/unstable/registry/publication-set.js"
53
38
  },
54
39
  "./unstable/registry/schema": {
55
- "axm-source": "./src/unstable/registry/schema.ts",
56
- "default": "./dist/src/unstable/registry/schema.js",
57
- "types": "./dist/src/unstable/registry/schema.d.ts"
58
- },
59
- "./unstable/registry/version-selection": {
60
- "axm-source": "./src/unstable/registry/version-selection.ts",
61
- "default": "./dist/src/unstable/registry/version-selection.js",
62
- "types": "./dist/src/unstable/registry/version-selection.d.ts"
40
+ "types": "./dist/src/unstable/registry/schema.d.ts",
41
+ "default": "./dist/src/unstable/registry/schema.js"
63
42
  },
64
43
  "./unstable/suggested-action": {
65
- "axm-source": "./src/unstable/suggested-action.ts",
66
- "default": "./dist/src/unstable/suggested-action.js",
67
- "types": "./dist/src/unstable/suggested-action.d.ts"
44
+ "types": "./dist/src/unstable/suggested-action.d.ts",
45
+ "default": "./dist/src/unstable/suggested-action.js"
46
+ },
47
+ "./unstable/human-handoff": {
48
+ "types": "./dist/src/unstable/human-handoff.d.ts",
49
+ "default": "./dist/src/unstable/human-handoff.js"
50
+ },
51
+ "./unstable/publish-authorization": {
52
+ "types": "./dist/src/unstable/publish-authorization.d.ts",
53
+ "default": "./dist/src/unstable/publish-authorization.js"
68
54
  }
69
55
  },
70
56
  "files": [
@@ -86,5 +72,5 @@
86
72
  "url": "https://github.com/agentxm/axm.git"
87
73
  },
88
74
  "type": "module",
89
- "version": "0.29.2"
75
+ "version": "0.30.1"
90
76
  }
@@ -1,22 +0,0 @@
1
- /**
2
- * Which entry a Registry index designates for a version request.
3
- *
4
- * The rule is part of the Registry contract: a yanked version is selectable
5
- * only when requested exactly, and a range resolves to the highest non-yanked
6
- * version it admits.
7
- *
8
- * @experimental This API is unstable and may change without notice.
9
- * @packageDocumentation
10
- */
11
- import * as Option from "effect/Option";
12
- import type { VersionEntry } from "./schema.js";
13
- /**
14
- * Select the highest non-yanked version, independent of index order.
15
- */
16
- export declare const selectVersion: (versions: ReadonlyArray<VersionEntry>) => Option.Option<VersionEntry>;
17
- /**
18
- * Resolve an optional exact version or range against an index: an exact
19
- * version matches even when yanked; a range excludes yanked versions.
20
- */
21
- export declare const resolveVersionEntry: (versions: ReadonlyArray<VersionEntry>, versionRange: Option.Option<string>) => Option.Option<VersionEntry>;
22
- //# sourceMappingURL=version-selection.d.ts.map
@@ -1,39 +0,0 @@
1
- /**
2
- * Which entry a Registry index designates for a version request.
3
- *
4
- * The rule is part of the Registry contract: a yanked version is selectable
5
- * only when requested exactly, and a range resolves to the highest non-yanked
6
- * version it admits.
7
- *
8
- * @experimental This API is unstable and may change without notice.
9
- * @packageDocumentation
10
- */
11
- import * as Option from "effect/Option";
12
- import * as semver from "semver";
13
- import { resolveVersionInRange } from "@agentxm/extension-model/unstable/version-constraints";
14
- /**
15
- * Select the highest non-yanked version, independent of index order.
16
- */
17
- export const selectVersion = (versions) => {
18
- const availableVersions = versions.filter((entry) => entry.yankedAt === undefined);
19
- return resolveVersionInRange(availableVersions, Option.none());
20
- };
21
- /**
22
- * Resolve an optional exact version or range against an index: an exact
23
- * version matches even when yanked; a range excludes yanked versions.
24
- */
25
- export const resolveVersionEntry = (versions, versionRange) => {
26
- if (Option.isNone(versionRange)) {
27
- return selectVersion(versions);
28
- }
29
- if (semver.valid(versionRange.value) === versionRange.value) {
30
- return Option.fromUndefinedOr(versions.find((candidate) => candidate.version === versionRange.value));
31
- }
32
- const availableVersions = versions.filter((entry) => entry.yankedAt === undefined);
33
- const resolved = resolveVersionInRange(availableVersions, versionRange);
34
- if (Option.isNone(resolved)) {
35
- return Option.none();
36
- }
37
- return Option.fromUndefinedOr(availableVersions.find((candidate) => candidate.version === resolved.value.version));
38
- };
39
- //# sourceMappingURL=version-selection.js.map