@wildorder/nightshift 0.1.0 → 0.3.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.
- package/dist/cli.js +252 -10
- package/dist/cli.js.map +1 -1
- package/dist/config.d.ts +4 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +7 -0
- package/dist/config.js.map +1 -1
- package/dist/decision-ledger.d.ts +68 -0
- package/dist/decision-ledger.d.ts.map +1 -0
- package/dist/decision-ledger.js +108 -0
- package/dist/decision-ledger.js.map +1 -0
- package/dist/decision.d.ts +59 -0
- package/dist/decision.d.ts.map +1 -0
- package/dist/decision.js +0 -0
- package/dist/decision.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/dist/init-project.d.ts +18 -0
- package/dist/init-project.d.ts.map +1 -0
- package/dist/init-project.js +259 -0
- package/dist/init-project.js.map +1 -0
- package/dist/install-prefs.d.ts +17 -0
- package/dist/install-prefs.d.ts.map +1 -0
- package/dist/install-prefs.js +55 -0
- package/dist/install-prefs.js.map +1 -0
- package/dist/install-skills.d.ts +83 -0
- package/dist/install-skills.d.ts.map +1 -0
- package/dist/install-skills.js +311 -0
- package/dist/install-skills.js.map +1 -0
- package/dist/install-wizard.d.ts +56 -0
- package/dist/install-wizard.d.ts.map +1 -0
- package/dist/install-wizard.js +166 -0
- package/dist/install-wizard.js.map +1 -0
- package/dist/manifest.d.ts +76 -0
- package/dist/manifest.d.ts.map +1 -0
- package/dist/manifest.js +95 -0
- package/dist/manifest.js.map +1 -0
- package/dist/package-assets.d.ts +3 -0
- package/dist/package-assets.d.ts.map +1 -0
- package/dist/package-assets.js +13 -0
- package/dist/package-assets.js.map +1 -0
- package/dist/run-program.d.ts +72 -0
- package/dist/run-program.d.ts.map +1 -0
- package/dist/run-program.js +482 -0
- package/dist/run-program.js.map +1 -0
- package/dist/skill-roots.d.ts +51 -0
- package/dist/skill-roots.d.ts.map +1 -0
- package/dist/skill-roots.js +181 -0
- package/dist/skill-roots.js.map +1 -0
- package/package.json +3 -1
- package/skills/init-project/SKILL.md +196 -0
- package/skills/plan-program/SKILL.md +274 -0
- package/templates/AGENTS.md +29 -0
- package/templates/CLAUDE.md +7 -0
- package/templates/universal-directives.md +50 -0
- package/templates/vision.md +46 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<!-- BEGIN UNIVERSAL — source: {{UNIVERSAL_SOURCE}} -->
|
|
2
|
+
{{UNIVERSAL_DIRECTIVES}}
|
|
3
|
+
<!-- END UNIVERSAL -->
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Project: {{PROJECT_NAME}}
|
|
8
|
+
|
|
9
|
+
See `docs/vision.md` for the full product vision.
|
|
10
|
+
See `docs/programs/` for program plans and manifests.
|
|
11
|
+
See `tasks/{program-id}/` for workstream specs.
|
|
12
|
+
|
|
13
|
+
### Tech Stack
|
|
14
|
+
|
|
15
|
+
{{STACK}}
|
|
16
|
+
|
|
17
|
+
### Product
|
|
18
|
+
|
|
19
|
+
{{DESCRIPTION}}
|
|
20
|
+
|
|
21
|
+
### Conventions
|
|
22
|
+
|
|
23
|
+
[Document project-specific module structure, naming, IDs, validation, testing, and delivery conventions.]
|
|
24
|
+
|
|
25
|
+
### Dependency Versions (pin these)
|
|
26
|
+
|
|
27
|
+
| Package | Version |
|
|
28
|
+
|---------|---------|
|
|
29
|
+
{{DEPENDENCY_ROWS}}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Agent Directives
|
|
2
|
+
|
|
3
|
+
The canonical agent directives, project context, conventions, and constraints for
|
|
4
|
+
{{PROJECT_NAME}} live in **`AGENTS.md`**.
|
|
5
|
+
|
|
6
|
+
**Read `AGENTS.md` now and follow it.** Do not maintain instructions in this file—
|
|
7
|
+
update `AGENTS.md` instead to keep a single source of truth.
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# Agent Directives: Universal
|
|
2
|
+
|
|
3
|
+
These directives apply to every agent working in this repository, regardless
|
|
4
|
+
of provider or harness.
|
|
5
|
+
|
|
6
|
+
## Scope and depth
|
|
7
|
+
|
|
8
|
+
1. SPEC-FIRST: When a workstream spec exists under `tasks/`, read it before
|
|
9
|
+
implementing. Do not invent architecture that contradicts the spec or
|
|
10
|
+
`docs/vision.md`. If the spec is ambiguous, ask — do not guess.
|
|
11
|
+
|
|
12
|
+
2. ROOT CAUSE OVER SYMPTOM: Prefer the smallest diff that fully solves the
|
|
13
|
+
root cause, not the smallest diff that makes symptoms disappear. When the
|
|
14
|
+
proper fix is out of scope, say so explicitly and propose it as a
|
|
15
|
+
follow-up instead of silently shipping a band-aid.
|
|
16
|
+
|
|
17
|
+
3. STRUCTURAL FIXES STAY IN SCOPE: If architecture is flawed, state is
|
|
18
|
+
duplicated, or patterns are inconsistent inside the files the task already
|
|
19
|
+
touches, fix it. Do not expand into unrelated modules without asking. On
|
|
20
|
+
question-only or review-only tasks, answer — do not rewrite code unless
|
|
21
|
+
asked.
|
|
22
|
+
|
|
23
|
+
## Verification
|
|
24
|
+
|
|
25
|
+
4. VERIFY BEFORE CLAIMING COMPLETION: A successful file write proves nothing
|
|
26
|
+
about correctness. Before reporting a task complete, run the project's
|
|
27
|
+
configured build, type-check, test, and lint commands and fix every
|
|
28
|
+
resulting error. If one of those commands is not configured, state that
|
|
29
|
+
explicitly instead of claiming it passed.
|
|
30
|
+
|
|
31
|
+
## Edit safety
|
|
32
|
+
|
|
33
|
+
5. READ BEFORE EDITING: Read a file before modifying it, and re-read any file
|
|
34
|
+
you have not seen recently in a long session before editing it again.
|
|
35
|
+
|
|
36
|
+
6. EXHAUSTIVE RENAMES: When renaming any function, type, or variable, search
|
|
37
|
+
for direct references, type-level references, string literals, dynamic
|
|
38
|
+
imports, re-exports, and test files. Do not assume one search pass caught
|
|
39
|
+
everything.
|
|
40
|
+
|
|
41
|
+
## Large tasks
|
|
42
|
+
|
|
43
|
+
7. WORK IN VERIFIABLE PHASES: Break multi-file work into phases that each
|
|
44
|
+
pass verification on their own. In interactive sessions, pause between
|
|
45
|
+
phases for review; in automated pipeline runs, complete and verify each
|
|
46
|
+
phase before starting the next.
|
|
47
|
+
|
|
48
|
+
8. PARALLELIZE INDEPENDENT WORK: When the harness supports sub-agents and the
|
|
49
|
+
task spans many independent files, split the work rather than degrading a
|
|
50
|
+
single context; keep tightly coupled changes together.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# {{PROJECT_NAME}} — Vision Document
|
|
2
|
+
|
|
3
|
+
## What Is {{PROJECT_NAME}}?
|
|
4
|
+
[One paragraph: what the product is and why it exists.]
|
|
5
|
+
|
|
6
|
+
**One-liner:** {{DESCRIPTION}}
|
|
7
|
+
|
|
8
|
+
## The Problem
|
|
9
|
+
[What pain point does this solve? Who has this problem?]
|
|
10
|
+
|
|
11
|
+
## The Solution
|
|
12
|
+
[High-level description of the approach.]
|
|
13
|
+
|
|
14
|
+
## Architecture
|
|
15
|
+
[System architecture diagram or description. ASCII art is fine.]
|
|
16
|
+
|
|
17
|
+
## Core Concepts
|
|
18
|
+
[Key abstractions, entities, or domain concepts.]
|
|
19
|
+
|
|
20
|
+
## API Surface
|
|
21
|
+
[Public-facing interfaces: SDK methods, REST endpoints, CLI commands, etc.]
|
|
22
|
+
|
|
23
|
+
## Data Model
|
|
24
|
+
[Key entities and their relationships.]
|
|
25
|
+
|
|
26
|
+
## Target Users
|
|
27
|
+
[Primary and secondary personas.]
|
|
28
|
+
|
|
29
|
+
## Technology Stack
|
|
30
|
+
|
|
31
|
+
**Primary stack:** {{STACK}}
|
|
32
|
+
|
|
33
|
+
| Layer | Choice | Rationale |
|
|
34
|
+
|-------|--------|-----------|
|
|
35
|
+
| [Layer] | [Technology] | [Why it fits] |
|
|
36
|
+
|
|
37
|
+
## Scope: Phase 1
|
|
38
|
+
|
|
39
|
+
**Build:**
|
|
40
|
+
- [Phase 1 deliverable]
|
|
41
|
+
|
|
42
|
+
**Do not build in Phase 1:**
|
|
43
|
+
- [Explicitly deferred item]
|
|
44
|
+
|
|
45
|
+
## Scope: Phase 2+
|
|
46
|
+
[Brief notes on future direction—enough to inform architectural decisions.]
|