@ibgib/space-gib 0.0.13 → 0.0.16

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibgib/space-gib",
3
- "version": "0.0.13",
3
+ "version": "0.0.16",
4
4
  "type": "module",
5
5
  "description": "ibgib storage and provider service — SaaS at ibgib.space",
6
6
  "scripts": {
@@ -12,11 +12,11 @@
12
12
  "build:test": "tsc -p tsconfig.test.json"
13
13
  },
14
14
  "dependencies": {
15
- "@ibgib/core-gib": "^0.1.70",
16
- "@ibgib/helper-gib": "^0.0.36",
17
- "@ibgib/ts-gib": "^0.5.33",
18
- "@ibgib/web-gib": "^0.0.56",
19
- "@ibgib/node-gib": "^0.0.14"
15
+ "@ibgib/core-gib": "*",
16
+ "@ibgib/helper-gib": "*",
17
+ "@ibgib/ts-gib": "*",
18
+ "@ibgib/web-gib": "*",
19
+ "@ibgib/node-gib": "*"
20
20
  },
21
21
  "engines": {
22
22
  "node": ">=20.0.0"
@@ -8,4 +8,4 @@
8
8
  /**
9
9
  * Version of space-gib, auto-updated by the build process.
10
10
  */
11
- export const AUTO_GENERATED_VERSION = '0.0.13';
11
+ export const AUTO_GENERATED_VERSION = '0.0.16';
@@ -34,6 +34,10 @@ if (urlParams.has('code') && urlParams.has('state') && window.opener) {
34
34
 
35
35
  console.log(`[space-gib bootstrap] version: ${AUTO_GENERATED_VERSION}`);
36
36
 
37
+ if ((process.env.KEYSTONE_PROFILE || '').toLowerCase() === 'test') {
38
+ console.warn(`%c⚠️ WARNING: KEYSTONE_PROFILE IS SET TO 'test'!\nALL GENERATED KEYSTONES USE LOW-SECURITY TEST PARAMETERS (12 CHALLENGES).\nFOR LOCAL TESTING ONLY — DO NOT USE FOR REAL SECRETS OR PRODUCTION DATA!`, 'background: #990000; color: #ffffff; font-size: 14px; font-weight: bold; padding: 8px; border-radius: 4px;');
39
+ }
40
+
37
41
  // ---------------------------------------------------------------------------
38
42
  // Main entry point
39
43
  // ---------------------------------------------------------------------------
@@ -324,22 +324,23 @@ export class SpaceGibShellService {
324
324
  }
325
325
 
326
326
  // Trigger 5 (30s Test Heartbeat): Start background 30-second setInterval heartbeat log nag
327
- setInterval(async () => {
328
- console.log(`[KeystoneSyncService] ⚠️ HEARTBEAT TEST MODE: Interval set to 30s for testing (MUST be changed to 5m for production)`);
329
- try {
330
- const currentDomainIdentity = (globalThis as any).ibgib?.identity?.domainIdentity;
331
- if (currentDomainIdentity) {
332
- const activeAddr = getIbGibAddr({ ibGib: currentDomainIdentity });
333
- const syncSvc = getKeystoneSyncService();
334
- const res = await syncSvc.checkForKeystoneUpdate({ activePrimaryAddr: activeAddr });
335
- if (res.hasUpdate) {
336
- console.log(`[KeystoneSyncService] 🔔 Heartbeat detected keystone update on server! Server n=${res.serverN}, Local n=${res.localN}`);
337
- }
338
- }
339
- } catch (err) {
340
- console.warn(`[KeystoneSyncService] Heartbeat update check error: ${extractErrorMsg(err)}`);
341
- }
342
- }, 30000);
327
+ // todo: commenting out just while testing keystone creation workflow. need to reenable this code, but also maybe make it smarter so that it doesn't trigger **during** account creation/sign in workflows.
328
+ // setInterval(async () => {
329
+ // console.log(`[KeystoneSyncService] ⚠️ HEARTBEAT TEST MODE: Interval set to 30s for testing (MUST be changed to 5m for production)`);
330
+ // try {
331
+ // const currentDomainIdentity = (globalThis as any).ibgib?.identity?.domainIdentity;
332
+ // if (currentDomainIdentity) {
333
+ // const activeAddr = getIbGibAddr({ ibGib: currentDomainIdentity });
334
+ // const syncSvc = getKeystoneSyncService();
335
+ // const res = await syncSvc.checkForKeystoneUpdate({ activePrimaryAddr: activeAddr });
336
+ // if (res.hasUpdate) {
337
+ // console.log(`[KeystoneSyncService] 🔔 Heartbeat detected keystone update on server! Server n=${res.serverN}, Local n=${res.localN}`);
338
+ // }
339
+ // }
340
+ // } catch (err) {
341
+ // console.warn(`[KeystoneSyncService] Heartbeat update check error: ${extractErrorMsg(err)}`);
342
+ // }
343
+ // }, 30000);
343
344
  } catch (error) {
344
345
  console.error(`${lc} ${extractErrorMsg(error)}`);
345
346
  }
@@ -38,6 +38,12 @@ async function main(): Promise<void> {
38
38
  console.log(`${lc} starting...`);
39
39
  console.log(`${lc} dataDir: ${DATA_DIR}`);
40
40
 
41
+ if ((process.env.KEYSTONE_PROFILE || '').toLowerCase() === 'test') {
42
+ console.warn(`\n==========================================================\n⚠️ WARNING: KEYSTONE_PROFILE IS SET TO 'test'!\nALL GENERATED KEYSTONES USE LOW-SECURITY TEST PARAMETERS (12 CHALLENGES).\nFOR LOCAL TESTING ONLY — DO NOT USE FOR REAL SECRETS OR PRODUCTION DATA!\n==========================================================\n (W: 890123456789abcdef0123456789a123)`);
43
+ } else {
44
+ console.log(`process.env.KEYSTONE_PROFILE: ${process.env.KEYSTONE_PROFILE || ''} (I: 961014e2dd082293b83b917835c97e26)`)
45
+ }
46
+
41
47
  const syncUpgradeHandler = new SyncUpgradeHandler();
42
48
 
43
49
  // Initialize serve-gib using standard handler preset from @ibgib/node-gib