@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/README.md
CHANGED
package/dist/bin.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { createRequire as __ohmyhostCreateRequire } from "node:module"; const require = __ohmyhostCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
runProductionCli
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-EPTONNNW.js";
|
|
6
|
+
import "./chunk-7D2RFLWM.js";
|
|
7
7
|
|
|
8
8
|
// apps/product-cli/dist/bin.js
|
|
9
9
|
var controller = new AbortController();
|
|
@@ -48,10 +48,12 @@ var CredentialStoreIntegrityError = class extends Error {
|
|
|
48
48
|
this.name = "CredentialStoreIntegrityError";
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
|
-
var
|
|
51
|
+
var LEGACY_CREDENTIAL_ACCOUNT = "credential";
|
|
52
52
|
var NativeNapiKeyringCredentialStore = class {
|
|
53
|
+
account;
|
|
53
54
|
createEntry;
|
|
54
|
-
constructor(createEntry = void 0, serviceName = "ohmyhost") {
|
|
55
|
+
constructor(createEntry = void 0, serviceName = "ohmyhost", account = LEGACY_CREDENTIAL_ACCOUNT) {
|
|
56
|
+
this.account = account;
|
|
55
57
|
this.createEntry = createEntry ?? createNativeEntryFactory(serviceName);
|
|
56
58
|
}
|
|
57
59
|
async read() {
|
|
@@ -73,7 +75,7 @@ var NativeNapiKeyringCredentialStore = class {
|
|
|
73
75
|
throw new CredentialStoreIntegrityError();
|
|
74
76
|
}
|
|
75
77
|
entry() {
|
|
76
|
-
return this.createEntry(
|
|
78
|
+
return this.createEntry(this.account);
|
|
77
79
|
}
|
|
78
80
|
};
|
|
79
81
|
var parseVerifiedCredential = (serialized) => {
|
|
@@ -132,7 +134,9 @@ export {
|
|
|
132
134
|
__toESM,
|
|
133
135
|
CredentialStoreUnavailableError,
|
|
134
136
|
CredentialStoreIntegrityError,
|
|
137
|
+
LEGACY_CREDENTIAL_ACCOUNT,
|
|
135
138
|
NativeNapiKeyringCredentialStore,
|
|
139
|
+
createNativeEntryFactory,
|
|
136
140
|
serializeCredential,
|
|
137
141
|
parseCredential
|
|
138
142
|
};
|