agent-contracts-runtime 0.0.1 → 0.0.2

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/cli/index.js CHANGED
@@ -1,32 +1,64 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- // src/cli/index.ts
3
+ // src/generated/cli/program.ts
4
4
  import { Command } from "commander";
5
- var program = new Command();
6
- program.name("agent-runtime").description("Runtime bridge for executing agent-contracts workflows on Agent SDKs").version("0.0.1");
7
- program.command("init").description("Initialize runtime scaffolding for a project").option("-a, --adapter <adapter>", "Default SDK adapter", "mock").option("-o, --output <dir>", "Output directory", ".").option("-f, --force", "Overwrite existing files").action((_opts) => {
8
- console.log("agent-runtime init \u2014 not yet implemented (Phase 2)");
9
- process.exit(0);
10
- });
11
- program.command("generate").description("Generate runtime contracts and hooks from DSL").option("--clean", "Delete generated_dir before regenerating").option("--check", "Dry-run: verify generated files are up to date").action((_opts) => {
12
- console.log("agent-runtime generate \u2014 not yet implemented (Phase 2)");
13
- process.exit(0);
14
- });
15
- program.command("run <workflow-id> <user-request>").description("Execute a workflow").option("-a, --adapter <adapter>", "SDK adapter to use").option("-r, --max-retries <n>", "Override max retries per step").option("-n, --dry-run", "Simulate without calling SDK").option("--auto-approve-gates", "Auto-approve all gate steps").action((_workflowId, _userRequest, _opts) => {
16
- console.log("agent-runtime run \u2014 not yet implemented (Phase 2)");
17
- process.exit(0);
18
- });
19
- program.command("list <resource>").description("List available workflows, tasks, or agents").option("--format <format>", "Output format (table or json)", "table").action((_resource, _opts) => {
20
- console.log("agent-runtime list \u2014 not yet implemented (Phase 2)");
21
- process.exit(0);
22
- });
23
- program.command("doctor").description("Verify configuration, generated files, and SDK connectivity").action(() => {
24
- console.log("agent-runtime doctor \u2014 not yet implemented (Phase 2)");
25
- process.exit(0);
26
- });
27
- program.command("replay <run-dir>").description("Replay a past workflow execution from logs").option("--validate-only", "Only validate without re-execution").action((_runDir, _opts) => {
28
- console.log("agent-runtime replay \u2014 not yet implemented (Phase 3)");
29
- process.exit(0);
30
- });
5
+ function createProgram(handlers2, version) {
6
+ const program2 = new Command();
7
+ program2.name("agent-runtime").version(version, "-V, --version").description("CLI for agent-contracts-runtime \u2014 generate, run, and manage agent workflows.");
8
+ program2.option("-c, --config <value>", "Path to agent-runtime.config.yaml.", "./agent-runtime.config.yaml");
9
+ program2.option("-v, --verbose", "Enable verbose output.", false);
10
+ program2.option("-q, --quiet", "Suppress non-error output.", false);
11
+ program2.command("init").description("Initialize runtime scaffolding for a project.").option("-a, --adapter <value>", "Default SDK adapter to configure.", "mock").option("-o, --output <value>", "Output directory for generated scaffolding.", ".").option("-f, --force", "Overwrite existing files without prompting.", false).action(async (opts, cmd) => {
12
+ await handlers2.init(opts, cmd.optsWithGlobals());
13
+ });
14
+ program2.command("generate").description("Generate runtime contracts and hooks from DSL.").option("--clean", "Delete generated_dir before regenerating.\nRemoves stale files that may remain from previous generations.\n", false).option("--check", "Dry-run mode for CI. Does not write files.\nCompares current generated output with what would be regenerated.\nExits with code 1 if any differences are found.\n", false).action(async (opts, cmd) => {
15
+ await handlers2.generate(opts, cmd.optsWithGlobals());
16
+ });
17
+ program2.command("run").description("Execute a workflow.").argument("<workflow-id>", "ID of the workflow to execute (e.g. feature-implement, issue-fix).").argument("<user-request>", "Natural language description of what to do.").option("-a, --adapter <value>", "SDK adapter to use. Overrides config.").option("-r, --max-retries <value>", "Override default max retries per step.").option("-n, --dry-run", "Simulate execution without calling the SDK adapter.", false).option("--auto-approve-gates", "Automatically approve all gate steps.", false).action(async (workflowId, userRequest, opts, cmd) => {
18
+ await handlers2.run(workflowId, userRequest, opts, cmd.optsWithGlobals());
19
+ });
20
+ program2.command("list").description("List available workflows, tasks, or agents.").argument("<resource>", "Type of resource to list.").option("--format <value>", "Output format.", "table").action(async (resource, opts, cmd) => {
21
+ await handlers2.list(resource, opts, cmd.optsWithGlobals());
22
+ });
23
+ program2.command("doctor").description("Verify configuration, generated files, and SDK connectivity.").action(async (opts, cmd) => {
24
+ await handlers2.doctor({}, cmd.optsWithGlobals());
25
+ });
26
+ program2.command("replay").description("Replay a past workflow execution from logs.").argument("<run-dir>", "Path to the .agent-runs/<run-id> directory.").option("--validate-only", "Only validate the run log without re-execution.", false).action(async (runDir, opts, cmd) => {
27
+ await handlers2.replay(runDir, opts, cmd.optsWithGlobals());
28
+ });
29
+ return program2;
30
+ }
31
+
32
+ // src/cli/index.ts
33
+ var VERSION = "0.0.2";
34
+ var handlers = {
35
+ async init(options, _globalOpts) {
36
+ console.log("agent-runtime init \u2014 not yet implemented (Phase 2)");
37
+ console.log("Options:", JSON.stringify(options));
38
+ },
39
+ async generate(options, _globalOpts) {
40
+ console.log("agent-runtime generate \u2014 not yet implemented (Phase 2)");
41
+ console.log("Options:", JSON.stringify(options));
42
+ },
43
+ async run(workflowId, userRequest, options, _globalOpts) {
44
+ console.log("agent-runtime run \u2014 not yet implemented (Phase 2)");
45
+ console.log(`Workflow: ${workflowId}, Request: ${userRequest}`);
46
+ console.log("Options:", JSON.stringify(options));
47
+ },
48
+ async list(resource, options, _globalOpts) {
49
+ console.log("agent-runtime list \u2014 not yet implemented (Phase 2)");
50
+ console.log(`Resource: ${resource}`);
51
+ console.log("Options:", JSON.stringify(options));
52
+ },
53
+ async doctor(_globalOpts) {
54
+ console.log("agent-runtime doctor \u2014 not yet implemented (Phase 2)");
55
+ },
56
+ async replay(runDir, options, _globalOpts) {
57
+ console.log("agent-runtime replay \u2014 not yet implemented (Phase 3)");
58
+ console.log(`Run dir: ${runDir}`);
59
+ console.log("Options:", JSON.stringify(options));
60
+ }
61
+ };
62
+ var program = createProgram(handlers, VERSION);
31
63
  program.parse();
32
64
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/cli/index.ts"],"sourcesContent":["#!/usr/bin/env node\n\n/**\n * agent-runtime CLI entry point\n *\n * Stub for v0.0.1 — prints version and available commands.\n * Full implementation in Phase 2.\n */\n\nimport { Command } from \"commander\";\n\nconst program = new Command();\n\nprogram\n .name(\"agent-runtime\")\n .description(\"Runtime bridge for executing agent-contracts workflows on Agent SDKs\")\n .version(\"0.0.1\");\n\nprogram\n .command(\"init\")\n .description(\"Initialize runtime scaffolding for a project\")\n .option(\"-a, --adapter <adapter>\", \"Default SDK adapter\", \"mock\")\n .option(\"-o, --output <dir>\", \"Output directory\", \".\")\n .option(\"-f, --force\", \"Overwrite existing files\")\n .action((_opts) => {\n console.log(\"agent-runtime init — not yet implemented (Phase 2)\");\n process.exit(0);\n });\n\nprogram\n .command(\"generate\")\n .description(\"Generate runtime contracts and hooks from DSL\")\n .option(\"--clean\", \"Delete generated_dir before regenerating\")\n .option(\"--check\", \"Dry-run: verify generated files are up to date\")\n .action((_opts) => {\n console.log(\"agent-runtime generate — not yet implemented (Phase 2)\");\n process.exit(0);\n });\n\nprogram\n .command(\"run <workflow-id> <user-request>\")\n .description(\"Execute a workflow\")\n .option(\"-a, --adapter <adapter>\", \"SDK adapter to use\")\n .option(\"-r, --max-retries <n>\", \"Override max retries per step\")\n .option(\"-n, --dry-run\", \"Simulate without calling SDK\")\n .option(\"--auto-approve-gates\", \"Auto-approve all gate steps\")\n .action((_workflowId, _userRequest, _opts) => {\n console.log(\"agent-runtime run — not yet implemented (Phase 2)\");\n process.exit(0);\n });\n\nprogram\n .command(\"list <resource>\")\n .description(\"List available workflows, tasks, or agents\")\n .option(\"--format <format>\", \"Output format (table or json)\", \"table\")\n .action((_resource, _opts) => {\n console.log(\"agent-runtime list — not yet implemented (Phase 2)\");\n process.exit(0);\n });\n\nprogram\n .command(\"doctor\")\n .description(\"Verify configuration, generated files, and SDK connectivity\")\n .action(() => {\n console.log(\"agent-runtime doctor — not yet implemented (Phase 2)\");\n process.exit(0);\n });\n\nprogram\n .command(\"replay <run-dir>\")\n .description(\"Replay a past workflow execution from logs\")\n .option(\"--validate-only\", \"Only validate without re-execution\")\n .action((_runDir, _opts) => {\n console.log(\"agent-runtime replay — not yet implemented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AAoC,EAC9D,OAAO,CAAC,SAAS,UAAU;AAC1B,UAAQ,IAAI,2DAAsD;AAClE,UAAQ,KAAK,CAAC;AAChB,CAAC;AAEH,QAAQ,MAAM;","names":[]}
1
+ {"version":3,"sources":["../../src/generated/cli/program.ts","../../src/cli/index.ts"],"sourcesContent":["// Auto-generated by cli-contracts. Do not edit.\nimport { Command } from \"commander\";\n\nexport interface CommandHandlers {\n init: (options: { adapter?: string; output?: string; force?: boolean }, parentOpts: Record<string, unknown>) => Promise<void>;\n generate: (options: { clean?: boolean; check?: boolean }, parentOpts: Record<string, unknown>) => Promise<void>;\n run: (workflowId: string | undefined, userRequest: string | undefined, options: { adapter?: string; maxRetries?: string; dryRun?: boolean; autoApproveGates?: boolean }, parentOpts: Record<string, unknown>) => Promise<void>;\n list: (resource: string | undefined, options: { format?: string }, parentOpts: Record<string, unknown>) => Promise<void>;\n doctor: (parentOpts: Record<string, unknown>) => Promise<void>;\n replay: (runDir: string | undefined, options: { validateOnly?: boolean }, parentOpts: Record<string, unknown>) => Promise<void>;\n}\n\nexport function createProgram(\n handlers: CommandHandlers,\n version: string,\n): Command {\n const program = new Command();\n program\n .name(\"agent-runtime\")\n .version(version, \"-V, --version\")\n .description(\"CLI for agent-contracts-runtime — generate, run, and manage agent workflows.\");\n\n program.option(\"-c, --config <value>\", \"Path to agent-runtime.config.yaml.\", \"./agent-runtime.config.yaml\");\n program.option(\"-v, --verbose\", \"Enable verbose output.\", false);\n program.option(\"-q, --quiet\", \"Suppress non-error output.\", false);\n\n program\n .command(\"init\")\n .description(\"Initialize runtime scaffolding for a project.\")\n .option(\"-a, --adapter <value>\", \"Default SDK adapter to configure.\", \"mock\")\n .option(\"-o, --output <value>\", \"Output directory for generated scaffolding.\", \".\")\n .option(\"-f, --force\", \"Overwrite existing files without prompting.\", false)\n .action(async (opts, cmd) => {\n await handlers.init(opts, cmd.optsWithGlobals());\n });\n\n program\n .command(\"generate\")\n .description(\"Generate runtime contracts and hooks from DSL.\")\n .option(\"--clean\", \"Delete generated_dir before regenerating.\\nRemoves stale files that may remain from previous generations.\\n\", false)\n .option(\"--check\", \"Dry-run mode for CI. Does not write files.\\nCompares current generated output with what would be regenerated.\\nExits with code 1 if any differences are found.\\n\", false)\n .action(async (opts, cmd) => {\n await handlers.generate(opts, cmd.optsWithGlobals());\n });\n\n program\n .command(\"run\")\n .description(\"Execute a workflow.\")\n .argument(\"<workflow-id>\", \"ID of the workflow to execute (e.g. feature-implement, issue-fix).\")\n .argument(\"<user-request>\", \"Natural language description of what to do.\")\n .option(\"-a, --adapter <value>\", \"SDK adapter to use. Overrides config.\")\n .option(\"-r, --max-retries <value>\", \"Override default max retries per step.\")\n .option(\"-n, --dry-run\", \"Simulate execution without calling the SDK adapter.\", false)\n .option(\"--auto-approve-gates\", \"Automatically approve all gate steps.\", false)\n .action(async (workflowId, userRequest, opts, cmd) => {\n await handlers.run(workflowId, userRequest, opts, cmd.optsWithGlobals());\n });\n\n program\n .command(\"list\")\n .description(\"List available workflows, tasks, or agents.\")\n .argument(\"<resource>\", \"Type of resource to list.\")\n .option(\"--format <value>\", \"Output format.\", \"table\")\n .action(async (resource, opts, cmd) => {\n await handlers.list(resource, opts, cmd.optsWithGlobals());\n });\n\n program\n .command(\"doctor\")\n .description(\"Verify configuration, generated files, and SDK connectivity.\")\n .action(async (opts, cmd) => {\n await handlers.doctor({}, cmd.optsWithGlobals());\n });\n\n program\n .command(\"replay\")\n .description(\"Replay a past workflow execution from logs.\")\n .argument(\"<run-dir>\", \"Path to the .agent-runs/<run-id> directory.\")\n .option(\"--validate-only\", \"Only validate the run log without re-execution.\", false)\n .action(async (runDir, opts, cmd) => {\n await handlers.replay(runDir, opts, cmd.optsWithGlobals());\n });\n\n return program;\n}\n","#!/usr/bin/env node\n\n/**\n * agent-runtime CLI entry point\n *\n * Uses auto-generated program from cli-contract.yaml.\n * Handler implementations are stubs for v0.0.x — full logic in Phase 2.\n */\n\nimport { createProgram, type CommandHandlers } from \"../generated/cli/program.js\";\n\nconst VERSION = \"0.0.2\";\n\nconst handlers: CommandHandlers = {\n async init(options, _globalOpts) {\n console.log(\"agent-runtime init — not yet implemented (Phase 2)\");\n console.log(\"Options:\", JSON.stringify(options));\n },\n\n async generate(options, _globalOpts) {\n console.log(\"agent-runtime generate — not yet implemented (Phase 2)\");\n console.log(\"Options:\", JSON.stringify(options));\n },\n\n async run(workflowId, userRequest, options, _globalOpts) {\n console.log(\"agent-runtime run — not yet implemented (Phase 2)\");\n console.log(`Workflow: ${workflowId}, Request: ${userRequest}`);\n console.log(\"Options:\", JSON.stringify(options));\n },\n\n async list(resource, options, _globalOpts) {\n console.log(\"agent-runtime list — not yet implemented (Phase 2)\");\n console.log(`Resource: ${resource}`);\n console.log(\"Options:\", JSON.stringify(options));\n },\n\n async doctor(_globalOpts) {\n console.log(\"agent-runtime doctor — not yet implemented (Phase 2)\");\n },\n\n async replay(runDir, options, _globalOpts) {\n console.log(\"agent-runtime replay — not yet implemented (Phase 3)\");\n console.log(`Run dir: ${runDir}`);\n console.log(\"Options:\", JSON.stringify(options));\n },\n};\n\nconst program = createProgram(handlers, VERSION);\nprogram.parse();\n"],"mappings":";;;AACA,SAAS,eAAe;AAWjB,SAAS,cACdA,WACA,SACS;AACT,QAAMC,WAAU,IAAI,QAAQ;AAC5B,EAAAA,SACG,KAAK,eAAe,EACpB,QAAQ,SAAS,eAAe,EAChC,YAAY,mFAA8E;AAE7F,EAAAA,SAAQ,OAAO,wBAAwB,sCAAsC,6BAA6B;AAC1G,EAAAA,SAAQ,OAAO,iBAAiB,0BAA0B,KAAK;AAC/D,EAAAA,SAAQ,OAAO,eAAe,8BAA8B,KAAK;AAEjE,EAAAA,SACG,QAAQ,MAAM,EACd,YAAY,+CAA+C,EAC3D,OAAO,yBAAyB,qCAAqC,MAAM,EAC3E,OAAO,wBAAwB,+CAA+C,GAAG,EACjF,OAAO,eAAe,+CAA+C,KAAK,EAC1E,OAAO,OAAO,MAAM,QAAQ;AAC3B,UAAMD,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AgB,CAAC;AAAA,EAC3D,CAAC;AAEH,SAAOC;AACT;;;ACzEA,IAAM,UAAU;AAEhB,IAAM,WAA4B;AAAA,EAChC,MAAM,KAAK,SAAS,aAAa;AAC/B,YAAQ,IAAI,yDAAoD;AAChE,YAAQ,IAAI,YAAY,KAAK,UAAU,OAAO,CAAC;AAAA,EACjD;AAAA,EAEA,MAAM,SAAS,SAAS,aAAa;AACnC,YAAQ,IAAI,6DAAwD;AACpE,YAAQ,IAAI,YAAY,KAAK,UAAU,OAAO,CAAC;AAAA,EACjD;AAAA,EAEA,MAAM,IAAI,YAAY,aAAa,SAAS,aAAa;AACvD,YAAQ,IAAI,wDAAmD;AAC/D,YAAQ,IAAI,aAAa,UAAU,cAAc,WAAW,EAAE;AAC9D,YAAQ,IAAI,YAAY,KAAK,UAAU,OAAO,CAAC;AAAA,EACjD;AAAA,EAEA,MAAM,KAAK,UAAU,SAAS,aAAa;AACzC,YAAQ,IAAI,yDAAoD;AAChE,YAAQ,IAAI,aAAa,QAAQ,EAAE;AACnC,YAAQ,IAAI,YAAY,KAAK,UAAU,OAAO,CAAC;AAAA,EACjD;AAAA,EAEA,MAAM,OAAO,aAAa;AACxB,YAAQ,IAAI,2DAAsD;AAAA,EACpE;AAAA,EAEA,MAAM,OAAO,QAAQ,SAAS,aAAa;AACzC,YAAQ,IAAI,2DAAsD;AAClE,YAAQ,IAAI,YAAY,MAAM,EAAE;AAChC,YAAQ,IAAI,YAAY,KAAK,UAAU,OAAO,CAAC;AAAA,EACjD;AACF;AAEA,IAAM,UAAU,cAAc,UAAU,OAAO;AAC/C,QAAQ,MAAM;","names":["handlers","program"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-contracts-runtime",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "Runtime bridge for executing agent-contracts workflows on Agent SDKs",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -38,13 +38,13 @@
38
38
  "LICENSE"
39
39
  ],
40
40
  "scripts": {
41
- "build": "tsup",
41
+ "generate": "cli-contracts generate",
42
+ "build": "npm run generate && tsup",
42
43
  "typecheck": "tsc --noEmit",
43
44
  "test": "vitest run",
44
45
  "test:watch": "vitest",
45
46
  "test:coverage": "vitest run --coverage",
46
47
  "lint": "eslint src/",
47
- "cli:docs": "cli-contracts docs -f cli-contract.yaml -o docs/cli-reference.md",
48
48
  "cli:validate": "cli-contracts validate -f cli-contract.yaml",
49
49
  "prepublishOnly": "npm run build"
50
50
  },