@gen3/workspaces 0.12.60 → 0.12.62

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.
Binary file
@@ -3,9 +3,12 @@ set -euo pipefail
3
3
 
4
4
  usage() {
5
5
  cat <<'EOF'
6
- Patch the remote jupyter-lite.json to enable terminals.
6
+ Patch the remote jupyter-lite.json to enable terminals and expose the app.
7
7
 
8
- Inserts "terminalsAvailable": true into the "jupyter-config-data" object.
8
+ Inserts "terminalsAvailable": true and "exposeAppInBrowser": true into the
9
+ "jupyter-config-data" object. The latter is required so that RemoteComputeWorkspace
10
+ can find `window.jupyterapp` in the iframe to detect readiness and wire up
11
+ activity-detection listeners for the session's inactivity timer.
9
12
  The file is modified in place; a backup is written alongside it as .bak.
10
13
 
11
14
  Usage:
@@ -67,13 +70,18 @@ if not isinstance(config, dict):
67
70
  print(f"Error: 'jupyter-config-data' key not found or not an object in {path}", file=sys.stderr)
68
71
  sys.exit(1)
69
72
 
70
- if config.get('terminalsAvailable') is True:
71
- print(f"'terminalsAvailable' already set to true in {path} — no changes made.")
73
+ needs_patch = (
74
+ config.get('terminalsAvailable') is not True
75
+ or config.get('exposeAppInBrowser') is not True
76
+ )
77
+ if not needs_patch:
78
+ print(f"'terminalsAvailable' and 'exposeAppInBrowser' already set to true in {path} — no changes made.")
72
79
  sys.exit(0)
73
80
 
74
81
  shutil.copy2(path, backup)
75
82
 
76
83
  config['terminalsAvailable'] = True
84
+ config['exposeAppInBrowser'] = True
77
85
 
78
86
  with open(path, 'w', encoding='utf-8') as f:
79
87
  json.dump(data, f, indent=2)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gen3/workspaces",
3
- "version": "0.12.60",
3
+ "version": "0.12.62",
4
4
  "description": "Workspaces for Gen3",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -52,8 +52,8 @@
52
52
  "./jupyterlite-builds/*": "./dist/jupyterlite-builds/*"
53
53
  },
54
54
  "dependencies": {
55
- "@gen3/core": "^0.12.60",
56
- "@gen3/frontend": "^0.12.60",
55
+ "@gen3/core": "^0.12.62",
56
+ "@gen3/frontend": "^0.12.62",
57
57
  "camelcase-keys": "^10.0.2"
58
58
  },
59
59
  "peerDependencies": {
@@ -69,5 +69,5 @@
69
69
  "react-dom": "^19.2.4",
70
70
  "tailwindcss": "^3.4.18"
71
71
  },
72
- "gitHead": "8f1f17abf44a471fbf6f9bfba2fb32c9152b9e65"
72
+ "gitHead": "9ad9ea07d5764c1f1d10713e3b976f017cb30567"
73
73
  }
@@ -3,9 +3,12 @@ set -euo pipefail
3
3
 
4
4
  usage() {
5
5
  cat <<'EOF'
6
- Patch the remote jupyter-lite.json to enable terminals.
6
+ Patch the remote jupyter-lite.json to enable terminals and expose the app.
7
7
 
8
- Inserts "terminalsAvailable": true into the "jupyter-config-data" object.
8
+ Inserts "terminalsAvailable": true and "exposeAppInBrowser": true into the
9
+ "jupyter-config-data" object. The latter is required so that RemoteComputeWorkspace
10
+ can find `window.jupyterapp` in the iframe to detect readiness and wire up
11
+ activity-detection listeners for the session's inactivity timer.
9
12
  The file is modified in place; a backup is written alongside it as .bak.
10
13
 
11
14
  Usage:
@@ -67,13 +70,18 @@ if not isinstance(config, dict):
67
70
  print(f"Error: 'jupyter-config-data' key not found or not an object in {path}", file=sys.stderr)
68
71
  sys.exit(1)
69
72
 
70
- if config.get('terminalsAvailable') is True:
71
- print(f"'terminalsAvailable' already set to true in {path} — no changes made.")
73
+ needs_patch = (
74
+ config.get('terminalsAvailable') is not True
75
+ or config.get('exposeAppInBrowser') is not True
76
+ )
77
+ if not needs_patch:
78
+ print(f"'terminalsAvailable' and 'exposeAppInBrowser' already set to true in {path} — no changes made.")
72
79
  sys.exit(0)
73
80
 
74
81
  shutil.copy2(path, backup)
75
82
 
76
83
  config['terminalsAvailable'] = True
84
+ config['exposeAppInBrowser'] = True
77
85
 
78
86
  with open(path, 'w', encoding='utf-8') as f:
79
87
  json.dump(data, f, indent=2)