@vention/vention-cli 0.38.39 → 0.38.40

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/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@vention/vention-cli",
3
- "version": "0.38.39",
3
+ "version": "0.38.40",
4
4
  "description": "CLI tool for Vention applications",
5
5
  "type": "module",
6
6
  "engines": {
7
- "node": ">=18.0.0"
7
+ "node": ">=20"
8
8
  },
9
9
  "repository": {
10
10
  "type": "git",
@@ -7,15 +7,23 @@ export declare const getAppFromDigitalTwins: (session: SessionData, designId: nu
7
7
  connection: DigitalTwinConnection;
8
8
  }>;
9
9
  export declare const getAvailableAppsFromDigitalTwin: (connection: DigitalTwinConnection) => Promise<Application[]>;
10
- export declare const createNewAppDirectory: (session: SessionData, currentDir: string) => Promise<void>;
11
- export declare const updateExistingAppDirectory: (session: SessionData, machineCodeAppDirectoryInfo: MachineCodeAppDirectoryInfo, currentDir: string) => Promise<void>;
10
+ export declare const createNewAppDirectory: (session: SessionData, currentDir: string, flags?: SelectionFlags) => Promise<void>;
11
+ export declare const updateExistingAppDirectory: (session: SessionData, machineCodeAppDirectoryInfo: MachineCodeAppDirectoryInfo, currentDir: string, { force }?: {
12
+ force?: boolean;
13
+ }) => Promise<void>;
14
+ export interface SelectionFlags {
15
+ design?: number;
16
+ app?: string;
17
+ }
18
+ interface OpenDesign {
19
+ id: number;
20
+ name: string;
21
+ connection: DigitalTwinConnection;
22
+ }
12
23
  export interface DesignAndAppSelection {
13
- selectedDesign: {
14
- id: number;
15
- name: string;
16
- connection: DigitalTwinConnection;
17
- };
24
+ selectedDesign: OpenDesign;
18
25
  selectedApp: Application;
19
26
  }
20
- export declare const linkDirectory: (session: SessionData, currentDir: string) => Promise<DesignAndAppSelection>;
21
- export declare const selectDesignAndApp: (session: SessionData) => Promise<DesignAndAppSelection>;
27
+ export declare const linkDirectory: (session: SessionData, currentDir: string, flags?: SelectionFlags) => Promise<DesignAndAppSelection>;
28
+ export declare const selectDesignAndApp: (session: SessionData, flags?: SelectionFlags) => Promise<DesignAndAppSelection>;
29
+ export {};
@@ -1,2 +1,3 @@
1
1
  import { Command } from "commander";
2
+ export declare function canOpenBrowser(env: NodeJS.ProcessEnv, platform: NodeJS.Platform, osRelease: string): boolean;
2
3
  export declare function createLoginCommand(): Command;
@@ -1,2 +1,3 @@
1
1
  import { Command } from "commander";
2
+ export declare function addPluginToClaudeSettings(settingsPath: string): "added" | "already" | "unreadable";
2
3
  export declare function createSkillsCommand(): Command;
@@ -0,0 +1,2 @@
1
+ import { Command } from "commander";
2
+ export declare function createWhoamiCommand(): Command;
@@ -6,6 +6,7 @@ export interface MachineCodeAppDirectoryInfo {
6
6
  lastPulledAt: string;
7
7
  lastPushedAt?: string;
8
8
  environment: "local" | "demo" | "prod";
9
+ syncedFiles?: Record<string, string>;
9
10
  }
10
11
  export declare const writeMachineCodeAppDirectoryInfo: (projectPath: string, state: MachineCodeAppDirectoryInfo) => Promise<void>;
11
12
  export declare const readMachineCodeAppDirectoryInfo: (projectPath: string) => Promise<MachineCodeAppDirectoryInfo | null>;
@@ -0,0 +1,2 @@
1
+ import { Command } from "commander";
2
+ export declare const addSelectionOptions: (command: Command) => Command;
@@ -0,0 +1,8 @@
1
+ import { type FileSystemNode, type IgnorePattern } from "#machine-code/serialize-directory";
2
+ export declare const fingerprintFiles: (sourceCode: FileSystemNode, ignorePatterns: Set<IgnorePattern>) => Record<string, string>;
3
+ export declare const filesAtRisk: ({ synced, target, incoming, replacesTarget, }: {
4
+ synced: Record<string, string>;
5
+ target: Record<string, string>;
6
+ incoming: Record<string, string>;
7
+ replacesTarget: boolean;
8
+ }) => string[];