@agentxm/extension-model 0.29.1 → 0.29.4

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.
@@ -41,7 +41,7 @@ const formatReleaseAgeExcludePattern = (pattern) => pattern.type === "*"
41
41
  ? `${pattern.owner}/*`
42
42
  : `${pattern.owner}/${toExtensionTypePlural(pattern.type)}/${pattern.name}`;
43
43
  /** A validated publisher, type, or exact-extension release-age exemption. */
44
- export const ReleaseAgeExcludePatternSchema = Schema.String.pipe(Schema.decodeTo(Schema.toType(ReleaseAgeExcludePatternPartsSchema), SchemaTransformation.transformOrFail({
44
+ export const ReleaseAgeExcludePatternSchema = Schema.String.pipe(Schema.decodeTo(Schema.toType(ReleaseAgeExcludePatternPartsSchema), SchemaTransformation.transformEffect({
45
45
  decode: (input) => {
46
46
  const parsed = parseReleaseAgeExcludePattern(input);
47
47
  return parsed === undefined
@@ -137,7 +137,7 @@ export const formatRegistrySourcePatternParts = (value) => {
137
137
  return output;
138
138
  };
139
139
  export const formatRegistrySourceRef = (value) => formatRegistrySourcePatternParts(value);
140
- export const RegistrySourcePatternSchema = Schema.String.pipe(Schema.decodeTo(Schema.toType(RegistrySourcePatternPartsSchema), SchemaTransformation.transformOrFail({
140
+ export const RegistrySourcePatternSchema = Schema.String.pipe(Schema.decodeTo(Schema.toType(RegistrySourcePatternPartsSchema), SchemaTransformation.transformEffect({
141
141
  decode: (input) => {
142
142
  const parsed = parseRegistrySourcePatternParts(input);
143
143
  return parsed === undefined
@@ -146,7 +146,7 @@ export const RegistrySourcePatternSchema = Schema.String.pipe(Schema.decodeTo(Sc
146
146
  },
147
147
  encode: (value) => Effect.succeed(formatRegistrySourcePatternParts(value)),
148
148
  })));
149
- export const RegistrySourceRefSchema = Schema.String.pipe(Schema.decodeTo(Schema.toType(RegistrySourceRefPartsSchema), SchemaTransformation.transformOrFail({
149
+ export const RegistrySourceRefSchema = Schema.String.pipe(Schema.decodeTo(Schema.toType(RegistrySourceRefPartsSchema), SchemaTransformation.transformEffect({
150
150
  decode: (input) => {
151
151
  const parsed = parseRegistrySourceRef(input);
152
152
  return parsed === undefined
@@ -149,7 +149,7 @@ const parseVersRangeEffect = (value) => {
149
149
  ? Effect.fail(new SchemaIssue.Forbidden({ message: result }, value))
150
150
  : Effect.succeed(result);
151
151
  };
152
- export const VersRangeSchema = Schema.NonEmptyString.pipe(Schema.decodeTo(Schema.toType(VersRangeDecodedSchema), SchemaTransformation.transformOrFail({
152
+ export const VersRangeSchema = Schema.NonEmptyString.pipe(Schema.decodeTo(Schema.toType(VersRangeDecodedSchema), SchemaTransformation.transformEffect({
153
153
  decode: parseVersRangeEffect,
154
154
  encode: (value) => Effect.succeed(value.raw),
155
155
  })), Schema.annotate({
@@ -70,7 +70,7 @@ export const PackageUrlSchema = Schema.String.pipe(Schema.check(Schema.isPattern
70
70
  description: "A Package URL (purl) string identifying a package across ecosystems (e.g. pkg:npm/react@18.2.0).",
71
71
  examples: ["pkg:npm/react@18.2.0", "pkg:pypi/requests@2.31.0", "pkg:cargo/serde@1.0"],
72
72
  message: "Expected a Package URL like pkg:npm/react@18.2.0",
73
- })), Schema.decodeTo(Schema.toType(PackageUrlPartsSchema), SchemaTransformation.transformOrFail({
73
+ })), Schema.decodeTo(Schema.toType(PackageUrlPartsSchema), SchemaTransformation.transformEffect({
74
74
  decode: (input) => {
75
75
  try {
76
76
  const parsed = PackageURL.fromString(input);
package/package.json CHANGED
@@ -4,20 +4,21 @@
4
4
  "url": "https://github.com/agentxm/axm/issues"
5
5
  },
6
6
  "dependencies": {
7
- "effect": "4.0.0-rc.112",
7
+ "effect": "4.0.0-rc.115",
8
8
  "packageurl-js": "^2.0.1",
9
9
  "semver": "^7.8.5",
10
10
  "spdx-expression-parse": "4.0.0"
11
11
  },
12
12
  "description": "Shared AgentXM extension model: identities, manifests, version constraints, and agent capabilities. Unstable and unsupported — use the axm.sh CLI.",
13
13
  "devDependencies": {
14
- "@agentxm/specification-metadata": "0.29.1",
15
- "@effect/vitest": "4.0.0-rc.112",
14
+ "@agentxm/specification-metadata": "0.29.4",
15
+ "@effect/vitest": "4.0.0-rc.115",
16
+ "@fast-check/vitest": "^0.5.0",
16
17
  "@types/semver": "^7.7.1",
17
18
  "@types/spdx-expression-parse": "4.0.0",
18
19
  "@typescript/native": "npm:typescript@^7.0.2",
19
20
  "typescript": "npm:@typescript/typescript6@^6.0.2",
20
- "vitest": "^4.1.10"
21
+ "vitest": "^5.0.0"
21
22
  },
22
23
  "engines": {
23
24
  "node": ">=22.19.0"
@@ -339,5 +340,5 @@
339
340
  },
340
341
  "sideEffects": false,
341
342
  "type": "module",
342
- "version": "0.29.1"
343
+ "version": "0.29.4"
343
344
  }