vigthoria-cli 1.9.9 → 1.9.19

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.
Files changed (52) hide show
  1. package/README.md +5 -5
  2. package/dist/commands/auth.js +48 -65
  3. package/dist/commands/bridge.js +12 -19
  4. package/dist/commands/cancel.js +15 -22
  5. package/dist/commands/chat.d.ts +11 -0
  6. package/dist/commands/chat.js +404 -248
  7. package/dist/commands/config.js +31 -71
  8. package/dist/commands/deploy.js +83 -123
  9. package/dist/commands/device.d.ts +35 -0
  10. package/dist/commands/device.js +239 -0
  11. package/dist/commands/edit.js +32 -39
  12. package/dist/commands/explain.js +18 -25
  13. package/dist/commands/fork.js +22 -27
  14. package/dist/commands/generate.js +37 -44
  15. package/dist/commands/history.js +20 -25
  16. package/dist/commands/hub.js +95 -102
  17. package/dist/commands/index.js +41 -46
  18. package/dist/commands/legion.d.ts +1 -0
  19. package/dist/commands/legion.js +162 -209
  20. package/dist/commands/preview.js +60 -98
  21. package/dist/commands/replay.js +27 -32
  22. package/dist/commands/repo.js +103 -141
  23. package/dist/commands/review.js +29 -36
  24. package/dist/commands/security.js +5 -12
  25. package/dist/commands/update.js +15 -49
  26. package/dist/commands/workflow.d.ts +8 -1
  27. package/dist/commands/workflow.js +53 -19
  28. package/dist/index.js +409 -234
  29. package/dist/utils/api.d.ts +5 -0
  30. package/dist/utils/api.js +398 -176
  31. package/dist/utils/bridge-client.js +11 -52
  32. package/dist/utils/cli-state.d.ts +54 -0
  33. package/dist/utils/cli-state.js +185 -0
  34. package/dist/utils/config.d.ts +5 -0
  35. package/dist/utils/config.js +35 -14
  36. package/dist/utils/context-ranker.js +15 -21
  37. package/dist/utils/files.js +5 -42
  38. package/dist/utils/logger.js +42 -50
  39. package/dist/utils/post-write-validator.js +22 -29
  40. package/dist/utils/project-memory.d.ts +56 -0
  41. package/dist/utils/project-memory.js +289 -0
  42. package/dist/utils/session.d.ts +29 -3
  43. package/dist/utils/session.js +137 -85
  44. package/dist/utils/task-display.js +13 -20
  45. package/dist/utils/tools.d.ts +19 -0
  46. package/dist/utils/tools.js +84 -87
  47. package/dist/utils/workspace-cache.js +18 -26
  48. package/dist/utils/workspace-stream.js +26 -64
  49. package/install.ps1 +14 -0
  50. package/package.json +5 -3
  51. package/scripts/release/LOCAL_MACHINE_USER_VERIFICATION.md +1 -1
  52. package/scripts/release/validate-no-go-gates.sh +2 -2
@@ -19,6 +19,7 @@ export declare class CLIError extends Error {
19
19
  export declare function classifyError(error: unknown, fallbackCategory?: CLIErrorCategory): CLIError;
20
20
  /** Format a CLIError for user-facing display. */
21
21
  export declare function formatCLIError(err: CLIError): string;
22
+ export declare function sanitizeUserFacingPathText(input: string): string;
22
23
  export declare function sanitizeUserFacingErrorText(input: string): string;
23
24
  export declare function isServerRuntime(): boolean;
24
25
  export declare function describeUpstreamStatus(status: number): string;
@@ -316,6 +317,9 @@ export declare class APIClient {
316
317
  waitForAgentWorkspaceSettle(context?: Record<string, any>, options?: Record<string, any>): Promise<void>;
317
318
  extractExpectedWorkspaceFiles(message?: string, context?: Record<string, any>): string[];
318
319
  captureV3AgentStreamMutation(event: any, streamedFiles: Record<string, string>, serverRoot?: string | null): void;
320
+ private applyV3AgentStreamEventToWorkspace;
321
+ private writeV3AgentWorkspaceFile;
322
+ private deleteV3AgentWorkspaceFile;
319
323
  recoverAgentWorkspaceFiles(context?: Record<string, any>, streamedFiles?: Record<string, string>, expectedFiles?: string[]): void;
320
324
  normalizeAgentWorkspaceRelativePath(rawPath: string, rootPath?: string): string;
321
325
  ensureAgentFrontendPolish(message?: string, context?: Record<string, any>): Promise<void>;
@@ -331,6 +335,7 @@ export declare class APIClient {
331
335
  * stream when the server didn't emit a proper complete/message event.
332
336
  */
333
337
  private synthesizeAnswerFromV3Events;
338
+ private sanitizeV3AgentEventForUser;
334
339
  collectV3AgentStream(response: Response, context?: Record<string, any>): Promise<any>;
335
340
  runV3AgentWorkflow(message: string, context?: Record<string, any>): Promise<V3AgentWorkflowResponse>;
336
341
  private formatOperatorResponse;