@spec2tools/cli 0.1.1 → 0.1.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.
package/README.md CHANGED
@@ -36,8 +36,8 @@ npx @spec2tools/cli start --spec ./openapi.yaml
36
36
  # Skip authentication
37
37
  npx @spec2tools/cli start --spec ./openapi.yaml --no-auth
38
38
 
39
- # Provide token directly
40
- npx @spec2tools/cli start --spec ./openapi.yaml --token "your-access-token"
39
+ # Provide API key directly
40
+ npx @spec2tools/cli start --spec ./openapi.yaml --api-key "your-api-key"
41
41
  ```
42
42
 
43
43
  ### Chat Mode
package/dist/cli.js CHANGED
@@ -16,7 +16,7 @@ export function createCLI() {
16
16
  .description('Start the agent with an OpenAPI specification')
17
17
  .requiredOption('-s, --spec <path>', 'Path or URL to OpenAPI specification')
18
18
  .option('--no-auth', 'Skip authentication even if required by spec')
19
- .option('--token <token>', 'Provide access token directly')
19
+ .option('--api-key <key>', 'Provide API key or access token directly')
20
20
  .action(async (options) => {
21
21
  await startAgent(options);
22
22
  });
@@ -45,9 +45,9 @@ async function startAgent(options) {
45
45
  // Initialize auth manager
46
46
  const authManager = new AuthManager(authConfig);
47
47
  // Handle authentication
48
- if (options.token) {
49
- authManager.setAccessToken(options.token);
50
- console.log(chalk.green('Using provided access token'));
48
+ if (options.apiKey) {
49
+ authManager.setAccessToken(options.apiKey);
50
+ console.log(chalk.green('Using provided API key'));
51
51
  }
52
52
  else if (options.auth && authManager.requiresAuth()) {
53
53
  console.log(chalk.yellow(`\nAuthentication required (${authConfig.type})`));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spec2tools/cli",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "CLI for interacting with OpenAPI-based AI tools",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -39,7 +39,7 @@
39
39
  "commander": "^14.0.0",
40
40
  "dotenv": "^17.2.3",
41
41
  "ora": "^8.1.0",
42
- "@spec2tools/core": "0.1.1"
42
+ "@spec2tools/core": "0.1.2"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@types/node": "^22.0.0",