specatlas 0.1.31 → 0.1.33

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.
@@ -3,9 +3,9 @@ import {
3
3
  readTextIfExists,
4
4
  toPosix,
5
5
  writeText
6
- } from "./chunk-DKFIPJ74.js";
6
+ } from "./chunk-JQ7XEZUO.js";
7
7
 
8
- // ../core/dist/chunk-WF6H5ITI.js
8
+ // ../core/dist/chunk-M2L3N7Q4.js
9
9
  import path from "path";
10
10
  import { stringify as stringifyYaml } from "yaml";
11
11
  import { createHash } from "crypto";
@@ -94,6 +94,7 @@ var changeMetaSchema = z.object({
94
94
  mockups: z.enum(["required", "skip"]).optional(),
95
95
  tracker: z.object({ provider: z.string(), id: z.string() }).optional(),
96
96
  paused: z.object({ reason: z.string(), at: z.string(), by: z.string() }).optional(),
97
+ amendments: z.array(z.object({ reason: z.string(), by: z.string(), at: z.string(), from: z.string().optional(), to: z.string().optional() })).optional(),
97
98
  lane_history: z.array(z.object({ from: z.enum(["fix", "standard", "full"]), to: z.enum(["fix", "standard", "full"]), at: z.string(), by: z.string() })).optional(),
98
99
  diagram_exceptions: z.array(z.string()).optional(),
99
100
  overrides: z.array(z.object({ gate: z.string(), reason: z.string(), by: z.string(), at: z.string() })).optional()
@@ -124,6 +125,7 @@ function parseChangeMeta(raw, filePath) {
124
125
  if (v.mockups !== void 0) meta.mockups = v.mockups;
125
126
  if (v.tracker !== void 0) meta.tracker = v.tracker;
126
127
  if (v.paused !== void 0) meta.paused = v.paused;
128
+ if (v.amendments !== void 0) meta.amendments = v.amendments;
127
129
  if (v.lane_history !== void 0) meta.laneHistory = v.lane_history;
128
130
  if (v.diagram_exceptions !== void 0) meta.diagramExceptions = v.diagram_exceptions;
129
131
  if (v.overrides !== void 0) meta.overrides = v.overrides;
@@ -25,7 +25,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
25
25
  mod
26
26
  ));
27
27
 
28
- // ../core/dist/chunk-5RKNY2ZC.js
28
+ // ../core/dist/chunk-3IC2KG5H.js
29
29
  import { promises as fs } from "fs";
30
30
  import path from "path";
31
31
  async function exists(p) {
@@ -58,6 +58,10 @@ async function writeText(p, content) {
58
58
  await ensureDir(path.dirname(p));
59
59
  await fs.writeFile(p, content, "utf8");
60
60
  }
61
+ async function writeBytes(p, content) {
62
+ await ensureDir(path.dirname(p));
63
+ await fs.writeFile(p, content);
64
+ }
61
65
  async function ensureDir(p) {
62
66
  await fs.mkdir(p, { recursive: true });
63
67
  }
@@ -114,6 +118,7 @@ export {
114
118
  readText,
115
119
  readTextIfExists,
116
120
  writeText,
121
+ writeBytes,
117
122
  ensureDir,
118
123
  copyFile,
119
124
  listDir,
@@ -10,8 +10,9 @@ import {
10
10
  readTextIfExists,
11
11
  toPosix,
12
12
  walkFiles,
13
+ writeBytes,
13
14
  writeText
14
- } from "./chunk-DKFIPJ74.js";
15
+ } from "./chunk-JQ7XEZUO.js";
15
16
  export {
16
17
  copyFile,
17
18
  ensureDir,
@@ -23,5 +24,6 @@ export {
23
24
  readTextIfExists,
24
25
  toPosix,
25
26
  walkFiles,
27
+ writeBytes,
26
28
  writeText
27
29
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "specatlas",
3
- "version": "0.1.31",
3
+ "version": "0.1.33",
4
4
  "description": "SpecAtlas: kernel determinista de Spec-Driven Development (CLI)",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -39,8 +39,8 @@
39
39
  "zod": "^3.24.1"
40
40
  },
41
41
  "devDependencies": {
42
- "@specatlas/adapters": "0.1.1",
43
- "@specatlas/core": "0.1.28"
42
+ "@specatlas/adapters": "0.1.2",
43
+ "@specatlas/core": "0.1.29"
44
44
  },
45
45
  "scripts": {
46
46
  "typecheck": "tsc --noEmit",