aipctl 2026.6.2 → 2026.6.3

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/dispatcher.cjs ADDED
@@ -0,0 +1,17 @@
1
+ // CLI 런타임 분기. 기존 MCP CLI 서브커맨드는 Go 바이너리로 그대로 전달한다.
2
+ "use strict";
3
+
4
+ const MCP_COMMANDS = new Set(["install", "run", "tunnel", "logs"]);
5
+
6
+ function dispatch({ args, binaryPath, spawn }) {
7
+ if (MCP_COMMANDS.has(args[0])) {
8
+ return spawn(binaryPath, args, {
9
+ stdio: "inherit",
10
+ env: process.env,
11
+ });
12
+ }
13
+
14
+ throw new Error("TODO: AIP runtime dispatch is not implemented yet");
15
+ }
16
+
17
+ module.exports = { dispatch, MCP_COMMANDS };
package/main.cjs ADDED
@@ -0,0 +1,23 @@
1
+ #!/usr/bin/env node
2
+ // Go 바이너리를 실행하는 npm wrapper entrypoint.
3
+ "use strict";
4
+
5
+ const { spawn } = require("child_process");
6
+ const { resolveBinaryPath } = require("./binary.cjs");
7
+ const { dispatch } = require("./dispatcher.cjs");
8
+
9
+ const bin = resolveBinaryPath(process.platform, process.arch);
10
+ const child = dispatch({
11
+ args: process.argv.slice(2),
12
+ binaryPath: bin,
13
+ spawn,
14
+ });
15
+
16
+ child.on("error", (err) => {
17
+ console.error(`Failed to start mcp: ${err.message}`);
18
+ process.exit(1);
19
+ });
20
+
21
+ child.on("exit", (code) => {
22
+ process.exit(code ?? 1);
23
+ });
package/package.json CHANGED
@@ -1,35 +1,36 @@
1
1
  {
2
+ "version": "2026.6.3",
2
3
  "name": "aipctl",
3
- "version": "2026.6.2",
4
- "description": "QueryPie AIP and MCP CLI tool",
4
+ "description": "QueryPie MCP CLI tool",
5
5
  "author": "QueryPie",
6
6
  "license": "UNLICENSED",
7
- "type": "module",
8
- "main": "build/index.cjs",
9
7
  "bin": {
10
- "aipctl": "build/index.cjs"
8
+ "aipctl": "main.cjs"
11
9
  },
12
10
  "files": [
13
- "build/index.cjs",
11
+ "main.cjs",
14
12
  "binary.cjs",
15
- "platforms.json",
16
- "README.md",
17
- "docs/architecture.md",
18
- "docs/api-contract-inventory.md",
19
- "docs/desktop-cli-go-coding-guidelines.md"
13
+ "dispatcher.cjs",
14
+ "platforms.json"
20
15
  ],
21
- "engines": {
22
- "node": ">=24.18.0"
23
- },
24
- "metadata": {
25
- "contentHash": "13d895182b79cdf5c5136f94d1dd1d1c9bf378a58bf3d0c9b8a9955e30d26189"
16
+ "scripts": {
17
+ "clean": "node -e \"const fs=require('node:fs'); fs.rmSync('dist',{recursive:true,force:true}); fs.rmSync('src/bin',{recursive:true,force:true});\"",
18
+ "build": "make -C src build",
19
+ "dev": "node ../../scripts/cli-dev.cjs",
20
+ "generate": "make -C src generate",
21
+ "test": "pnpm run test:wrapper && pnpm run test:go",
22
+ "test:go": "make -C src test",
23
+ "test:wrapper": "pnpm dlx tsx --test scripts/publish-lib.test.ts && node --test binary.test.cjs dispatcher.test.cjs"
26
24
  },
27
25
  "optionalDependencies": {
28
- "aipctl-darwin-x64": "2026.6.2",
29
- "aipctl-darwin-arm64": "2026.6.2",
30
- "aipctl-linux-x64": "2026.6.2",
31
- "aipctl-linux-arm64": "2026.6.2",
32
- "aipctl-windows-x64": "2026.6.2",
33
- "aipctl-windows-arm64": "2026.6.2"
26
+ "aipctl-darwin-x64": "2026.6.3",
27
+ "aipctl-darwin-arm64": "2026.6.3",
28
+ "aipctl-linux-x64": "2026.6.3",
29
+ "aipctl-linux-arm64": "2026.6.3",
30
+ "aipctl-windows-x64": "2026.6.3",
31
+ "aipctl-windows-arm64": "2026.6.3"
32
+ },
33
+ "metadata": {
34
+ "contentHash": "060d223f43a7ef96cda9d7c8391a96c6440b75026dbcebfd0fe1b9e62f3b769a"
34
35
  }
35
36
  }
package/README.md DELETED
@@ -1,60 +0,0 @@
1
- # aipctl
2
-
3
- `aipctl`은 Duplo AIP API command와 기존 MCP native command를 하나로 통합한 CLI입니다.
4
-
5
- ## Requirements
6
-
7
- - Node.js 24.18.0+
8
-
9
- ## Install
10
-
11
- ```bash
12
- npm install -g aipctl
13
- npx aipctl --help
14
- ```
15
-
16
- ## AIP setup
17
-
18
- ```bash
19
- aipctl config set --app-url https://app.example.com
20
- aipctl auth login
21
- aipctl org list
22
- aipctl org select
23
- ```
24
-
25
- 설정과 credentials 경로는 기존 `~/.config/aip`를 유지합니다.
26
-
27
- ## MCP native commands
28
-
29
- ```bash
30
- aipctl install <presetName> <presetId> --key <apiKey>
31
- aipctl run <config>
32
- aipctl tunnel link <token>
33
- ```
34
-
35
- `install`, `run`, `tunnel`, `logs`는 Go native binary로 lazy dispatch됩니다. `prod` build에서는 `logs` command가 help와 command tree에서 제외됩니다.
36
-
37
- ## Development
38
-
39
- ```bash
40
- cd desktop
41
- pnpm install
42
- pnpm run cli:typecheck
43
- pnpm run cli:lint
44
- pnpm run cli:test:ts
45
- pnpm run cli:test:wrapper
46
- pnpm run cli:test:go
47
- pnpm run cli:help:check
48
- ```
49
-
50
- Local run:
51
-
52
- ```bash
53
- mise run desktop:cli:local -- --help
54
- mise run desktop:cli:local -- auth --help
55
- mise run desktop:cli:local -- run --help
56
- ```
57
-
58
- ## Architecture
59
-
60
- 자세한 구조는 [`docs/architecture.md`](./docs/architecture.md)를 봅니다.