@scitrera/aether-client 0.1.60 → 0.2.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 +20 -12
- package/dist/index.cjs +103 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +19 -19
- package/dist/index.d.ts +19 -19
- package/dist/index.js +103 -15
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -321,7 +321,7 @@ interface KVDecrementIfOptions {
|
|
|
321
321
|
}
|
|
322
322
|
/**
|
|
323
323
|
* A progress update received from an agent or task.
|
|
324
|
-
* Delivered via the pg
|
|
324
|
+
* Delivered via the pg::{workspace} RabbitMQ stream with server-side filtering.
|
|
325
325
|
*/
|
|
326
326
|
interface ProgressUpdate {
|
|
327
327
|
/** The identity of the reporting agent/task (topic format). */
|
|
@@ -1812,7 +1812,7 @@ declare class AetherClient {
|
|
|
1812
1812
|
/**
|
|
1813
1813
|
* Registers a handler for progress updates from agents/tasks.
|
|
1814
1814
|
*
|
|
1815
|
-
* Progress updates are delivered via the pg
|
|
1815
|
+
* Progress updates are delivered via the pg::{workspace} stream with
|
|
1816
1816
|
* server-side recipient filtering.
|
|
1817
1817
|
*
|
|
1818
1818
|
* @param handler - Function called when a progress update is received
|
|
@@ -1978,7 +1978,7 @@ declare class AetherClient {
|
|
|
1978
1978
|
/**
|
|
1979
1979
|
* Reports progress for a task through the Aether gateway.
|
|
1980
1980
|
*
|
|
1981
|
-
* Progress updates are routed through RabbitMQ Streams via the pg
|
|
1981
|
+
* Progress updates are routed through RabbitMQ Streams via the pg::{workspace}
|
|
1982
1982
|
* topic with server-side recipient filtering.
|
|
1983
1983
|
*
|
|
1984
1984
|
* @param opts - Progress report options
|
|
@@ -2840,7 +2840,7 @@ declare class AgentClient extends AetherClient {
|
|
|
2840
2840
|
/**
|
|
2841
2841
|
* Returns this agent's topic address.
|
|
2842
2842
|
*
|
|
2843
|
-
* Format: ag
|
|
2843
|
+
* Format: ag::{workspace}::{implementation}::{specifier}
|
|
2844
2844
|
*/
|
|
2845
2845
|
get topic(): string;
|
|
2846
2846
|
/** @internal */
|
|
@@ -2868,8 +2868,8 @@ declare class AgentClient extends AetherClient {
|
|
|
2868
2868
|
/**
|
|
2869
2869
|
* Sends a message to a specific task.
|
|
2870
2870
|
*
|
|
2871
|
-
* For unique tasks (with specifier), uses tu
|
|
2872
|
-
* For non-unique tasks (empty specifier), uses tb
|
|
2871
|
+
* For unique tasks (with specifier), uses tu::{workspace}::{impl}::{spec} topic.
|
|
2872
|
+
* For non-unique tasks (empty specifier), uses tb::{workspace}::{impl} broadcast topic.
|
|
2873
2873
|
*
|
|
2874
2874
|
* @param workspace - Target task's workspace
|
|
2875
2875
|
* @param implementation - Target task's implementation type
|
|
@@ -2979,10 +2979,10 @@ interface TaskClientOptions extends AetherClientOptions {
|
|
|
2979
2979
|
*
|
|
2980
2980
|
* Tasks come in two flavors:
|
|
2981
2981
|
* - **Unique tasks** (with specifier): Persistent identity like agents,
|
|
2982
|
-
* only one connection at a time. Topic: tu
|
|
2982
|
+
* only one connection at a time. Topic: tu::{workspace}::{impl}::{spec}
|
|
2983
2983
|
* - **Non-unique tasks** (empty specifier): Server-assigned ID, multiple
|
|
2984
|
-
* instances allowed. Subscribe to both ta
|
|
2985
|
-
* the shared tb
|
|
2984
|
+
* instances allowed. Subscribe to both ta::{workspace}::{impl}::{id} and
|
|
2985
|
+
* the shared tb::{workspace}::{impl} broadcast for work claiming.
|
|
2986
2986
|
*
|
|
2987
2987
|
* @example
|
|
2988
2988
|
* ```typescript
|
|
@@ -3014,8 +3014,8 @@ declare class TaskClient extends AetherClient {
|
|
|
3014
3014
|
get isUnique(): boolean;
|
|
3015
3015
|
/**
|
|
3016
3016
|
* Returns this task's topic address.
|
|
3017
|
-
* For unique tasks: tu
|
|
3018
|
-
* For non-unique tasks: returns the broadcast topic tb
|
|
3017
|
+
* For unique tasks: tu::{workspace}::{impl}::{spec}
|
|
3018
|
+
* For non-unique tasks: returns the broadcast topic tb::{workspace}::{impl}
|
|
3019
3019
|
* (the actual instance topic is assigned by the server).
|
|
3020
3020
|
*/
|
|
3021
3021
|
get topic(): string;
|
|
@@ -3143,13 +3143,13 @@ declare class UserClient extends AetherClient {
|
|
|
3143
3143
|
/**
|
|
3144
3144
|
* Returns this user's topic address.
|
|
3145
3145
|
*
|
|
3146
|
-
* Format: us
|
|
3146
|
+
* Format: us::{userId}::{windowId}
|
|
3147
3147
|
*/
|
|
3148
3148
|
get topic(): string;
|
|
3149
3149
|
/**
|
|
3150
3150
|
* Returns this user's workspace-scoped topic address.
|
|
3151
3151
|
*
|
|
3152
|
-
* Format: uw
|
|
3152
|
+
* Format: uw::{userId}::{workspace}
|
|
3153
3153
|
*
|
|
3154
3154
|
* Returns empty string if no workspace is set.
|
|
3155
3155
|
*/
|
|
@@ -3187,8 +3187,8 @@ declare class UserClient extends AetherClient {
|
|
|
3187
3187
|
/**
|
|
3188
3188
|
* Sends a message to a specific task.
|
|
3189
3189
|
*
|
|
3190
|
-
* For unique tasks (with specifier), uses tu
|
|
3191
|
-
* For non-unique tasks (empty specifier), uses tb
|
|
3190
|
+
* For unique tasks (with specifier), uses tu::{workspace}::{impl}::{spec} topic.
|
|
3191
|
+
* For non-unique tasks (empty specifier), uses tb::{workspace}::{impl} broadcast topic.
|
|
3192
3192
|
*
|
|
3193
3193
|
* @param workspace - Target task's workspace
|
|
3194
3194
|
* @param implementation - Target task's implementation type
|
|
@@ -3609,7 +3609,7 @@ interface BridgeClientOptions extends AetherClientOptions {
|
|
|
3609
3609
|
* - Identity management (implementation, specifier)
|
|
3610
3610
|
* - Messaging helpers to any workspace (sendToAgent, sendToUser, sendToTask, broadcast)
|
|
3611
3611
|
*
|
|
3612
|
-
* Topic format: br
|
|
3612
|
+
* Topic format: br::{implementation}::{specifier}
|
|
3613
3613
|
*
|
|
3614
3614
|
* @example
|
|
3615
3615
|
* ```typescript
|
|
@@ -3650,7 +3650,7 @@ declare class BridgeClient extends AetherClient {
|
|
|
3650
3650
|
/**
|
|
3651
3651
|
* Returns this bridge's topic address.
|
|
3652
3652
|
*
|
|
3653
|
-
* Format: br
|
|
3653
|
+
* Format: br::{implementation}::{specifier}
|
|
3654
3654
|
*/
|
|
3655
3655
|
get topic(): string;
|
|
3656
3656
|
/** @internal */
|
|
@@ -3668,8 +3668,8 @@ declare class BridgeClient extends AetherClient {
|
|
|
3668
3668
|
/**
|
|
3669
3669
|
* Sends a message to a specific task in any workspace.
|
|
3670
3670
|
*
|
|
3671
|
-
* For unique tasks (with specifier), uses tu
|
|
3672
|
-
* For non-unique tasks (empty specifier), uses tb
|
|
3671
|
+
* For unique tasks (with specifier), uses tu::{workspace}::{impl}::{spec} topic.
|
|
3672
|
+
* For non-unique tasks (empty specifier), uses tb::{workspace}::{impl} broadcast topic.
|
|
3673
3673
|
*
|
|
3674
3674
|
* @param workspace - Target task's workspace
|
|
3675
3675
|
* @param implementation - Target task's implementation type
|
package/dist/index.d.ts
CHANGED
|
@@ -321,7 +321,7 @@ interface KVDecrementIfOptions {
|
|
|
321
321
|
}
|
|
322
322
|
/**
|
|
323
323
|
* A progress update received from an agent or task.
|
|
324
|
-
* Delivered via the pg
|
|
324
|
+
* Delivered via the pg::{workspace} RabbitMQ stream with server-side filtering.
|
|
325
325
|
*/
|
|
326
326
|
interface ProgressUpdate {
|
|
327
327
|
/** The identity of the reporting agent/task (topic format). */
|
|
@@ -1812,7 +1812,7 @@ declare class AetherClient {
|
|
|
1812
1812
|
/**
|
|
1813
1813
|
* Registers a handler for progress updates from agents/tasks.
|
|
1814
1814
|
*
|
|
1815
|
-
* Progress updates are delivered via the pg
|
|
1815
|
+
* Progress updates are delivered via the pg::{workspace} stream with
|
|
1816
1816
|
* server-side recipient filtering.
|
|
1817
1817
|
*
|
|
1818
1818
|
* @param handler - Function called when a progress update is received
|
|
@@ -1978,7 +1978,7 @@ declare class AetherClient {
|
|
|
1978
1978
|
/**
|
|
1979
1979
|
* Reports progress for a task through the Aether gateway.
|
|
1980
1980
|
*
|
|
1981
|
-
* Progress updates are routed through RabbitMQ Streams via the pg
|
|
1981
|
+
* Progress updates are routed through RabbitMQ Streams via the pg::{workspace}
|
|
1982
1982
|
* topic with server-side recipient filtering.
|
|
1983
1983
|
*
|
|
1984
1984
|
* @param opts - Progress report options
|
|
@@ -2840,7 +2840,7 @@ declare class AgentClient extends AetherClient {
|
|
|
2840
2840
|
/**
|
|
2841
2841
|
* Returns this agent's topic address.
|
|
2842
2842
|
*
|
|
2843
|
-
* Format: ag
|
|
2843
|
+
* Format: ag::{workspace}::{implementation}::{specifier}
|
|
2844
2844
|
*/
|
|
2845
2845
|
get topic(): string;
|
|
2846
2846
|
/** @internal */
|
|
@@ -2868,8 +2868,8 @@ declare class AgentClient extends AetherClient {
|
|
|
2868
2868
|
/**
|
|
2869
2869
|
* Sends a message to a specific task.
|
|
2870
2870
|
*
|
|
2871
|
-
* For unique tasks (with specifier), uses tu
|
|
2872
|
-
* For non-unique tasks (empty specifier), uses tb
|
|
2871
|
+
* For unique tasks (with specifier), uses tu::{workspace}::{impl}::{spec} topic.
|
|
2872
|
+
* For non-unique tasks (empty specifier), uses tb::{workspace}::{impl} broadcast topic.
|
|
2873
2873
|
*
|
|
2874
2874
|
* @param workspace - Target task's workspace
|
|
2875
2875
|
* @param implementation - Target task's implementation type
|
|
@@ -2979,10 +2979,10 @@ interface TaskClientOptions extends AetherClientOptions {
|
|
|
2979
2979
|
*
|
|
2980
2980
|
* Tasks come in two flavors:
|
|
2981
2981
|
* - **Unique tasks** (with specifier): Persistent identity like agents,
|
|
2982
|
-
* only one connection at a time. Topic: tu
|
|
2982
|
+
* only one connection at a time. Topic: tu::{workspace}::{impl}::{spec}
|
|
2983
2983
|
* - **Non-unique tasks** (empty specifier): Server-assigned ID, multiple
|
|
2984
|
-
* instances allowed. Subscribe to both ta
|
|
2985
|
-
* the shared tb
|
|
2984
|
+
* instances allowed. Subscribe to both ta::{workspace}::{impl}::{id} and
|
|
2985
|
+
* the shared tb::{workspace}::{impl} broadcast for work claiming.
|
|
2986
2986
|
*
|
|
2987
2987
|
* @example
|
|
2988
2988
|
* ```typescript
|
|
@@ -3014,8 +3014,8 @@ declare class TaskClient extends AetherClient {
|
|
|
3014
3014
|
get isUnique(): boolean;
|
|
3015
3015
|
/**
|
|
3016
3016
|
* Returns this task's topic address.
|
|
3017
|
-
* For unique tasks: tu
|
|
3018
|
-
* For non-unique tasks: returns the broadcast topic tb
|
|
3017
|
+
* For unique tasks: tu::{workspace}::{impl}::{spec}
|
|
3018
|
+
* For non-unique tasks: returns the broadcast topic tb::{workspace}::{impl}
|
|
3019
3019
|
* (the actual instance topic is assigned by the server).
|
|
3020
3020
|
*/
|
|
3021
3021
|
get topic(): string;
|
|
@@ -3143,13 +3143,13 @@ declare class UserClient extends AetherClient {
|
|
|
3143
3143
|
/**
|
|
3144
3144
|
* Returns this user's topic address.
|
|
3145
3145
|
*
|
|
3146
|
-
* Format: us
|
|
3146
|
+
* Format: us::{userId}::{windowId}
|
|
3147
3147
|
*/
|
|
3148
3148
|
get topic(): string;
|
|
3149
3149
|
/**
|
|
3150
3150
|
* Returns this user's workspace-scoped topic address.
|
|
3151
3151
|
*
|
|
3152
|
-
* Format: uw
|
|
3152
|
+
* Format: uw::{userId}::{workspace}
|
|
3153
3153
|
*
|
|
3154
3154
|
* Returns empty string if no workspace is set.
|
|
3155
3155
|
*/
|
|
@@ -3187,8 +3187,8 @@ declare class UserClient extends AetherClient {
|
|
|
3187
3187
|
/**
|
|
3188
3188
|
* Sends a message to a specific task.
|
|
3189
3189
|
*
|
|
3190
|
-
* For unique tasks (with specifier), uses tu
|
|
3191
|
-
* For non-unique tasks (empty specifier), uses tb
|
|
3190
|
+
* For unique tasks (with specifier), uses tu::{workspace}::{impl}::{spec} topic.
|
|
3191
|
+
* For non-unique tasks (empty specifier), uses tb::{workspace}::{impl} broadcast topic.
|
|
3192
3192
|
*
|
|
3193
3193
|
* @param workspace - Target task's workspace
|
|
3194
3194
|
* @param implementation - Target task's implementation type
|
|
@@ -3609,7 +3609,7 @@ interface BridgeClientOptions extends AetherClientOptions {
|
|
|
3609
3609
|
* - Identity management (implementation, specifier)
|
|
3610
3610
|
* - Messaging helpers to any workspace (sendToAgent, sendToUser, sendToTask, broadcast)
|
|
3611
3611
|
*
|
|
3612
|
-
* Topic format: br
|
|
3612
|
+
* Topic format: br::{implementation}::{specifier}
|
|
3613
3613
|
*
|
|
3614
3614
|
* @example
|
|
3615
3615
|
* ```typescript
|
|
@@ -3650,7 +3650,7 @@ declare class BridgeClient extends AetherClient {
|
|
|
3650
3650
|
/**
|
|
3651
3651
|
* Returns this bridge's topic address.
|
|
3652
3652
|
*
|
|
3653
|
-
* Format: br
|
|
3653
|
+
* Format: br::{implementation}::{specifier}
|
|
3654
3654
|
*/
|
|
3655
3655
|
get topic(): string;
|
|
3656
3656
|
/** @internal */
|
|
@@ -3668,8 +3668,8 @@ declare class BridgeClient extends AetherClient {
|
|
|
3668
3668
|
/**
|
|
3669
3669
|
* Sends a message to a specific task in any workspace.
|
|
3670
3670
|
*
|
|
3671
|
-
* For unique tasks (with specifier), uses tu
|
|
3672
|
-
* For non-unique tasks (empty specifier), uses tb
|
|
3671
|
+
* For unique tasks (with specifier), uses tu::{workspace}::{impl}::{spec} topic.
|
|
3672
|
+
* For non-unique tasks (empty specifier), uses tb::{workspace}::{impl} broadcast topic.
|
|
3673
3673
|
*
|
|
3674
3674
|
* @param workspace - Target task's workspace
|
|
3675
3675
|
* @param implementation - Target task's implementation type
|
package/dist/index.js
CHANGED
|
@@ -1340,6 +1340,94 @@ function extractGrant(response) {
|
|
|
1340
1340
|
return grant;
|
|
1341
1341
|
}
|
|
1342
1342
|
|
|
1343
|
+
// package.json
|
|
1344
|
+
var package_default = {
|
|
1345
|
+
name: "@scitrera/aether-client",
|
|
1346
|
+
version: "0.2.1",
|
|
1347
|
+
description: "TypeScript/JavaScript SDK for the Aether distributed control plane",
|
|
1348
|
+
license: "Apache-2.0",
|
|
1349
|
+
author: "scitrera.ai",
|
|
1350
|
+
homepage: "https://memorylayer.ai",
|
|
1351
|
+
repository: {
|
|
1352
|
+
type: "git",
|
|
1353
|
+
url: "https://github.com/scitrera/aether",
|
|
1354
|
+
directory: "sdk/typescript"
|
|
1355
|
+
},
|
|
1356
|
+
type: "module",
|
|
1357
|
+
main: "./dist/index.cjs",
|
|
1358
|
+
module: "./dist/index.js",
|
|
1359
|
+
types: "./dist/index.d.ts",
|
|
1360
|
+
exports: {
|
|
1361
|
+
".": {
|
|
1362
|
+
import: {
|
|
1363
|
+
types: "./dist/index.d.ts",
|
|
1364
|
+
default: "./dist/index.js"
|
|
1365
|
+
},
|
|
1366
|
+
require: {
|
|
1367
|
+
types: "./dist/index.d.cts",
|
|
1368
|
+
default: "./dist/index.cjs"
|
|
1369
|
+
}
|
|
1370
|
+
}
|
|
1371
|
+
},
|
|
1372
|
+
files: [
|
|
1373
|
+
"dist",
|
|
1374
|
+
"README.md"
|
|
1375
|
+
],
|
|
1376
|
+
scripts: {
|
|
1377
|
+
build: "tsup",
|
|
1378
|
+
test: "vitest run",
|
|
1379
|
+
"test:watch": "vitest",
|
|
1380
|
+
typecheck: "tsc --noEmit",
|
|
1381
|
+
lint: "tsc --noEmit",
|
|
1382
|
+
clean: "rm -rf dist"
|
|
1383
|
+
},
|
|
1384
|
+
dependencies: {
|
|
1385
|
+
"@grpc/grpc-js": "1.14.3",
|
|
1386
|
+
"@grpc/proto-loader": "0.8.1"
|
|
1387
|
+
},
|
|
1388
|
+
devDependencies: {
|
|
1389
|
+
typescript: "^5.4.0",
|
|
1390
|
+
tsup: "^8.0.0",
|
|
1391
|
+
vitest: "^1.4.0"
|
|
1392
|
+
},
|
|
1393
|
+
engines: {
|
|
1394
|
+
node: ">=18.0.0"
|
|
1395
|
+
},
|
|
1396
|
+
keywords: [
|
|
1397
|
+
"aether",
|
|
1398
|
+
"scitrera",
|
|
1399
|
+
"grpc",
|
|
1400
|
+
"distributed",
|
|
1401
|
+
"control-plane",
|
|
1402
|
+
"messaging"
|
|
1403
|
+
]
|
|
1404
|
+
};
|
|
1405
|
+
|
|
1406
|
+
// src/version-meta.ts
|
|
1407
|
+
var CLIENT_SDK_NAME = "ts";
|
|
1408
|
+
var cachedMeta;
|
|
1409
|
+
function clientVersionMeta() {
|
|
1410
|
+
if (cachedMeta !== void 0) {
|
|
1411
|
+
return cachedMeta;
|
|
1412
|
+
}
|
|
1413
|
+
const version = package_default.version ?? "unknown";
|
|
1414
|
+
let runtime = "unknown";
|
|
1415
|
+
let os = "unknown";
|
|
1416
|
+
if (typeof process !== "undefined" && process.versions && process.versions.node) {
|
|
1417
|
+
runtime = `node${process.versions.node}`;
|
|
1418
|
+
os = `${process.platform}/${process.arch}`;
|
|
1419
|
+
} else if (typeof navigator !== "undefined") {
|
|
1420
|
+
runtime = "browser";
|
|
1421
|
+
os = navigator.userAgent ?? "browser";
|
|
1422
|
+
}
|
|
1423
|
+
cachedMeta = {
|
|
1424
|
+
clientVersion: version,
|
|
1425
|
+
clientSdk: CLIENT_SDK_NAME,
|
|
1426
|
+
clientBuildInfo: { runtime, os }
|
|
1427
|
+
};
|
|
1428
|
+
return cachedMeta;
|
|
1429
|
+
}
|
|
1430
|
+
|
|
1343
1431
|
// src/client.ts
|
|
1344
1432
|
var DEFAULT_CONNECTION = {
|
|
1345
1433
|
maxRetries: 5,
|
|
@@ -1722,7 +1810,7 @@ var AetherClient = class {
|
|
|
1722
1810
|
/**
|
|
1723
1811
|
* Registers a handler for progress updates from agents/tasks.
|
|
1724
1812
|
*
|
|
1725
|
-
* Progress updates are delivered via the pg
|
|
1813
|
+
* Progress updates are delivered via the pg::{workspace} stream with
|
|
1726
1814
|
* server-side recipient filtering.
|
|
1727
1815
|
*
|
|
1728
1816
|
* @param handler - Function called when a progress update is received
|
|
@@ -1960,7 +2048,7 @@ var AetherClient = class {
|
|
|
1960
2048
|
stream.on("end", () => {
|
|
1961
2049
|
this._handleStreamEnd();
|
|
1962
2050
|
});
|
|
1963
|
-
const initMsg = this._buildInitMessage();
|
|
2051
|
+
const initMsg = { ...clientVersionMeta(), ...this._buildInitMessage() };
|
|
1964
2052
|
stream.write({ init: initMsg });
|
|
1965
2053
|
} catch (err) {
|
|
1966
2054
|
if (err instanceof ConnectionError) {
|
|
@@ -2625,7 +2713,7 @@ var AetherClient = class {
|
|
|
2625
2713
|
/**
|
|
2626
2714
|
* Reports progress for a task through the Aether gateway.
|
|
2627
2715
|
*
|
|
2628
|
-
* Progress updates are routed through RabbitMQ Streams via the pg
|
|
2716
|
+
* Progress updates are routed through RabbitMQ Streams via the pg::{workspace}
|
|
2629
2717
|
* topic with server-side recipient filtering.
|
|
2630
2718
|
*
|
|
2631
2719
|
* @param opts - Progress report options
|
|
@@ -3817,7 +3905,7 @@ var AgentClient = class extends AetherClient {
|
|
|
3817
3905
|
/**
|
|
3818
3906
|
* Returns this agent's topic address.
|
|
3819
3907
|
*
|
|
3820
|
-
* Format: ag
|
|
3908
|
+
* Format: ag::{workspace}::{implementation}::{specifier}
|
|
3821
3909
|
*/
|
|
3822
3910
|
get topic() {
|
|
3823
3911
|
return agentTopic(this._workspace, this._implementation, this._specifier);
|
|
@@ -3879,8 +3967,8 @@ var AgentClient = class extends AetherClient {
|
|
|
3879
3967
|
/**
|
|
3880
3968
|
* Sends a message to a specific task.
|
|
3881
3969
|
*
|
|
3882
|
-
* For unique tasks (with specifier), uses tu
|
|
3883
|
-
* For non-unique tasks (empty specifier), uses tb
|
|
3970
|
+
* For unique tasks (with specifier), uses tu::{workspace}::{impl}::{spec} topic.
|
|
3971
|
+
* For non-unique tasks (empty specifier), uses tb::{workspace}::{impl} broadcast topic.
|
|
3884
3972
|
*
|
|
3885
3973
|
* @param workspace - Target task's workspace
|
|
3886
3974
|
* @param implementation - Target task's implementation type
|
|
@@ -4071,8 +4159,8 @@ var TaskClient = class extends AetherClient {
|
|
|
4071
4159
|
}
|
|
4072
4160
|
/**
|
|
4073
4161
|
* Returns this task's topic address.
|
|
4074
|
-
* For unique tasks: tu
|
|
4075
|
-
* For non-unique tasks: returns the broadcast topic tb
|
|
4162
|
+
* For unique tasks: tu::{workspace}::{impl}::{spec}
|
|
4163
|
+
* For non-unique tasks: returns the broadcast topic tb::{workspace}::{impl}
|
|
4076
4164
|
* (the actual instance topic is assigned by the server).
|
|
4077
4165
|
*/
|
|
4078
4166
|
get topic() {
|
|
@@ -4234,7 +4322,7 @@ var UserClient = class extends AetherClient {
|
|
|
4234
4322
|
/**
|
|
4235
4323
|
* Returns this user's topic address.
|
|
4236
4324
|
*
|
|
4237
|
-
* Format: us
|
|
4325
|
+
* Format: us::{userId}::{windowId}
|
|
4238
4326
|
*/
|
|
4239
4327
|
get topic() {
|
|
4240
4328
|
return userTopic(this._userId, this._windowId);
|
|
@@ -4242,7 +4330,7 @@ var UserClient = class extends AetherClient {
|
|
|
4242
4330
|
/**
|
|
4243
4331
|
* Returns this user's workspace-scoped topic address.
|
|
4244
4332
|
*
|
|
4245
|
-
* Format: uw
|
|
4333
|
+
* Format: uw::{userId}::{workspace}
|
|
4246
4334
|
*
|
|
4247
4335
|
* Returns empty string if no workspace is set.
|
|
4248
4336
|
*/
|
|
@@ -4316,8 +4404,8 @@ var UserClient = class extends AetherClient {
|
|
|
4316
4404
|
/**
|
|
4317
4405
|
* Sends a message to a specific task.
|
|
4318
4406
|
*
|
|
4319
|
-
* For unique tasks (with specifier), uses tu
|
|
4320
|
-
* For non-unique tasks (empty specifier), uses tb
|
|
4407
|
+
* For unique tasks (with specifier), uses tu::{workspace}::{impl}::{spec} topic.
|
|
4408
|
+
* For non-unique tasks (empty specifier), uses tb::{workspace}::{impl} broadcast topic.
|
|
4321
4409
|
*
|
|
4322
4410
|
* @param workspace - Target task's workspace
|
|
4323
4411
|
* @param implementation - Target task's implementation type
|
|
@@ -4800,7 +4888,7 @@ var BridgeClient = class extends AetherClient {
|
|
|
4800
4888
|
/**
|
|
4801
4889
|
* Returns this bridge's topic address.
|
|
4802
4890
|
*
|
|
4803
|
-
* Format: br
|
|
4891
|
+
* Format: br::{implementation}::{specifier}
|
|
4804
4892
|
*/
|
|
4805
4893
|
get topic() {
|
|
4806
4894
|
return bridgeTopic(this._implementation, this._specifier);
|
|
@@ -4837,8 +4925,8 @@ var BridgeClient = class extends AetherClient {
|
|
|
4837
4925
|
/**
|
|
4838
4926
|
* Sends a message to a specific task in any workspace.
|
|
4839
4927
|
*
|
|
4840
|
-
* For unique tasks (with specifier), uses tu
|
|
4841
|
-
* For non-unique tasks (empty specifier), uses tb
|
|
4928
|
+
* For unique tasks (with specifier), uses tu::{workspace}::{impl}::{spec} topic.
|
|
4929
|
+
* For non-unique tasks (empty specifier), uses tb::{workspace}::{impl} broadcast topic.
|
|
4842
4930
|
*
|
|
4843
4931
|
* @param workspace - Target task's workspace
|
|
4844
4932
|
* @param implementation - Target task's implementation type
|