@lark-codem/codem-cli 0.1.281-dev.100104639844.0.ga23aea5 → 0.1.281-dev.100104658625.0.g0f105de
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/bin/codem-startup-logs.js +14 -13
- package/bin/codem.js +30 -107
- package/bin/slardar-pc-transport.js +134 -0
- package/bin/tt-env.js +1 -1
- package/bin/worker-runtime-telemetry.js +1 -2
- package/package.json +9 -12
- package/profile/credential-errors.js +4 -3
- package/profile/credential-metadata.js +2 -2
- package/profile/debug.js +12 -12
- package/profile/diagnostic-text.js +49 -0
- package/profile/http-read-diagnostics.js +17 -0
- package/profile/profile-snapshot.js +2 -3
- package/profile/runtime-logs.js +389 -208
- package/profile/slardar-pc-transport.js +134 -0
- package/auth/index.d.ts +0 -19
- package/auth/index.js +0 -5936
- package/profile/realtime-log-id.js +0 -9
- package/profile/sandbox-observability.js +0 -17
|
@@ -44,8 +44,7 @@ export async function readProfileSnapshot(home) {
|
|
|
44
44
|
return withCodeMConfigLock(join(home, "config.json"), () => readLockedProfileSnapshot(home));
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
|
|
48
|
-
export async function readLockedProfileSnapshot(home) {
|
|
47
|
+
async function readLockedProfileSnapshot(home) {
|
|
49
48
|
const configPath = join(home, "config.json");
|
|
50
49
|
const config = await readProfileObject(configPath);
|
|
51
50
|
let metadata;
|
|
@@ -54,7 +53,7 @@ export async function readLockedProfileSnapshot(home) {
|
|
|
54
53
|
} catch (error) {
|
|
55
54
|
if (!(error instanceof CredentialStorageError)) throw error;
|
|
56
55
|
const kind = ["oauth", "router-ak"].includes(error.kind) ? error.kind : null;
|
|
57
|
-
throw new CredentialStorageError(error.code.replace(/^credential_storage_/, ""), kind);
|
|
56
|
+
throw new CredentialStorageError(error.code.replace(/^credential_storage_/, ""), kind, error.cause !== undefined ? { cause: error.cause } : undefined);
|
|
58
57
|
}
|
|
59
58
|
if (!config && metadata && !metadata.loggedOut) throw new CredentialStorageError("config_missing", "oauth");
|
|
60
59
|
const device = record(config?.device);
|