@output.ai/cli 0.0.0 → 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.
@@ -6,7 +6,8 @@ const __dirname = path.dirname(__filename);
6
6
  * Template directory paths
7
7
  */
8
8
  export const TEMPLATE_DIRS = {
9
- workflow: path.join(__dirname, '..', 'templates', 'workflow')
9
+ workflow: path.join(__dirname, '..', 'templates', 'workflow'),
10
+ agent_instructions: path.join(__dirname, '..', 'templates', 'agent_instructions')
10
11
  };
11
12
  /**
12
13
  * Default output directories
@@ -33,3 +34,9 @@ export function createTargetDir(outputDir, workflowName) {
33
34
  export function getTemplateDir(templateType) {
34
35
  return TEMPLATE_DIRS[templateType];
35
36
  }
37
+ /**
38
+ * Get the agent instruction directory for a specific category
39
+ */
40
+ export function getAgentInstructionDir(category) {
41
+ return path.join(TEMPLATE_DIRS.agent_instructions, category);
42
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@output.ai/cli",
3
3
  "description": "CLI for Output.ai workflow generation",
4
- "version": "0.0.0",
4
+ "version": "0.0.2",
5
5
  "author": "Ben Church",
6
6
  "bin": {
7
7
  "output-cli": "./bin/run.js"
@@ -12,14 +12,19 @@
12
12
  "@oclif/plugin-help": "^6",
13
13
  "@oclif/plugin-plugins": "^5",
14
14
  "change-case": "^5.4.4",
15
- "handlebars": "^4.7.8"
15
+ "cli-table3": "^0.6.5",
16
+ "handlebars": "^4.7.8",
17
+ "json-schema-library": "^10.2.1",
18
+ "ky": "^1.11.0"
16
19
  },
17
20
  "devDependencies": {
18
21
  "@oclif/test": "^4",
19
22
  "@types/handlebars": "^4.0.40",
20
23
  "@types/node": "^18",
21
24
  "copyfiles": "^2.4.1",
22
- "oclif": "^4"
25
+ "oclif": "^4",
26
+ "orval": "^7.13.0",
27
+ "slash": "^5.1.0"
23
28
  },
24
29
  "engines": {
25
30
  "node": ">=18.0.0"
@@ -48,13 +53,23 @@
48
53
  "topics": {
49
54
  "workflow": {
50
55
  "description": "Manage Output.ai workflows"
56
+ },
57
+ "config": {
58
+ "description": "Configure Output.ai CLI",
59
+ "subtopics": {
60
+ "agents": {
61
+ "description": "Manage AI agent configurations"
62
+ }
63
+ }
51
64
  }
52
65
  }
53
66
  },
54
67
  "repository": "sdk/cli",
55
68
  "scripts": {
56
69
  "build": "rm -rf ./dist && tsc && copyfiles -u 1 './src/templates/**/*.template' './src/templates/**/.env.template' './src/templates/**/*.prompt.template' dist",
57
- "test": "vitest run"
70
+ "test": "vitest run",
71
+ "generate:api": "orval --config ./orval.config.ts",
72
+ "prebuild": "npm run generate:api"
58
73
  },
59
74
  "types": "dist/index.d.ts"
60
75
  }