@iservu-inc/adf-cli 0.1.2 → 0.1.4

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.
@@ -107,12 +107,15 @@ async function init(options) {
107
107
  }
108
108
 
109
109
  // Deploy to tool if specified
110
+ let deployNow = false;
111
+
110
112
  if (options.tool) {
111
113
  console.log('');
112
114
  await deployToTool(options.tool, { silent: false });
115
+ deployNow = true;
113
116
  } else {
114
117
  // Ask if they want to deploy now
115
- const { deployNow } = await inquirer.prompt([
118
+ const response = await inquirer.prompt([
116
119
  {
117
120
  type: 'confirm',
118
121
  name: 'deployNow',
@@ -121,6 +124,8 @@ async function init(options) {
121
124
  }
122
125
  ]);
123
126
 
127
+ deployNow = response.deployNow;
128
+
124
129
  if (deployNow) {
125
130
  const { tool } = await inquirer.prompt([
126
131
  {
@@ -152,7 +157,7 @@ async function init(options) {
152
157
  console.log(chalk.cyan('Next steps:'));
153
158
  console.log(chalk.gray(' 1. Review .adf/context.json'));
154
159
  console.log(chalk.gray(' 2. Copy .env.template to .env and configure'));
155
- if (!options.tool && !deployNow) {
160
+ if (!deployNow) {
156
161
  console.log(chalk.gray(' 3. Run "adf deploy <tool>" to deploy to your editor'));
157
162
  }
158
163
  console.log(chalk.gray(' 4. Check documentation: .adf/shared/templates/\n'));
@@ -2,6 +2,7 @@ const fs = require('fs-extra');
2
2
  const path = require('path');
3
3
  const inquirer = require('inquirer');
4
4
  const chalk = require('chalk');
5
+ const packageJson = require('../../package.json');
5
6
 
6
7
  async function detectProjectType(cwd) {
7
8
  const files = await fs.readdir(cwd);
@@ -171,7 +172,7 @@ async function getWorkflowRecommendation(projectType) {
171
172
 
172
173
  function generateContextFile(data) {
173
174
  return {
174
- version: '0.1.01',
175
+ version: packageJson.version,
175
176
  workflow: data.workflow,
176
177
  projectType: data.projectType,
177
178
  documentationUrls: data.documentationUrls || [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iservu-inc/adf-cli",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "CLI tool for AgentDevFramework - AI-assisted development framework",
5
5
  "main": "index.js",
6
6
  "bin": {