@omercnet/paseo-shared-browser 4.1.12-next.516.1 → 4.1.12-next.524.1
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/README.md +2 -2
- package/npm-shrinkwrap.json +39 -35
- package/package.json +3 -3
- package/server/supervisor.ts +1 -0
- package/shared/agent-access.ts +1 -0
package/README.md
CHANGED
|
@@ -174,7 +174,7 @@ differently from the other lists: a server returned from that hook lasts for tha
|
|
|
174
174
|
added in `agent.create` is stored on the agent. So an agent with a matching label gets the adapter in
|
|
175
175
|
every interactive session it opens (a new agent, a resume, a refresh, an import), each time with a fresh
|
|
176
176
|
ticket bound to that agent and its workspace; the tickets are revoked together when the agent is
|
|
177
|
-
archived, and an agent keeps at most eight bound tickets (the oldest is dropped first). Helper (background) agents, history sessions and sessions without a workspace are skipped. If
|
|
177
|
+
archived, and an agent keeps at most eight bound tickets (the oldest is dropped first, its viewer is detached, and the log gets one line). A bind for a ticket that was issued before the agent was revoked is refused, however late it arrives; a ticket issued after the revocation, for example by a restored agent, binds normally. Helper (background) agents, history sessions and sessions without a workspace are skipped. If
|
|
178
178
|
the ticket cannot be issued or bound the session opens without the tool and the log gets one line. In
|
|
179
179
|
"Every new agent" mode this does nothing, because every new agent already has the tool; an agent that
|
|
180
180
|
the create hook already gave a ticket is not given a second one.
|
|
@@ -188,7 +188,7 @@ workspace or project is matched by directory: the workspace whose directory is t
|
|
|
188
188
|
the deepest one containing it. Both directories are normalized first (separators, `.` and `..` segments),
|
|
189
189
|
so a path that climbs out of a workspace does not match it. The lookup includes background workspaces. If
|
|
190
190
|
the list is longer than 20 pages of 200, or the lookup fails, those lists match nothing. Workspaces that
|
|
191
|
-
share a directory cannot be told apart, so listing any of them matches them all. Matching is lexical: nothing on disk is consulted, so symlinks are not resolved and letter case is not folded. A path is only compared when it starts at a root (`/` or a drive such as `C:`); a relative workspace or agent directory never matches. Backslashes are read as separators and only drive paths are modelled, so a UNC path is not recognized and a literal backslash in a POSIX file name counts as a separator. The settings read has a 2 second deadline, and a read that is too slow is treated like an unreadable setting, so every new agent gets the tool. The workspace lookup has its own 2 second deadline, and a timeout there counts as no match. Either timeout logs one line, and a slow lookup never holds up agent creation. The check runs before the adapter, its credential or the supervisor are set up, so
|
|
191
|
+
share a directory cannot be told apart, so listing any of them matches them all. Matching is lexical: nothing on disk is consulted, so symlinks are not resolved and letter case is not folded. A path is only compared when it starts at a root (`/` or a drive such as `C:`); a relative workspace or agent directory never matches. Backslashes are read as separators and only drive paths are modelled, so a UNC path is not recognized (`\\server\share` reads as `/server/share`, and a bare `C:` reads as `C:/`) and a literal backslash in a POSIX file name counts as a separator. The settings read has a 2 second deadline, and a read that is too slow is treated like an unreadable setting, so every new agent gets the tool. The workspace lookup has its own 2 second deadline, and a timeout there counts as no match. Either timeout logs one line, and a slow lookup never holds up agent creation. The check runs before the adapter, its credential or the supervisor are set up, so
|
|
192
192
|
an agent that is not allowed costs nothing. It applies to agents created after the setting is saved. A
|
|
193
193
|
setting that cannot be read or is invalid falls back to every new agent, and the plugin log gets one line
|
|
194
194
|
saying so. The settings screen reports an entry over 256 characters or a list over 200 entries instead of
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"name": "@omercnet/paseo-shared-browser",
|
|
9
9
|
"version": "4.1.12",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@getpaseo/plugin": "0.16.0
|
|
11
|
+
"@getpaseo/plugin": "0.16.0",
|
|
12
12
|
"@modelcontextprotocol/sdk": "1.32.2",
|
|
13
13
|
"agent-browser": "0.43.0",
|
|
14
14
|
"esbuild": "0.28.2",
|
|
@@ -545,22 +545,22 @@
|
|
|
545
545
|
}
|
|
546
546
|
},
|
|
547
547
|
"node_modules/@getpaseo/client": {
|
|
548
|
-
"version": "0.16.0
|
|
549
|
-
"resolved": "https://registry.npmjs.org/@getpaseo/client/-/client-0.16.0
|
|
550
|
-
"integrity": "sha512-
|
|
548
|
+
"version": "0.16.0",
|
|
549
|
+
"resolved": "https://registry.npmjs.org/@getpaseo/client/-/client-0.16.0.tgz",
|
|
550
|
+
"integrity": "sha512-J0ufRdEN33c55UAZF3BEG/d1v4iEBvHknAu4hFT0MXLZwmq17jL56XkOaKB5zBDKONpNU6O5ZSqRv4S0JEEhMg==",
|
|
551
551
|
"license": "Apache-2.0",
|
|
552
552
|
"peer": true,
|
|
553
553
|
"dependencies": {
|
|
554
|
-
"@getpaseo/protocol": "0.16.0
|
|
555
|
-
"@getpaseo/relay": "0.16.0
|
|
554
|
+
"@getpaseo/protocol": "0.16.0",
|
|
555
|
+
"@getpaseo/relay": "0.16.0",
|
|
556
556
|
"ws": "^8.20.0",
|
|
557
557
|
"zod": "^4.4.3"
|
|
558
558
|
}
|
|
559
559
|
},
|
|
560
560
|
"node_modules/@getpaseo/plugin": {
|
|
561
|
-
"version": "0.16.0
|
|
562
|
-
"resolved": "https://registry.npmjs.org/@getpaseo/plugin/-/plugin-0.16.0
|
|
563
|
-
"integrity": "sha512-
|
|
561
|
+
"version": "0.16.0",
|
|
562
|
+
"resolved": "https://registry.npmjs.org/@getpaseo/plugin/-/plugin-0.16.0.tgz",
|
|
563
|
+
"integrity": "sha512-tUpE5llA4KEYvGckdHT4bwslJxvJ2RthR7W6lY9SEc6G6jJCNpkpebqd2pjDo4hztGpaQd/jSBUxKrXSLJqw5A==",
|
|
564
564
|
"license": "Apache-2.0",
|
|
565
565
|
"dependencies": {
|
|
566
566
|
"@agentclientprotocol/sdk": "^1.4.0",
|
|
@@ -568,8 +568,8 @@
|
|
|
568
568
|
"use-sync-external-store": "^1.6.0"
|
|
569
569
|
},
|
|
570
570
|
"peerDependencies": {
|
|
571
|
-
"@getpaseo/client": "0.16.0
|
|
572
|
-
"@getpaseo/protocol": "0.16.0
|
|
571
|
+
"@getpaseo/client": "0.16.0",
|
|
572
|
+
"@getpaseo/protocol": "0.16.0",
|
|
573
573
|
"react": ">=19.1.0 <20",
|
|
574
574
|
"react-native": ">=0.81.5",
|
|
575
575
|
"zod": "^4.4.3"
|
|
@@ -581,9 +581,9 @@
|
|
|
581
581
|
}
|
|
582
582
|
},
|
|
583
583
|
"node_modules/@getpaseo/protocol": {
|
|
584
|
-
"version": "0.16.0
|
|
585
|
-
"resolved": "https://registry.npmjs.org/@getpaseo/protocol/-/protocol-0.16.0
|
|
586
|
-
"integrity": "sha512-
|
|
584
|
+
"version": "0.16.0",
|
|
585
|
+
"resolved": "https://registry.npmjs.org/@getpaseo/protocol/-/protocol-0.16.0.tgz",
|
|
586
|
+
"integrity": "sha512-kCfnli5PwqMRSjQ1xCN06Mtf4o+KTjPAxWEfLtSuchJFRR5m3yDkkL2EFqw5PZEcXk4H+dfsySrzkA9PNKUDmw==",
|
|
587
587
|
"license": "Apache-2.0",
|
|
588
588
|
"peer": true,
|
|
589
589
|
"dependencies": {
|
|
@@ -592,9 +592,9 @@
|
|
|
592
592
|
}
|
|
593
593
|
},
|
|
594
594
|
"node_modules/@getpaseo/relay": {
|
|
595
|
-
"version": "0.16.0
|
|
596
|
-
"resolved": "https://registry.npmjs.org/@getpaseo/relay/-/relay-0.16.0
|
|
597
|
-
"integrity": "sha512-
|
|
595
|
+
"version": "0.16.0",
|
|
596
|
+
"resolved": "https://registry.npmjs.org/@getpaseo/relay/-/relay-0.16.0.tgz",
|
|
597
|
+
"integrity": "sha512-lzzZXOIJ0KY9j3OQvzwKmSsw4IyBHmJ0gSqfouIg6AeSjgbQjU33ExpFqGnu5NC8iUtV0BP0x+aSnT/g63oSYQ==",
|
|
598
598
|
"license": "Apache-2.0",
|
|
599
599
|
"peer": true,
|
|
600
600
|
"dependencies": {
|
|
@@ -607,9 +607,9 @@
|
|
|
607
607
|
}
|
|
608
608
|
},
|
|
609
609
|
"node_modules/@hono/node-server": {
|
|
610
|
-
"version": "2.1.
|
|
611
|
-
"resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-2.1.
|
|
612
|
-
"integrity": "sha512-
|
|
610
|
+
"version": "2.1.9",
|
|
611
|
+
"resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-2.1.9.tgz",
|
|
612
|
+
"integrity": "sha512-Sk4NQd3GFY0WZWCzndwFMPwJhtD0y9qjsQ+pjID0/03nK9pxyBCUoUHCho8QYBLBVhi0ssL8UkNPHqbgSOFPIQ==",
|
|
613
613
|
"license": "MIT",
|
|
614
614
|
"engines": {
|
|
615
615
|
"node": ">=20"
|
|
@@ -1145,9 +1145,9 @@
|
|
|
1145
1145
|
}
|
|
1146
1146
|
},
|
|
1147
1147
|
"node_modules/express-rate-limit": {
|
|
1148
|
-
"version": "8.7.
|
|
1149
|
-
"resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-8.7.
|
|
1150
|
-
"integrity": "sha512-
|
|
1148
|
+
"version": "8.7.5",
|
|
1149
|
+
"resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-8.7.5.tgz",
|
|
1150
|
+
"integrity": "sha512-wi+v38cx2EqD0JnhE/e74o5tFqKWUOAPFJIgyEiqJ8v2MNpoOAA3kI2hXYOI+YM+HE5yqbdAlVxm2GqOIeYOgA==",
|
|
1151
1151
|
"license": "MIT",
|
|
1152
1152
|
"dependencies": {
|
|
1153
1153
|
"debug": "^4.4.3",
|
|
@@ -1320,9 +1320,9 @@
|
|
|
1320
1320
|
}
|
|
1321
1321
|
},
|
|
1322
1322
|
"node_modules/hono": {
|
|
1323
|
-
"version": "4.13.
|
|
1324
|
-
"resolved": "https://registry.npmjs.org/hono/-/hono-4.13.
|
|
1325
|
-
"integrity": "sha512-
|
|
1323
|
+
"version": "4.13.19",
|
|
1324
|
+
"resolved": "https://registry.npmjs.org/hono/-/hono-4.13.19.tgz",
|
|
1325
|
+
"integrity": "sha512-KmXvQAXwcAHV+muzbIwoJ23niEB5nMoDVr9WcRkU8mvjUECm/1+7v4Jgp7P7a+H6MLFrh+vXrGonGrGS+RQfkA==",
|
|
1326
1326
|
"license": "MIT",
|
|
1327
1327
|
"engines": {
|
|
1328
1328
|
"node": ">=16.9.0"
|
|
@@ -1429,9 +1429,9 @@
|
|
|
1429
1429
|
"license": "ISC"
|
|
1430
1430
|
},
|
|
1431
1431
|
"node_modules/jose": {
|
|
1432
|
-
"version": "6.2.
|
|
1433
|
-
"resolved": "https://registry.npmjs.org/jose/-/jose-6.2.
|
|
1434
|
-
"integrity": "sha512-
|
|
1432
|
+
"version": "6.2.18",
|
|
1433
|
+
"resolved": "https://registry.npmjs.org/jose/-/jose-6.2.18.tgz",
|
|
1434
|
+
"integrity": "sha512-doV4thUwgkrycJH4yLeqwTGIIZphHl+pk7CPReuMIhYhncmgzdko85MaCG4YQFTxqMFr1/oEH32tZuKKovcDEg==",
|
|
1435
1435
|
"license": "MIT",
|
|
1436
1436
|
"funding": {
|
|
1437
1437
|
"url": "https://github.com/sponsors/panva"
|
|
@@ -1553,9 +1553,9 @@
|
|
|
1553
1553
|
}
|
|
1554
1554
|
},
|
|
1555
1555
|
"node_modules/object-inspect": {
|
|
1556
|
-
"version": "1.
|
|
1557
|
-
"resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.
|
|
1558
|
-
"integrity": "sha512-
|
|
1556
|
+
"version": "1.14.0",
|
|
1557
|
+
"resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.14.0.tgz",
|
|
1558
|
+
"integrity": "sha512-IVgHNlp/jwQX271+Xzoq9LZNTWXxZK+cEOrGBOBxXNbn7fapnZ+Ts6TVMgNOuAezwG2wdtnMX97tTPK6VEnuOQ==",
|
|
1559
1559
|
"license": "MIT",
|
|
1560
1560
|
"engines": {
|
|
1561
1561
|
"node": ">= 0.4"
|
|
@@ -1707,9 +1707,9 @@
|
|
|
1707
1707
|
}
|
|
1708
1708
|
},
|
|
1709
1709
|
"node_modules/router": {
|
|
1710
|
-
"version": "2.
|
|
1711
|
-
"resolved": "https://registry.npmjs.org/router/-/router-2.
|
|
1712
|
-
"integrity": "sha512-
|
|
1710
|
+
"version": "2.3.0",
|
|
1711
|
+
"resolved": "https://registry.npmjs.org/router/-/router-2.3.0.tgz",
|
|
1712
|
+
"integrity": "sha512-bpowRfGjEPe8t9R6fJIzhwmyCGAXwKvxBUsgJm+bJukwdcWmUXbMo7p22w7aYmQBPQTUMNqMV39YX0kMou3z8w==",
|
|
1713
1713
|
"license": "MIT",
|
|
1714
1714
|
"dependencies": {
|
|
1715
1715
|
"debug": "^4.4.0",
|
|
@@ -1720,6 +1720,10 @@
|
|
|
1720
1720
|
},
|
|
1721
1721
|
"engines": {
|
|
1722
1722
|
"node": ">= 18"
|
|
1723
|
+
},
|
|
1724
|
+
"funding": {
|
|
1725
|
+
"type": "opencollective",
|
|
1726
|
+
"url": "https://opencollective.com/express"
|
|
1723
1727
|
}
|
|
1724
1728
|
},
|
|
1725
1729
|
"node_modules/safer-buffer": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omercnet/paseo-shared-browser",
|
|
3
|
-
"version": "4.1.12-next.
|
|
3
|
+
"version": "4.1.12-next.524.1",
|
|
4
4
|
"description": "One real Chromium session per Paseo workspace, shared live across every connected client.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"browser",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"test:video": "vitest run tests/video.smoke.test.ts --testTimeout=30000"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@getpaseo/plugin": "0.16.0
|
|
60
|
+
"@getpaseo/plugin": "0.16.0",
|
|
61
61
|
"@modelcontextprotocol/sdk": "1.32.2",
|
|
62
62
|
"agent-browser": "0.43.0",
|
|
63
63
|
"esbuild": "0.28.2",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@biomejs/biome": "^2.5.10",
|
|
68
|
-
"@getpaseo/server": "0.16.0
|
|
68
|
+
"@getpaseo/server": "0.16.0",
|
|
69
69
|
"@tanstack/react-query": "^5.102.3",
|
|
70
70
|
"@types/node": "^24.10.1",
|
|
71
71
|
"@types/react": "^19.2.18",
|
package/server/supervisor.ts
CHANGED
|
@@ -661,6 +661,7 @@ export class RuntimeSupervisor<Runtime extends RuntimeInstance = RuntimeInstance
|
|
|
661
661
|
tickets.delete(oldest);
|
|
662
662
|
const dropped = this.agentBindings.get(oldest);
|
|
663
663
|
this.agentBindings.delete(oldest);
|
|
664
|
+
console.warn("[shared-browser] agent ticket cap reached; dropped the oldest bound ticket");
|
|
664
665
|
if (dropped?.viewerToken) void this.browserPolicy.detach(dropped.viewerToken).catch(() => {});
|
|
665
666
|
}
|
|
666
667
|
return { bound: true };
|
package/shared/agent-access.ts
CHANGED
|
@@ -104,6 +104,7 @@ export function workspacesForDirectory(
|
|
|
104
104
|
workspaces: readonly WorkspaceRef[],
|
|
105
105
|
): WorkspaceRef[] {
|
|
106
106
|
const target = normalizeDirectory(cwd);
|
|
107
|
+
// Early exit only: a relative target can never equal or sit under an absolute workspace directory, so the loop below would find nothing.
|
|
107
108
|
if (!isAbsoluteDirectory(target)) return [];
|
|
108
109
|
let depth = -1;
|
|
109
110
|
let found: WorkspaceRef[] = [];
|