@outputai/cli 0.1.12 → 0.1.13-next.04243eb.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.
@@ -81,7 +81,7 @@ services:
81
81
  condition: service_healthy
82
82
  worker:
83
83
  condition: service_healthy
84
- image: outputai/api:${OUTPUT_API_VERSION:-0.1.12}
84
+ image: outputai/api:${OUTPUT_API_VERSION:-0.1.13-next.04243eb.0}
85
85
  init: true
86
86
  networks:
87
87
  - main
@@ -1,3 +1,3 @@
1
1
  {
2
- "framework": "0.1.12"
2
+ "framework": "0.1.13-next.04243eb.0"
3
3
  }
@@ -105,7 +105,7 @@ function getTodoWriteMessage(message) {
105
105
  if (message.type !== 'assistant') {
106
106
  return null;
107
107
  }
108
- const todoWriteMessage = message.message.content.find((c) => c?.type === 'tool_use' && c.name === 'TodoWrite');
108
+ const todoWriteMessage = message.message.content.find((c) => c.type === 'tool_use' && c.name === 'TodoWrite');
109
109
  return todoWriteMessage ?? null;
110
110
  }
111
111
  function applyInstructions(message, instructions) {
@@ -4,16 +4,50 @@ This is an **Output.ai** project - a framework for building reliable, production
4
4
 
5
5
  ## Getting Started
6
6
 
7
- For full framework documentation, commands, and AI-assisted workflow development, install our Claude Code plugins:
7
+ Install Claude Code plugins for full framework documentation and AI-assisted development:
8
8
 
9
9
  ```bash
10
10
  claude plugin marketplace add growthxai/output
11
11
  claude plugin install outputai@outputai --scope project
12
12
  ```
13
13
 
14
+ ## Commands
15
+
16
+ ```bash
17
+ npm run output:dev # Start dev environment (worker + Temporal)
18
+ npm run output:worker:build # Build TypeScript to dist/
19
+ npm run output:worker:watch # Build + restart on file changes
20
+ npm run output:worker # Install, build, and start worker
21
+ ```
22
+
23
+ ## Project Structure
24
+
25
+ ```
26
+ src/
27
+ workflows/ # Each subfolder is one workflow
28
+ <name>/
29
+ workflow.ts # Workflow orchestration (must be deterministic - no I/O)
30
+ steps.ts # Step functions (all I/O: HTTP, LLM, DB)
31
+ evaluators.ts # Evaluator functions (LLM-based quality assessment)
32
+ types.ts # Zod schemas and TypeScript types
33
+ prompts/ # .prompt files (Liquid.js templates with YAML frontmatter)
34
+ scenarios/ # Test scenario JSON files
35
+ clients/ # Shared HTTP clients (use @outputai/http, not fetch/axios)
36
+ shared/ # Shared utilities across workflows
37
+ config/
38
+ costs.yml # Token/API pricing overrides
39
+ credentials.yml.enc # Encrypted secrets (edit via: output credentials edit)
40
+ credentials.yml.template # Credential structure reference
41
+ ```
42
+
43
+ ## Key Conventions
44
+
45
+ - **Workflows are deterministic**: No I/O, no `Date.now()`, no `Math.random()` in `workflow.ts`. All side effects go in steps or evaluators.
46
+ - **HTTP clients**: Always use `httpClient` from `@outputai/http` -- never raw `fetch` or `axios`. This enables automatic tracing and cost tracking.
47
+ - **LLM calls**: Use `generateText` from `@outputai/llm` with `.prompt` files. Never call LLM APIs directly.
48
+
14
49
  ---
15
50
 
16
51
  ## Project-Specific Instructions
17
52
 
18
53
  <!-- Add your project-specific instructions below -->
19
-
@@ -4,8 +4,8 @@
4
4
  "WebFetch",
5
5
  "Bash(npx output:*)",
6
6
  "Bash(npm run output:*)",
7
- "Skills(output*)",
8
- "Skills(flow*)"
7
+ "Skill(output*)",
8
+ "Skill(outputai:*)"
9
9
  ]
10
10
  },
11
11
  "enabledPlugins": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@outputai/cli",
3
- "version": "0.1.12",
3
+ "version": "0.1.13-next.04243eb.0",
4
4
  "description": "CLI for Output.ai workflow generation",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -14,30 +14,30 @@
14
14
  "output": "./bin/run.js"
15
15
  },
16
16
  "dependencies": {
17
- "@anthropic-ai/claude-agent-sdk": "0.2.85",
18
- "@aws-sdk/client-s3": "3.1018.0",
17
+ "@anthropic-ai/claude-agent-sdk": "0.2.92",
18
+ "@aws-sdk/client-s3": "3.1024.0",
19
19
  "@hackylabs/deep-redact": "3.0.5",
20
20
  "@inquirer/prompts": "8.3.2",
21
- "@oclif/core": "4.10.3",
22
- "@oclif/plugin-help": "6.2.40",
21
+ "@oclif/core": "4.10.5",
22
+ "@oclif/plugin-help": "6.2.42",
23
23
  "change-case": "5.4.4",
24
24
  "cli-progress": "3.12.0",
25
25
  "cli-table3": "0.6.5",
26
26
  "date-fns": "4.1.0",
27
27
  "debug": "4.4.3",
28
- "dotenv": "17.3.1",
28
+ "dotenv": "17.4.0",
29
29
  "handlebars": "4.7.9",
30
- "js-yaml": "4.1.1",
31
30
  "ink": "6.8.0",
32
31
  "ink-spinner": "5.0.0",
33
- "json-schema-library": "11.0.5",
32
+ "js-yaml": "4.1.1",
33
+ "json-schema-library": "11.1.0",
34
34
  "ky": "1.14.3",
35
35
  "react": "19.2.4",
36
36
  "semver": "7.7.4",
37
37
  "yaml": "^2.8.3",
38
- "@outputai/credentials": "0.1.12",
39
- "@outputai/evals": "0.1.12",
40
- "@outputai/llm": "0.1.12"
38
+ "@outputai/credentials": "0.1.13-next.04243eb.0",
39
+ "@outputai/llm": "0.1.13-next.04243eb.0",
40
+ "@outputai/evals": "0.1.13-next.04243eb.0"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/cli-progress": "3.11.6",