@onexapis/cli 1.1.64 → 1.1.66

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/dist/index.d.mts CHANGED
@@ -1,8 +1,16 @@
1
+ /**
2
+ * CLI Auth Utilities
3
+ * Token storage, refresh, and API authentication for onexthm CLI.
4
+ */
5
+ /** Supported target environments. */
6
+ type Env = "dev" | "staging" | "prod";
7
+
1
8
  interface InitOptions {
2
9
  template?: string;
3
10
  noInstall?: boolean;
4
11
  git?: boolean;
5
12
  yes?: boolean;
13
+ env?: Env;
6
14
  }
7
15
  declare function initCommand(projectName?: string, options?: InitOptions): Promise<void>;
8
16
 
@@ -72,41 +80,26 @@ interface DownloadOptions {
72
80
  themeId?: string;
73
81
  version?: string;
74
82
  output?: string;
83
+ env?: Env;
75
84
  /** @deprecated kept for backwards-compat with older scripts; ignored. */
76
85
  bucket?: string;
77
- /** @deprecated kept for backwards-compat with older scripts; ignored. */
78
- environment?: "staging" | "production";
79
86
  }
80
87
  /**
81
88
  * Download a published theme via the website-api Lambda endpoints.
82
- *
83
- * This command no longer talks to S3 directly — the platform now serves
84
- * theme content through HTTP-only endpoints, so AWS credentials, bucket
85
- * names, and region settings are no longer required. The legacy
86
- * `--bucket` and `--environment` flags are accepted but ignored for
87
- * backwards compatibility with existing scripts.
88
89
  */
89
90
  declare function downloadCommand(options: DownloadOptions): Promise<void>;
90
91
 
91
92
  interface CloneOptions {
92
93
  version?: string;
93
94
  output?: string;
95
+ env?: Env;
94
96
  /** @deprecated kept for backwards-compat with older scripts; ignored. */
95
97
  bucket?: string;
96
- /** @deprecated kept for backwards-compat with older scripts; ignored. */
97
- environment?: "staging" | "production";
98
98
  install?: boolean;
99
99
  name?: string;
100
100
  }
101
101
  /**
102
102
  * Clone theme source code via the website-api.
103
- *
104
- * Calls the authenticated `/source` Lambda to get a presigned S3 URL,
105
- * downloads the source.zip, and extracts it to a local directory. Asks
106
- * the user for a new theme name to differentiate from the original.
107
- *
108
- * Requires login (`onexthm login`) — the source endpoint is JWT-gated
109
- * because cloning grants access to a developer's full theme source.
110
103
  */
111
104
  declare function cloneCommand(themeName: string, options: CloneOptions): Promise<void>;
112
105
 
package/dist/index.d.ts CHANGED
@@ -1,8 +1,16 @@
1
+ /**
2
+ * CLI Auth Utilities
3
+ * Token storage, refresh, and API authentication for onexthm CLI.
4
+ */
5
+ /** Supported target environments. */
6
+ type Env = "dev" | "staging" | "prod";
7
+
1
8
  interface InitOptions {
2
9
  template?: string;
3
10
  noInstall?: boolean;
4
11
  git?: boolean;
5
12
  yes?: boolean;
13
+ env?: Env;
6
14
  }
7
15
  declare function initCommand(projectName?: string, options?: InitOptions): Promise<void>;
8
16
 
@@ -72,41 +80,26 @@ interface DownloadOptions {
72
80
  themeId?: string;
73
81
  version?: string;
74
82
  output?: string;
83
+ env?: Env;
75
84
  /** @deprecated kept for backwards-compat with older scripts; ignored. */
76
85
  bucket?: string;
77
- /** @deprecated kept for backwards-compat with older scripts; ignored. */
78
- environment?: "staging" | "production";
79
86
  }
80
87
  /**
81
88
  * Download a published theme via the website-api Lambda endpoints.
82
- *
83
- * This command no longer talks to S3 directly — the platform now serves
84
- * theme content through HTTP-only endpoints, so AWS credentials, bucket
85
- * names, and region settings are no longer required. The legacy
86
- * `--bucket` and `--environment` flags are accepted but ignored for
87
- * backwards compatibility with existing scripts.
88
89
  */
89
90
  declare function downloadCommand(options: DownloadOptions): Promise<void>;
90
91
 
91
92
  interface CloneOptions {
92
93
  version?: string;
93
94
  output?: string;
95
+ env?: Env;
94
96
  /** @deprecated kept for backwards-compat with older scripts; ignored. */
95
97
  bucket?: string;
96
- /** @deprecated kept for backwards-compat with older scripts; ignored. */
97
- environment?: "staging" | "production";
98
98
  install?: boolean;
99
99
  name?: string;
100
100
  }
101
101
  /**
102
102
  * Clone theme source code via the website-api.
103
- *
104
- * Calls the authenticated `/source` Lambda to get a presigned S3 URL,
105
- * downloads the source.zip, and extracts it to a local directory. Asks
106
- * the user for a new theme name to differentiate from the original.
107
- *
108
- * Requires login (`onexthm login`) — the source endpoint is JWT-gated
109
- * because cloning grants access to a developer's full theme source.
110
103
  */
111
104
  declare function cloneCommand(themeName: string, options: CloneOptions): Promise<void>;
112
105