@openspecui/core 3.2.1 → 3.2.3

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/dist/index.d.mts +25 -25
  2. package/package.json +1 -1
package/dist/index.d.mts CHANGED
@@ -307,11 +307,11 @@ declare const DeltaSpecSchema: z.ZodObject<{
307
307
  /** Raw markdown content of the delta spec */
308
308
  content: z.ZodString;
309
309
  }, "strip", z.ZodTypeAny, {
310
- specId: string;
311
310
  content: string;
312
- }, {
313
311
  specId: string;
312
+ }, {
314
313
  content: string;
314
+ specId: string;
315
315
  }>;
316
316
  type DeltaSpec = z.infer<typeof DeltaSpecSchema>;
317
317
  /**
@@ -489,11 +489,11 @@ declare const ChangeSchema: z.ZodObject<{
489
489
  /** Raw markdown content of the delta spec */
490
490
  content: z.ZodString;
491
491
  }, "strip", z.ZodTypeAny, {
492
- specId: string;
493
492
  content: string;
494
- }, {
495
493
  specId: string;
494
+ }, {
496
495
  content: string;
496
+ specId: string;
497
497
  }>, "many">>;
498
498
  /** Optional metadata */
499
499
  metadata: z.ZodOptional<z.ZodObject<{
@@ -550,8 +550,8 @@ declare const ChangeSchema: z.ZodObject<{
550
550
  } | undefined;
551
551
  design?: string | undefined;
552
552
  deltaSpecs?: {
553
- specId: string;
554
553
  content: string;
554
+ specId: string;
555
555
  }[] | undefined;
556
556
  }, {
557
557
  id: string;
@@ -597,8 +597,8 @@ declare const ChangeSchema: z.ZodObject<{
597
597
  } | undefined;
598
598
  design?: string | undefined;
599
599
  deltaSpecs?: {
600
- specId: string;
601
600
  content: string;
601
+ specId: string;
602
602
  }[] | undefined;
603
603
  }>;
604
604
  type Change = z.infer<typeof ChangeSchema>;
@@ -804,8 +804,8 @@ declare class OpenSpecAdapter {
804
804
  } | undefined;
805
805
  design?: string | undefined;
806
806
  deltaSpecs?: {
807
- specId: string;
808
807
  content: string;
808
+ specId: string;
809
809
  }[] | undefined;
810
810
  }[];
811
811
  archivedCount: number;
@@ -2012,14 +2012,14 @@ declare const ArtifactStatusSchema: z.ZodObject<{
2012
2012
  missingDeps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2013
2013
  relativePath: z.ZodOptional<z.ZodString>;
2014
2014
  }, "strip", z.ZodTypeAny, {
2015
- id: string;
2016
2015
  status: "done" | "ready" | "blocked";
2016
+ id: string;
2017
2017
  outputPath: string;
2018
2018
  missingDeps?: string[] | undefined;
2019
2019
  relativePath?: string | undefined;
2020
2020
  }, {
2021
- id: string;
2022
2021
  status: "done" | "ready" | "blocked";
2022
+ id: string;
2023
2023
  outputPath: string;
2024
2024
  missingDeps?: string[] | undefined;
2025
2025
  relativePath?: string | undefined;
@@ -2037,14 +2037,14 @@ declare const ChangeStatusSchema: z.ZodObject<{
2037
2037
  missingDeps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2038
2038
  relativePath: z.ZodOptional<z.ZodString>;
2039
2039
  }, "strip", z.ZodTypeAny, {
2040
- id: string;
2041
2040
  status: "done" | "ready" | "blocked";
2041
+ id: string;
2042
2042
  outputPath: string;
2043
2043
  missingDeps?: string[] | undefined;
2044
2044
  relativePath?: string | undefined;
2045
2045
  }, {
2046
- id: string;
2047
2046
  status: "done" | "ready" | "blocked";
2047
+ id: string;
2048
2048
  outputPath: string;
2049
2049
  missingDeps?: string[] | undefined;
2050
2050
  relativePath?: string | undefined;
@@ -2055,8 +2055,8 @@ declare const ChangeStatusSchema: z.ZodObject<{
2055
2055
  isComplete: boolean;
2056
2056
  applyRequires: string[];
2057
2057
  artifacts: {
2058
- id: string;
2059
2058
  status: "done" | "ready" | "blocked";
2059
+ id: string;
2060
2060
  outputPath: string;
2061
2061
  missingDeps?: string[] | undefined;
2062
2062
  relativePath?: string | undefined;
@@ -2067,8 +2067,8 @@ declare const ChangeStatusSchema: z.ZodObject<{
2067
2067
  isComplete: boolean;
2068
2068
  applyRequires: string[];
2069
2069
  artifacts: {
2070
- id: string;
2071
2070
  status: "done" | "ready" | "blocked";
2071
+ id: string;
2072
2072
  outputPath: string;
2073
2073
  missingDeps?: string[] | undefined;
2074
2074
  relativePath?: string | undefined;
@@ -2081,13 +2081,13 @@ declare const DependencyInfoSchema: z.ZodObject<{
2081
2081
  path: z.ZodString;
2082
2082
  description: z.ZodString;
2083
2083
  }, "strip", z.ZodTypeAny, {
2084
- id: string;
2085
2084
  path: string;
2085
+ id: string;
2086
2086
  description: string;
2087
2087
  done: boolean;
2088
2088
  }, {
2089
- id: string;
2090
2089
  path: string;
2090
+ id: string;
2091
2091
  description: string;
2092
2092
  done: boolean;
2093
2093
  }>;
@@ -2196,13 +2196,13 @@ declare const ArtifactInstructionsSchema: z.ZodObject<{
2196
2196
  path: z.ZodString;
2197
2197
  description: z.ZodString;
2198
2198
  }, "strip", z.ZodTypeAny, {
2199
- id: string;
2200
2199
  path: string;
2200
+ id: string;
2201
2201
  description: string;
2202
2202
  done: boolean;
2203
2203
  }, {
2204
- id: string;
2205
2204
  path: string;
2205
+ id: string;
2206
2206
  description: string;
2207
2207
  done: boolean;
2208
2208
  }>, "many">;
@@ -2216,8 +2216,8 @@ declare const ArtifactInstructionsSchema: z.ZodObject<{
2216
2216
  artifactId: string;
2217
2217
  template: string;
2218
2218
  dependencies: {
2219
- id: string;
2220
2219
  path: string;
2220
+ id: string;
2221
2221
  description: string;
2222
2222
  done: boolean;
2223
2223
  }[];
@@ -2234,8 +2234,8 @@ declare const ArtifactInstructionsSchema: z.ZodObject<{
2234
2234
  artifactId: string;
2235
2235
  template: string;
2236
2236
  dependencies: {
2237
- id: string;
2238
2237
  path: string;
2238
+ id: string;
2239
2239
  description: string;
2240
2240
  done: boolean;
2241
2241
  }[];
@@ -2281,8 +2281,8 @@ declare const SchemaResolutionSchema: z.ZodObject<{
2281
2281
  displayPath?: string | undefined;
2282
2282
  }>, "many">;
2283
2283
  }, "strip", z.ZodTypeAny, {
2284
- name: string;
2285
2284
  path: string;
2285
+ name: string;
2286
2286
  source: "project" | "user" | "package";
2287
2287
  shadows: {
2288
2288
  path: string;
@@ -2291,8 +2291,8 @@ declare const SchemaResolutionSchema: z.ZodObject<{
2291
2291
  }[];
2292
2292
  displayPath?: string | undefined;
2293
2293
  }, {
2294
- name: string;
2295
2294
  path: string;
2295
+ name: string;
2296
2296
  source: "project" | "user" | "package";
2297
2297
  shadows: {
2298
2298
  path: string;
@@ -3051,14 +3051,14 @@ declare const PtyErrorResponseSchema: z.ZodObject<{
3051
3051
  message: z.ZodString;
3052
3052
  sessionId: z.ZodOptional<z.ZodString>;
3053
3053
  }, "strip", z.ZodTypeAny, {
3054
+ type: "error";
3054
3055
  code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND" | "PTY_CREATE_FAILED";
3055
3056
  message: string;
3056
- type: "error";
3057
3057
  sessionId?: string | undefined;
3058
3058
  }, {
3059
+ type: "error";
3059
3060
  code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND" | "PTY_CREATE_FAILED";
3060
3061
  message: string;
3061
- type: "error";
3062
3062
  sessionId?: string | undefined;
3063
3063
  }>;
3064
3064
  declare const PtyServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -3189,14 +3189,14 @@ declare const PtyServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
3189
3189
  message: z.ZodString;
3190
3190
  sessionId: z.ZodOptional<z.ZodString>;
3191
3191
  }, "strip", z.ZodTypeAny, {
3192
+ type: "error";
3192
3193
  code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND" | "PTY_CREATE_FAILED";
3193
3194
  message: string;
3194
- type: "error";
3195
3195
  sessionId?: string | undefined;
3196
3196
  }, {
3197
+ type: "error";
3197
3198
  code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND" | "PTY_CREATE_FAILED";
3198
3199
  message: string;
3199
- type: "error";
3200
3200
  sessionId?: string | undefined;
3201
3201
  }>]>;
3202
3202
  type PtyClientMessage = z.infer<typeof PtyClientMessageSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openspecui/core",
3
- "version": "3.2.1",
3
+ "version": "3.2.3",
4
4
  "description": "Core OpenSpec adapter and parser",
5
5
  "type": "module",
6
6
  "main": "./dist/index.mjs",