@aryasaatvik/scratchpad 0.3.3 → 0.3.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## @aryasaatvik/scratchpad@0.3.4
2
+
3
+ ### Clearer `depends_on` errors in `backlog validate`
4
+
5
+ `scratchpad backlog validate` now tells a missing `depends_on` target apart from one that exists but is not a backlog record of the same kind. A milestone that names a handoff note reports `depends_on target is not a backlog milestone`, not `does not exist`. The backlog contract now says that an issue's `depends_on` names issues, a milestone's names milestones, and any other prerequisite is linked from the body.
6
+
1
7
  ## @aryasaatvik/scratchpad@0.3.3
2
8
 
3
9
  ### Install from a private repository's releases
@@ -48408,7 +48408,7 @@ var bundleHtml = async (options) => {
48408
48408
  // package.json
48409
48409
  var package_default = {
48410
48410
  name: "@aryasaatvik/scratchpad",
48411
- version: "0.3.3",
48411
+ version: "0.3.4",
48412
48412
  description: "Local-first GitHub issue and milestone tracking, hosted artifacts and uploads, and local architecture codemaps.",
48413
48413
  keywords: [
48414
48414
  "bun",
@@ -49031,6 +49031,7 @@ var loadBacklog = fn2("cli.backlog.loadBacklog")(function* () {
49031
49031
  });
49032
49032
  var validateBacklog = fn2("cli.backlog.validateBacklog")(function* () {
49033
49033
  const project = yield* Project;
49034
+ const fs = yield* FileSystem;
49034
49035
  const path = yield* Path;
49035
49036
  const loaded = yield* loadBacklog();
49036
49037
  const issues = loaded.records.filter((record) => record.kind === "issue");
@@ -49044,9 +49045,10 @@ var validateBacklog = fn2("cli.backlog.validateBacklog")(function* () {
49044
49045
  dependencyPaths.set(record.absolutePath, dependencies);
49045
49046
  for (const [index, target] of dependencies.entries()) {
49046
49047
  if (recordByPath.get(target)?.kind !== record.kind) {
49048
+ const reason = (yield* fs.exists(target)) ? `is not a backlog ${record.kind}` : "does not exist";
49047
49049
  problems.push({
49048
49050
  file: record.file,
49049
- problem: `depends_on target does not exist: ${record.dependsOn?.[index]}`
49051
+ problem: `depends_on target ${reason}: ${record.dependsOn?.[index]}`
49050
49052
  });
49051
49053
  }
49052
49054
  }
@@ -51228,11 +51230,13 @@ depends_on:
51228
51230
  Omit \`milestone\` or \`depends_on\` when inapplicable. Keep status vocabulary repository-defined. Use
51229
51231
  resolvable relative Markdown paths and explain dependency reasons in the body.
51230
51232
 
51231
- Every \`milestone\` and \`depends_on\` path is relative to the file that contains it. Issues and
51232
- milestones may be nested in subfolders at any depth under \`backlog/issues/\` and
51233
- \`backlog/milestones/\`; a nested issue climbs one more \`../\` per level (\`backlog/issues/sub/i1.md\`
51234
- names \`../../milestones/m1.md\`). \`scratchpad backlog new\` creates flat files, and validation, the
51235
- graph, and GitHub sync all resolve nested files the same way.
51233
+ Every \`milestone\` and \`depends_on\` path is relative to the file that contains it. An issue's
51234
+ \`depends_on\` names other issues and a milestone's names other milestones; link any other
51235
+ prerequisite, such as a handoff or research note, from the body instead. Issues and milestones may
51236
+ be nested in subfolders at any depth under \`backlog/issues/\` and \`backlog/milestones/\`; a nested
51237
+ issue climbs one more \`../\` per level (\`backlog/issues/sub/i1.md\` names \`../../milestones/m1.md\`).
51238
+ \`scratchpad backlog new\` creates flat files, and validation, the graph, and GitHub sync all resolve
51239
+ nested files the same way.
51236
51240
 
51237
51241
  ## Materialize and update
51238
51242
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aryasaatvik/scratchpad",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "description": "Local-first GitHub issue and milestone tracking, hosted artifacts and uploads, and local architecture codemaps.",
5
5
  "keywords": [
6
6
  "bun",