@webex/internal-plugin-llm 3.13.0-next.4 → 3.13.0-next.6

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.
@@ -6,7 +6,7 @@
6
6
  "purpose": "Internal Webex JS SDK plugin that manages LLM data-channel connections for meetings. It registers webex.internal.llm, a Mercury subclass that registers each session with the data-channel service over HTTP, connects the returned WebSocket through Mercury, and keeps per-session URLs, binding, owner meeting, and token-refresh handler, plus a session-keyed data-channel token cache guarded by owner-meeting checks."
7
7
  },
8
8
  "commands": {
9
- "install": "yarn install",
9
+ "install": "yarn",
10
10
  "compile": "yarn workspace @webex/internal-plugin-llm build:src",
11
11
  "build": "yarn workspace @webex/internal-plugin-llm build",
12
12
  "unit-test": "yarn workspace @webex/internal-plugin-llm test:unit",
@@ -8,11 +8,11 @@
8
8
  "typescript"
9
9
  ]
10
10
  },
11
- "topology": "Single-repo",
11
+ "topology": "Orchestrator-plus-components",
12
12
  "commands": {
13
13
  "install": {
14
- "command": "yarn install",
15
- "source_file": "package.json",
14
+ "command": "yarn",
15
+ "source_file": "../../../.github/workflows/deploy.yml",
16
16
  "role": "install"
17
17
  },
18
18
  "compile": {
@@ -313,7 +313,12 @@
313
313
  "canonical": ".sdd/templates/repo-standards"
314
314
  },
315
315
  "repo_skills_root": ".sdd/skills",
316
- "contract_index_path": "docs/architecture.md"
316
+ "contract_index_path": "docs/architecture.md",
317
+ "monorepo_package": {
318
+ "package_path": "packages/@webex/internal-plugin-llm",
319
+ "root_manifest_path": "../../../.sdd/manifest.json",
320
+ "templates_root_path": "../../../.sdd/templates/repo-standards"
321
+ }
317
322
  },
318
323
  "coverage_ratchet": {
319
324
  "enabled": true,
@@ -351,5 +356,10 @@
351
356
  },
352
357
  "resolved_by": "claude-cowork (code evidence; bootstrap questionnaire)",
353
358
  "resolved_at": "2026-10-07T06:33:15Z"
359
+ },
360
+ "tooling": {
361
+ "sdlc_skills": {
362
+ "source_ref": "repo-annotation@2.3.1"
363
+ }
354
364
  }
355
365
  }
package/AGENTS.md CHANGED
@@ -44,7 +44,7 @@ commands from the monorepo root.
44
44
 
45
45
  | Task | Command |
46
46
  | ---------------------- | ------- |
47
- | Install dependencies | `yarn install` (workspace root) |
47
+ | Install dependencies | `yarn` (workspace root) |
48
48
  | Start dev environment | N/A — library package with no start script in `package.json` |
49
49
  | Run tests | `yarn workspace @webex/internal-plugin-llm test:unit` (jest); `yarn workspace @webex/internal-plugin-llm test:browser` (karma, see Testing Workflow) |
50
50
  | Run linters | `yarn workspace @webex/internal-plugin-llm test:style` |
@@ -207,7 +207,7 @@ flowchart TD
207
207
 
208
208
  | Command or artifact | Owner | Inputs | Output or side effect | Compatibility boundary |
209
209
  | ------------------- | ----- | ------ | --------------------- | ---------------------- |
210
- | `yarn install` | workspace | root `package.json` and lockfile | workspace `node_modules` | Run from the workspace root |
210
+ | `yarn` | workspace | root `package.json` and lockfile | workspace `node_modules` | Run from the workspace root |
211
211
  | `yarn workspace @webex/internal-plugin-llm build` | package | `src/` | `dist/` through `build:src` | `dist/` is never edited by hand |
212
212
  | `yarn workspace @webex/internal-plugin-llm build:src` | package | `src/` (`.js` and `.ts`) | `dist/` with source maps | Markdown under `src/` is not processed |
213
213
  | `yarn workspace @webex/internal-plugin-llm test:unit` | package | `test/unit/spec/` | jest result | — |
@@ -31,7 +31,7 @@ The repository is already cloned when you are reading this file. Dependencies ar
31
31
  whole workspace:
32
32
 
33
33
  ```bash
34
- yarn install
34
+ yarn
35
35
  ```
36
36
 
37
37
  ## Build
@@ -90,7 +90,7 @@ yarn workspace @webex/internal-plugin-llm test:unit
90
90
 
91
91
  ## First-run verification
92
92
 
93
- 1. Run `yarn install` from the workspace root.
93
+ 1. Run `yarn` from the workspace root.
94
94
  2. Run `yarn workspace @webex/internal-plugin-llm build` and check that `dist/index.js` exists.
95
95
  3. Run `yarn workspace @webex/internal-plugin-llm test:unit`.
96
96
 
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "node": ">=18"
14
14
  },
15
15
  "dependencies": {
16
- "@webex/internal-plugin-mercury": "3.13.0-next.4"
16
+ "@webex/internal-plugin-mercury": "3.13.0-next.6"
17
17
  },
18
18
  "browserify": {
19
19
  "transform": [
@@ -27,10 +27,10 @@
27
27
  "@webex/eslint-config-legacy": "0.0.0",
28
28
  "@webex/jest-config-legacy": "0.0.0",
29
29
  "@webex/legacy-tools": "0.0.0",
30
- "@webex/test-helper-chai": "3.13.0-next.1",
31
- "@webex/test-helper-mocha": "3.13.0-next.1",
32
- "@webex/test-helper-mock-webex": "3.13.0-next.1",
33
- "@webex/test-helper-test-users": "3.13.0-next.1",
30
+ "@webex/test-helper-chai": "3.13.0-next.2",
31
+ "@webex/test-helper-mocha": "3.13.0-next.2",
32
+ "@webex/test-helper-mock-webex": "3.13.0-next.2",
33
+ "@webex/test-helper-test-users": "3.13.0-next.2",
34
34
  "eslint": "^8.24.0",
35
35
  "prettier": "^2.7.1",
36
36
  "sinon": "^9.2.4"
@@ -44,5 +44,5 @@
44
44
  "test:style": "eslint ./src/**/*.*",
45
45
  "test:unit": "webex-legacy-tools test --unit --runner jest"
46
46
  },
47
- "version": "3.13.0-next.4"
47
+ "version": "3.13.0-next.6"
48
48
  }
@@ -44,21 +44,21 @@ Related context: [documentation index](../../docs/index.md) ·
44
44
  | ------------------------------------ | ---------- | ------------------ | ------------- |
45
45
  | `module.has_tiers` | N/A | No tier policy exists in this package or its `package.json` | Tier |
46
46
  | `module.has_ui` | N/A | No view or screen. The module manages sockets and session records. | UI use-case flow |
47
- | `module.crosses_service_boundaries` | Applicable | `register` sends an HTTP POST to the data-channel URL and the inherited Mercury `connect` opens a WebSocket, both in `src/llm.ts` | Cross-boundary use-case flow |
48
- | `module.holds_client_state` | Applicable | The private `connections` map and `datachannelTokens` record in `src/llm.ts` | Client state model |
47
+ | `module.crosses_service_boundaries` | Applicable | register sends an HTTP POST to the data-channel URL and the inherited Mercury connect opens a WebSocket, both in `src/llm.ts` | Cross-boundary use-case flow |
48
+ | `module.holds_client_state` | Applicable | The private connections map and datachannelTokens record in `src/llm.ts` | Client state model |
49
49
  | `module.enforces_domain_rules` | Applicable | Session-ownership checks guard token, refresh-handler, and disconnect operations in `src/llm.ts` | Business rules and invariants |
50
50
  | `module.is_concurrent_async` | Applicable | Promise-based register and connect, async refresh handlers, and feature-toggle reads in `src/llm.ts` | Concurrency and reactive flow |
51
51
  | `module.owns_persistence` | N/A | Nothing is written to storage. All state is in memory. | Data, schema, and migration discipline |
52
52
  | `module.stateful_transitions` | Applicable | Each session entry moves from absent to pre-connection, registered, connected, and removed | State machine |
53
- | `module.exposes_wire_protocol` | Applicable | Registration request and response fields, the auth header, and the `subscriptionAwareSubchannels` query in `src/llm.ts` and `src/constants.ts` | Protocol and wire format |
53
+ | `module.exposes_wire_protocol` | Applicable | Registration request and response fields, the auth header, and the subscriptionAwareSubchannels query in `src/llm.ts` and `src/constants.ts` | Protocol and wire format |
54
54
  | `module.ui_multi_screen` | N/A | No UI | UI flow |
55
55
  | `module.large_data_model` | N/A | One session record type and one token record; see `src/llm.types.ts` | Data model |
56
- | `module.returns_caller_errors` | Applicable | `registerAndConnect` rejects and attaches `timing`; other methods return `false`, `null`, or `undefined` on refusal | Caller-visible failure modes |
57
- | `module.module_specific_conventions` | Applicable | `llm#<method> -->` log prefix, the ownership-check pattern, and default-session arguments | Module-specific rules |
58
- | `module.published_package` | Applicable | `package.json` names the package @webex/internal-plugin-llm and `deploy:npm` publishes it | Export stability |
56
+ | `module.returns_caller_errors` | Applicable | registerAndConnect rejects and attaches timing; other methods return false, null, or undefined on refusal | Caller-visible failure modes |
57
+ | `module.module_specific_conventions` | Applicable | llm#\<method\> --\> log prefix, the ownership-check pattern, and default-session arguments | Module-specific rules |
58
+ | `module.published_package` | Applicable | `package.json` names the package @webex/internal-plugin-llm and deploy:npm publishes it | Export stability |
59
59
  | `module.embedded_in_host` | N/A | No host theme or embed API | Host integration and theming |
60
60
  | `module.has_design_tradeoff` | Applicable | The token cache is decoupled from the connection lifecycle, and omitted owner ids are accepted for backward compatibility | Key design trade-off |
61
- | `module.has_submodules` | N/A | Computed false by the Repo Annotation module_tree.py script: `src` has no child module | Sub-modules |
61
+ | `module.has_submodules` | N/A | Computed false by the Repo Annotation module_tree.py script: src has no child module | Sub-modules |
62
62
 
63
63
  ## Evidence register
64
64
 
@@ -194,7 +194,7 @@ inherited Mercury `connect`; in-process calls for everything else.
194
194
  | Ownership and tokens | `setOwnerMeetingId`, token get/set/clear, `setRefreshHandler` | Ownership diagram below | Refused non-owner calls |
195
195
  | Token refresh | `refreshDataChannelToken` → caller handler | Refresh diagram below | Missing handler or rejection returns `null` |
196
196
  | Disconnect | `disconnectLLM`, `disconnectAllLLM` → Mercury `disconnect` or `disconnectAll` | Disconnect diagram below | Non-owner returns `false`; rejection propagates |
197
- | URL lookup | `getSessionIdByDatachannelUrl`, `getLocusUrlByDatachannelUrl` | Synchronous scan, no diagram needed; `MOD-013` | No match or parse error returns `undefined` |
197
+ | URL lookup | `getSessionIdByDatachannelUrl`, `getLocusUrlByDatachannelUrl` | Synchronous scan, no diagram needed; MOD-013 | No match or parse error returns `undefined` |
198
198
 
199
199
  Register and connect:
200
200
 
@@ -497,16 +497,16 @@ class through the deep path `src/llm`.
497
497
  | Chosen trade-off | Preserved invariant or benefit | Cost or limitation | Decision evidence |
498
498
  | ---------------- | ------------------------------ | ------------------ | ----------------- |
499
499
  | Token cache separate from the connection map | Reconnects can reuse a cached token (`INV-003`) | Tokens outlive sessions until `clearDatachannelToken` | `src/llm.ts` field comment |
500
- | Omitted owner ids pass ownership | Old call sites keep working (`INV-002`) | Any caller without an id can tear down a session | `src/llm.ts` `disconnectLLM` comment |
501
- | Pre-connection session entries | Refresh can be wired before registration | An entry can exist with no URLs or socket | `src/llm.ts` `setRefreshHandler` comment |
500
+ | Omitted owner ids pass ownership | Old call sites keep working (`INV-002`) | Any caller without an id can tear down a session | `src/llm.ts` disconnectLLM comment |
501
+ | Pre-connection session entries | Refresh can be wired before registration | An entry can exist with no URLs or socket | `src/llm.ts` setRefreshHandler comment |
502
502
 
503
503
  ## Verification
504
504
 
505
505
  | Requirement or invariant | Test level | Positive evidence | Negative or boundary evidence | Gap |
506
506
  | ------------------------ | ---------- | ----------------- | ----------------------------- | --- |
507
507
  | `MOD-001` | Unit (indirect) | `test/unit/spec/llm.js` MockWebex setup | none found | No registration assertion |
508
- | `MOD-002`, `MOD-004` | Unit | `test/unit/spec/llm.js` `#registerAndConnect`, `#registerAndConnect timing` | `test/unit/spec/llm.js` missing URL, no websocket URL, connect failure | Real POST with a missing URL |
509
- | `MOD-003`, `INV-004` | Unit | `test/unit/spec/llm.js` `#register` | `test/unit/spec/llm.js` toggle off, no token | Error log path |
508
+ | `MOD-002`, `MOD-004` | Unit | `test/unit/spec/llm.js` #registerAndConnect, #registerAndConnect timing | `test/unit/spec/llm.js` missing URL, no websocket URL, connect failure | Real POST with a missing URL |
509
+ | `MOD-003`, `INV-004` | Unit | `test/unit/spec/llm.js` #register | `test/unit/spec/llm.js` toggle off, no token | Error log path |
510
510
  | `MOD-005` | Unit | `test/unit/spec/llm.js` accessor cases | `test/unit/spec/llm.js` no-connection cases | `getBinding` with a value |
511
511
  | `MOD-006`, `INV-002` | Unit | `test/unit/spec/llm.js` owner cases | `test/unit/spec/llm.js` mismatched owner | `resolveSessionOwnership` direct |
512
512
  | `MOD-007` | Unit | `test/unit/spec/llm.js` token cases | none found | Refused calls; `clearDatachannelToken` |