@bonginkan/maria 4.2.9 → 4.2.10

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/cli.cjs CHANGED
@@ -1197,9 +1197,17 @@ var init_AuthenticationManager = __esm({
1197
1197
  if (!response2.ok) {
1198
1198
  throw new Error(`Device flow start failed: ${response2.statusText}`);
1199
1199
  }
1200
- const deviceResponse = await response2.json();
1200
+ const raw = await response2.json();
1201
+ const deviceResponse = {
1202
+ verificationUri: raw.verification_uri || raw.verificationUri || "https://auth.maria-code.ai/device",
1203
+ userCode: raw.user_code || raw.userCode || "",
1204
+ deviceCode: raw.device_code || raw.deviceCode || "",
1205
+ interval: (typeof raw.interval === "number" ? raw.interval : parseInt(String(raw.interval || 5), 10)) || 5,
1206
+ expiresIn: (typeof raw.expires_in === "number" ? raw.expires_in : parseInt(String(raw.expires_in || raw.expiresIn || 600), 10)) || 600
1207
+ };
1208
+ const verificationUrl = deviceResponse.verificationUri;
1201
1209
  console.log(`\u{1F510} Device Login`);
1202
- console.log(`Open: ${deviceResponse.verificationUri}`);
1210
+ console.log(`Open: ${verificationUrl}`);
1203
1211
  console.log(`Code: ${deviceResponse.userCode}`);
1204
1212
  const deadline = Date.now() + deviceResponse.expiresIn * 1e3;
1205
1213
  const intervalMs = Math.max(1500, deviceResponse.interval * 1e3);
@@ -1221,11 +1229,11 @@ var init_AuthenticationManager = __esm({
1221
1229
  }
1222
1230
  const tokens = await finishResponse.json();
1223
1231
  return {
1224
- idToken: tokens.id_token,
1225
- accessToken: tokens.access_token,
1226
- refreshToken: tokens.refresh_token,
1232
+ idToken: tokens.id_token || tokens.access_token || "",
1233
+ accessToken: tokens.access_token || tokens.id_token || "",
1234
+ refreshToken: tokens.refresh_token || "",
1227
1235
  customToken: tokens.custom_token,
1228
- expiresAt: Date.now() + tokens.expires_in * 1e3
1236
+ expiresAt: Date.now() + (tokens.expires_in ? Number(tokens.expires_in) : 600) * 1e3
1229
1237
  };
1230
1238
  }
1231
1239
  throw new Error(ERROR_MESSAGES.LOGIN_TIMEOUT);
@@ -31619,8 +31627,8 @@ var init_package = __esm({
31619
31627
  "package.json"() {
31620
31628
  package_default = {
31621
31629
  name: "@bonginkan/maria",
31622
- version: "4.2.9",
31623
- description: "\u{1F680} MARIA v4.2.9 - Enterprise AI Development Platform with 100% Command Availability. Features 74 production-ready commands with comprehensive fallback implementation, local LLM support, and zero external dependencies. Includes natural language coding, AI safety evaluation, intelligent evolution system, episodic memory with PII masking, and real-time monitoring dashboard. Built with TypeScript AST-powered code generation, OAuth2.0 + PKCE authentication, quantum-resistant cryptography, and enterprise-grade performance.",
31630
+ version: "4.2.10",
31631
+ description: "\u{1F680} MARIA v4.2.10 - Enterprise AI Development Platform with 100% Command Availability. Features 74 production-ready commands with comprehensive fallback implementation, local LLM support, and zero external dependencies. Includes natural language coding, AI safety evaluation, intelligent evolution system, episodic memory with PII masking, and real-time monitoring dashboard. Built with TypeScript AST-powered code generation, OAuth2.0 + PKCE authentication, quantum-resistant cryptography, and enterprise-grade performance.",
31624
31632
  keywords: [
31625
31633
  "ai",
31626
31634
  "cli",