@amerged/ohmyhost-cli 0.1.19 → 0.1.21
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 +1 -1
- package/dist/bin.js +2 -2
- package/dist/{chunk-4HFQ54FP.js → chunk-7D2RFLWM.js} +7 -3
- package/dist/{chunk-57UUB7RK.js → chunk-EPTONNNW.js} +1449 -306
- package/dist/credential-store.js +5 -1
- package/dist/index.js +70 -6
- package/package.json +1 -1
- package/src/apps/product-cli/cli.ts +370 -92
- package/src/apps/product-cli/command.ts +163 -6
- package/src/apps/product-cli/composition.ts +748 -120
- package/src/apps/product-cli/credential-store.ts +5 -3
- package/src/apps/product-cli/index.ts +4 -0
- package/src/apps/product-cli/product-api.ts +32 -4
- package/src/apps/product-cli/profile-store.ts +609 -0
- package/src/apps/product-cli/project-link-store.ts +169 -20
- package/src/apps/product-cli/runtime-contract.ts +63 -7
- package/src/apps/product-cli/workspace.ts +75 -13
- package/src/packages/contracts/operation-failure.ts +3 -3
- package/src/packages/sdk-ts/generated/index.ts +21 -0
- package/src/packages/sdk-ts/generated/sdk.gen.ts +142 -0
- package/src/packages/sdk-ts/generated/types.gen.ts +200 -2
package/dist/credential-store.js
CHANGED
|
@@ -2,14 +2,18 @@ import { createRequire as __ohmyhostCreateRequire } from "node:module"; const re
|
|
|
2
2
|
import {
|
|
3
3
|
CredentialStoreIntegrityError,
|
|
4
4
|
CredentialStoreUnavailableError,
|
|
5
|
+
LEGACY_CREDENTIAL_ACCOUNT,
|
|
5
6
|
NativeNapiKeyringCredentialStore,
|
|
7
|
+
createNativeEntryFactory,
|
|
6
8
|
parseCredential,
|
|
7
9
|
serializeCredential
|
|
8
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-7D2RFLWM.js";
|
|
9
11
|
export {
|
|
10
12
|
CredentialStoreIntegrityError,
|
|
11
13
|
CredentialStoreUnavailableError,
|
|
14
|
+
LEGACY_CREDENTIAL_ACCOUNT,
|
|
12
15
|
NativeNapiKeyringCredentialStore,
|
|
16
|
+
createNativeEntryFactory,
|
|
13
17
|
parseCredential,
|
|
14
18
|
serializeCredential
|
|
15
19
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,14 +1,23 @@
|
|
|
1
1
|
import { createRequire as __ohmyhostCreateRequire } from "node:module"; const require = __ohmyhostCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
|
+
ACCOUNT_SENSITIVE_PROBLEMS,
|
|
4
|
+
AccountVerificationError,
|
|
3
5
|
GeneratedSdkProductApi,
|
|
4
6
|
GeneratedSdkSessionRevoker,
|
|
5
7
|
InteractiveSessionRequiredError,
|
|
6
8
|
InvalidCommandError,
|
|
7
9
|
LifecycleTransportError,
|
|
10
|
+
LinkedProjectAmbiguousError,
|
|
11
|
+
NativeKeyringProfileRegistry,
|
|
8
12
|
NetworkTransportError,
|
|
9
13
|
OwnerOnlyProjectLinkStore,
|
|
10
14
|
ProductApiAuthenticationError,
|
|
11
15
|
ProductCli,
|
|
16
|
+
ProfileIndexFiles,
|
|
17
|
+
ProfileLimitError,
|
|
18
|
+
ProfileNameConflictError,
|
|
19
|
+
ProfileOrganizationFixedError,
|
|
20
|
+
ProfileSelectionError,
|
|
12
21
|
ProviderCapabilityBlockedError,
|
|
13
22
|
PsqlUnavailableError,
|
|
14
23
|
PublicResponseTooLargeError,
|
|
@@ -20,12 +29,23 @@ import {
|
|
|
20
29
|
StderrDeviceAuthorizationPresenter,
|
|
21
30
|
TokenRefreshRejectedError,
|
|
22
31
|
UserTokenFileError,
|
|
32
|
+
assertVerifiedLogin,
|
|
33
|
+
chooseLinkedProject,
|
|
23
34
|
chooseWorkspace,
|
|
35
|
+
classifyCliFailure,
|
|
24
36
|
cliMetadataResult,
|
|
25
37
|
createAuthenticatedProductTransport,
|
|
26
38
|
createBoundedFetch,
|
|
27
39
|
createProductionAuthenticatedProductApi,
|
|
40
|
+
defaultProfileName,
|
|
41
|
+
describeProfile,
|
|
42
|
+
extractProfileName,
|
|
28
43
|
initializeRepository,
|
|
44
|
+
isProfileName,
|
|
45
|
+
isProfileUserId,
|
|
46
|
+
linkedOrganization,
|
|
47
|
+
listSavedProfiles,
|
|
48
|
+
loadProfiles,
|
|
29
49
|
parseAccountProfile,
|
|
30
50
|
parseCloudflareDnsAuthorization,
|
|
31
51
|
parseCloudflareDnsAuthorizationStatus,
|
|
@@ -34,30 +54,42 @@ import {
|
|
|
34
54
|
parseDevAccessTicket,
|
|
35
55
|
parseOperation,
|
|
36
56
|
parseOperationEvent,
|
|
57
|
+
parseOrganizationReferral,
|
|
37
58
|
parsePaidDomain,
|
|
38
59
|
parsePaidDomainPlan,
|
|
60
|
+
parsePoweredByFlag,
|
|
39
61
|
parseProductCliCommand,
|
|
40
62
|
parseSafeProblem,
|
|
41
63
|
parseWithLinkedProject,
|
|
42
64
|
prepareUserTokenFile,
|
|
65
|
+
profileIndexDirectory,
|
|
66
|
+
profileLimitAction,
|
|
67
|
+
profileSelectionError,
|
|
68
|
+
publicProfile,
|
|
43
69
|
publicWorkspace,
|
|
44
70
|
readBoundedResponseBody,
|
|
45
|
-
|
|
71
|
+
readProjectLinks,
|
|
46
72
|
readSecretValueFromStandardInput,
|
|
47
73
|
recognizedCommandLabel,
|
|
74
|
+
removeLegacyProjectLink,
|
|
48
75
|
resolveProductCliEnvironment,
|
|
49
76
|
runProductionCli,
|
|
77
|
+
sameLogin,
|
|
78
|
+
selectProfile,
|
|
79
|
+
selectProfileForOrganization,
|
|
50
80
|
selectWorkspace,
|
|
51
|
-
|
|
81
|
+
verifiedUserId,
|
|
52
82
|
workspaceOf
|
|
53
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-EPTONNNW.js";
|
|
54
84
|
import {
|
|
55
85
|
CredentialStoreIntegrityError,
|
|
56
86
|
CredentialStoreUnavailableError,
|
|
87
|
+
LEGACY_CREDENTIAL_ACCOUNT,
|
|
57
88
|
NativeNapiKeyringCredentialStore,
|
|
89
|
+
createNativeEntryFactory,
|
|
58
90
|
parseCredential,
|
|
59
91
|
serializeCredential
|
|
60
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-7D2RFLWM.js";
|
|
61
93
|
|
|
62
94
|
// apps/product-cli/dist/file-credential-store.js
|
|
63
95
|
import { constants, lstat, mkdir, open, rename, unlink } from "node:fs/promises";
|
|
@@ -196,19 +228,29 @@ var OwnerOnlyFileCredentialStore = class {
|
|
|
196
228
|
};
|
|
197
229
|
var isMissing = (error) => typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT";
|
|
198
230
|
export {
|
|
231
|
+
ACCOUNT_SENSITIVE_PROBLEMS,
|
|
232
|
+
AccountVerificationError,
|
|
199
233
|
CredentialStoreIntegrityError,
|
|
200
234
|
CredentialStoreUnavailableError,
|
|
201
235
|
GeneratedSdkProductApi,
|
|
202
236
|
GeneratedSdkSessionRevoker,
|
|
203
237
|
InteractiveSessionRequiredError,
|
|
204
238
|
InvalidCommandError,
|
|
239
|
+
LEGACY_CREDENTIAL_ACCOUNT,
|
|
205
240
|
LifecycleTransportError,
|
|
241
|
+
LinkedProjectAmbiguousError,
|
|
242
|
+
NativeKeyringProfileRegistry,
|
|
206
243
|
NativeNapiKeyringCredentialStore,
|
|
207
244
|
NetworkTransportError,
|
|
208
245
|
OwnerOnlyFileCredentialStore,
|
|
209
246
|
OwnerOnlyProjectLinkStore,
|
|
210
247
|
ProductApiAuthenticationError,
|
|
211
248
|
ProductCli,
|
|
249
|
+
ProfileIndexFiles,
|
|
250
|
+
ProfileLimitError,
|
|
251
|
+
ProfileNameConflictError,
|
|
252
|
+
ProfileOrganizationFixedError,
|
|
253
|
+
ProfileSelectionError,
|
|
212
254
|
ProviderCapabilityBlockedError,
|
|
213
255
|
PsqlUnavailableError,
|
|
214
256
|
PublicResponseTooLargeError,
|
|
@@ -220,12 +262,24 @@ export {
|
|
|
220
262
|
StderrDeviceAuthorizationPresenter,
|
|
221
263
|
TokenRefreshRejectedError,
|
|
222
264
|
UserTokenFileError,
|
|
265
|
+
assertVerifiedLogin,
|
|
266
|
+
chooseLinkedProject,
|
|
223
267
|
chooseWorkspace,
|
|
268
|
+
classifyCliFailure,
|
|
224
269
|
cliMetadataResult,
|
|
225
270
|
createAuthenticatedProductTransport,
|
|
226
271
|
createBoundedFetch,
|
|
272
|
+
createNativeEntryFactory,
|
|
227
273
|
createProductionAuthenticatedProductApi,
|
|
274
|
+
defaultProfileName,
|
|
275
|
+
describeProfile,
|
|
276
|
+
extractProfileName,
|
|
228
277
|
initializeRepository,
|
|
278
|
+
isProfileName,
|
|
279
|
+
isProfileUserId,
|
|
280
|
+
linkedOrganization,
|
|
281
|
+
listSavedProfiles,
|
|
282
|
+
loadProfiles,
|
|
229
283
|
parseAccountProfile,
|
|
230
284
|
parseCloudflareDnsAuthorization,
|
|
231
285
|
parseCloudflareDnsAuthorizationStatus,
|
|
@@ -235,21 +289,31 @@ export {
|
|
|
235
289
|
parseDevAccessTicket,
|
|
236
290
|
parseOperation,
|
|
237
291
|
parseOperationEvent,
|
|
292
|
+
parseOrganizationReferral,
|
|
238
293
|
parsePaidDomain,
|
|
239
294
|
parsePaidDomainPlan,
|
|
295
|
+
parsePoweredByFlag,
|
|
240
296
|
parseProductCliCommand,
|
|
241
297
|
parseSafeProblem,
|
|
242
298
|
parseWithLinkedProject,
|
|
243
299
|
prepareUserTokenFile,
|
|
300
|
+
profileIndexDirectory,
|
|
301
|
+
profileLimitAction,
|
|
302
|
+
profileSelectionError,
|
|
303
|
+
publicProfile,
|
|
244
304
|
publicWorkspace,
|
|
245
305
|
readBoundedResponseBody,
|
|
246
|
-
|
|
306
|
+
readProjectLinks,
|
|
247
307
|
readSecretValueFromStandardInput,
|
|
248
308
|
recognizedCommandLabel,
|
|
309
|
+
removeLegacyProjectLink,
|
|
249
310
|
resolveProductCliEnvironment,
|
|
250
311
|
runProductionCli,
|
|
312
|
+
sameLogin,
|
|
313
|
+
selectProfile,
|
|
314
|
+
selectProfileForOrganization,
|
|
251
315
|
selectWorkspace,
|
|
252
|
-
selectedWorkspaceId,
|
|
253
316
|
serializeCredential,
|
|
317
|
+
verifiedUserId,
|
|
254
318
|
workspaceOf
|
|
255
319
|
};
|