aipanel-cli 0.1.1 → 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 +29 -0
- package/dist/src/index.d.ts +16 -0
- package/dist/src/index.js +16 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/shared/index.d.ts +4 -0
- package/dist/src/shared/index.js +5 -0
- package/dist/src/shared/index.js.map +1 -0
- package/package.json +62 -1
package/README.md
CHANGED
|
@@ -49,6 +49,33 @@ aipanel providers --json
|
|
|
49
49
|
|
|
50
50
|
2026-03-10 JST 時点で、registry 経由の `npm install aipanel-cli` と `aipanel providers --json` まで確認済みです。
|
|
51
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
|
+
|
|
52
79
|
公開前のローカル確認は tarball か `Makefile` で行えます。
|
|
53
80
|
|
|
54
81
|
```bash
|
|
@@ -164,6 +191,8 @@ make test
|
|
|
164
191
|
- `npm start -- providers --json`
|
|
165
192
|
- `make smoke`
|
|
166
193
|
- `npm install --prefix "$tmpdir" aipanel-cli`
|
|
194
|
+
- `import("aipanel-cli")`
|
|
195
|
+
- `import("aipanel-cli/domain")`
|
|
167
196
|
- `node dist/bin/aipanel.js providers --json`
|
|
168
197
|
- 実 Claude Code を使った `consult`
|
|
169
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 @@
|
|
|
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.
|
|
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",
|