tenhaw 0.0.0-bootstrap → 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/README.md CHANGED
@@ -1,6 +1,3 @@
1
- > Setup prerelease: `0.0.0-bootstrap`, intended for the `bootstrap` dist-tag.
2
- > This package contains the actual built Tenhaw Kit code and establishes npm ownership before trusted publishing is configured. Use a verified stable release for regular installation. Hosted endpoints and stable release verification are separate setup steps.
3
-
4
1
  # tenhaw
5
2
 
6
3
  An agent-friendly CLI for building internal portfolio, product delivery and AI transformation tools with Tenhaw Kit.
@@ -32,7 +32,7 @@ async function scaffold(template, directory, options = {}) {
32
32
  delete manifest.packageManager;
33
33
  for (const group of ["dependencies", "devDependencies"]) {
34
34
  for (const [name, version] of Object.entries(manifest[group] ?? {})) {
35
- if (String(version).startsWith("workspace:")) manifest[group][name] = "0.0.0-bootstrap";
35
+ if (String(version).startsWith("workspace:")) manifest[group][name] = "1.0.0";
36
36
  }
37
37
  }
38
38
  await writeFile(manifestPath, `${JSON.stringify(manifest, null, 2)}
package/dist/index.js CHANGED
@@ -46,7 +46,7 @@ function parseArgs(argv) {
46
46
  }
47
47
  return { args, flags };
48
48
  }
49
- var help = `Tenhaw Kit 0.0.0-bootstrap: building blocks for internal product, portfolio and transformation tools
49
+ var help = `Tenhaw Kit 1.0.0: building blocks for internal product, portfolio and transformation tools
50
50
 
51
51
  tenhaw init <template> <new-dir> Scaffold an internal tool
52
52
  tenhaw readiness --input answers.json Score evidence and response coverage
@@ -121,13 +121,13 @@ async function interactiveRoi() {
121
121
  function installation() {
122
122
  return {
123
123
  claude: ["claude plugin marketplace add Tenhaw/tenhaw-kit", "claude plugin install tenhaw@tenhaw-kit"],
124
- claudeMcp: "claude mcp add tenhaw -- npx -y @tenhaw/mcp@0.0.0-bootstrap",
125
- codex: "codex mcp add tenhaw -- npx -y @tenhaw/mcp@0.0.0-bootstrap",
124
+ claudeMcp: "claude mcp add tenhaw -- npx -y @tenhaw/mcp@1.0.0",
125
+ codex: "codex mcp add tenhaw -- npx -y @tenhaw/mcp@1.0.0",
126
126
  gemini: "gemini extensions install https://github.com/Tenhaw/tenhaw-gemini",
127
- cursor: `cursor://anysphere.cursor-deeplink/mcp/install?name=tenhaw&config=${encodeURIComponent(Buffer.from(JSON.stringify({ command: "npx", args: ["-y", "@tenhaw/mcp@0.0.0-bootstrap"] })).toString("base64"))}`,
128
- vscode: `code --add-mcp '${JSON.stringify({ name: "tenhaw", command: "npx", args: ["-y", "@tenhaw/mcp@0.0.0-bootstrap"] })}'`,
127
+ cursor: `cursor://anysphere.cursor-deeplink/mcp/install?name=tenhaw&config=${encodeURIComponent(Buffer.from(JSON.stringify({ command: "npx", args: ["-y", "@tenhaw/mcp@1.0.0"] })).toString("base64"))}`,
128
+ vscode: `code --add-mcp '${JSON.stringify({ name: "tenhaw", command: "npx", args: ["-y", "@tenhaw/mcp@1.0.0"] })}'`,
129
129
  remote: "https://mcp.tenhaw.com/mcp",
130
- publication: "These public install commands require the verified 0.0.0-bootstrap release. For a source checkout run pnpm build, then node packages/mcp/dist/index.js."
130
+ publication: "These public install commands require the verified 1.0.0 release. For a source checkout run pnpm build, then node packages/mcp/dist/index.js."
131
131
  };
132
132
  }
133
133
  async function writeAgentInstructions(directory = process.cwd()) {
@@ -220,7 +220,7 @@ async function usecases(action, flags) {
220
220
  async function main(argv = process.argv.slice(2)) {
221
221
  const { args, flags } = parseArgs(argv);
222
222
  if (flags.version) {
223
- process.stdout.write("0.0.0-bootstrap\n");
223
+ process.stdout.write("1.0.0\n");
224
224
  return;
225
225
  }
226
226
  if (flags.help || !args.length) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tenhaw",
3
- "version": "0.0.0-bootstrap",
3
+ "version": "1.0.0",
4
4
  "description": "Agent-ready building blocks for internal product, portfolio, delivery and AI transformation tools",
5
5
  "type": "module",
6
6
  "bin": {
@@ -14,9 +14,9 @@
14
14
  "dist",
15
15
  "templates",
16
16
  "instructions",
17
+ "README.md",
17
18
  "LICENSE",
18
- "LICENSE-CONTENT",
19
- "README.md"
19
+ "LICENSE-CONTENT"
20
20
  ],
21
21
  "license": "MIT",
22
22
  "author": "Tenhaw (https://tenhaw.com)",
@@ -31,8 +31,7 @@
31
31
  },
32
32
  "publishConfig": {
33
33
  "access": "public",
34
- "provenance": false,
35
- "tag": "bootstrap"
34
+ "provenance": true
36
35
  },
37
36
  "keywords": [
38
37
  "internal-tools",
@@ -43,16 +42,16 @@
43
42
  "mcp",
44
43
  "ai-transformation"
45
44
  ],
45
+ "dependencies": {
46
+ "@tenhaw/core": "1.0.0",
47
+ "@tenhaw/ai-readiness": "1.0.0",
48
+ "@tenhaw/delivery-metrics": "1.0.0",
49
+ "@tenhaw/ai-roi": "1.0.0",
50
+ "@tenhaw/usecase-register": "1.0.0",
51
+ "@tenhaw/opmodel": "1.0.0"
52
+ },
46
53
  "scripts": {
47
54
  "build": "tsup src/index.ts src/scaffold.ts --format esm --dts",
48
55
  "e2e": "vitest run ../../tests/cli.test.ts --config ../../vitest.config.ts"
49
- },
50
- "dependencies": {
51
- "@tenhaw/core": "0.0.0-bootstrap",
52
- "@tenhaw/ai-readiness": "0.0.0-bootstrap",
53
- "@tenhaw/delivery-metrics": "0.0.0-bootstrap",
54
- "@tenhaw/ai-roi": "0.0.0-bootstrap",
55
- "@tenhaw/usecase-register": "0.0.0-bootstrap",
56
- "@tenhaw/opmodel": "0.0.0-bootstrap"
57
56
  }
58
- }
57
+ }
@@ -0,0 +1 @@
1
+ NEXT_PUBLIC_TENHAW_ATTRIBUTION=true
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tenhaw-template/ai-adoption-dashboard",
3
- "version": "0.0.0-bootstrap",
3
+ "version": "1.0.0",
4
4
  "private": true,
5
5
  "scripts": {
6
6
  "dev": "next dev",
@@ -14,7 +14,7 @@
14
14
  "next": "16.4.5",
15
15
  "react": "19.2.4",
16
16
  "react-dom": "19.2.4",
17
- "@tenhaw/core": "0.0.0-bootstrap"
17
+ "@tenhaw/core": "1.0.0"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@types/node": "^22.0.0",
@@ -0,0 +1 @@
1
+ NEXT_PUBLIC_TENHAW_ATTRIBUTION=true
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tenhaw-template/ai-readiness-assessment",
3
- "version": "0.0.0-bootstrap",
3
+ "version": "1.0.0",
4
4
  "private": true,
5
5
  "scripts": {
6
6
  "dev": "next dev",
@@ -14,8 +14,8 @@
14
14
  "next": "16.4.5",
15
15
  "react": "19.2.4",
16
16
  "react-dom": "19.2.4",
17
- "@tenhaw/core": "0.0.0-bootstrap",
18
- "@tenhaw/ai-readiness": "0.0.0-bootstrap"
17
+ "@tenhaw/core": "1.0.0",
18
+ "@tenhaw/ai-readiness": "1.0.0"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@types/node": "^22.0.0",
@@ -0,0 +1 @@
1
+ NEXT_PUBLIC_TENHAW_ATTRIBUTION=true
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tenhaw-template/ai-usecase-register",
3
- "version": "0.0.0-bootstrap",
3
+ "version": "1.0.0",
4
4
  "private": true,
5
5
  "scripts": {
6
6
  "dev": "next dev",
@@ -14,9 +14,9 @@
14
14
  "next": "16.4.5",
15
15
  "react": "19.2.4",
16
16
  "react-dom": "19.2.4",
17
- "@tenhaw/core": "0.0.0-bootstrap",
18
- "@tenhaw/usecase-register": "0.0.0-bootstrap",
19
- "@tenhaw/ai-roi": "0.0.0-bootstrap"
17
+ "@tenhaw/core": "1.0.0",
18
+ "@tenhaw/usecase-register": "1.0.0",
19
+ "@tenhaw/ai-roi": "1.0.0"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@types/node": "^22.0.0",
@@ -0,0 +1 @@
1
+ NEXT_PUBLIC_TENHAW_ATTRIBUTION=true
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tenhaw-template/delivery-metrics-dashboard",
3
- "version": "0.0.0-bootstrap",
3
+ "version": "1.0.0",
4
4
  "private": true,
5
5
  "scripts": {
6
6
  "dev": "next dev",
@@ -14,8 +14,8 @@
14
14
  "next": "16.4.5",
15
15
  "react": "19.2.4",
16
16
  "react-dom": "19.2.4",
17
- "@tenhaw/core": "0.0.0-bootstrap",
18
- "@tenhaw/delivery-metrics": "0.0.0-bootstrap"
17
+ "@tenhaw/core": "1.0.0",
18
+ "@tenhaw/delivery-metrics": "1.0.0"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@types/node": "^22.0.0",
@@ -0,0 +1 @@
1
+ NEXT_PUBLIC_TENHAW_ATTRIBUTION=true
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tenhaw-template/product-operating-model",
3
- "version": "0.0.0-bootstrap",
3
+ "version": "1.0.0",
4
4
  "private": true,
5
5
  "scripts": {
6
6
  "dev": "next dev",
@@ -14,8 +14,8 @@
14
14
  "next": "16.4.5",
15
15
  "react": "19.2.4",
16
16
  "react-dom": "19.2.4",
17
- "@tenhaw/core": "0.0.0-bootstrap",
18
- "@tenhaw/opmodel": "0.0.0-bootstrap"
17
+ "@tenhaw/core": "1.0.0",
18
+ "@tenhaw/opmodel": "1.0.0"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@types/node": "^22.0.0",
@@ -1,73 +0,0 @@
1
- // src/scaffold.ts
2
- import { cp, lstat, mkdir, readFile, readdir, realpath, rename, rm, writeFile } from "fs/promises";
3
- import { dirname, isAbsolute, join, relative, resolve, sep } from "path";
4
- import { fileURLToPath } from "url";
5
- var templates = ["ai-adoption-dashboard", "delivery-metrics-dashboard", "ai-usecase-register", "product-operating-model", "ai-readiness-assessment"];
6
- async function scaffold(template, directory, options = {}) {
7
- if (!templates.includes(template)) throw new Error(`Unknown template. Choose: ${templates.join(", ")}`);
8
- if (!directory.trim() || directory === "." || directory === "..") throw new Error("Choose a new project directory.");
9
- const target = resolve(directory);
10
- try {
11
- await lstat(target);
12
- throw new Error("Target already exists. Choose a new directory; existing files are never overwritten.");
13
- } catch (error) {
14
- if (error.code !== "ENOENT") throw error;
15
- }
16
- const packaged = fileURLToPath(new URL("../templates/", import.meta.url));
17
- const root = options.templateRoot ?? packaged;
18
- const source = join(root, template);
19
- await assertSourceTree(source);
20
- await mkdir(dirname(target), { recursive: true });
21
- const staging = `${target}.tenhaw-${process.pid}-${Date.now()}`;
22
- try {
23
- await cp(source, staging, {
24
- recursive: true,
25
- errorOnExist: true,
26
- force: false,
27
- filter: (path) => !relative(source, path).split(sep).some((p) => ["node_modules", ".next", "out", ".vercel", ".git", ".env", ".env.local"].includes(p))
28
- });
29
- const manifestPath = join(staging, "package.json");
30
- const manifest = JSON.parse(await readFile(manifestPath, "utf8"));
31
- manifest.name = target.split(sep).at(-1)?.toLowerCase().replace(/[^a-z0-9-]/g, "-") || "tenhaw-internal-tool";
32
- delete manifest.packageManager;
33
- for (const group of ["dependencies", "devDependencies"]) {
34
- for (const [name, version] of Object.entries(manifest[group] ?? {})) {
35
- if (String(version).startsWith("workspace:")) manifest[group][name] = "0.0.0-bootstrap";
36
- }
37
- }
38
- await writeFile(manifestPath, `${JSON.stringify(manifest, null, 2)}
39
- `);
40
- await mkdir(target);
41
- for (const entry of await readdir(staging)) await rename(join(staging, entry), join(target, entry));
42
- await rm(staging, { recursive: true });
43
- } catch (error) {
44
- await rm(staging, { recursive: true, force: true });
45
- throw error;
46
- }
47
- return {
48
- template,
49
- directory: target,
50
- nextSteps: [`cd ${JSON.stringify(target)}`, "pnpm install", "pnpm dev"],
51
- dataMode: "browser-local",
52
- authentication: "Required before adding shared storage or server-side real-data routes."
53
- };
54
- }
55
- async function assertSourceTree(root) {
56
- const base = await realpath(root);
57
- async function visit(path) {
58
- const stat = await lstat(path);
59
- if (stat.isSymbolicLink()) throw new Error("Template source contains a symbolic link.");
60
- const rel = relative(base, path);
61
- if (rel.startsWith("..") || isAbsolute(rel)) throw new Error("Invalid template path.");
62
- if (stat.isDirectory()) for (const entry of await readdir(path)) {
63
- if (["node_modules", ".next", "out", ".git", ".vercel"].includes(entry)) continue;
64
- await visit(join(path, entry));
65
- }
66
- }
67
- await visit(base);
68
- }
69
-
70
- export {
71
- templates,
72
- scaffold
73
- };