@forgeailab/spark-schema 0.1.3 → 0.2.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/pack.ts +0 -13
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forgeailab/spark-schema",
3
- "version": "0.1.3",
3
+ "version": "0.2.0",
4
4
  "description": "Shared Zod schemas + TOML parsers for spark pack and template manifests.",
5
5
  "type": "module",
6
6
  "publishConfig": {
package/src/pack.ts CHANGED
@@ -2,8 +2,6 @@ import { z } from 'zod';
2
2
  import { PackCapability, TemplateCapability } from './capabilities.ts';
3
3
 
4
4
  const packNamePattern = /^[a-z][a-z0-9-]*$/;
5
- const npmPackageNamePattern =
6
- /^(?=.{1,214}$)(?:@[a-z0-9][a-z0-9._-]*\/)?[a-z0-9][a-z0-9._-]*$/;
7
5
  const semverPattern =
8
6
  /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?(?:\+[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?$/;
9
7
 
@@ -68,15 +66,6 @@ export const PackTasksSchema = z
68
66
  })
69
67
  .strict();
70
68
 
71
- const RuntimePackageBlockSchema = z
72
- .object({
73
- package: z.string().regex(npmPackageNamePattern, {
74
- message: 'Runtime package names must be valid npm package names',
75
- }),
76
- version: z.string().min(1),
77
- })
78
- .strict();
79
-
80
69
  export const PackManifestSchema = z
81
70
  .object({
82
71
  name: PackName,
@@ -93,9 +82,7 @@ export const PackManifestSchema = z
93
82
  files: z.array(PackFileOperationSchema).optional(),
94
83
  skills: PackSkillsSchema.optional(),
95
84
  tasks: PackTasksSchema.optional(),
96
- runtime_package: RuntimePackageBlockSchema.optional(),
97
85
  })
98
86
  .strict();
99
87
 
100
- export type RuntimePackageBlock = z.infer<typeof RuntimePackageBlockSchema>;
101
88
  export type PackManifest = z.infer<typeof PackManifestSchema>;