aipanel-cli 0.1.0 → 0.1.2

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
@@ -27,6 +27,15 @@ make build
27
27
 
28
28
  ```bash
29
29
  node dist/bin/aipanel.js providers --json
30
+ npm start -- providers --json
31
+ make smoke
32
+ ```
33
+
34
+ build 前に source から直接試すなら:
35
+
36
+ ```bash
37
+ npm run dev -- providers --json
38
+ make dev
30
39
  ```
31
40
 
32
41
  ## Package Install
@@ -38,6 +47,35 @@ npm install -g aipanel-cli
38
47
  aipanel providers --json
39
48
  ```
40
49
 
50
+ 2026-03-10 JST 時点で、registry 経由の `npm install aipanel-cli` と `aipanel providers --json` まで確認済みです。
51
+
52
+ ## Import Usage
53
+
54
+ CLI だけでなく、package として import できます。
55
+
56
+ ```ts
57
+ import { AipanelApp, Session, runCli } from "aipanel-cli";
58
+ import { Run } from "aipanel-cli/domain";
59
+
60
+ const app = new AipanelApp();
61
+ const providers = await app.listProvidersUseCase.execute();
62
+ console.log(providers.providers);
63
+
64
+ await runCli(["providers", "--json"]);
65
+
66
+ const session = Session.create({ title: "Imported session" });
67
+ const run = Run.create({
68
+ sessionId: session.sessionId,
69
+ command: "consult",
70
+ mode: "direct",
71
+ });
72
+ ```
73
+
74
+ 現時点で確認している import surface:
75
+
76
+ - root import: `AipanelApp`, `CommandRouter`, `runCli`, domain entity 群
77
+ - subpath import: `aipanel-cli/domain`, `aipanel-cli/providers`, `aipanel-cli/usecases`, `aipanel-cli/shared`
78
+
41
79
  公開前のローカル確認は tarball か `Makefile` で行えます。
42
80
 
43
81
  ```bash
@@ -71,6 +109,14 @@ node dist/bin/aipanel.js followup --session <sessionId> "<question>" [--cwd <dir
71
109
  node dist/bin/aipanel.js debug "<question>" [--cwd <dir>] [--file <path>] [--diff <path>] [--log <path>] [--timeout <ms>] [--json]
72
110
  ```
73
111
 
112
+ repo からのショートカット:
113
+
114
+ ```bash
115
+ npm start -- providers --json
116
+ npm run dev -- consult "この設計どう?" --json
117
+ make run ARGS='debug "この不具合の根本原因は?" --json --timeout 60000'
118
+ ```
119
+
74
120
  よく使う例:
75
121
 
76
122
  ```bash
@@ -141,6 +187,12 @@ make test
141
187
  - `npm test`
142
188
  - `npm run build`
143
189
  - `npm run verify:package`
190
+ - `npm run dev -- providers --json`
191
+ - `npm start -- providers --json`
192
+ - `make smoke`
193
+ - `npm install --prefix "$tmpdir" aipanel-cli`
194
+ - `import("aipanel-cli")`
195
+ - `import("aipanel-cli/domain")`
144
196
  - `node dist/bin/aipanel.js providers --json`
145
197
  - 実 Claude Code を使った `consult`
146
198
  - 実 Claude Code を使った `followup`
@@ -0,0 +1,16 @@
1
+ export { runCli } from "./cli/aipanel.js";
2
+ export { AipanelApp } from "./app/AipanelApp.js";
3
+ export { CommandRouter } from "./app/CommandRouter.js";
4
+ export { ProfileLoader } from "./app/ProfileLoader.js";
5
+ export { WorkflowSelector } from "./app/WorkflowSelector.js";
6
+ export type { AppResult, CommandFlags, CommandName, CommandRoute, OutputFormat, ProviderDescriptor, } from "./app/types.js";
7
+ export * from "./artifact/index.js";
8
+ export * from "./compare/index.js";
9
+ export * from "./context/index.js";
10
+ export * from "./domain/index.js";
11
+ export * from "./orchestrator/index.js";
12
+ export * from "./output/index.js";
13
+ export * from "./providers/index.js";
14
+ export * from "./run/index.js";
15
+ export * from "./session/index.js";
16
+ export * from "./usecases/index.js";
@@ -0,0 +1,16 @@
1
+ export { runCli } from "./cli/aipanel.js";
2
+ export { AipanelApp } from "./app/AipanelApp.js";
3
+ export { CommandRouter } from "./app/CommandRouter.js";
4
+ export { ProfileLoader } from "./app/ProfileLoader.js";
5
+ export { WorkflowSelector } from "./app/WorkflowSelector.js";
6
+ export * from "./artifact/index.js";
7
+ export * from "./compare/index.js";
8
+ export * from "./context/index.js";
9
+ export * from "./domain/index.js";
10
+ export * from "./orchestrator/index.js";
11
+ export * from "./output/index.js";
12
+ export * from "./providers/index.js";
13
+ export * from "./run/index.js";
14
+ export * from "./session/index.js";
15
+ export * from "./usecases/index.js";
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAS7D,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from "./clock.js";
2
+ export * from "./contracts.js";
3
+ export * from "./errors.js";
4
+ export * from "./ids.js";
@@ -0,0 +1,5 @@
1
+ export * from "./clock.js";
2
+ export * from "./contracts.js";
3
+ export * from "./errors.js";
4
+ export * from "./ids.js";
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/shared/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aipanel-cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "CLI broker and orchestrator for consult, followup, and debug workflows with Claude Code.",
5
5
  "private": false,
6
6
  "license": "MIT",
@@ -20,9 +20,70 @@
20
20
  },
21
21
  "homepage": "https://github.com/sean-sunagaku/aipanel#readme",
22
22
  "type": "module",
23
+ "main": "./dist/src/index.js",
24
+ "types": "./dist/src/index.d.ts",
23
25
  "bin": {
24
26
  "aipanel": "dist/bin/aipanel.js"
25
27
  },
28
+ "exports": {
29
+ ".": {
30
+ "types": "./dist/src/index.d.ts",
31
+ "import": "./dist/src/index.js"
32
+ },
33
+ "./app": {
34
+ "types": "./dist/src/app/index.d.ts",
35
+ "import": "./dist/src/app/index.js"
36
+ },
37
+ "./artifact": {
38
+ "types": "./dist/src/artifact/index.d.ts",
39
+ "import": "./dist/src/artifact/index.js"
40
+ },
41
+ "./cli": {
42
+ "types": "./dist/src/cli/aipanel.d.ts",
43
+ "import": "./dist/src/cli/aipanel.js"
44
+ },
45
+ "./compare": {
46
+ "types": "./dist/src/compare/index.d.ts",
47
+ "import": "./dist/src/compare/index.js"
48
+ },
49
+ "./context": {
50
+ "types": "./dist/src/context/index.d.ts",
51
+ "import": "./dist/src/context/index.js"
52
+ },
53
+ "./domain": {
54
+ "types": "./dist/src/domain/index.d.ts",
55
+ "import": "./dist/src/domain/index.js"
56
+ },
57
+ "./orchestrator": {
58
+ "types": "./dist/src/orchestrator/index.d.ts",
59
+ "import": "./dist/src/orchestrator/index.js"
60
+ },
61
+ "./output": {
62
+ "types": "./dist/src/output/index.d.ts",
63
+ "import": "./dist/src/output/index.js"
64
+ },
65
+ "./providers": {
66
+ "types": "./dist/src/providers/index.d.ts",
67
+ "import": "./dist/src/providers/index.js"
68
+ },
69
+ "./run": {
70
+ "types": "./dist/src/run/index.d.ts",
71
+ "import": "./dist/src/run/index.js"
72
+ },
73
+ "./session": {
74
+ "types": "./dist/src/session/index.d.ts",
75
+ "import": "./dist/src/session/index.js"
76
+ },
77
+ "./shared": {
78
+ "types": "./dist/src/shared/index.d.ts",
79
+ "import": "./dist/src/shared/index.js"
80
+ },
81
+ "./usecases": {
82
+ "types": "./dist/src/usecases/index.d.ts",
83
+ "import": "./dist/src/usecases/index.js"
84
+ },
85
+ "./package.json": "./package.json"
86
+ },
26
87
  "files": [
27
88
  "dist",
28
89
  "README.md",
@@ -37,6 +98,9 @@
37
98
  "scripts": {
38
99
  "clean": "node scripts/clean-dist.mjs",
39
100
  "build": "node scripts/clean-dist.mjs && tsc -p tsconfig.build.json",
101
+ "dev": "tsx bin/aipanel.ts",
102
+ "start": "node dist/bin/aipanel.js",
103
+ "smoke": "npm run build && node dist/bin/aipanel.js providers --json",
40
104
  "typecheck": "tsc -p tsconfig.json --noEmit",
41
105
  "render:diagrams": "node scripts/architecture/render-diagram-bundle.mjs docs/rearchitecture/content_rearchitecture_2026-03-10/12_current-implementation-diagrams/source/current-implementation-diagrams.spec.json docs/rearchitecture/content_rearchitecture_2026-03-10/12_current-implementation-diagrams",
42
106
  "pack:dry-run": "npm pack --dry-run",