ctxpipe 0.1.0-alpha.0
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/bin/ctxpipe.js +45 -0
- package/package.json +25 -0
package/bin/ctxpipe.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const args = process.argv.slice(2)
|
|
4
|
+
const command = args[0]
|
|
5
|
+
|
|
6
|
+
function printHelp() {
|
|
7
|
+
console.log(`ctxpipe
|
|
8
|
+
|
|
9
|
+
Usage:
|
|
10
|
+
ctxpipe init
|
|
11
|
+
ctxpipe doctor
|
|
12
|
+
ctxpipe mcp add --help
|
|
13
|
+
|
|
14
|
+
This early CLI package reserves the ctxpipe command while the interactive setup
|
|
15
|
+
experience is being built.
|
|
16
|
+
`)
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
switch (command) {
|
|
20
|
+
case undefined:
|
|
21
|
+
case "-h":
|
|
22
|
+
case "--help":
|
|
23
|
+
printHelp()
|
|
24
|
+
break
|
|
25
|
+
case "init":
|
|
26
|
+
console.log(
|
|
27
|
+
"ctxpipe init is coming soon. For now, see https://docs.ctxpipe.ai/docs/mcp/mcp-docs",
|
|
28
|
+
)
|
|
29
|
+
break
|
|
30
|
+
case "doctor":
|
|
31
|
+
console.log("ctxpipe doctor is coming soon.")
|
|
32
|
+
break
|
|
33
|
+
case "mcp":
|
|
34
|
+
if (args[1] === "add" && (args[2] === "--help" || args[2] === "-h")) {
|
|
35
|
+
console.log("ctxpipe mcp add is coming soon.")
|
|
36
|
+
break
|
|
37
|
+
}
|
|
38
|
+
printHelp()
|
|
39
|
+
process.exitCode = 1
|
|
40
|
+
break
|
|
41
|
+
default:
|
|
42
|
+
console.error(`Unknown command: ${command}`)
|
|
43
|
+
printHelp()
|
|
44
|
+
process.exitCode = 1
|
|
45
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ctxpipe",
|
|
3
|
+
"version": "0.1.0-alpha.0",
|
|
4
|
+
"description": "Universal ctx| CLI for initializing repositories and agent integrations.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"ctxpipe": "./bin/ctxpipe.js"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"bin"
|
|
11
|
+
],
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "git+https://github.com/ctxpipe-ai/ctxpipe.git",
|
|
15
|
+
"directory": "packages/cli"
|
|
16
|
+
},
|
|
17
|
+
"homepage": "https://ctxpipe.ai",
|
|
18
|
+
"bugs": {
|
|
19
|
+
"url": "https://github.com/ctxpipe-ai/ctxpipe/issues"
|
|
20
|
+
},
|
|
21
|
+
"license": "UNLICENSED",
|
|
22
|
+
"publishConfig": {
|
|
23
|
+
"access": "public"
|
|
24
|
+
}
|
|
25
|
+
}
|