@peterxiaoyang/superspec 0.1.0

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 (68) hide show
  1. package/README.md +47 -0
  2. package/adapters/codex/agents/architect.toml +157 -0
  3. package/adapters/codex/agents/code-reviewer.toml +175 -0
  4. package/adapters/codex/agents/critic.toml +114 -0
  5. package/adapters/codex/agents/test-engineer.toml +163 -0
  6. package/adapters/codex/agents/verifier.toml +119 -0
  7. package/adapters/codex/install-map.json +81 -0
  8. package/bin/launch.js +37 -0
  9. package/bin/superspec-guard.js +4 -0
  10. package/bin/superspec-init.js +4 -0
  11. package/bin/superspec.js +4 -0
  12. package/dist/src/archive.d.ts +23 -0
  13. package/dist/src/archive.js +428 -0
  14. package/dist/src/cli.d.ts +1 -0
  15. package/dist/src/cli.js +20 -0
  16. package/dist/src/cli_args.d.ts +12 -0
  17. package/dist/src/cli_args.js +146 -0
  18. package/dist/src/core.d.ts +19 -0
  19. package/dist/src/core.js +357 -0
  20. package/dist/src/disclosure.d.ts +35 -0
  21. package/dist/src/disclosure.js +671 -0
  22. package/dist/src/evidence.d.ts +28 -0
  23. package/dist/src/evidence.js +849 -0
  24. package/dist/src/gates.d.ts +16 -0
  25. package/dist/src/gates.js +1470 -0
  26. package/dist/src/git.d.ts +8 -0
  27. package/dist/src/git.js +112 -0
  28. package/dist/src/init_cli.d.ts +2 -0
  29. package/dist/src/init_cli.js +145 -0
  30. package/dist/src/install_engine.d.ts +54 -0
  31. package/dist/src/install_engine.js +351 -0
  32. package/dist/src/invariants.d.ts +16 -0
  33. package/dist/src/invariants.js +363 -0
  34. package/dist/src/openspec.d.ts +18 -0
  35. package/dist/src/openspec.js +157 -0
  36. package/dist/src/paths.d.ts +22 -0
  37. package/dist/src/paths.js +203 -0
  38. package/dist/src/project_init.d.ts +4 -0
  39. package/dist/src/project_init.js +161 -0
  40. package/dist/src/state.d.ts +37 -0
  41. package/dist/src/state.js +464 -0
  42. package/dist/src/tasks.d.ts +23 -0
  43. package/dist/src/tasks.js +225 -0
  44. package/dist/src/util.d.ts +120 -0
  45. package/dist/src/util.js +442 -0
  46. package/dist/superspec.d.ts +4 -0
  47. package/dist/superspec.js +57 -0
  48. package/dist/superspec_guard.d.ts +4 -0
  49. package/dist/superspec_guard.js +19 -0
  50. package/dist/superspec_init.d.ts +2 -0
  51. package/dist/superspec_init.js +17 -0
  52. package/package.json +63 -0
  53. package/schemas/install-manifest.schema.json +80 -0
  54. package/templates/sidecar/archive-preservation.json +11 -0
  55. package/templates/sidecar/business-invariants.md +38 -0
  56. package/templates/sidecar/config.yaml +13 -0
  57. package/templates/sidecar/discovery.md +24 -0
  58. package/templates/sidecar/test-contract.md +26 -0
  59. package/templates/workflow/prompts/architect.md +113 -0
  60. package/templates/workflow/prompts/code-reviewer.md +141 -0
  61. package/templates/workflow/prompts/critic.md +80 -0
  62. package/templates/workflow/prompts/test-engineer.md +130 -0
  63. package/templates/workflow/prompts/verifier.md +85 -0
  64. package/templates/workflow/skills/superspec-apply/SKILL.md +72 -0
  65. package/templates/workflow/skills/superspec-archive/SKILL.md +41 -0
  66. package/templates/workflow/skills/superspec-explore/SKILL.md +70 -0
  67. package/templates/workflow/skills/superspec-propose/SKILL.md +79 -0
  68. package/templates/workflow/skills/superspec-review/SKILL.md +237 -0
@@ -0,0 +1,28 @@
1
+ import type { JsonMap, Reason } from "./util.ts";
2
+ export declare function role_target_ref_reasons(ev: JsonMap, targetRoot: string): Reason[];
3
+ export declare function loaded_ref_reasons(ev: JsonMap, repoRoot: string): Reason[];
4
+ export declare function verify_reference_reasons(changeRoot: string, ev: JsonMap, evidences: JsonMap[]): Reason[];
5
+ export declare function is_final_verification_only_evidence(ev: JsonMap): boolean;
6
+ export declare function final_verification_evidences(evidences: JsonMap[]): JsonMap[];
7
+ export declare function index_evidence(changeRoot: string): JsonMap[];
8
+ export declare function evidence_fingerprint(changeRoot: string): string;
9
+ export declare function validate_evidence_schema(ev: JsonMap, change: string, changeRoot: string, repoRoot: string): Reason[];
10
+ export declare function code_review_lane_evidence_reasons(ev: JsonMap, evidences: JsonMap[]): Reason[];
11
+ export declare function pass_task_reopens(evidences: JsonMap[], taskId?: string | null): JsonMap[];
12
+ export declare function live_task_reopens(evidences: JsonMap[], taskId?: string | null): JsonMap[];
13
+ export declare function live_task_reopen_resolutions(evidences: JsonMap[], taskId?: string | null): JsonMap[];
14
+ export declare function unresolved_live_task_reopens(evidences: JsonMap[], taskId?: string | null): JsonMap[];
15
+ export declare function find_pass(evidences: JsonMap[], filters?: {
16
+ gate?: string | null;
17
+ kind?: string | null;
18
+ task_id?: string | null;
19
+ }): JsonMap[];
20
+ export declare function superseded_ids(evidences: JsonMap[]): Set<string>;
21
+ export declare function duplicate_evidence_id_reasons(evidences: JsonMap[]): Reason[];
22
+ export declare function dangling_evidence_ref_reasons(evidences: JsonMap[]): Reason[];
23
+ export declare function supersede_reasons(evidences: JsonMap[]): Reason[];
24
+ export declare function live_pass(evidences: JsonMap[], filters?: {
25
+ gate?: string | null;
26
+ kind?: string | null;
27
+ task_id?: string | null;
28
+ }): JsonMap[];