@revoengine/cli 1.0.3 → 1.0.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.
package/README.md CHANGED
@@ -54,9 +54,10 @@ Initialize a project for ambient low-code editor globals:
54
54
  ```bash
55
55
  revo project
56
56
  revo project init ./app
57
+ revo project update ./app
57
58
  ```
58
59
 
59
- This writes `.revoengine/types/revo.editor.d.ts`, `.revoengine/revo.json`, patches `tsconfig.json` or `jsconfig.json`, and updates `.gitignore` so the generated type bundle stays local by default.
60
+ This writes or refreshes `.revoengine/types/revo.editor.d.ts`, `.revoengine/revo.json`, patches `tsconfig.json` or `jsconfig.json`, and updates `.gitignore` so the generated type bundle stays local by default. Pass a path such as `./backend` when the RevoEngine workspace is nested.
60
61
 
61
62
  ## Common commands
62
63
 
@@ -30,14 +30,11 @@ async function resolveProjectSyncInput(context) {
30
30
  export async function handleProjectCommand(context) {
31
31
  const { args, client, cwd, println } = context;
32
32
  const invocation = resolveProjectInvocation(args);
33
- if (invocation.action === 'update') {
34
- throw new Error('`revo project update` is not implemented yet.');
35
- }
36
33
  if (invocation.extraArgs.length > 0) {
37
- throw new Error('Project init accepts at most one path argument.');
34
+ throw new Error(`Project ${invocation.action} accepts at most one path argument.`);
38
35
  }
39
36
  const targetDir = resolveProjectTarget(cwd, invocation.targetArg);
40
37
  const syncInput = await resolveProjectSyncInput(context);
41
38
  const result = syncProjectFiles(targetDir, syncInput);
42
- printSyncSummary(println, targetDir, result, 'Initialized Revo project in');
39
+ printSyncSummary(println, targetDir, result, invocation.action === 'update' ? 'Updated Revo project in' : 'Initialized Revo project in');
43
40
  }
@@ -3,7 +3,6 @@ export declare const REVO_PROJECT_DIR = ".revoengine";
3
3
  export declare const REVO_TYPES_DIR: string;
4
4
  export declare const REVO_TYPES_FILE: string;
5
5
  export declare const REVO_METADATA_FILE: string;
6
- export declare const REVO_VSCODE_CONFIG_FILE: string;
7
6
  export declare const REVO_TYPES_GITIGNORE_ENTRY = ".revoengine/types/";
8
7
  export declare const REVO_DEBUG_JS_FILE: string;
9
8
  export declare const REVO_DEBUG_TS_FILE: string;
@@ -5,7 +5,6 @@ export const REVO_PROJECT_DIR = '.revoengine';
5
5
  export const REVO_TYPES_DIR = path.join(REVO_PROJECT_DIR, 'types');
6
6
  export const REVO_TYPES_FILE = path.join(REVO_TYPES_DIR, 'revo.editor.d.ts');
7
7
  export const REVO_METADATA_FILE = path.join(REVO_PROJECT_DIR, 'revo.json');
8
- export const REVO_VSCODE_CONFIG_FILE = path.join(REVO_PROJECT_DIR, 'vscode.json');
9
8
  export const REVO_TYPES_GITIGNORE_ENTRY = '.revoengine/types/';
10
9
  export const REVO_DEBUG_JS_FILE = path.join(REVO_PROJECT_DIR, 'debug_code.js');
11
10
  export const REVO_DEBUG_TS_FILE = path.join(REVO_PROJECT_DIR, 'debug_code.ts');
@@ -337,14 +336,6 @@ export function resolveProjectRoot(startDir = process.cwd()) {
337
336
  return metadataFile ? path.dirname(path.dirname(metadataFile)) : '';
338
337
  }
339
338
  function readWorkspaceDirectoryFromProjectConfig(projectRoot, metadata) {
340
- const vscodeConfigPath = path.join(projectRoot, REVO_VSCODE_CONFIG_FILE);
341
- if (fs.existsSync(vscodeConfigPath)) {
342
- const config = parseConfigFile(vscodeConfigPath);
343
- const workspaceDirectory = readString(config.workspaceDirectory);
344
- if (workspaceDirectory) {
345
- return workspaceDirectory;
346
- }
347
- }
348
339
  return readString(metadata.workspace) || '';
349
340
  }
350
341
  function resolveProjectWorkspaceRoot(projectRoot, workspaceDirectory) {
package/dist/src/ui.js CHANGED
@@ -104,6 +104,7 @@ function renderCommandCatalog() {
104
104
  commandRow('revo auth status', 'Show the current authentication status'),
105
105
  commandRow('revo auth logout', 'Remove stored credentials'),
106
106
  commandRow('revo project [path]', 'Initialize ambient editor types for JS and TS'),
107
+ commandRow('revo project update [path]', 'Refresh editor types and project metadata'),
107
108
  commandRow('revo endpoints', 'List available API endpoints'),
108
109
  '',
109
110
  paintHeader('Components'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@revoengine/cli",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "CLI package for the RevoEngine Platform API",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",