@outputai/cli 0.1.8 → 0.1.9-dev.fa90f3b.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.
|
@@ -19,6 +19,7 @@ src/
|
|
|
19
19
|
├── workflow.ts # Main workflow
|
|
20
20
|
├── steps.ts # Workflow steps
|
|
21
21
|
├── evaluators.ts # Quality evaluators
|
|
22
|
+
├── types.ts # Shared types and schemas
|
|
22
23
|
├── utils.ts # Local utilities
|
|
23
24
|
├── prompts/ # LLM prompts
|
|
24
25
|
└── scenarios/ # Test scenarios
|
|
@@ -55,17 +56,18 @@ The `src/shared/` directory contains code shared across multiple workflows:
|
|
|
55
56
|
npm install
|
|
56
57
|
```
|
|
57
58
|
|
|
58
|
-
### 2. Configure
|
|
59
|
+
### 2. Configure Credentials
|
|
59
60
|
|
|
60
|
-
|
|
61
|
+
Initialize and add your API keys using the Output credentials manager:
|
|
61
62
|
|
|
62
63
|
```bash
|
|
63
|
-
|
|
64
|
+
npx output credentials init
|
|
65
|
+
npx output credentials edit
|
|
64
66
|
```
|
|
65
67
|
|
|
66
|
-
|
|
67
|
-
- `
|
|
68
|
-
- `
|
|
68
|
+
Add your keys in the editor:
|
|
69
|
+
- `anthropic.api_key` - for Claude LLM integration
|
|
70
|
+
- `openai.api_key` - for OpenAI LLM integration (optional)
|
|
69
71
|
|
|
70
72
|
### 3. Start Output Services
|
|
71
73
|
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import { step, z } from '@outputai/core';
|
|
2
2
|
import { fetchBlogContent } from '../../clients/jina.js';
|
|
3
|
-
|
|
4
|
-
const blogContentSchema = z.object( {
|
|
5
|
-
title: z.string(),
|
|
6
|
-
url: z.string(),
|
|
7
|
-
content: z.string(),
|
|
8
|
-
tokenCount: z.number()
|
|
9
|
-
} );
|
|
3
|
+
import { blogContentSchema } from './types.js';
|
|
10
4
|
|
|
11
5
|
export const fetchContent = step( {
|
|
12
6
|
name: 'fetch_blog_content',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@outputai/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9-dev.fa90f3b.0",
|
|
4
4
|
"description": "CLI for Output.ai workflow generation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"log-update": "7.2.0",
|
|
34
34
|
"semver": "7.7.4",
|
|
35
35
|
"yaml": "^2.8.3",
|
|
36
|
-
"@outputai/
|
|
37
|
-
"@outputai/
|
|
38
|
-
"@outputai/
|
|
36
|
+
"@outputai/llm": "0.1.9-dev.fa90f3b.0",
|
|
37
|
+
"@outputai/evals": "0.1.9-dev.fa90f3b.0",
|
|
38
|
+
"@outputai/credentials": "0.1.9-dev.fa90f3b.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/cli-progress": "3.11.6",
|