@omercnet/paseo-omp 0.4.0-next.138.1 → 0.4.0-next.146.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 +1 -1
- package/client/external-url.ts +2 -11
- package/index.client.tsx +21 -2
- package/package.json +2 -2
- package/paseo-plugin.json +2 -1
- package/server/package-version.ts +1 -1
- package/shared/external-url.ts +0 -9
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ before capture.
|
|
|
20
20
|
|
|
21
21
|
## Quick start
|
|
22
22
|
|
|
23
|
-
Requirements: Paseo
|
|
23
|
+
Requirements: Paseo `^0.9.0`, OMP `18.1.15` or newer, and OMP RPC protocol v2. Paseo 0.9 is required for the Help report's supported copy and external-link APIs, nested provider-subagent ancestry, spawning-tool links, npm-managed installation, and the complete client integration.
|
|
24
24
|
|
|
25
25
|
```bash
|
|
26
26
|
paseo plugin install npm:@omercnet/paseo-omp@<version>
|
package/client/external-url.ts
CHANGED
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { selectExternalUrlOpener, validatedHttpUrl } from "../shared/external-url";
|
|
4
|
-
|
|
5
|
-
const paseoOpenExternalUrl =
|
|
6
|
-
"openExternalUrl" in paseoClient && typeof paseoClient.openExternalUrl === "function"
|
|
7
|
-
? paseoClient.openExternalUrl
|
|
8
|
-
: undefined;
|
|
9
|
-
const openExternalUrl = selectExternalUrlOpener(paseoOpenExternalUrl, (url) =>
|
|
10
|
-
Linking.openURL(url),
|
|
11
|
-
);
|
|
1
|
+
import { openExternalUrl } from "@getpaseo/plugin/client";
|
|
2
|
+
import { validatedHttpUrl } from "../shared/external-url";
|
|
12
3
|
|
|
13
4
|
export function openOmpExternalUrl(url: string): Promise<void> {
|
|
14
5
|
return openExternalUrl(validatedHttpUrl(url));
|
package/index.client.tsx
CHANGED
|
@@ -452,7 +452,25 @@ export default function contribute(client: PluginClientContext) {
|
|
|
452
452
|
}, RECONCILE_DEBOUNCE_MS);
|
|
453
453
|
}
|
|
454
454
|
|
|
455
|
-
|
|
455
|
+
let unsubscribeAgentDirectory = () => {};
|
|
456
|
+
let releaseAgentDirectory: (() => Promise<void>) | undefined;
|
|
457
|
+
void client.paseo.agents
|
|
458
|
+
.list({ subscribe: {} })
|
|
459
|
+
.then(({ subscription }) => {
|
|
460
|
+
if (!subscription) return;
|
|
461
|
+
if (disposed) {
|
|
462
|
+
void subscription.release().catch(() => {});
|
|
463
|
+
return;
|
|
464
|
+
}
|
|
465
|
+
unsubscribeAgentDirectory = subscription.subscribe({
|
|
466
|
+
snapshot: scheduleReconcile,
|
|
467
|
+
update: scheduleReconcile,
|
|
468
|
+
error: () => {},
|
|
469
|
+
});
|
|
470
|
+
releaseAgentDirectory = () => subscription.release();
|
|
471
|
+
void subscription.ready.catch(() => {});
|
|
472
|
+
})
|
|
473
|
+
.catch(() => {});
|
|
456
474
|
const hubPoll = setInterval(() => {
|
|
457
475
|
void refreshHubStatus();
|
|
458
476
|
}, STATUS_POLL_MS);
|
|
@@ -467,7 +485,8 @@ export default function contribute(client: PluginClientContext) {
|
|
|
467
485
|
return () => {
|
|
468
486
|
disposed = true;
|
|
469
487
|
settingsGeneration += 1;
|
|
470
|
-
|
|
488
|
+
unsubscribeAgentDirectory();
|
|
489
|
+
if (releaseAgentDirectory) void releaseAgentDirectory().catch(() => {});
|
|
471
490
|
clearTimeout(reconcileTimer);
|
|
472
491
|
clearInterval(hubPoll);
|
|
473
492
|
clearInterval(quotaPoll);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omercnet/paseo-omp",
|
|
3
|
-
"version": "0.4.0-next.
|
|
3
|
+
"version": "0.4.0-next.146.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Paseo integration for OMP, including its direct provider and workspace tooling.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"test:integration:wsl": "node --import tsx scripts/test-wsl-host-tools.ts",
|
|
49
49
|
"test:integration:canary": "node --import tsx scripts/test-canary.ts",
|
|
50
50
|
"test:integration:install": "node --import tsx scripts/test-package-install.ts",
|
|
51
|
-
"typecheck": "tsc --noEmit"
|
|
51
|
+
"typecheck": "tsc --noEmit -p tsconfig.client.json && tsc --noEmit -p tsconfig.server.json && tsc --noEmit -p tsconfig.tests.json"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@getpaseo/protocol": "0.9.0",
|
package/paseo-plugin.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "paseo-omp",
|
|
3
|
-
"
|
|
3
|
+
"description": "Paseo integration for OMP, including its direct provider and workspace tooling.",
|
|
4
|
+
"requirements": { "paseo": "^0.9.0" },
|
|
4
5
|
"build": [["node", "scripts/prepare-dependencies.mjs"]]
|
|
5
6
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** Release Please keeps this bundle-safe constant aligned with package.json. */
|
|
2
|
-
export const PASEO_OMP_PACKAGE_VERSION = "0.4.0-next.
|
|
2
|
+
export const PASEO_OMP_PACKAGE_VERSION = "0.4.0-next.146.1"; // x-release-please-version
|
package/shared/external-url.ts
CHANGED
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
export type ExternalUrlOpener = (url: string) => Promise<void>;
|
|
2
|
-
|
|
3
|
-
export function selectExternalUrlOpener(
|
|
4
|
-
paseoOpener: ExternalUrlOpener | undefined,
|
|
5
|
-
fallback: ExternalUrlOpener,
|
|
6
|
-
): ExternalUrlOpener {
|
|
7
|
-
return paseoOpener ?? fallback;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
1
|
export function validatedHttpUrl(value: string): string {
|
|
11
2
|
let url: URL;
|
|
12
3
|
try {
|