@lumy-pack/syncpoint 0.0.8 → 0.0.10

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.
@@ -1,2 +1,2 @@
1
- import { Command } from "commander";
1
+ import { Command } from 'commander';
2
2
  export declare function registerCreateTemplateCommand(program: Command): void;
@@ -1,2 +1,2 @@
1
- import { Command } from "commander";
1
+ import { Command } from 'commander';
2
2
  export declare function registerInitCommand(program: Command): void;
@@ -1,2 +1,2 @@
1
- import { Command } from "commander";
1
+ import { Command } from 'commander';
2
2
  export declare function registerProvisionCommand(program: Command): void;
@@ -1,2 +1,2 @@
1
- import { Command } from "commander";
1
+ import { Command } from 'commander';
2
2
  export declare function registerRestoreCommand(program: Command): void;
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  interface ProgressBarProps {
3
3
  percent: number;
4
4
  width?: number;
@@ -1,5 +1,5 @@
1
- import React from "react";
2
- import type { StepResult } from "../utils/types.js";
1
+ import React from 'react';
2
+ import type { StepResult } from '../utils/types.js';
3
3
  interface StepRunnerProps {
4
4
  steps: StepResult[];
5
5
  currentStep: number;
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  interface TableProps {
3
3
  headers: string[];
4
4
  rows: string[][];
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  export interface ViewerSection {
3
3
  label: string;
4
4
  value: string;
@@ -0,0 +1,16 @@
1
+ export declare const SyncpointErrorCode: {
2
+ readonly CONFIG_NOT_FOUND: "CONFIG_NOT_FOUND";
3
+ readonly CONFIG_INVALID: "CONFIG_INVALID";
4
+ readonly BACKUP_FAILED: "BACKUP_FAILED";
5
+ readonly RESTORE_FAILED: "RESTORE_FAILED";
6
+ readonly TEMPLATE_NOT_FOUND: "TEMPLATE_NOT_FOUND";
7
+ readonly PROVISION_FAILED: "PROVISION_FAILED";
8
+ readonly MISSING_ARGUMENT: "MISSING_ARGUMENT";
9
+ readonly INVALID_ARGUMENT: "INVALID_ARGUMENT";
10
+ readonly UNKNOWN: "UNKNOWN";
11
+ };
12
+ export type SyncpointErrorCode = (typeof SyncpointErrorCode)[keyof typeof SyncpointErrorCode];
13
+ /**
14
+ * Classify an error into a SyncpointErrorCode based on the error message.
15
+ */
16
+ export declare function classifyError(err: unknown): SyncpointErrorCode;
package/dist/index.cjs CHANGED
@@ -132,18 +132,12 @@ var config_schema_default = {
132
132
  title: "Syncpoint Config",
133
133
  description: "Configuration for syncpoint backup tool",
134
134
  type: "object",
135
- required: [
136
- "backup"
137
- ],
135
+ required: ["backup"],
138
136
  properties: {
139
137
  backup: {
140
138
  type: "object",
141
139
  description: "Backup configuration",
142
- required: [
143
- "targets",
144
- "exclude",
145
- "filename"
146
- ],
140
+ required: ["targets", "exclude", "filename"],
147
141
  properties: {
148
142
  targets: {
149
143
  type: "array",
@@ -652,7 +646,7 @@ function validateMetadata(data) {
652
646
  }
653
647
 
654
648
  // src/version.ts
655
- var VERSION = "0.0.8";
649
+ var VERSION = "0.0.10";
656
650
 
657
651
  // src/core/metadata.ts
658
652
  var METADATA_VERSION = "1.0.0";
package/dist/index.mjs CHANGED
@@ -82,18 +82,12 @@ var config_schema_default = {
82
82
  title: "Syncpoint Config",
83
83
  description: "Configuration for syncpoint backup tool",
84
84
  type: "object",
85
- required: [
86
- "backup"
87
- ],
85
+ required: ["backup"],
88
86
  properties: {
89
87
  backup: {
90
88
  type: "object",
91
89
  description: "Backup configuration",
92
- required: [
93
- "targets",
94
- "exclude",
95
- "filename"
96
- ],
90
+ required: ["targets", "exclude", "filename"],
97
91
  properties: {
98
92
  targets: {
99
93
  type: "array",
@@ -602,7 +596,7 @@ function validateMetadata(data) {
602
596
  }
603
597
 
604
598
  // src/version.ts
605
- var VERSION = "0.0.8";
599
+ var VERSION = "0.0.10";
606
600
 
607
601
  // src/core/metadata.ts
608
602
  var METADATA_VERSION = "1.0.0";
@@ -5,6 +5,7 @@
5
5
  export interface CommandOption {
6
6
  flag: string;
7
7
  description: string;
8
+ type?: 'boolean' | 'string' | 'number';
8
9
  default?: string;
9
10
  }
10
11
  export interface CommandArgument {
package/dist/version.d.ts CHANGED
@@ -2,4 +2,4 @@
2
2
  * Current package version from package.json
3
3
  * Automatically synchronized during build process
4
4
  */
5
- export declare const VERSION = "0.0.8";
5
+ export declare const VERSION = "0.0.10";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lumy-pack/syncpoint",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "description": "CLI tool for project synchronization and scaffolding",
5
5
  "keywords": [
6
6
  "cli",
@@ -31,9 +31,10 @@
31
31
  "main": "dist/index.cjs",
32
32
  "module": "dist/index.mjs",
33
33
  "types": "dist/index.d.ts",
34
- "bin": "./dist/cli.mjs",
34
+ "bin": "dist/cli.mjs",
35
35
  "files": [
36
36
  "dist",
37
+ "!dist/tsconfig.tsbuildinfo",
37
38
  "assets",
38
39
  "README.md"
39
40
  ],
@@ -69,6 +70,7 @@
69
70
  "yaml": "^2.0.0"
70
71
  },
71
72
  "devDependencies": {
73
+ "@lumy-pack/shared": "0.0.1",
72
74
  "@types/micromatch": "^4.0.9",
73
75
  "@types/node": "^20.11.0",
74
76
  "@types/react": "^18.0.0",