@inerrata-corporation/errata 2.0.19-dev.3624 → 2.0.19-dev.3647
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/errata.mjs +4 -4
- package/package.json +1 -1
package/errata.mjs
CHANGED
|
@@ -82706,7 +82706,7 @@ function createWatchBreaker(deps) {
|
|
|
82706
82706
|
}
|
|
82707
82707
|
|
|
82708
82708
|
// src/engine.ts
|
|
82709
|
-
var DAEMON_VERSION = true ? "2.0.19-dev.
|
|
82709
|
+
var DAEMON_VERSION = true ? "2.0.19-dev.3647" : "2.0.0-alpha.0";
|
|
82710
82710
|
var IGNORED_PATH = /[\\/](?:\.git|node_modules|\.errata|\.claude|\.codex|\.cursor|\.turbo|\.next|dist|coverage|test-results|playwright-report|__pycache__)(?:[\\/]|$)/;
|
|
82711
82711
|
var IGNORED_NOISE = /castalia\.db|eventlog\.sqlite|turn-cursors/;
|
|
82712
82712
|
var GIT_OP_MUTE_MS = 4e3;
|
|
@@ -88962,6 +88962,7 @@ init_src7();
|
|
|
88962
88962
|
init_cloud_auth();
|
|
88963
88963
|
import { createServer } from "node:http";
|
|
88964
88964
|
var DEFAULT_OAUTH_SCOPE = "openid profile graph:read graph:write mcp:tools";
|
|
88965
|
+
var CODE_FLOW_OAUTH_SCOPE = `${DEFAULT_OAUTH_SCOPE} offline_access`;
|
|
88965
88966
|
var strip = (u) => u.replace(/\/+$/, "");
|
|
88966
88967
|
function deviceEndpoints(tokenEndpoint, deviceAuthorizationEndpoint) {
|
|
88967
88968
|
const token = new URL(tokenEndpoint);
|
|
@@ -89138,7 +89139,7 @@ async function loginOAuthLoopback(opts) {
|
|
|
89138
89139
|
const endpoints = await discoverEndpoints(opts.cloudUrl, fetchFn);
|
|
89139
89140
|
const pkce = generatePkce();
|
|
89140
89141
|
const state = randomState();
|
|
89141
|
-
const scope = opts.scope ??
|
|
89142
|
+
const scope = opts.scope ?? CODE_FLOW_OAUTH_SCOPE;
|
|
89142
89143
|
const { code, redirectUri, clientId } = await new Promise(
|
|
89143
89144
|
(resolve10, reject) => {
|
|
89144
89145
|
const server = createServer((req, res) => {
|
|
@@ -91679,7 +91680,6 @@ init_cloud_endpoint_policy();
|
|
|
91679
91680
|
|
|
91680
91681
|
// src/device-login.ts
|
|
91681
91682
|
init_src7();
|
|
91682
|
-
var DEFAULT_SCOPE = "openid profile graph:read graph:write mcp:tools";
|
|
91683
91683
|
var BRIDGE_REDIRECT_URI = "http://127.0.0.1:1/device-bridge-callback";
|
|
91684
91684
|
var strip2 = (u) => u.replace(/\/+$/, "");
|
|
91685
91685
|
async function discoverDeviceEndpoint(cloudUrl, fetchFn = fetch) {
|
|
@@ -91801,7 +91801,7 @@ function extractCode(redirectUrl, expectedState) {
|
|
|
91801
91801
|
async function loginViaDeviceBridge(opts) {
|
|
91802
91802
|
const fetchFn = opts.fetchFn ?? fetch;
|
|
91803
91803
|
const log = opts.log ?? console.log;
|
|
91804
|
-
const scope = opts.scope ??
|
|
91804
|
+
const scope = opts.scope ?? CODE_FLOW_OAUTH_SCOPE;
|
|
91805
91805
|
const timeoutMs = opts.timeoutMs ?? 15 * 6e4;
|
|
91806
91806
|
const endpoints = await discoverEndpoints(opts.cloudUrl, fetchFn);
|
|
91807
91807
|
const deviceEndpoint = await discoverDeviceEndpoint(opts.cloudUrl, fetchFn);
|