bamboo-agents 0.1.5-dev.34.b4abfd1 → 0.1.5-dev.35.1be3c48
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/VERSION +1 -1
- package/dist/index.js +18 -5
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
package/dist/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.5-dev.
|
|
1
|
+
0.1.5-dev.35.1be3c48
|
package/dist/index.js
CHANGED
|
@@ -3037,7 +3037,7 @@ var VERSION;
|
|
|
3037
3037
|
var init_version = __esm({
|
|
3038
3038
|
"src/version.ts"() {
|
|
3039
3039
|
"use strict";
|
|
3040
|
-
VERSION = "0.1.5-dev.
|
|
3040
|
+
VERSION = "0.1.5-dev.35.1be3c48";
|
|
3041
3041
|
}
|
|
3042
3042
|
});
|
|
3043
3043
|
|
|
@@ -7205,7 +7205,8 @@ var init_credentials = __esm({
|
|
|
7205
7205
|
});
|
|
7206
7206
|
|
|
7207
7207
|
// src/lib/state.ts
|
|
7208
|
-
import { readFile as readFile2, writeFile as writeFile2, mkdir as mkdir2 } from "node:fs/promises";
|
|
7208
|
+
import { readFile as readFile2, writeFile as writeFile2, mkdir as mkdir2, chmod as chmod2, rename, unlink } from "node:fs/promises";
|
|
7209
|
+
import { randomBytes } from "node:crypto";
|
|
7209
7210
|
async function readConfig() {
|
|
7210
7211
|
try {
|
|
7211
7212
|
const raw = await readFile2(configPath(), "utf8");
|
|
@@ -7226,7 +7227,7 @@ async function writeConfig(cfg) {
|
|
|
7226
7227
|
mode: 420
|
|
7227
7228
|
});
|
|
7228
7229
|
}
|
|
7229
|
-
var ConfigSchema;
|
|
7230
|
+
var ConfigSchema, STATE_SCHEMA_VERSION, WorkspaceStateSchema;
|
|
7230
7231
|
var init_state = __esm({
|
|
7231
7232
|
"src/lib/state.ts"() {
|
|
7232
7233
|
"use strict";
|
|
@@ -7242,6 +7243,18 @@ var init_state = __esm({
|
|
|
7242
7243
|
installed_at: external_exports.string()
|
|
7243
7244
|
// ISO8601
|
|
7244
7245
|
});
|
|
7246
|
+
STATE_SCHEMA_VERSION = 1;
|
|
7247
|
+
WorkspaceStateSchema = external_exports.object({
|
|
7248
|
+
$schema_version: external_exports.literal(STATE_SCHEMA_VERSION),
|
|
7249
|
+
workspace_path: external_exports.string().min(1),
|
|
7250
|
+
org_id: external_exports.string().min(1),
|
|
7251
|
+
org_slug: external_exports.string().min(1),
|
|
7252
|
+
cloned_at: external_exports.string().min(1),
|
|
7253
|
+
// ISO-8601
|
|
7254
|
+
last_sync: external_exports.string().min(1),
|
|
7255
|
+
// ISO-8601
|
|
7256
|
+
remote_url: external_exports.string().url()
|
|
7257
|
+
});
|
|
7245
7258
|
}
|
|
7246
7259
|
});
|
|
7247
7260
|
|
|
@@ -11868,7 +11881,7 @@ __export(login_exports, {
|
|
|
11868
11881
|
startCallbackServer: () => startCallbackServer,
|
|
11869
11882
|
verificationCode: () => verificationCode
|
|
11870
11883
|
});
|
|
11871
|
-
import { randomBytes } from "node:crypto";
|
|
11884
|
+
import { randomBytes as randomBytes2 } from "node:crypto";
|
|
11872
11885
|
import {
|
|
11873
11886
|
createServer
|
|
11874
11887
|
} from "node:http";
|
|
@@ -11993,7 +12006,7 @@ async function startCallbackServer(expectedState) {
|
|
|
11993
12006
|
};
|
|
11994
12007
|
}
|
|
11995
12008
|
async function runLogin() {
|
|
11996
|
-
const state =
|
|
12009
|
+
const state = randomBytes2(32).toString("hex");
|
|
11997
12010
|
const code = verificationCode(state);
|
|
11998
12011
|
const { port, session: sessionPromise } = await startCallbackServer(state);
|
|
11999
12012
|
const cbUrl = `http://localhost:${port}/`;
|