agent-takkub 2.2.56 → 2.2.58

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.
@@ -8,6 +8,7 @@
8
8
 
9
9
  const fs = require('fs');
10
10
  const path = require('path');
11
+ const { spawnSync } = require('child_process');
11
12
  const { findWheelForVersion } = require('./lib');
12
13
 
13
14
  function checkDistWheelMatchesVersion(distDir, version) {
@@ -44,6 +45,12 @@ function checkDistWheelMatchesVersion(distDir, version) {
44
45
  return { ok: true, wheel: path.basename(wheel) };
45
46
  }
46
47
 
48
+ function checkPackedWheel(files, wheel) {
49
+ return files.some((file) => file.path === `dist/${wheel}`)
50
+ ? { ok: true }
51
+ : { ok: false, reason: `npm package omits dist/${wheel} — check dist/.npmignore` };
52
+ }
53
+
47
54
  function main() {
48
55
  const pkg = require('../../package.json');
49
56
  const dist = path.join(__dirname, '..', '..', 'dist');
@@ -52,10 +59,23 @@ function main() {
52
59
  console.error(`[agent-takkub] publish preflight FAILED: ${result.reason}`);
53
60
  process.exit(1);
54
61
  }
62
+ const packed = spawnSync(process.execPath, [process.env.npm_execpath, 'pack', '--dry-run', '--json', '--ignore-scripts'], {
63
+ cwd: path.join(__dirname, '..', '..'), encoding: 'utf8',
64
+ });
65
+ if (packed.status !== 0) {
66
+ console.error(`[agent-takkub] publish preflight FAILED: npm pack: ${packed.stderr || packed.error}`);
67
+ process.exit(1);
68
+ }
69
+ const payload = JSON.parse(packed.stdout)[0];
70
+ const included = checkPackedWheel(payload.files, result.wheel);
71
+ if (!included.ok) {
72
+ console.error(`[agent-takkub] publish preflight FAILED: ${included.reason}`);
73
+ process.exit(1);
74
+ }
55
75
  console.log(`[agent-takkub] publish preflight OK — dist/${result.wheel} matches package.json ${pkg.version}`);
56
76
  }
57
77
 
58
- module.exports = { checkDistWheelMatchesVersion };
78
+ module.exports = { checkDistWheelMatchesVersion, checkPackedWheel };
59
79
 
60
80
  if (require.main === module) {
61
81
  main();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-takkub",
3
- "version": "2.2.56",
3
+ "version": "2.2.58",
4
4
  "description": "Desktop cockpit for orchestrating a team of Claude Code agents (Windows + macOS). Install globally: npm i -g agent-takkub",
5
5
  "keywords": [
6
6
  "claude",