@pebblehouse/odin-cli 0.2.5 → 0.3.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.
Files changed (2) hide show
  1. package/dist/index.js +21 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -255,7 +255,7 @@ decisionsCmd.command("log <slug> <title>").description("Log a decision").option(
255
255
 
256
256
  // src/commands/context.ts
257
257
  import { Command as Command4 } from "commander";
258
- var contextCmd = new Command4("context").description("Get Tier 1 context for a pebble").argument("<slug>", "Pebble slug").option("--limit <n>", "Number of observations", "20").action(async (slug, opts) => {
258
+ var contextCmd = new Command4("context").description("Get Tier 1 context for a pebble").argument("<slug>", "Pebble slug").option("--limit <n>", "Number of context entries", "50").action(async (slug, opts) => {
259
259
  const res = await apiRequest(`/pebbles/${slug}/context`, {
260
260
  params: { limit: opts.limit }
261
261
  });
@@ -494,6 +494,26 @@ specsCmd.command("delete <slug> <id>").description("Delete a spec").action(async
494
494
  // src/commands/executions.ts
495
495
  import { Command as Command10 } from "commander";
496
496
  var executionsCmd = new Command10("executions").description("View Claude Code executions");
497
+ executionsCmd.command("create <slug>").description("Create an execution record").requiredOption("--tool-name <name>", "Tool name").option("--session-id <id>", "Session ID").option("--summary-text <text>", "Summary text").option("--execution-type <type>", "Execution type (task|discovery|system|plan)").option("--raw-input <json>", "Raw input JSON").option("--raw-output <json>", "Raw output JSON").option("--files-read <files...>", "Files read").option("--files-modified <files...>", "Files modified").option("--prompt-number <n>", "Prompt number").option("--content-hash <hash>", "Content hash for dedup").action(async (slug, opts) => {
498
+ const body = {
499
+ tool_name: opts.toolName
500
+ };
501
+ if (opts.sessionId) body.session_id = opts.sessionId;
502
+ if (opts.summaryText) body.summary_text = opts.summaryText;
503
+ if (opts.executionType) body.execution_type = opts.executionType;
504
+ if (opts.rawInput) body.raw_input = opts.rawInput;
505
+ if (opts.rawOutput) body.raw_output = opts.rawOutput;
506
+ if (opts.filesRead) body.files_read = opts.filesRead;
507
+ if (opts.filesModified) body.files_modified = opts.filesModified;
508
+ if (opts.promptNumber) body.prompt_number = parseInt(opts.promptNumber, 10);
509
+ if (opts.contentHash) body.content_hash = opts.contentHash;
510
+ const res = await apiRequest(`/pebbles/${slug}/executions`, {
511
+ method: "POST",
512
+ body
513
+ });
514
+ process.stdout.write(JSON.stringify(res) + "\n");
515
+ if (res.error) process.exit(1);
516
+ });
497
517
  executionsCmd.command("list <slug>").description("List executions for a pebble").option("--session-id <id>", "Filter by session ID").option("--limit <n>", "Max results", "50").option("--offset <n>", "Offset for pagination", "0").action(async (slug, opts) => {
498
518
  const params = {
499
519
  limit: opts.limit,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pebblehouse/odin-cli",
3
- "version": "0.2.5",
3
+ "version": "0.3.0",
4
4
  "type": "module",
5
5
  "description": "CLI for Odin — the knowledge backbone for Pebble House",
6
6
  "bin": {