@outputai/cli 0.1.5-next.24b9996.0 → 0.1.6-dev.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.4}
84
+ image: outputai/api:${OUTPUT_API_VERSION:-0.1.5}
85
85
  init: true
86
86
  networks:
87
87
  - main
@@ -1,3 +1,3 @@
1
1
  {
2
- "framework": "0.1.4"
2
+ "framework": "0.1.5"
3
3
  }
@@ -27,12 +27,16 @@ function loadYaml(filePath) {
27
27
  export function loadPricingConfig(configPath) {
28
28
  const bundledPath = new URL('../assets/config/costs.yml', import.meta.url).pathname;
29
29
  const bundled = loadYaml(configPath ?? bundledPath);
30
+ if (!bundled) {
31
+ console.warn('Warning: bundled pricing config is empty or missing. Add a config/costs.yml to your project to define model pricing.');
32
+ return { models: {}, services: {} };
33
+ }
30
34
  const projectPath = join(process.cwd(), 'config', 'costs.yml');
31
35
  if (!configPath && existsSync(projectPath)) {
32
36
  const project = loadYaml(projectPath);
33
37
  return {
34
- models: { ...bundled.models, ...project.models },
35
- services: { ...bundled.services, ...project.services }
38
+ models: { ...bundled.models, ...(project?.models ?? {}) },
39
+ services: { ...bundled.services, ...(project?.services ?? {}) }
36
40
  };
37
41
  }
38
42
  return bundled;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@outputai/cli",
3
- "version": "0.1.5-next.24b9996.0",
3
+ "version": "0.1.6-dev.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.7.1",
36
- "@outputai/evals": "0.1.5-next.24b9996.0",
37
- "@outputai/llm": "0.1.5-next.24b9996.0",
38
- "@outputai/credentials": "0.1.5-next.24b9996.0"
36
+ "@outputai/evals": "0.1.6-dev.0",
37
+ "@outputai/llm": "0.1.6-dev.0",
38
+ "@outputai/credentials": "0.1.6-dev.0"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@types/cli-progress": "3.11.6",