@opencxh/domain 1.195.0 → 1.197.0

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.
@@ -1,6 +1,22 @@
1
+ /** The service-bus key, as a constant so a typo does not silently yield an empty list. */
2
+ export declare const CONTEXT_COLLECT_SERVICE = "context.collect";
3
+ /**
4
+ * What an app is asked to claim.
5
+ *
6
+ * Two modes, and the second exists because a route is not always the question. The Assist queue
7
+ * stands on `/queue` while the card under the cursor is a conversation, and an assignment thread
8
+ * has no route of its own either — so "which screen am I on" cannot answer it. An app answers
9
+ * whichever mode it can: comms owns `interaction:` whether it is asked by path or by key.
10
+ */
11
+ export interface HostContextParams {
12
+ /** The shell's current path. Claim it when this app owns the route. */
13
+ pathname?: string;
14
+ /** A `<kind>:<ref>` key. Claim it when this app owns that kind. */
15
+ scopeKey?: string;
16
+ }
1
17
  /**
2
18
  * Host context resolved for the tools-panel. Any app can contribute one via the
3
- * `context.collect` service; the shell picks the highest-priority non-null claim
19
+ * {@link CONTEXT_COLLECT_SERVICE} service; the shell picks the highest-priority non-null claim
4
20
  * for the current route and falls back to `{ kind: "global", scopeKey:
5
21
  * "workspace:<userId>" }` when no app claims it.
6
22
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencxh/domain",
3
- "version": "1.195.0",
3
+ "version": "1.197.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",