agent-detective 1.0.0 → 1.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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  // src/version.ts
4
4
  var APP_NAME = "agent-detective";
5
- var APP_VERSION = "1.0.0";
5
+ var APP_VERSION = "1.0.1";
6
6
 
7
7
  // src/config/env-whitelist.ts
8
8
  var JIRA_PACKAGE = "@agent-detective/jira-adapter";
@@ -8,7 +8,7 @@ import {
8
8
  isAgentInstalled,
9
9
  loadConfig,
10
10
  normalizeAgent
11
- } from "./chunk-H2IXGHNA.js";
11
+ } from "./chunk-YZZJFJRA.js";
12
12
 
13
13
  // src/cli/doctor.ts
14
14
  import { resolve } from "path";
package/dist/index.js CHANGED
@@ -13,7 +13,7 @@ import {
13
13
  listAgents,
14
14
  loadConfig,
15
15
  normalizeAgent
16
- } from "./chunk-H2IXGHNA.js";
16
+ } from "./chunk-YZZJFJRA.js";
17
17
 
18
18
  // src/core/event-bus.ts
19
19
  var AsyncEventBus = class {
@@ -638,17 +638,17 @@ async function main() {
638
638
  return;
639
639
  }
640
640
  if (cli.command === "doctor") {
641
- const mod = await import("./doctor-3ZMDZLW6.js");
641
+ const mod = await import("./doctor-HTTJY7FT.js");
642
642
  await mod.runDoctor({ installRoot, argv: process.argv });
643
643
  return;
644
644
  }
645
645
  if (cli.command === "validate-config") {
646
- const mod = await import("./doctor-3ZMDZLW6.js");
646
+ const mod = await import("./doctor-HTTJY7FT.js");
647
647
  await mod.runValidateConfig({ installRoot, argv: process.argv });
648
648
  return;
649
649
  }
650
650
  if (cli.command === "init") {
651
- const mod = await import("./init-IPCDLNHA.js");
651
+ const mod = await import("./init-CYZ53XYY.js");
652
652
  await mod.runInit({ installRoot, argv: process.argv });
653
653
  return;
654
654
  }
@@ -3,7 +3,7 @@ import {
3
3
  isKnownAgent,
4
4
  loadConfig,
5
5
  normalizeAgent
6
- } from "./chunk-H2IXGHNA.js";
6
+ } from "./chunk-YZZJFJRA.js";
7
7
 
8
8
  // src/cli/init.ts
9
9
  import { existsSync, mkdirSync, writeFileSync } from "fs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-detective",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "private": false,
5
5
  "description": "AI-powered code analysis agent that responds to events from Jira, Telegram, Slack and more",
6
6
  "type": "module",
@@ -8,7 +8,8 @@
8
8
  "agent-detective": "./dist/index.js"
9
9
  },
10
10
  "files": [
11
- "dist"
11
+ "dist",
12
+ "scripts/publish-lifecycle.mjs"
12
13
  ],
13
14
  "publishConfig": {
14
15
  "access": "public"
@@ -27,14 +28,14 @@
27
28
  "fastify-type-provider-zod": "^6.1.0",
28
29
  "openapi-types": "^12.1.3",
29
30
  "zod": "^4.4.3",
30
- "@agent-detective/jira-adapter": "1.0.0",
31
- "@agent-detective/linear-adapter": "1.0.0",
32
- "@agent-detective/observability": "1.0.0",
33
- "@agent-detective/pr-pipeline": "1.0.0",
34
- "@agent-detective/sdk": "1.0.0",
35
- "@agent-detective/types": "1.0.0",
36
- "@agent-detective/process-utils": "1.0.0",
37
- "@agent-detective/local-repos-plugin": "1.0.0"
31
+ "@agent-detective/linear-adapter": "1.0.1",
32
+ "@agent-detective/local-repos-plugin": "1.0.1",
33
+ "@agent-detective/observability": "1.0.1",
34
+ "@agent-detective/pr-pipeline": "1.0.1",
35
+ "@agent-detective/sdk": "1.0.1",
36
+ "@agent-detective/jira-adapter": "1.0.1",
37
+ "@agent-detective/process-utils": "1.0.1",
38
+ "@agent-detective/types": "1.0.1"
38
39
  },
39
40
  "devDependencies": {
40
41
  "@commitlint/cli": "^20.4.0",
@@ -62,7 +63,7 @@
62
63
  "url": "https://github.com/andezdev/agent-detective/issues"
63
64
  },
64
65
  "scripts": {
65
- "postinstall": "node scripts/sync-cursor-from-agents.mjs",
66
+ "postinstall": "node scripts/publish-lifecycle.mjs",
66
67
  "agents:sync-cursor": "node scripts/sync-cursor-from-agents.mjs",
67
68
  "dev": "tsx watch src/index.ts",
68
69
  "build": "turbo run build",
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Root package lifecycle for npm installs.
4
+ * Published tarball only ships dist/ + this script — dev-only hooks no-op for end users.
5
+ */
6
+ import { existsSync } from 'node:fs';
7
+ import { execFileSync } from 'node:child_process';
8
+ import path from 'node:path';
9
+ import { fileURLToPath } from 'node:url';
10
+
11
+ const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
12
+ const event = process.env.npm_lifecycle_event;
13
+
14
+ function runNodeScript(rel) {
15
+ const script = path.join(root, rel);
16
+ if (!existsSync(script)) return;
17
+ execFileSync(process.execPath, [script], { cwd: root, stdio: 'inherit' });
18
+ }
19
+
20
+ if (event === 'postinstall') {
21
+ runNodeScript('scripts/sync-cursor-from-agents.mjs');
22
+ }
23
+
24
+ if (event === 'prepare') {
25
+ const huskyBin = path.join(root, 'node_modules', 'husky', 'bin.js');
26
+ if (existsSync(path.join(root, '.git')) && existsSync(huskyBin)) {
27
+ execFileSync(process.execPath, [huskyBin], { cwd: root, stdio: 'inherit' });
28
+ }
29
+ }