claudio-cli 0.1.15
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 +40 -0
- package/bin/claudio-cli.js +39 -0
- package/package.json +17 -0
package/README.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# claudio-cli
|
|
2
|
+
|
|
3
|
+
CLI for the [Claudio Pipe](https://claudiopipe.com) platform.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pnpm add -g claudio-cli@latest # or: npm install -g claudio-cli@latest | yarn global add claudio-cli@latest
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Run
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
claudio-cli
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
The CLI guides you through `gh` + Claude Code authentication on first run.
|
|
18
|
+
|
|
19
|
+
## Requirements
|
|
20
|
+
|
|
21
|
+
- Node.js 18+ (used only by the install-time shim that resolves the binary)
|
|
22
|
+
- [Claude Code](https://www.npmjs.com/package/@anthropic-ai/claude-code) installed (`npm i -g @anthropic-ai/claude-code`)
|
|
23
|
+
- A Claude subscription (Pro, Max, or Team)
|
|
24
|
+
- [GitHub CLI (`gh`)](https://cli.github.com/) installed and authenticated (`gh auth login`)
|
|
25
|
+
|
|
26
|
+
## Supported platforms
|
|
27
|
+
|
|
28
|
+
- macOS Apple Silicon (arm64)
|
|
29
|
+
- macOS Intel (x64)
|
|
30
|
+
- Linux x64
|
|
31
|
+
- Windows x64
|
|
32
|
+
|
|
33
|
+
## Links
|
|
34
|
+
|
|
35
|
+
- Website: https://claudiopipe.com
|
|
36
|
+
- Issues / support: claudiopipe.com@gmail.com
|
|
37
|
+
|
|
38
|
+
## License
|
|
39
|
+
|
|
40
|
+
MIT
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// claudio-cli shim — resolves the platform-specific binary package
|
|
3
|
+
// installed via optionalDependencies and execs the binary inside it.
|
|
4
|
+
const { spawnSync } = require('node:child_process');
|
|
5
|
+
const path = require('node:path');
|
|
6
|
+
|
|
7
|
+
const platform = process.platform;
|
|
8
|
+
const arch = process.arch;
|
|
9
|
+
// Map process.platform → pkg-os-slug used in published package names.
|
|
10
|
+
// Windows is 'win' (not 'win32') because npm's spam filter flagged the
|
|
11
|
+
// original 'claudio-cli-win32-x64' name for new accounts; everywhere
|
|
12
|
+
// else the slug matches process.platform.
|
|
13
|
+
const osSlug = platform === 'win32' ? 'win' : platform;
|
|
14
|
+
const pkgName = `claudio-cli-${osSlug}-${arch}`;
|
|
15
|
+
const binName = platform === 'win32' ? 'claudio-cli.exe' : 'claudio-cli';
|
|
16
|
+
|
|
17
|
+
let binPath;
|
|
18
|
+
try {
|
|
19
|
+
// Resolve the platform package's package.json, then build the binary
|
|
20
|
+
// path next to it. Avoids requiring the platform package to expose a
|
|
21
|
+
// bin entry of its own (which would create install-time conflicts).
|
|
22
|
+
const pkgJsonPath = require.resolve(`${pkgName}/package.json`);
|
|
23
|
+
binPath = path.join(path.dirname(pkgJsonPath), binName);
|
|
24
|
+
} catch (err) {
|
|
25
|
+
console.error(`[claudio-cli] Could not find the binary package for your platform.`);
|
|
26
|
+
console.error(` Expected: ${pkgName}`);
|
|
27
|
+
console.error(` Got: ${platform}/${arch}`);
|
|
28
|
+
console.error(` This usually means: (1) your platform isn't supported yet, or`);
|
|
29
|
+
console.error(` (2) the optional dependency was skipped during install — try:`);
|
|
30
|
+
console.error(` npm install -g claudio-cli --force`);
|
|
31
|
+
process.exit(1);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const result = spawnSync(binPath, process.argv.slice(2), { stdio: 'inherit' });
|
|
35
|
+
if (result.error) {
|
|
36
|
+
console.error('[claudio-cli] Failed to spawn binary:', result.error.message);
|
|
37
|
+
process.exit(1);
|
|
38
|
+
}
|
|
39
|
+
process.exit(result.status ?? 1);
|
package/package.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "claudio-cli",
|
|
3
|
+
"version": "0.1.15",
|
|
4
|
+
"description": "CLI for the Claudio Pipe platform",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"homepage": "https://claudiopipe.com",
|
|
7
|
+
"bugs": { "email": "claudiopipe.com@gmail.com" },
|
|
8
|
+
"bin": { "claudio-cli": "bin/claudio-cli.js" },
|
|
9
|
+
"files": ["bin"],
|
|
10
|
+
"engines": { "node": ">=18.0.0" },
|
|
11
|
+
"optionalDependencies": {
|
|
12
|
+
"claudio-cli-darwin-arm64": "0.1.15",
|
|
13
|
+
"claudio-cli-darwin-x64": "0.1.15",
|
|
14
|
+
"claudio-cli-linux-x64": "0.1.15",
|
|
15
|
+
"claudio-cli-win-x64": "0.1.15"
|
|
16
|
+
}
|
|
17
|
+
}
|