@yesod/cli 0.0.1
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/dist/index.js +34 -0
- package/dist/index.js.map +1 -0
- package/package.json +33 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// src/index.ts
|
|
4
|
+
import { Command } from "commander";
|
|
5
|
+
|
|
6
|
+
// src/commands/init.ts
|
|
7
|
+
function registerInitCommand(program2) {
|
|
8
|
+
program2.command("init").description("Initialize yesod in the current project").action(() => {
|
|
9
|
+
console.log("yesod init \u2014 not yet implemented");
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// src/commands/run.ts
|
|
14
|
+
function registerRunCommand(program2) {
|
|
15
|
+
program2.command("run").description("Run a yesod workflow or replay").action(() => {
|
|
16
|
+
console.log("yesod run \u2014 not yet implemented");
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// src/commands/status.ts
|
|
21
|
+
function registerStatusCommand(program2) {
|
|
22
|
+
program2.command("status").description("Show status of active yesod sessions and workflows").action(() => {
|
|
23
|
+
console.log("yesod status \u2014 not yet implemented");
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// src/index.ts
|
|
28
|
+
var program = new Command();
|
|
29
|
+
program.name("yesod").description("Orchestration and observability for AI agent workflows").version("0.0.1");
|
|
30
|
+
registerInitCommand(program);
|
|
31
|
+
registerRunCommand(program);
|
|
32
|
+
registerStatusCommand(program);
|
|
33
|
+
program.parse();
|
|
34
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/commands/init.ts","../src/commands/run.ts","../src/commands/status.ts"],"sourcesContent":["import { Command } from \"commander\";\nimport { registerInitCommand } from \"./commands/init.js\";\nimport { registerRunCommand } from \"./commands/run.js\";\nimport { registerStatusCommand } from \"./commands/status.js\";\n\nconst program = new Command();\n\nprogram\n .name(\"yesod\")\n .description(\"Orchestration and observability for AI agent workflows\")\n .version(\"0.0.1\");\n\nregisterInitCommand(program);\nregisterRunCommand(program);\nregisterStatusCommand(program);\n\nprogram.parse();\n","import type { Command } from \"commander\";\n\nexport function registerInitCommand(program: Command): void {\n program\n .command(\"init\")\n .description(\"Initialize yesod in the current project\")\n .action(() => {\n console.log(\"yesod init — not yet implemented\");\n });\n}\n","import type { Command } from \"commander\";\n\nexport function registerRunCommand(program: Command): void {\n program\n .command(\"run\")\n .description(\"Run a yesod workflow or replay\")\n .action(() => {\n console.log(\"yesod run — not yet implemented\");\n });\n}\n","import type { Command } from \"commander\";\n\nexport function registerStatusCommand(program: Command): void {\n program\n .command(\"status\")\n .description(\"Show status of active yesod sessions and workflows\")\n .action(() => {\n console.log(\"yesod status — not yet implemented\");\n });\n}\n"],"mappings":";;;AAAA,SAAS,eAAe;;;ACEjB,SAAS,oBAAoBA,UAAwB;AAC1D,EAAAA,SACG,QAAQ,MAAM,EACd,YAAY,yCAAyC,EACrD,OAAO,MAAM;AACZ,YAAQ,IAAI,uCAAkC;AAAA,EAChD,CAAC;AACL;;;ACPO,SAAS,mBAAmBC,UAAwB;AACzD,EAAAA,SACG,QAAQ,KAAK,EACb,YAAY,gCAAgC,EAC5C,OAAO,MAAM;AACZ,YAAQ,IAAI,sCAAiC;AAAA,EAC/C,CAAC;AACL;;;ACPO,SAAS,sBAAsBC,UAAwB;AAC5D,EAAAA,SACG,QAAQ,QAAQ,EAChB,YAAY,oDAAoD,EAChE,OAAO,MAAM;AACZ,YAAQ,IAAI,yCAAoC;AAAA,EAClD,CAAC;AACL;;;AHJA,IAAM,UAAU,IAAI,QAAQ;AAE5B,QACG,KAAK,OAAO,EACZ,YAAY,wDAAwD,EACpE,QAAQ,OAAO;AAElB,oBAAoB,OAAO;AAC3B,mBAAmB,OAAO;AAC1B,sBAAsB,OAAO;AAE7B,QAAQ,MAAM;","names":["program","program","program"]}
|
package/package.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@yesod/cli",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "https://github.com/eryv-ai/yesod.git",
|
|
7
|
+
"directory": "packages/cli"
|
|
8
|
+
},
|
|
9
|
+
"type": "module",
|
|
10
|
+
"bin": {
|
|
11
|
+
"yesod": "./dist/index.js"
|
|
12
|
+
},
|
|
13
|
+
"files": ["dist"],
|
|
14
|
+
"publishConfig": {
|
|
15
|
+
"access": "public"
|
|
16
|
+
},
|
|
17
|
+
"scripts": {
|
|
18
|
+
"build": "tsup",
|
|
19
|
+
"dev": "tsup --watch",
|
|
20
|
+
"test": "vitest run",
|
|
21
|
+
"clean": "rm -rf dist"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@yesod/core": "workspace:*",
|
|
25
|
+
"@yesod/observer": "workspace:*",
|
|
26
|
+
"commander": "^13.1.0"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"tsup": "^8.4.0",
|
|
30
|
+
"typescript": "^5.8.0",
|
|
31
|
+
"vitest": "^3.1.0"
|
|
32
|
+
}
|
|
33
|
+
}
|