@ibgib/space-gib 0.0.16 → 0.0.18
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/client/bootstrap.mjs +34 -35
- package/dist/client/chunk-3KXGJIIO.mjs +18 -0
- package/dist/client/chunk-UWWP4CK6.mjs +2665 -0
- package/dist/client/index.mjs +7 -12
- package/dist/client/script.mjs +1 -2
- package/dist/server/server.mjs +372 -358
- package/ibgib_e2e_error.log +85 -0
- package/package.json +6 -6
- package/src/client/AUTO-GENERATED-version.mts +1 -1
- package/src/client/bootstrap.mts +18 -2
- package/src/server/server.mts +16 -4
- package/dist/client/bootstrap.mjs.map +0 -7
- package/dist/client/chunk-6BYQ5JSY.mjs +0 -19
- package/dist/client/chunk-6BYQ5JSY.mjs.map +0 -7
- package/dist/client/chunk-QPR6ILY2.mjs +0 -2507
- package/dist/client/chunk-QPR6ILY2.mjs.map +0 -7
- package/dist/client/index.mjs.map +0 -7
- package/dist/client/script.mjs.map +0 -7
- package/dist/server/server.mjs.map +0 -7
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
script.mjs:7 space-gib early script executing...
|
|
2
|
+
chunk-KMQKMIF4.mjs:28488 [getSpaceGibShellSvc] initializing SpaceGibShellService singleton on globalThis... (I: genuuid)
|
|
3
|
+
chunk-KMQKMIF4.mjs:113 [initialize] does nothing atow (I: 65bb46c88c82b637ad928b8bf1a07225)
|
|
4
|
+
index.mjs:8501 [spinOffStartup]: 0.27490234375 ms DOMContentLoaded fired
|
|
5
|
+
chunk-SF3NCBXC.mjs:8164 [initializeStorage][space_gib_db][no store name] initRequestCount: 1 (I: 294d5f0b12ffe5512bacebe891824d25)
|
|
6
|
+
chunk-SF3NCBXC.mjs:8164 [initializeStorage][space_gib_db][space_gib_store] initRequestCount: 2 (I: 294d5f0b12ffe5512bacebe891824d25)
|
|
7
|
+
chunk-SF3NCBXC.mjs:8164 [initializeStorage][space_gib_db][zero] initRequestCount: 3 (I: 294d5f0b12ffe5512bacebe891824d25)
|
|
8
|
+
index.mjs:8503 [spinOffStartup]: 23.349853515625 ms initIbGibStorage complete
|
|
9
|
+
bootstrap.mjs:9699 [space-gib bootstrap] version: 0.0.17
|
|
10
|
+
bootstrap.mjs:9712 ⚠️ WARNING: DEVELOPMENT KEYSTONE PROFILE ACTIVE (.dev)!GENERATED KEYSTONES USE LOW-SECURITY DEV PARAMETERS FOR RAPID TESTING.FOR LOCAL TESTING ONLY — DO NOT USE FOR REAL SECRETS OR PRODUCTION DATA!
|
|
11
|
+
(anonymous) @ bootstrap.mjs:9712
|
|
12
|
+
bootstrap.mjs:7635 [bootstrapIbGibApp] starting...
|
|
13
|
+
bootstrap.mjs:368 [buildArgInfos] starting... (I: f389aaa490796dfd823bc7b9d4e58b23)
|
|
14
|
+
bootstrap.mjs:378 identifier: interactive (I: 519ce129a1e34753a9070d3a205c9a8b)
|
|
15
|
+
bootstrap.mjs:464 [buildArgInfos] complete.
|
|
16
|
+
bootstrap.mjs:7688 [execFromArgs] starting...
|
|
17
|
+
bootstrap.mjs:7730 [initMetaspace] starting...
|
|
18
|
+
chunk-SF3NCBXC.mjs:6603 [toDto] ibGib.gib is falsy. (W: fb3889cbf0684ae4ac51e48f28570377)
|
|
19
|
+
toDto @ chunk-SF3NCBXC.mjs:6603
|
|
20
|
+
fnCreateNewLocalSpace @ bootstrap.mjs:7320
|
|
21
|
+
await in fnCreateNewLocalSpace
|
|
22
|
+
metaspaceFactory.fnDefaultLocalSpaceFactory @ bootstrap.mjs:7383
|
|
23
|
+
createNewLocalSpace @ bootstrap.mjs:2700
|
|
24
|
+
createLocalSpaceAndUpdateBootstrap @ bootstrap.mjs:2728
|
|
25
|
+
initializeLocalSpaces @ bootstrap.mjs:2652
|
|
26
|
+
await in initializeLocalSpaces
|
|
27
|
+
initialize @ bootstrap.mjs:2511
|
|
28
|
+
await in initialize
|
|
29
|
+
initialize @ bootstrap.mjs:7447
|
|
30
|
+
await in initialize
|
|
31
|
+
initMetaspace @ bootstrap.mjs:7744
|
|
32
|
+
await in initMetaspace
|
|
33
|
+
execFromArgs @ bootstrap.mjs:7690
|
|
34
|
+
(anonymous) @ bootstrap.mjs:7661
|
|
35
|
+
bootstrapIbGibApp @ bootstrap.mjs:7646
|
|
36
|
+
bootstrapSpaceGibApp @ bootstrap.mjs:9719
|
|
37
|
+
dynamicallyLoadBootstrapScript @ chunk-SF3NCBXC.mjs:8819
|
|
38
|
+
await in dynamicallyLoadBootstrapScript
|
|
39
|
+
(anonymous) @ index.mjs:8504
|
|
40
|
+
chunk-SF3NCBXC.mjs:8164 [initializeStorage][space_gib_db][be8f11f44276146720b40db0dbe5889e052240a7583cbe6869f341bf7a03cbf9] initRequestCount: 4 (I: 294d5f0b12ffe5512bacebe891824d25)
|
|
41
|
+
bootstrap.mjs:7757 [initMetaspace] complete.
|
|
42
|
+
bootstrap.mjs:7774 [execInteractive] starting...
|
|
43
|
+
bootstrap.mjs:7807 [defaultGetOrCreateApp] starting...
|
|
44
|
+
bootstrap.mjs:7885 [createAndSaveNewApp] starting...
|
|
45
|
+
bootstrap.mjs:7925 [createAndSaveNewApp] complete.
|
|
46
|
+
bootstrap.mjs:7875 [defaultGetOrCreateApp] complete.
|
|
47
|
+
bootstrap.mjs:8552 [SpaceGibApp_V1] space-gib initialized and ready.
|
|
48
|
+
bootstrap.mjs:7797 [execInteractive] complete.
|
|
49
|
+
bootstrap.mjs:7720
|
|
50
|
+
[execFromArgs] complete.
|
|
51
|
+
chunk-KMQKMIF4.mjs:28449 [SpaceGibShellService][onEngineReady] SpaceGib Shell Service is ready.
|
|
52
|
+
bootstrap.mjs:7678
|
|
53
|
+
[bootstrapIbGibApp] complete.
|
|
54
|
+
index.mjs:8505 [spinOffStartup]: 2520.262939453125 ms dynamicallyLoadBootstrapScript complete
|
|
55
|
+
index.mjs:8507 [spinOffStartup]: 2528.35302734375 ms initDevTools complete
|
|
56
|
+
index.mjs:8508 [spinOffStartup]: 2528.510009765625 ms
|
|
57
|
+
chunk-KMQKMIF4.mjs:25048 Cross-Origin-Opener-Policy policy would block the window.closed call.
|
|
58
|
+
(anonymous) @ chunk-KMQKMIF4.mjs:25048
|
|
59
|
+
setInterval
|
|
60
|
+
(anonymous) @ chunk-KMQKMIF4.mjs:25047
|
|
61
|
+
executeSsoOAuthPopup @ chunk-KMQKMIF4.mjs:25029
|
|
62
|
+
await in executeSsoOAuthPopup
|
|
63
|
+
handleSsoClick @ chunk-KMQKMIF4.mjs:27582
|
|
64
|
+
(anonymous) @ chunk-KMQKMIF4.mjs:27529
|
|
65
|
+
chunk-KMQKMIF4.mjs:25048 Cross-Origin-Opener-Policy policy would block the window.closed call.
|
|
66
|
+
(anonymous) @ chunk-KMQKMIF4.mjs:25048
|
|
67
|
+
setInterval
|
|
68
|
+
(anonymous) @ chunk-KMQKMIF4.mjs:25047
|
|
69
|
+
executeSsoOAuthPopup @ chunk-KMQKMIF4.mjs:25029
|
|
70
|
+
await in executeSsoOAuthPopup
|
|
71
|
+
handleSsoClick @ chunk-KMQKMIF4.mjs:27582
|
|
72
|
+
(anonymous) @ chunk-KMQKMIF4.mjs:27529
|
|
73
|
+
chunk-SF3NCBXC.mjs:4451 [registerNewIbGib][keystone^38F5687458C6954889175D68C161C32F53DF4182ECE480A443ED813D8121D79E.E30EF636913A3B5C4D7B31BA98BAAFDFE5A701DA3F58FF9D829AA4498A6ECC06] incoming ibGib (keystone^38F5687458C6954889175D68C161C32F53DF4182ECE480A443ED813D8121D79E.E30EF636913A3B5C4D7B31BA98BAAFDFE5A701DA3F58FF9D829AA4498A6ECC06) is NOT NEWER than existing latest (keystone^57BF75B9D63EAD2BB2C910F4D17DE4BFA84748977F514F4A392B2AA01DC516AF.E30EF636913A3B5C4D7B31BA98BAAFDFE5A701DA3F58FF9D829AA4498A6ECC06). multiple branches for the same timeline? ignoring incoming ibGibAddr. n_ibGib: 1. n_existingLatest: 2. space.ib: witness space WebFilesystemSpace_V1 space_gib__gyguxjmbnqat be8f11f44276146720b40db0dbe5889e052240a7583cbe6869f341bf7a03cbf9 undefined undefined (W: 057baadca494473dabb26fb4fb879774)
|
|
74
|
+
registerNewIbGib @ chunk-SF3NCBXC.mjs:4451
|
|
75
|
+
await in registerNewIbGib
|
|
76
|
+
registerNewIbGib @ bootstrap.mjs:3095
|
|
77
|
+
finalizeDeviceOnboarding @ chunk-KMQKMIF4.mjs:27973
|
|
78
|
+
await in finalizeDeviceOnboarding
|
|
79
|
+
completeCustodialDelegateOnboarding @ chunk-KMQKMIF4.mjs:27823
|
|
80
|
+
await in completeCustodialDelegateOnboarding
|
|
81
|
+
handleSsoClick @ chunk-KMQKMIF4.mjs:27607
|
|
82
|
+
await in handleSsoClick
|
|
83
|
+
(anonymous) @ chunk-KMQKMIF4.mjs:27529
|
|
84
|
+
chunk-KMQKMIF4.mjs:27128 yes this is being updated! I am just wondering if I am seeing old code in the browser, i.e., if refresh is happening or just getting cache (I: 6599db11c1086062b8f5e86db89cba26)
|
|
85
|
+
chunk-KMQKMIF4.mjs:23017 [IdentityManagerComponentInstance][activateIbGib] same tab already active. returning early. childInfo.addr: keystone^57BF75B9D63EAD2BB2C910F4D17DE4BFA84748977F514F4A392B2AA01DC516AF.E30EF636913A3B5C4D7B31BA98BAAFDFE5A701DA3F58FF9D829AA4498A6ECC06 (user just clicked on the same tab) (I: e67c0d02f3143c49c7a20c82d0730225)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibgib/space-gib",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.18",
|
|
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": "
|
|
16
|
-
"@ibgib/helper-gib": "
|
|
17
|
-
"@ibgib/ts-gib": "
|
|
18
|
-
"@ibgib/web-gib": "
|
|
19
|
-
"@ibgib/node-gib": "
|
|
15
|
+
"@ibgib/core-gib": "^0.1.74",
|
|
16
|
+
"@ibgib/helper-gib": "^0.0.37",
|
|
17
|
+
"@ibgib/ts-gib": "^0.5.34",
|
|
18
|
+
"@ibgib/web-gib": "^0.0.60",
|
|
19
|
+
"@ibgib/node-gib": "^0.0.19"
|
|
20
20
|
},
|
|
21
21
|
"engines": {
|
|
22
22
|
"node": ">=20.0.0"
|
package/src/client/bootstrap.mts
CHANGED
|
@@ -34,8 +34,24 @@ 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
|
-
|
|
38
|
-
|
|
37
|
+
const clientProfiles = [
|
|
38
|
+
process.env.KEYSTONE_PROFILE_SOVEREIGN_PRIMARY,
|
|
39
|
+
process.env.KEYSTONE_PROFILE_SOVEREIGN_SYNC,
|
|
40
|
+
process.env.KEYSTONE_PROFILE_CUSTODIAN_SYNC,
|
|
41
|
+
].filter(Boolean) as string[];
|
|
42
|
+
|
|
43
|
+
const isProdEnv = process.env.NODE_ENV === 'production';
|
|
44
|
+
const hasDevProfile = clientProfiles.some(p => p.endsWith('.dev'));
|
|
45
|
+
const hasStagingProfile = clientProfiles.some(p => p.endsWith('.staging'));
|
|
46
|
+
|
|
47
|
+
if (isProdEnv && (hasDevProfile || hasStagingProfile)) {
|
|
48
|
+
throw new Error(`Security Violation: Non-production keystone profiles are prohibited when NODE_ENV=production. Active client profiles: ${clientProfiles.join(', ')}. (E: 7a8b9c0d1e2f3456789abcdef0123456)`);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
if (hasDevProfile) {
|
|
52
|
+
console.warn(`%c⚠️ WARNING: DEVELOPMENT KEYSTONE PROFILE ACTIVE (.dev)!\nGENERATED KEYSTONES USE LOW-SECURITY DEV PARAMETERS FOR RAPID TESTING.\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;');
|
|
53
|
+
} else if (hasStagingProfile) {
|
|
54
|
+
console.info(`%cℹ️ STAGING KEYSTONE PROFILE ACTIVE (.staging)`, 'background: #005599; color: #ffffff; font-size: 13px; font-weight: bold; padding: 6px; border-radius: 4px;');
|
|
39
55
|
}
|
|
40
56
|
|
|
41
57
|
// ---------------------------------------------------------------------------
|
package/src/server/server.mts
CHANGED
|
@@ -38,10 +38,22 @@ async function main(): Promise<void> {
|
|
|
38
38
|
console.log(`${lc} starting...`);
|
|
39
39
|
console.log(`${lc} dataDir: ${DATA_DIR}`);
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
const custodianPrimaryProfile = (process.env.KEYSTONE_PROFILE_CUSTODIAN_PRIMARY || '').trim();
|
|
42
|
+
if (!custodianPrimaryProfile) {
|
|
43
|
+
throw new Error(`${lc} Fatal Error: KEYSTONE_PROFILE_CUSTODIAN_PRIMARY environment variable is missing or blank. (E: 8a9b0c1d2e3f4567890123456789abcd)`);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
const isProdEnv = process.env.NODE_ENV === 'production';
|
|
47
|
+
if (isProdEnv && !custodianPrimaryProfile.endsWith('.prod')) {
|
|
48
|
+
throw new Error(`${lc} Security Violation: Non-production keystone profile '${custodianPrimaryProfile}' is prohibited when NODE_ENV=production. (E: 9b0c1d2e3f4567890123456789abcdef)`);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
console.log(`${lc} KEYSTONE_PROFILE_CUSTODIAN_PRIMARY: ${custodianPrimaryProfile} (I: 961014e2dd082293b83b917835c97e26)`);
|
|
52
|
+
|
|
53
|
+
if (custodianPrimaryProfile.endsWith('.dev')) {
|
|
54
|
+
console.warn(`\n==========================================================\n⚠️ WARNING: CUSTODIAN KEYSTONE PROFILE IS SET TO DEVELOPMENT ('${custodianPrimaryProfile}')!\nCUSTODIAL KEYSTONES WILL USE LOW-SECURITY DEV PARAMETERS.\nFOR LOCAL TESTING ONLY — DO NOT USE FOR REAL SECRETS OR PRODUCTION DATA!\n==========================================================\n (W: 890123456789abcdef0123456789a123)`);
|
|
55
|
+
} else if (custodianPrimaryProfile.endsWith('.staging')) {
|
|
56
|
+
console.info(`${lc} ℹ️ STAGING CUSTODIAN KEYSTONE PROFILE ACTIVE ('${custodianPrimaryProfile}')`);
|
|
45
57
|
}
|
|
46
58
|
|
|
47
59
|
const syncUpgradeHandler = new SyncUpgradeHandler();
|