@celilo/core 0.1.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/README.md +11 -0
- package/package.json +31 -0
- package/src/command-registry.ts +1519 -0
- package/src/index.ts +3 -0
- package/src/protocol.ts +159 -0
- package/src/remote-client.ts +218 -0
package/README.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# @celilo/core
|
|
2
|
+
|
|
3
|
+
Lightweight shared core for Celilo CLI tools. Holds the three self-contained
|
|
4
|
+
transport modules a consumer needs to drive celilo over the wire without pulling
|
|
5
|
+
in the full `@celilo/cli` (and its Ink/React/drizzle/aws-sdk transitive deps):
|
|
6
|
+
|
|
7
|
+
- `command-registry.ts` — `COMMANDS` and the `CommandDef`/`ArgDef`/`FlagDef` types.
|
|
8
|
+
- `protocol.ts` — versioned NDJSON tagged union + `translateOutputLine`.
|
|
9
|
+
- `remote-client.ts` — `resolveRemote`, `runRemoteClient` (drive the CLI over SSH).
|
|
10
|
+
|
|
11
|
+
One source of truth, imported by both `@celilo/cli` and `@celilo/mcp`.
|
package/package.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@celilo/core",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Lightweight shared core for Celilo CLI tools — command registry, NDJSON API protocol, and remote SSH client. No Ink/React/drizzle/aws-sdk transitive deps, so an MCP server can reach the transport without installing the full CLI.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./src/index.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": "./src/index.ts"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"src/",
|
|
12
|
+
"README.md"
|
|
13
|
+
],
|
|
14
|
+
"keywords": [
|
|
15
|
+
"celilo",
|
|
16
|
+
"cli",
|
|
17
|
+
"protocol",
|
|
18
|
+
"remote"
|
|
19
|
+
],
|
|
20
|
+
"license": "MIT",
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "https://github.com/psbanka/infra",
|
|
24
|
+
"directory": "packages/core"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@celilo/cli-display": "^0.1.9",
|
|
28
|
+
"@clack/prompts": "^1.1.0",
|
|
29
|
+
"zod": "^3.24.1"
|
|
30
|
+
}
|
|
31
|
+
}
|