sdtk-ops-kit 0.3.3 → 0.3.4

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
@@ -5,7 +5,7 @@
5
5
  ## Package
6
6
 
7
7
  - Package: `sdtk-ops-kit`
8
- - Version in this source snapshot: `0.3.3`
8
+ - Version in this source snapshot: `0.3.4`
9
9
  - CLI: `sdtk-ops`
10
10
  - Latest published version lookup: `npm view sdtk-ops-kit version`
11
11
 
@@ -1,7 +1,7 @@
1
1
  {
2
- "version": "0.3.3",
2
+ "version": "0.3.4",
3
3
  "sourceCommit": "6896f2f26dfc5aee3f71751e869b80608e34ecb7",
4
- "fileCount": 44,
4
+ "fileCount": 45,
5
5
  "files": [
6
6
  {
7
7
  "path": "toolkit/AGENTS.md",
@@ -113,6 +113,11 @@
113
113
  "sha256": "282645df98f039cbf8b1b29f52fe74b31c83790b1452240968e10a477947a884",
114
114
  "size": 4410
115
115
  },
116
+ {
117
+ "path": "toolkit/skills/ops-framer-deploy/package.json",
118
+ "sha256": "12e17fa0870d2d5ce5b4d736b6ab34a54cc2953f4b011c22330d781c2ac37879",
119
+ "size": 502
120
+ },
116
121
  {
117
122
  "path": "toolkit/skills/ops-framer-deploy/scripts/framer-extract.mjs",
118
123
  "sha256": "ff1ee39fbf002036b57b01ce110a1a40ebbe66696d5e180944079b64dd527a56",
@@ -120,8 +125,8 @@
120
125
  },
121
126
  {
122
127
  "path": "toolkit/skills/ops-framer-deploy/scripts/framer-install.mjs",
123
- "sha256": "ab50e9ce83a0aee4f7a41897f60fb71aea9ef96ef7f8dc0aa1e9ebe33af6dcee",
124
- "size": 4846
128
+ "sha256": "ef77f33ee63990fed19c67ac9e79f2117616bb6886f364f2f1238708606f3ff0",
129
+ "size": 5080
125
130
  },
126
131
  {
127
132
  "path": "toolkit/skills/ops-framer-deploy/scripts/framer-place.mjs",
@@ -140,13 +145,13 @@
140
145
  },
141
146
  {
142
147
  "path": "toolkit/skills/ops-framer-deploy/scripts/lib/config.mjs",
143
- "sha256": "23f917c38b7772f792c38f91955faaf94c0f0b5b38b654a3b4a1da468a262ca3",
144
- "size": 7293
148
+ "sha256": "20080e068c4a691529b1d0e2a03096aad2a414b356ef6824cf34bed2cc58a4f7",
149
+ "size": 7728
145
150
  },
146
151
  {
147
152
  "path": "toolkit/skills/ops-framer-deploy/SKILL.md",
148
- "sha256": "bf6ef180b9361e3e5f19f9d296958405892fed6f825e2a8f6f18aa48f8704ffc",
149
- "size": 14736
153
+ "sha256": "08acb0978cccc3fdbfc76da4b2362413bdf29010506c4a81a256ecd9f05d51f0",
154
+ "size": 15918
150
155
  },
151
156
  {
152
157
  "path": "toolkit/skills/ops-incident/references/communication-templates.md",
@@ -20,13 +20,14 @@ d5f58322afebcf5c3a110b02de0d2eec4494f9ed9d358b113b6717275c3524af toolkit/skills
20
20
  c2cacc94ffba4d7ef84e635c2078e08abb8d52f79afbbb1534661c0e0cf9bda6 toolkit/skills/ops-deploy/SKILL.md
21
21
  6f38c9b2ab972f272fb86e17926585a9a254a1c48c8454459a61315d4bd81d81 toolkit/skills/ops-discover/SKILL.md
22
22
  282645df98f039cbf8b1b29f52fe74b31c83790b1452240968e10a477947a884 toolkit/skills/ops-framer-deploy/framer-deploy.config.example.json
23
+ 12e17fa0870d2d5ce5b4d736b6ab34a54cc2953f4b011c22330d781c2ac37879 toolkit/skills/ops-framer-deploy/package.json
23
24
  ff1ee39fbf002036b57b01ce110a1a40ebbe66696d5e180944079b64dd527a56 toolkit/skills/ops-framer-deploy/scripts/framer-extract.mjs
24
- ab50e9ce83a0aee4f7a41897f60fb71aea9ef96ef7f8dc0aa1e9ebe33af6dcee toolkit/skills/ops-framer-deploy/scripts/framer-install.mjs
25
+ ef77f33ee63990fed19c67ac9e79f2117616bb6886f364f2f1238708606f3ff0 toolkit/skills/ops-framer-deploy/scripts/framer-install.mjs
25
26
  0f07f8fc469b06220e820b738a7d362323d96bf765055caf9255bc588d89b91f toolkit/skills/ops-framer-deploy/scripts/framer-place.mjs
26
27
  8ba082d86d92e8cf01168246264092b8543806dbc76bdf378863ce3f5955e2dc toolkit/skills/ops-framer-deploy/scripts/framer-scaffold.mjs
27
28
  006780fa3c63acf78fb6c351aa7f879c51c1aabc828005534c3219309575ce17 toolkit/skills/ops-framer-deploy/scripts/framer-verify.mjs
28
- 23f917c38b7772f792c38f91955faaf94c0f0b5b38b654a3b4a1da468a262ca3 toolkit/skills/ops-framer-deploy/scripts/lib/config.mjs
29
- bf6ef180b9361e3e5f19f9d296958405892fed6f825e2a8f6f18aa48f8704ffc toolkit/skills/ops-framer-deploy/SKILL.md
29
+ 20080e068c4a691529b1d0e2a03096aad2a414b356ef6824cf34bed2cc58a4f7 toolkit/skills/ops-framer-deploy/scripts/lib/config.mjs
30
+ 08acb0978cccc3fdbfc76da4b2362413bdf29010506c4a81a256ecd9f05d51f0 toolkit/skills/ops-framer-deploy/SKILL.md
30
31
  f6102d127e47861068b285ebbbb2045e4c3dc8cd9af73b3c975f285f2141639e toolkit/skills/ops-incident/references/communication-templates.md
31
32
  fda6d9cadc5a3757e5559798a67716a6356809735b076d47d6bd99a993b71b99 toolkit/skills/ops-incident/references/postmortem-template.md
32
33
  358644dcd477fe32d3368ced5c9da30663ae3d54fdd5e825ae3e56327f7f6f2d toolkit/skills/ops-incident/references/runbook-template.md
@@ -39,7 +39,21 @@ FRAMER_API_KEY=<key>
39
39
  FRAMER_PROJECT_URL=https://framer.com/projects/<name>--<id>
40
40
  ```
41
41
 
42
- `framer-api` (pin the version you verified against) and `playwright-core` with a Chromium available.
42
+ The scripts declare their own dependencies. After `sdtk-ops runtime install`, run once:
43
+
44
+ ```bash
45
+ cd .claude/skills/ops-framer-deploy && npm install
46
+ ```
47
+
48
+ Node resolves modules from the script's own directory upward, so without this every script fails on its first import with `ERR_MODULE_NOT_FOUND` — the skill is inert as installed until you do it.
49
+
50
+ Chromium is found automatically under `/root/.cache/ms-playwright`; set `SDTK_CHROME` (or `chrome` in the config) when the newest installed build is not the one your `playwright-core` expects, which is what a version bump produces.
51
+
52
+ ## What this skill does NOT carry
53
+
54
+ It generalises one project's pipeline as it stood when it was extracted. A project that keeps developing moves ahead of it — buyer-editable property controls, embedded font subsets, a per-instance theme, its own React-runtime tests. Run this skill against such a project and it extracts *correct but plainer* components.
55
+
56
+ So check what the target already ships before installing over it. A dry run reporting 22 components at 11 KB each, against a project whose own are 100 KB+, is telling you the skill is about to strip work it knows nothing about. Verifying the pipeline and harvesting the difference back is the legitimate use; deploying that output is not.
43
57
 
44
58
  ## Pipeline
45
59
 
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "ops-framer-deploy-scripts",
3
+ "private": true,
4
+ "type": "module",
5
+ "description": "Runtime dependencies for the ops-framer-deploy scripts. Run `npm install` in this directory once after `sdtk-ops runtime install` -- the scripts are installed into .claude/skills/, where Node resolves modules from THIS directory upward, so without this file they fail on the first import with ERR_MODULE_NOT_FOUND.",
6
+ "dependencies": {
7
+ "framer-api": "0.1.29",
8
+ "playwright-core": "^1.61.1"
9
+ }
10
+ }
@@ -92,5 +92,9 @@ for (const f of files) {
92
92
  }
93
93
  }
94
94
 
95
- console.log(failed ? `\n${failed} component(s) reported errors` : `\n${files.length} component(s) installed and clean`);
95
+ console.log(failed ? `\n${failed} component(s) reported errors`
96
+ : APPLY ? `\n${files.length} component(s) installed and clean`
97
+ /* Never say "installed" for a dry run: this line is exactly what gets
98
+ screenshotted as proof the deploy happened. */
99
+ : `\n${files.length} component(s) would install cleanly -- nothing written, re-run with --apply`);
96
100
  process.exit(failed ? 1 : 0);
@@ -137,6 +137,12 @@ export async function serveDir(rootDir, port) {
137
137
  /** Resolve a Chromium binary, preferring config, then env, then Playwright's. */
138
138
  export function resolveChrome(cfg) {
139
139
  if (cfg.chrome) return cfg.chrome;
140
+ /* The failure message below has always named SDTK_CHROME, but nothing read
141
+ it -- the one escape hatch the error advertises did not exist. It comes
142
+ first now: an explicit override beats discovery, which is the whole reason
143
+ to set it (a box whose newest chromium-* is not the build playwright-core
144
+ expects -- exactly what a version bump produces). */
145
+ if (process.env.SDTK_CHROME) return process.env.SDTK_CHROME;
140
146
  const base = "/root/.cache/ms-playwright";
141
147
  if (fs.existsSync(base)) {
142
148
  const dir = fs.readdirSync(base).filter((d) => d.startsWith("chromium-")).sort().reverse()[0];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sdtk-ops-kit",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "description": "Skill-driven operations toolkit for deployment, verification, monitoring, incident response, backup, security, compliance, and cost discipline.",
5
5
  "bin": {
6
6
  "sdtk-ops": "bin/sdtk-ops.js"