archik 0.6.3 → 0.6.5
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/bin/archik.js +84 -2
- package/dist/ui/assets/index-BoRcgnwU.js +219 -0
- package/dist/ui/index.html +1 -1
- package/package.json +1 -2
- package/bin/postinstall.js +0 -58
- package/dist/ui/assets/index-Cxb-Myhy.js +0 -217
package/dist/ui/index.html
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
}
|
|
15
15
|
} catch {}
|
|
16
16
|
</script>
|
|
17
|
-
<script type="module" crossorigin src="/assets/index-
|
|
17
|
+
<script type="module" crossorigin src="/assets/index-BoRcgnwU.js"></script>
|
|
18
18
|
<link rel="stylesheet" crossorigin href="/assets/index-B-QfxZju.css">
|
|
19
19
|
</head>
|
|
20
20
|
<body>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "archik",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.5",
|
|
4
4
|
"description": "Architecture diagrams as YAML. Live canvas in the browser, headless SVG render in CI, and an installable Claude skill so the model edits the same file you do.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"architecture",
|
|
@@ -38,7 +38,6 @@
|
|
|
38
38
|
"test": "vitest run",
|
|
39
39
|
"test:watch": "vitest",
|
|
40
40
|
"archik": "tsx --tsconfig tsconfig.app.json src/cli/index.ts",
|
|
41
|
-
"postinstall": "node bin/postinstall.js || true",
|
|
42
41
|
"prepublishOnly": "npm run typecheck && npm test && npm run build"
|
|
43
42
|
},
|
|
44
43
|
"devDependencies": {
|
package/bin/postinstall.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* Friendly post-install banner. npm 10+ stopped echoing the package
|
|
4
|
-
* version ("added 1 package in 3s" is all the user sees), so this
|
|
5
|
-
* gives them a confirmation, the version they got, and where to go
|
|
6
|
-
* next. Stays quiet under CI / non-TTY / inside a parent npm install
|
|
7
|
-
* so it doesn't pollute logs.
|
|
8
|
-
*/
|
|
9
|
-
import { readFileSync } from "node:fs";
|
|
10
|
-
import { dirname, resolve } from "node:path";
|
|
11
|
-
import { fileURLToPath } from "node:url";
|
|
12
|
-
|
|
13
|
-
// Skip when noise would hurt more than help.
|
|
14
|
-
if (
|
|
15
|
-
process.env["CI"] !== undefined ||
|
|
16
|
-
process.env["ARCHIK_NO_BANNER"] !== undefined ||
|
|
17
|
-
!process.stdout.isTTY ||
|
|
18
|
-
// Inside `npm install` / yarn / pnpm of a host project — only
|
|
19
|
-
// show the banner for global installs and direct local installs.
|
|
20
|
-
process.env["npm_config_global"] !== "true" &&
|
|
21
|
-
process.env["npm_command"] === "install" &&
|
|
22
|
-
process.env["npm_config_save"] !== undefined
|
|
23
|
-
) {
|
|
24
|
-
process.exit(0);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
const here = dirname(fileURLToPath(import.meta.url));
|
|
28
|
-
const pkg = JSON.parse(
|
|
29
|
-
readFileSync(resolve(here, "..", "package.json"), "utf8"),
|
|
30
|
-
);
|
|
31
|
-
|
|
32
|
-
const enabled = process.env["NO_COLOR"] === undefined;
|
|
33
|
-
const c = (open, close) => (s) =>
|
|
34
|
-
enabled ? `\x1b[${open}m${s}\x1b[${close}m` : s;
|
|
35
|
-
const bold = c("1", "22");
|
|
36
|
-
const dim = c("2", "22");
|
|
37
|
-
const cyan = c("36", "39");
|
|
38
|
-
const green = c("32", "39");
|
|
39
|
-
const magenta = c("35", "39");
|
|
40
|
-
|
|
41
|
-
const line = dim("─".repeat(56));
|
|
42
|
-
const tick = bold(green("✓"));
|
|
43
|
-
const arrow = cyan("▸");
|
|
44
|
-
|
|
45
|
-
process.stdout.write(
|
|
46
|
-
[
|
|
47
|
-
"",
|
|
48
|
-
line,
|
|
49
|
-
` ${tick} ${bold(magenta("archik"))} ${dim("v" + pkg.version)} ${dim("installed")}`,
|
|
50
|
-
line,
|
|
51
|
-
` ${arrow} ${bold("archik init")} ${dim("scaffold .archik/main.archik.yaml")}`,
|
|
52
|
-
` ${arrow} ${bold("archik dev")} ${dim("open the live canvas in your browser")}`,
|
|
53
|
-
` ${arrow} ${bold("archik --help")} ${dim("full command list")}`,
|
|
54
|
-
"",
|
|
55
|
-
` ${dim("Docs: https://npmjs.com/package/archik")}`,
|
|
56
|
-
"",
|
|
57
|
-
].join("\n"),
|
|
58
|
-
);
|