specatlas 0.1.1 → 0.1.2

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/bin.js +17 -43
  2. package/package.json +2 -2
package/dist/bin.js CHANGED
@@ -12781,6 +12781,7 @@ import path20 from "path";
12781
12781
 
12782
12782
  // ../adapters/dist/index.js
12783
12783
  import path18 from "path";
12784
+ import { stringify as stringifyYaml5 } from "yaml";
12784
12785
  import path22 from "path";
12785
12786
  async function loadWorkflow(workflowDir) {
12786
12787
  const phasesDir = path18.join(workflowDir, "phases");
@@ -12834,6 +12835,15 @@ var NO_SUBSTITUTION_NOTE = "<!-- Si al invocar indicaste un slug, \xFAsalo; si n
12834
12835
  function vars(language, slugToken, commandPrefix) {
12835
12836
  return { SLUG: slugToken, LANGUAGE: language, LANGUAGE_NAME: LANGUAGE_NAMES[language], SDD_DIR: ".sdd", COMMAND_PREFIX: commandPrefix };
12836
12837
  }
12838
+ function frontmatter(data, body) {
12839
+ const yaml2 = stringifyYaml5(data, { lineWidth: 0 }).trimEnd();
12840
+ return `---
12841
+ ${yaml2}
12842
+ ---
12843
+
12844
+ ${body}
12845
+ `;
12846
+ }
12837
12847
  function renderFor(ctx, phase, slugToken) {
12838
12848
  return renderPhase(phase.body, ctx.sources.snippets, vars(ctx.language, slugToken, ctx.commandPrefix));
12839
12849
  }
@@ -12862,23 +12872,12 @@ function compileOpencode(ctx) {
12862
12872
  files.push({
12863
12873
  target: "opencode",
12864
12874
  path: `.opencode/command/satlas-${phase.id}.md`,
12865
- content: `---
12866
- description: ${phase.description}
12867
- ---
12868
-
12869
- ${commandBody}
12870
- `
12875
+ content: frontmatter({ description: phase.description }, commandBody)
12871
12876
  });
12872
12877
  files.push({
12873
12878
  target: "opencode",
12874
12879
  path: `.opencode/skills/satlas-${phase.id}/SKILL.md`,
12875
- content: `---
12876
- name: satlas-${phase.id}
12877
- description: ${phase.description}
12878
- ---
12879
-
12880
- ${skillBody}
12881
- `
12880
+ content: frontmatter({ name: `satlas-${phase.id}`, description: phase.description }, skillBody)
12882
12881
  });
12883
12882
  }
12884
12883
  return files;
@@ -12891,23 +12890,12 @@ function compileClaudeCode(ctx) {
12891
12890
  files.push({
12892
12891
  target: "claude-code",
12893
12892
  path: `.claude/commands/satlas/${phase.id}.md`,
12894
- content: `---
12895
- description: ${phase.description}
12896
- ---
12897
-
12898
- ${commandBody}
12899
- `
12893
+ content: frontmatter({ description: phase.description }, commandBody)
12900
12894
  });
12901
12895
  files.push({
12902
12896
  target: "claude-code",
12903
12897
  path: `.claude/skills/satlas-${phase.id}/SKILL.md`,
12904
- content: `---
12905
- name: satlas-${phase.id}
12906
- description: ${phase.description}
12907
- ---
12908
-
12909
- ${skillBody}
12910
- `
12898
+ content: frontmatter({ name: `satlas-${phase.id}`, description: phase.description }, skillBody)
12911
12899
  });
12912
12900
  }
12913
12901
  return files;
@@ -12919,14 +12907,7 @@ function compileCursor(ctx) {
12919
12907
  files.push({
12920
12908
  target: "cursor",
12921
12909
  path: `.cursor/skills/satlas-${phase.id}/SKILL.md`,
12922
- content: `---
12923
- name: satlas-${phase.id}
12924
- description: ${phase.description}
12925
- disable-model-invocation: true
12926
- ---
12927
-
12928
- ${body}
12929
- `
12910
+ content: frontmatter({ name: `satlas-${phase.id}`, description: phase.description, "disable-model-invocation": true }, body)
12930
12911
  });
12931
12912
  files.push({
12932
12913
  target: "cursor",
@@ -12946,16 +12927,9 @@ function compileCopilot(ctx) {
12946
12927
  files.push({
12947
12928
  target: "copilot",
12948
12929
  path: `.github/prompts/satlas-${phase.id}.prompt.md`,
12949
- content: `---
12950
- description: ${phase.description}
12951
- name: satlas-${phase.id}
12952
- agent: agent
12953
- ---
12930
+ content: frontmatter({ description: phase.description, name: `satlas-${phase.id}`, agent: "agent" }, `${NO_SUBSTITUTION_NOTE}
12954
12931
 
12955
- ${NO_SUBSTITUTION_NOTE}
12956
-
12957
- ${body}
12958
- `
12932
+ ${body}`)
12959
12933
  });
12960
12934
  }
12961
12935
  files.push({ target: "copilot", path: ".github/copilot-instructions.md", content: agentsBlock(ctx, "copilot") });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "specatlas",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "SpecAtlas: kernel determinista de Spec-Driven Development (CLI)",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -39,7 +39,7 @@
39
39
  "zod": "^3.24.1"
40
40
  },
41
41
  "devDependencies": {
42
- "@specatlas/adapters": "0.1.0",
42
+ "@specatlas/adapters": "0.1.1",
43
43
  "@specatlas/core": "0.1.0"
44
44
  },
45
45
  "scripts": {