@ulysses-ai/create-workspace 0.14.0-beta.3 → 0.15.0-beta.1

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 (50) hide show
  1. package/lib/init.mjs +12 -25
  2. package/lib/scaffold.mjs +3 -2
  3. package/package.json +1 -1
  4. package/template/.claude/agents/reviewer.md +1 -1
  5. package/template/.claude/hooks/pre-compact.mjs +1 -1
  6. package/template/.claude/hooks/repo-write-detection.mjs +2 -2
  7. package/template/.claude/hooks/session-start.mjs +10 -7
  8. package/template/.claude/hooks/subagent-start.mjs +3 -3
  9. package/template/.claude/recipes/migrate-from-notion.md +6 -6
  10. package/template/.claude/rules/coherent-revisions.md +2 -2
  11. package/template/.claude/rules/local-dev-environment.md.skip +2 -2
  12. package/template/.claude/rules/memory-guidance.md +23 -14
  13. package/template/.claude/rules/token-economics.md.skip +2 -2
  14. package/template/.claude/rules/work-item-tracking.md +1 -1
  15. package/template/.claude/rules/workspace-structure.md +36 -15
  16. package/template/.claude/scripts/build-workspace-context.mjs +712 -0
  17. package/template/.claude/scripts/capture-context.mjs +217 -0
  18. package/template/.claude/scripts/generate-claude-local.mjs +104 -0
  19. package/template/.claude/scripts/migrate-canonical-priority.mjs +108 -0
  20. package/template/.claude/scripts/migrate-open-work.mjs +1 -1
  21. package/template/.claude/scripts/migrate-to-workspace-context.mjs +520 -0
  22. package/template/.claude/scripts/sweep-references.mjs +177 -0
  23. package/template/.claude/skills/aside/SKILL.md +49 -44
  24. package/template/.claude/skills/braindump/SKILL.md +25 -19
  25. package/template/.claude/skills/build-docs-site/SKILL.md +1 -1
  26. package/template/.claude/skills/build-docs-site/checklists/framing.md +1 -1
  27. package/template/.claude/skills/complete-work/SKILL.md +91 -3
  28. package/template/.claude/skills/handoff/SKILL.md +31 -30
  29. package/template/.claude/skills/maintenance/SKILL.md +90 -22
  30. package/template/.claude/skills/pause-work/SKILL.md +1 -1
  31. package/template/.claude/skills/promote/SKILL.md +18 -8
  32. package/template/.claude/skills/release/SKILL.md +20 -13
  33. package/template/.claude/skills/start-work/SKILL.md +1 -1
  34. package/template/.claude/skills/workspace-init/SKILL.md +12 -12
  35. package/template/.claude/skills/workspace-update/SKILL.md +7 -1
  36. package/template/CLAUDE.md.tmpl +4 -3
  37. package/template/_gitignore +1 -0
  38. package/template/workspace.json.tmpl +3 -2
  39. package/template/.claude/hooks/_bash-output-advisory.test.mjs +0 -88
  40. package/template/.claude/hooks/_utils.test.mjs +0 -99
  41. package/template/.claude/lib/freshness.test.mjs +0 -175
  42. package/template/.claude/lib/registry-check.test.mjs +0 -130
  43. package/template/.claude/lib/session-frontmatter.test.mjs +0 -242
  44. package/template/.claude/scripts/build-shared-context-index.mjs +0 -212
  45. package/template/.claude/scripts/build-shared-context-index.test.mjs +0 -318
  46. package/template/.claude/scripts/migrate-claude-md-freshness-include.test.mjs +0 -54
  47. package/template/.claude/scripts/migrate-session-layout.test.mjs +0 -144
  48. package/template/.claude/scripts/sync-tasks.test.mjs +0 -350
  49. package/template/.claude/scripts/trackers/github-issues.test.mjs +0 -190
  50. package/template/.claude/scripts/trackers/interface.test.mjs +0 -40
@@ -1,40 +0,0 @@
1
- #!/usr/bin/env node
2
- // Tests for the tracker factory and AlreadyAssignedError.
3
- // Run: node .claude/scripts/trackers/interface.test.mjs
4
- import { createTracker, AlreadyAssignedError } from './interface.mjs';
5
-
6
- let failed = 0, passed = 0;
7
- const ok = (msg) => { passed++; };
8
- const fail = (msg) => { failed++; console.error(` FAIL: ${msg}`); };
9
-
10
- // AlreadyAssignedError carries assignees and a code.
11
- {
12
- const err = new AlreadyAssignedError('gh:42', ['alice', 'bob']);
13
- if (err.code === 'ALREADY_ASSIGNED' && JSON.stringify(err.assignees) === '["alice","bob"]'
14
- && err.message.includes('gh:42') && err.message.includes('alice')) ok();
15
- else fail('AlreadyAssignedError should carry code and assignees');
16
- }
17
-
18
- // createTracker rejects missing config.
19
- {
20
- try { createTracker(); fail('should throw on missing config'); }
21
- catch (e) { if (/No tracker configured/.test(e.message)) ok(); else fail(`wrong error: ${e.message}`); }
22
- }
23
-
24
- // createTracker rejects unknown type.
25
- {
26
- try { createTracker({ type: 'nope' }); fail('should throw on unknown type'); }
27
- catch (e) { if (/Unknown tracker type/.test(e.message)) ok(); else fail(`wrong error: ${e.message}`); }
28
- }
29
-
30
- // createTracker builds a github-issues adapter without calling gh at construction (lazy).
31
- {
32
- const fakeSpawn = () => { throw new Error('spawn should not run at construction'); };
33
- // With repo: 'foo/bar' literal, the adapter should NOT shell out to resolve the remote.
34
- const adapter = createTracker({ type: 'github-issues', repo: 'foo/bar' }, { spawnFn: fakeSpawn });
35
- if (adapter.identity === 'github-issues:foo/bar') ok();
36
- else fail(`unexpected identity: ${adapter.identity}`);
37
- }
38
-
39
- console.log(`\n${passed} passed, ${failed} failed`);
40
- process.exit(failed ? 1 : 0);