@webex/plugin-logger 3.13.0-next.5 → 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.
- package/.repo-context.json +1 -1
- package/.sdd/manifest.json +14 -4
- package/AGENTS.md +1 -1
- package/dist/logger.js +1 -1
- package/docs/architecture.md +1 -1
- package/docs/getting-started.md +2 -2
- package/package.json +10 -10
- package/src/docs/README.md +16 -16
package/.repo-context.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"purpose": "Logger plugin for the Cisco Webex JS SDK. It replaces the minimal webex-core logger with leveled console output, redaction of authorization keys, email addresses, and MTID values, and in-memory log buffers that internal-plugin-support formats and uploads."
|
|
7
7
|
},
|
|
8
8
|
"commands": {
|
|
9
|
-
"install": "yarn
|
|
9
|
+
"install": "yarn",
|
|
10
10
|
"compile": "yarn workspace @webex/plugin-logger build:src",
|
|
11
11
|
"build": "yarn workspace @webex/plugin-logger build",
|
|
12
12
|
"unit-test": "yarn workspace @webex/plugin-logger test:unit",
|
package/.sdd/manifest.json
CHANGED
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
"javascript"
|
|
9
9
|
]
|
|
10
10
|
},
|
|
11
|
-
"topology": "
|
|
11
|
+
"topology": "Orchestrator-plus-components",
|
|
12
12
|
"commands": {
|
|
13
13
|
"install": {
|
|
14
|
-
"command": "yarn
|
|
15
|
-
"source_file": "
|
|
14
|
+
"command": "yarn",
|
|
15
|
+
"source_file": "../../../.github/workflows/deploy.yml",
|
|
16
16
|
"role": "install"
|
|
17
17
|
},
|
|
18
18
|
"compile": {
|
|
@@ -292,7 +292,12 @@
|
|
|
292
292
|
"canonical": ".sdd/templates/repo-standards"
|
|
293
293
|
},
|
|
294
294
|
"repo_skills_root": ".sdd/skills",
|
|
295
|
-
"contract_index_path": "docs/architecture.md"
|
|
295
|
+
"contract_index_path": "docs/architecture.md",
|
|
296
|
+
"monorepo_package": {
|
|
297
|
+
"package_path": "packages/@webex/plugin-logger",
|
|
298
|
+
"root_manifest_path": "../../../.sdd/manifest.json",
|
|
299
|
+
"templates_root_path": "../../../.sdd/templates/repo-standards"
|
|
300
|
+
}
|
|
296
301
|
},
|
|
297
302
|
"coverage_ratchet": {
|
|
298
303
|
"enabled": true,
|
|
@@ -330,5 +335,10 @@
|
|
|
330
335
|
},
|
|
331
336
|
"resolved_by": "claude-cowork (code evidence; bootstrap questionnaire)",
|
|
332
337
|
"resolved_at": "2026-10-06T09:40:00Z"
|
|
338
|
+
},
|
|
339
|
+
"tooling": {
|
|
340
|
+
"sdlc_skills": {
|
|
341
|
+
"source_ref": "repo-annotation@2.3.1"
|
|
342
|
+
}
|
|
333
343
|
}
|
|
334
344
|
}
|
package/AGENTS.md
CHANGED
|
@@ -38,7 +38,7 @@ Use only documented commands. Do not invent alternatives when a command is missi
|
|
|
38
38
|
|
|
39
39
|
| Task | Command |
|
|
40
40
|
| ---------------------- | ------- |
|
|
41
|
-
| Install dependencies | `yarn
|
|
41
|
+
| Install dependencies | `yarn` (workspace root) |
|
|
42
42
|
| Start dev environment | N/A — library package with no start script |
|
|
43
43
|
| Run tests | `yarn workspace @webex/plugin-logger test:unit` (jest); `yarn workspace @webex/plugin-logger test:browser` (karma) |
|
|
44
44
|
| Run linters | `yarn workspace @webex/plugin-logger test:style` |
|
package/dist/logger.js
CHANGED
package/docs/architecture.md
CHANGED
|
@@ -210,7 +210,7 @@ Export stability is described in the module spec.
|
|
|
210
210
|
| `yarn workspace @webex/plugin-logger test:unit` | jest result; no committed artifact |
|
|
211
211
|
| `yarn workspace @webex/plugin-logger test:browser` | karma result; no committed artifact |
|
|
212
212
|
| `yarn workspace @webex/plugin-logger test:style` | eslint result; no committed artifact |
|
|
213
|
-
| `yarn
|
|
213
|
+
| `yarn` | workspace `node_modules` |
|
|
214
214
|
| `yarn workspace @webex/plugin-logger deploy:npm` | npm publish |
|
|
215
215
|
|
|
216
216
|
At runtime, `formatLogs()` produces the log text described under Protocol and wire format in the module spec. `dist/` is generated. Do not edit it by hand.
|
package/docs/getting-started.md
CHANGED
|
@@ -33,7 +33,7 @@ The unit spec is `test/unit/spec/logger.js`. `test:unit` runs it under jest in N
|
|
|
33
33
|
Dependencies are resolved for the whole workspace, not per package:
|
|
34
34
|
|
|
35
35
|
```bash
|
|
36
|
-
yarn
|
|
36
|
+
yarn
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
Run it from the workspace root.
|
|
@@ -76,7 +76,7 @@ Do not use `package.json` `scripts.test` as a verification command. It chains `t
|
|
|
76
76
|
|
|
77
77
|
## First-run verification
|
|
78
78
|
|
|
79
|
-
1. `yarn
|
|
79
|
+
1. `yarn` from the workspace root.
|
|
80
80
|
2. `yarn workspace @webex/plugin-logger build`
|
|
81
81
|
3. `yarn workspace @webex/plugin-logger test:style`
|
|
82
82
|
4. `yarn workspace @webex/plugin-logger test:unit`
|
package/package.json
CHANGED
|
@@ -24,20 +24,20 @@
|
|
|
24
24
|
"@webex/eslint-config-legacy": "0.0.0",
|
|
25
25
|
"@webex/jest-config-legacy": "0.0.0",
|
|
26
26
|
"@webex/legacy-tools": "0.0.0",
|
|
27
|
-
"@webex/test-helper-chai": "3.13.0-next.
|
|
28
|
-
"@webex/test-helper-mocha": "3.13.0-next.
|
|
29
|
-
"@webex/test-helper-mock-webex": "3.13.0-next.
|
|
30
|
-
"@webex/test-helper-test-users": "3.13.0-next.
|
|
27
|
+
"@webex/test-helper-chai": "3.13.0-next.2",
|
|
28
|
+
"@webex/test-helper-mocha": "3.13.0-next.2",
|
|
29
|
+
"@webex/test-helper-mock-webex": "3.13.0-next.2",
|
|
30
|
+
"@webex/test-helper-test-users": "3.13.0-next.2",
|
|
31
31
|
"eslint": "^8.24.0",
|
|
32
32
|
"prettier": "^2.7.1",
|
|
33
33
|
"sinon": "^9.2.4"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@webex/common": "3.13.0-next.
|
|
37
|
-
"@webex/test-helper-chai": "3.13.0-next.
|
|
38
|
-
"@webex/test-helper-mocha": "3.13.0-next.
|
|
39
|
-
"@webex/test-helper-mock-webex": "3.13.0-next.
|
|
40
|
-
"@webex/webex-core": "3.13.0-next.
|
|
36
|
+
"@webex/common": "3.13.0-next.2",
|
|
37
|
+
"@webex/test-helper-chai": "3.13.0-next.2",
|
|
38
|
+
"@webex/test-helper-mocha": "3.13.0-next.2",
|
|
39
|
+
"@webex/test-helper-mock-webex": "3.13.0-next.2",
|
|
40
|
+
"@webex/webex-core": "3.13.0-next.6",
|
|
41
41
|
"lodash": "^4.17.21"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"test:unit": "webex-legacy-tools test --unit --runner jest"
|
|
51
51
|
},
|
|
52
52
|
"types": "index.d.ts",
|
|
53
|
-
"version": "3.13.0-next.
|
|
53
|
+
"version": "3.13.0-next.6"
|
|
54
54
|
}
|
package/src/docs/README.md
CHANGED
|
@@ -39,21 +39,21 @@ Related context: [documentation index](../../docs/index.md) · [package agent in
|
|
|
39
39
|
| Condition ID | Status | Evidence or reason | Owned section |
|
|
40
40
|
| ------------------------------------ | ---------- | ------------------ | ------------- |
|
|
41
41
|
| `module.has_tiers` | N/A | No tier policy in this package | Tier |
|
|
42
|
-
| `module.has_ui` | N/A | No view or screen. Output goes to
|
|
43
|
-
| `module.crosses_service_boundaries` | N/A |
|
|
44
|
-
| `module.holds_client_state` | Applicable |
|
|
42
|
+
| `module.has_ui` | N/A | No view or screen. Output goes to console and an in-memory buffer. | UI use-case flow |
|
|
43
|
+
| `module.crosses_service_boundaries` | N/A | src/ makes no network call. Upload is done by the sibling package internal-plugin-support. | Cross-boundary use-case flow |
|
|
44
|
+
| `module.holds_client_state` | Applicable | buffer, sdkBuffer, clientBuffer, and groupLevel are session properties in `src/logger.js` | Client state model |
|
|
45
45
|
| `module.enforces_domain_rules` | Applicable | Level precedence, buffer threshold, and redaction rules in `src/logger.js` | Business rules and invariants |
|
|
46
46
|
| `module.is_concurrent_async` | N/A | Every method is synchronous. Record events use the native emitter; no promise or timer is added. | Concurrency and reactive flow |
|
|
47
47
|
| `module.owns_persistence` | N/A | Buffers live in memory only. Nothing is written to storage. | Data, schema, and migration discipline |
|
|
48
48
|
| `module.stateful_transitions` | N/A | Buffer cursors are covered under Client state model. There is no named state machine. | State machine |
|
|
49
|
-
| `module.exposes_wire_protocol` | Applicable |
|
|
49
|
+
| `module.exposes_wire_protocol` | Applicable | formatLogs() output is the log text that the sibling package internal-plugin-support uploads | Protocol and wire format |
|
|
50
50
|
| `module.ui_multi_screen` | N/A | No UI | UI flow |
|
|
51
51
|
| `module.large_data_model` | N/A | Buffer entries, record wrappers and logger config | Data model |
|
|
52
|
-
| `module.returns_caller_errors` | N/A | Log methods catch every internal error and return
|
|
53
|
-
| `module.module_specific_conventions` | Applicable |
|
|
54
|
-
| `module.published_package` | Applicable | `package.json` names the package and
|
|
52
|
+
| `module.returns_caller_errors` | N/A | Log methods catch every internal error and return undefined. No method throws to the caller. | Caller-visible failure modes |
|
|
53
|
+
| `module.module_specific_conventions` | Applicable | client\_ method prefix, wx-js-sdk name, and redaction-before-output rules | Module-specific rules |
|
|
54
|
+
| `module.published_package` | Applicable | `package.json` names the package and deploy:npm publishes it | Export stability |
|
|
55
55
|
| `module.embedded_in_host` | N/A | No host theme or embed API | Host integration and theming |
|
|
56
|
-
| `module.has_design_tradeoff` | Applicable |
|
|
56
|
+
| `module.has_design_tradeoff` | Applicable | debug and trace are excluded from the buffer by default; browsers print stringified values | Key design trade-off |
|
|
57
57
|
| `module.has_submodules` | N/A | Computed false by the Repo Annotation module_tree.py script. `src/config.js` is a helper file, not a child module. | Sub-modules |
|
|
58
58
|
|
|
59
59
|
## Evidence register
|
|
@@ -318,14 +318,14 @@ In browsers the logger prints the stringified values instead of live objects. Th
|
|
|
318
318
|
|
|
319
319
|
| Behavior | Check | Evidence | Gap |
|
|
320
320
|
| -------- | ----- | -------- | --- |
|
|
321
|
-
| MOD-002 to MOD-005, INV-001 to INV-003 | `yarn workspace @webex/plugin-logger test:unit` |
|
|
322
|
-
| MOD-006, INV-004 | same |
|
|
323
|
-
| MOD-007, MOD-008 | same |
|
|
324
|
-
| MOD-009, MOD-010, INV-006 | same | overflow and
|
|
325
|
-
| MOD-011, MOD-012 | same |
|
|
326
|
-
| MOD-013 | same |
|
|
321
|
+
| MOD-002 to MOD-005, INV-001 to INV-003 | `yarn workspace @webex/plugin-logger test:unit` | #shouldPrint(), #shouldBuffer() | Node-only cases do not run under karma |
|
|
322
|
+
| MOD-006, INV-004 | same | #filter, #walkAndFilter, per-level removes authorization data | Repeated strings, uppercase `AUTHORIZATION`, and email with MTID are untested |
|
|
323
|
+
| MOD-007, MOD-008 | same | #log() error and object formatting cases | Stringify failure branch untested |
|
|
324
|
+
| MOD-009, MOD-010, INV-006 | same | overflow and limit cases | SDK buffer capped by `clientHistoryLength` untested |
|
|
325
|
+
| MOD-011, MOD-012 | same | #formatLogs(), #updateLastSubmittedIndex(), #resetBufferToLastSuccessfulUpload() | — |
|
|
326
|
+
| MOD-013 | same | #logToBuffer() | — |
|
|
327
327
|
| MOD-001, MOD-014, INV-007, `group` and `groupEnd` | none | Source inspection only | No test for registration, the catch branch, default history, or group indentation |
|
|
328
|
-
| Browser output | `yarn workspace @webex/plugin-logger test:browser` |
|
|
329
|
-
| Lint | `yarn workspace @webex/plugin-logger test:style` |
|
|
328
|
+
| Browser output | `yarn workspace @webex/plugin-logger test:browser` | browserOnly cases | Requires a karma browser |
|
|
329
|
+
| Lint | `yarn workspace @webex/plugin-logger test:style` | src/ | — |
|
|
330
330
|
|
|
331
331
|
Do not run the aggregate `test` script from `package.json` as a verification command. It chains `test:integration`, which `package.json` does not define, so it is intentionally not a manifest command.
|