harnspec 0.0.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.
package/README.md ADDED
@@ -0,0 +1,23 @@
1
+ # HarnSpec
2
+
3
+ Specification-driven development made simple.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install -g harnspec
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```bash
14
+ harnspec init
15
+ harnspec board
16
+ harnspec ui
17
+ ```
18
+
19
+ This package is a thin wrapper around `@harnspec/cli` for easier installation.
20
+
21
+ ## License
22
+
23
+ MIT AND Commons-Clause-1.0
@@ -0,0 +1,20 @@
1
+ #!/usr/bin/env node
2
+ import { createRequire } from 'module';
3
+ const require = createRequire(import.meta.url);
4
+
5
+ /**
6
+ * Delegate to the actual HarnSpec CLI in @harnspec/cli.
7
+ *
8
+ * This wrapper exists to allow users to run `npm install -g harnspec`
9
+ * instead of the scoped `@harnspec/cli`.
10
+ */
11
+ try {
12
+ const cliPath = require.resolve('@harnspec/cli/bin/harnspec.js');
13
+ await import(cliPath);
14
+ } catch (err) {
15
+ console.error('Error: Failed to find @harnspec/cli. Make sure it is installed.');
16
+ console.error('If you installed this package globally, try:');
17
+ console.error(' npm install -g @harnspec/cli');
18
+ console.debug(err);
19
+ process.exit(1);
20
+ }
package/package.json ADDED
@@ -0,0 +1,41 @@
1
+ {
2
+ "name": "harnspec",
3
+ "version": "0.0.1",
4
+ "description": "Specification-driven development made simple (Main entry for HarnSpec CLI)",
5
+ "type": "module",
6
+ "bin": {
7
+ "harnspec": "./bin/harnspec.js"
8
+ },
9
+ "scripts": {
10
+ "typecheck": "echo 'No TypeScript source to check'"
11
+ },
12
+ "dependencies": {
13
+ "@harnspec/cli": "0.0.1"
14
+ },
15
+ "keywords": [
16
+ "spec",
17
+ "specification",
18
+ "documentation",
19
+ "ai",
20
+ "agent",
21
+ "sdd"
22
+ ],
23
+ "author": "Marvin Zhang",
24
+ "license": "MIT AND Commons-Clause-1.0",
25
+ "repository": {
26
+ "type": "git",
27
+ "url": "https://github.com/harnspec/harnspec.git"
28
+ },
29
+ "homepage": "https://harnspec.github.io",
30
+ "bugs": {
31
+ "url": "https://github.com/harnspec/harnspec/issues"
32
+ },
33
+ "files": [
34
+ "bin/",
35
+ "README.md",
36
+ "LICENSE"
37
+ ],
38
+ "engines": {
39
+ "node": ">=24"
40
+ }
41
+ }