pi-openspec 1.0.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Pankaj Udhas
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,66 @@
1
+ # pi-openspec
2
+
3
+ OpenSpec integration for [pi](https://pi.dev) — `/openspec` slash
4
+ commands, auto-naming, session hooks, and a spec-driven workflow skill.
5
+
6
+ ## Install
7
+
8
+ ```bash
9
+ pi install npm:pi-openspec
10
+ ```
11
+
12
+ ## Prerequisites
13
+
14
+ - [OpenSpec CLI](https://github.com/Fission-AI/OpenSpec) installed
15
+ globally (`npm install -g @fission-ai/openspec`)
16
+
17
+ ## Commands
18
+
19
+ | Command | Description |
20
+ | -------------------------------- | ------------------------------------------------- |
21
+ | `/openspec new <name>` | Create a change (auto-numbered `NNNNN-date-slug`) |
22
+ | `/openspec status [id]` | Show artifact completion status |
23
+ | `/openspec next [id] [artifact]` | Get enriched instructions for next artifact |
24
+ | `/openspec validate [id]` | Validate a change |
25
+ | `/openspec archive <id>` | Archive a completed change |
26
+ | `/openspec list` | List active changes |
27
+ | `/openspec init` | Initialize OpenSpec in a project |
28
+ | `/openspec schemas` | List available workflow schemas |
29
+
30
+ All commands accept the change number as shorthand:
31
+ `/openspec status 3`.
32
+
33
+ ## Skill
34
+
35
+ The `openspec-workflow` skill teaches the agent the spec-driven
36
+ development pipeline:
37
+ **proposal → specs → design → tasks**.
38
+
39
+ ## Hooks
40
+
41
+ - **Session start** — auto-detects OpenSpec projects and shows active
42
+ change count
43
+ - **Post-edit** — auto-refreshes artifact status when spec files
44
+ inside `openspec/changes/` are edited
45
+
46
+ ## Change naming convention
47
+
48
+ Changes are auto-named with a sequential number and date:
49
+
50
+ ```
51
+ openspec/changes/00001-2026-06-04-add-auth/
52
+ openspec/changes/00002-2026-06-04-fix-login/
53
+ ```
54
+
55
+ ## Companion package
56
+
57
+ Install [`pi-openspec-status`](https://www.npmjs.com/package/pi-openspec-status)
58
+ for a persistent TUI widget showing change status above the editor:
59
+
60
+ ```bash
61
+ pi install npm:pi-openspec-status
62
+ ```
63
+
64
+ ## License
65
+
66
+ MIT
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Pi OpenSpec Extension
3
+ *
4
+ * Wraps the OpenSpec CLI into pi /openspec commands with:
5
+ * - Auto-naming: NNNNN-<date>-<slug> for change directories
6
+ * - Number shorthand: /openspec status 3 → resolves to full name
7
+ * - Session-start detection of openspec projects
8
+ * - Auto-refresh hooks on spec file edits
9
+ *
10
+ * Commands:
11
+ * /openspec new <name> — create a new change
12
+ * /openspec status [id] — show artifact status
13
+ * /openspec next [id] [artifact] — get instructions for next artifact
14
+ * /openspec validate [id] — validate a change
15
+ * /openspec archive [id] — archive a completed change
16
+ * /openspec list — list all changes
17
+ * /openspec list --specs — list all specs
18
+ * /openspec init — initialize openspec in project
19
+ * /openspec schemas — list available schemas
20
+ */
21
+ import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
22
+ export default function (pi: ExtensionAPI): void;
23
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAKH,OAAO,KAAK,EACR,YAAY,EAEf,MAAM,iCAAiC,CAAA;AA8mBxC,MAAM,CAAC,OAAO,WAAW,EAAE,EAAE,YAAY,QAgIxC"}