@webex/webex-core 3.12.0-next.62 → 3.12.0-next.64
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 +653 -0
- package/.sdd/manifest.json +605 -0
- package/AGENTS.md +209 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/batcher.js +1 -1
- package/dist/lib/credentials/credentials.js +1 -1
- package/dist/lib/credentials/token.js +1 -1
- package/dist/lib/services/services.js +1 -1
- package/dist/lib/services-v2/services-v2.js +1 -1
- package/dist/lib/static-asset-loader.js +149 -0
- package/dist/lib/static-asset-loader.js.map +1 -0
- package/dist/plugins/logger.js +1 -1
- package/dist/webex-core.js +2 -2
- package/docs/adr/index.md +32 -0
- package/docs/architecture.md +298 -0
- package/docs/getting-started.md +96 -0
- package/docs/index.md +55 -0
- package/docs/specs/README.md +76 -0
- package/package.json +3 -3
- package/schemas/repo-context.schema.json +796 -0
- package/src/docs/README.md +732 -0
- package/src/index.js +1 -0
- package/src/interceptors/docs/README.md +658 -0
- package/src/lib/credentials/docs/README.md +846 -0
- package/src/lib/services/docs/README.md +737 -0
- package/src/lib/services-v2/docs/README.md +750 -0
- package/src/lib/static-asset-loader.ts +124 -0
- package/src/lib/storage/docs/README.md +646 -0
- package/test/unit/spec/static-asset-loader.ts +224 -0
package/AGENTS.md
ADDED
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
<!-- sdd-generated-metadata
|
|
2
|
+
doc_kind: agent-entry
|
|
3
|
+
generated_from: agents@0.3.0
|
|
4
|
+
generated_by: claude-code
|
|
5
|
+
approved_by: rsarika@cisco.com
|
|
6
|
+
updated_at: 2026-10-07T13:20:21Z
|
|
7
|
+
validation_status: pass-with-warnings
|
|
8
|
+
-->
|
|
9
|
+
|
|
10
|
+
# AI Agent Instructions
|
|
11
|
+
|
|
12
|
+
Instructions for AI coding assistants working on `@webex/webex-core`, the core library of the Webex JS
|
|
13
|
+
SDK: the plugin host, request interceptors, credentials, service discovery and storage layer.
|
|
14
|
+
|
|
15
|
+
## Working Method
|
|
16
|
+
|
|
17
|
+
- Read the relevant repository files before editing. Do not edit blind.
|
|
18
|
+
- Understand the task and affected surfaces before writing code.
|
|
19
|
+
- Prefer focused edits over rewriting whole files.
|
|
20
|
+
- Do not invent commands, paths, exports, or behavior. Verify them from repository-local source.
|
|
21
|
+
- Test or validate before declaring done.
|
|
22
|
+
- Keep output concise. If something is uncertain, say so instead of guessing.
|
|
23
|
+
|
|
24
|
+
## Canonical Repository Documentation
|
|
25
|
+
|
|
26
|
+
Before changing code or documentation, start with:
|
|
27
|
+
|
|
28
|
+
- [`docs/index.md`](docs/index.md) for documentation navigation;
|
|
29
|
+
- [`docs/architecture.md`](docs/architecture.md) for package boundaries, dependencies and the contract index;
|
|
30
|
+
- [`docs/specs/README.md`](docs/specs/README.md) for the manifest-backed module and contract registry;
|
|
31
|
+
- the affected module's manifest-routed specification:
|
|
32
|
+
[`src`](src/docs/README.md), [`src/interceptors`](src/interceptors/docs/README.md),
|
|
33
|
+
[`src/lib/credentials`](src/lib/credentials/docs/README.md),
|
|
34
|
+
[`src/lib/services`](src/lib/services/docs/README.md),
|
|
35
|
+
[`src/lib/services-v2`](src/lib/services-v2/docs/README.md),
|
|
36
|
+
[`src/lib/storage`](src/lib/storage/docs/README.md); and
|
|
37
|
+
- [`docs/adr/index.md`](docs/adr/index.md) for durable decisions. None are registered yet.
|
|
38
|
+
|
|
39
|
+
Follow `.sdd/manifest.json` for each contract's publication state and canonical source. The package
|
|
40
|
+
publishes SDK contracts whose native source is the npm entry point declared in `package.json` and the
|
|
41
|
+
barrel `src/index.js`; there is no OpenAPI document because the package serves no HTTP. The manifest
|
|
42
|
+
remains authoritative for canonical paths and artifact decisions. Dependency packages that have their
|
|
43
|
+
own specifications (`@webex/http-core`, `@webex/common`, `@webex/common-timers`,
|
|
44
|
+
`@webex/storage-adapter-spec`) should be read through those specifications first.
|
|
45
|
+
|
|
46
|
+
## 1. Commands (Run First)
|
|
47
|
+
|
|
48
|
+
Run every command from the Webex JS SDK workspace root. Use only documented commands.
|
|
49
|
+
|
|
50
|
+
| Task | Command |
|
|
51
|
+
| --- | --- |
|
|
52
|
+
| Install dependencies | `yarn install` |
|
|
53
|
+
| Start dev environment | N/A — the package is a library with no runnable entry point |
|
|
54
|
+
| Run tests | `yarn workspace @webex/webex-core test:unit` |
|
|
55
|
+
| Run linters | `yarn workspace @webex/webex-core test:style` |
|
|
56
|
+
| Build/release artifact | `yarn workspace @webex/webex-core build:src` |
|
|
57
|
+
| Format code | N/A — no package-local format command; Prettier configuration is owned at the workspace root |
|
|
58
|
+
| Integration tests (mocha) | `yarn workspace @webex/webex-core test:integration` |
|
|
59
|
+
| Browser tests (karma) | `yarn workspace @webex/webex-core test:browser` |
|
|
60
|
+
| Run one unit file | `yarn workspace @webex/webex-core test:unit --targets <path relative to test/unit/spec>` |
|
|
61
|
+
| Publish | `yarn workspace @webex/webex-core deploy:npm` |
|
|
62
|
+
|
|
63
|
+
The repository requires Node 22.14 (`nvm install 22.14 && nvm use 22.14`); the package itself declares
|
|
64
|
+
`engines.node >=18`. The aggregate `test` script chains lint, unit, integration and browser tiers, so it
|
|
65
|
+
needs provisioned test users and live services. `build` delegates to `build:src`; no command builds and
|
|
66
|
+
tests together. If a required command is unknown, stop and ask for the exact command.
|
|
67
|
+
|
|
68
|
+
## 2. Agent Persona and Scope
|
|
69
|
+
|
|
70
|
+
You are the engineering assistant for `@webex/webex-core`, the package every other Webex SDK plugin
|
|
71
|
+
registers into and sends requests through.
|
|
72
|
+
|
|
73
|
+
Primary outcomes:
|
|
74
|
+
|
|
75
|
+
- Deliver production-safe changes with passing tests.
|
|
76
|
+
- Preserve existing behavior unless a change request explicitly requires a behavior change.
|
|
77
|
+
- Keep docs and configuration aligned with code changes.
|
|
78
|
+
|
|
79
|
+
Definition of done:
|
|
80
|
+
|
|
81
|
+
1. Requested change is implemented.
|
|
82
|
+
2. Relevant tests/lint/build checks pass locally.
|
|
83
|
+
3. Updated docs/config cover new behavior.
|
|
84
|
+
4. PR summary includes risks and rollback notes.
|
|
85
|
+
|
|
86
|
+
## 3. Repository Knowledge
|
|
87
|
+
|
|
88
|
+
### Tech Stack
|
|
89
|
+
|
|
90
|
+
| Area | Tooling | Version |
|
|
91
|
+
| --- | --- | --- |
|
|
92
|
+
| Language runtime | Node.js | `>=18` (`package.json` engines) |
|
|
93
|
+
| Language | JavaScript with TypeScript in `src/lib/services-v2` and `src/lib/domains.ts` | `package.json` |
|
|
94
|
+
| Build tool | `@webex/legacy-tools` (`webex-legacy-tools build`) | workspace |
|
|
95
|
+
| Test framework | Jest (unit), Mocha (integration), Karma (browser) | `jest.config.js`, `package.json` |
|
|
96
|
+
| Lint/format | ESLint via `@webex/eslint-config-legacy`; Prettier | `^8.24.0` / `^2.7.1` (`package.json`) |
|
|
97
|
+
|
|
98
|
+
### Project Map
|
|
99
|
+
|
|
100
|
+
- `src/index.js`: package entry point and export barrel; its import order is load-bearing.
|
|
101
|
+
- `src/webex-core.js`, `src/webex-internal-core.js`: the `WebexCore` class, plugin registration and interceptor-chain assembly.
|
|
102
|
+
- `src/config.js`, `src/credentials-config.js`: default configuration; several defaults read environment variables at import time.
|
|
103
|
+
- `src/interceptors/`: sixteen request/response interceptors. Has its own specification.
|
|
104
|
+
- `src/lib/credentials/`: OAuth token lifecycle. Has its own specification.
|
|
105
|
+
- `src/lib/services/` and `src/lib/interceptors/`: v1 service discovery and its interceptors. Has its own specification.
|
|
106
|
+
- `src/lib/services-v2/`: opt-in v2 service discovery in TypeScript. Has its own specification.
|
|
107
|
+
- `src/lib/storage/`: `@persist` decorators, store factories and the in-memory adapter. Has its own specification.
|
|
108
|
+
- `src/lib/batcher.js`, `src/lib/page.js`, `src/lib/webex-http-error.js`, `src/lib/webex-plugin.js`: shared helpers and plugin base classes.
|
|
109
|
+
- `test/unit/`: Jest unit tests; `test/integration/`: Mocha and Karma tests needing test users and live services.
|
|
110
|
+
|
|
111
|
+
### Critical Constraints
|
|
112
|
+
|
|
113
|
+
- **Import order in `src/index.js` is load-bearing.** Services and credentials are loaded inside core so they initialize before consumer plugins; do not move them into outside plugins or reorder the imports.
|
|
114
|
+
- **Plugin registration is process-global and first-wins.** A duplicate `registerPlugin` name is silently ignored unless `replace` is set; v2 services only activates through such a replace.
|
|
115
|
+
- **`config.interceptors` replaces the whole interceptor chain**, including interceptors registered by plugins.
|
|
116
|
+
- **Tokens are persisted as plaintext JSON.** Never log tokens or weaken the allow-list that decides which hosts receive a bearer token.
|
|
117
|
+
- **Exported names, event names and config keys are public.** 49 workspace packages declare a dependency on this package; removing or renaming one is a breaking change.
|
|
118
|
+
- **Dependent packages resolve this package through `dist`.** Rebuild with `build:src` before trusting a dependent package's tests.
|
|
119
|
+
|
|
120
|
+
## 4. Testing Workflow
|
|
121
|
+
|
|
122
|
+
Run checks in this order:
|
|
123
|
+
|
|
124
|
+
1. `yarn workspace @webex/webex-core test:unit`
|
|
125
|
+
2. `yarn workspace @webex/webex-core test:style`
|
|
126
|
+
3. `yarn workspace @webex/webex-core test:integration` (requires provisioned test users and live services)
|
|
127
|
+
|
|
128
|
+
Testing rules:
|
|
129
|
+
|
|
130
|
+
- Add or update tests for every behavior change.
|
|
131
|
+
- Cover failure paths and edge cases, not only happy paths.
|
|
132
|
+
- Do not remove tests to make CI pass.
|
|
133
|
+
- Use sinon for stubs, `assert` from `@webex/test-helper-chai`, and fake timers for time-dependent code.
|
|
134
|
+
|
|
135
|
+
This package defines no coverage threshold; the repository owner confirmed there is no coverage gate
|
|
136
|
+
for it. Do not infer one from a platform or CI default.
|
|
137
|
+
|
|
138
|
+
## 5. Code Style and Patterns
|
|
139
|
+
|
|
140
|
+
Coding expectations:
|
|
141
|
+
|
|
142
|
+
- Follow repository style rules and static analysis output.
|
|
143
|
+
- Prefer small, composable functions over large procedural blocks.
|
|
144
|
+
- Make error handling explicit at system boundaries.
|
|
145
|
+
- Keep public interfaces stable unless a breaking change is requested.
|
|
146
|
+
- Before adding a literal path, filename, command, workflow identifier, status,
|
|
147
|
+
or other policy value, search the repository for exact and semantically
|
|
148
|
+
equivalent uses. When repeated production values represent one shared
|
|
149
|
+
contract, move them to the narrowest owning shared module or catalog as one
|
|
150
|
+
canonical named constant, enum, or type and update consumers. Keep incidental
|
|
151
|
+
similarities, one-off implementation details, and independent test fixtures
|
|
152
|
+
local.
|
|
153
|
+
- Do not import a default, named, object, or namespace binding and immediately
|
|
154
|
+
re-export it. Consumers should import from the owning module; package barrels
|
|
155
|
+
should use direct named re-exports.
|
|
156
|
+
- Do not write inline runtime `typeof` checks outside descriptively named guard
|
|
157
|
+
implementations. Import and reuse the owning guard instead; TypeScript
|
|
158
|
+
type-position `typeof` queries remain allowed.
|
|
159
|
+
|
|
160
|
+
Pattern example:
|
|
161
|
+
|
|
162
|
+
```text
|
|
163
|
+
Preferred:
|
|
164
|
+
- Validate external input close to the boundary.
|
|
165
|
+
- Return typed/structured results.
|
|
166
|
+
- Include actionable error messages.
|
|
167
|
+
|
|
168
|
+
Avoid:
|
|
169
|
+
- Passing unvalidated payloads deep into the system.
|
|
170
|
+
- Swallowing exceptions or returning ambiguous null values.
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
## 6. Git Workflow
|
|
174
|
+
|
|
175
|
+
- Branch naming: no repository-enforced rule was found; use a short descriptive prefix such as `feature/`, `fix/` or `chore/`
|
|
176
|
+
- Commit format: conventional commits (`feat:`, `fix:`, `docs:`, `refactor:`, `test:`, `chore:`)
|
|
177
|
+
- Keep commits focused and reversible.
|
|
178
|
+
- Rebase on the target branch before opening PR.
|
|
179
|
+
|
|
180
|
+
PR checklist:
|
|
181
|
+
|
|
182
|
+
- What changed and why.
|
|
183
|
+
- Tests run and results.
|
|
184
|
+
- Risk/impact areas.
|
|
185
|
+
- Rollback approach.
|
|
186
|
+
|
|
187
|
+
## 7. Boundaries and Escalation
|
|
188
|
+
|
|
189
|
+
### Always
|
|
190
|
+
|
|
191
|
+
- Prefer existing patterns over introducing new architecture.
|
|
192
|
+
- Keep changes minimal for the requested scope.
|
|
193
|
+
- Call out assumptions and unknowns explicitly.
|
|
194
|
+
|
|
195
|
+
### Ask First
|
|
196
|
+
|
|
197
|
+
- Adding new dependencies or external services.
|
|
198
|
+
- Large refactors or schema migrations.
|
|
199
|
+
- Security-sensitive changes (auth, token handling, persistence, allowed-domain logic).
|
|
200
|
+
- Any change to exported names, event names, config keys or the interceptor order.
|
|
201
|
+
- Any destructive data or infrastructure operation.
|
|
202
|
+
|
|
203
|
+
### Never
|
|
204
|
+
|
|
205
|
+
- Commit secrets, keys, or credentials.
|
|
206
|
+
- Bypass required checks by disabling tests or linters.
|
|
207
|
+
- Rewrite history on shared branches.
|
|
208
|
+
- Change unrelated files "while here" without clear need.
|
|
209
|
+
- Edit `.sdd/templates/repo-standards` or `dist` by hand.
|
package/dist/index.js
CHANGED
|
@@ -194,6 +194,12 @@ _Object$defineProperty(exports, "StatelessWebexPlugin", {
|
|
|
194
194
|
return _statelessWebexPlugin.default;
|
|
195
195
|
}
|
|
196
196
|
});
|
|
197
|
+
_Object$defineProperty(exports, "StaticAssetLoader", {
|
|
198
|
+
enumerable: true,
|
|
199
|
+
get: function get() {
|
|
200
|
+
return _staticAssetLoader.default;
|
|
201
|
+
}
|
|
202
|
+
});
|
|
197
203
|
_Object$defineProperty(exports, "StorageError", {
|
|
198
204
|
enumerable: true,
|
|
199
205
|
get: function get() {
|
|
@@ -320,6 +326,7 @@ var _webexCore = _interopRequireWildcard(require("./webex-core"));
|
|
|
320
326
|
var _webexHttpError = _interopRequireDefault(require("./lib/webex-http-error"));
|
|
321
327
|
var _statelessWebexPlugin = _interopRequireDefault(require("./lib/stateless-webex-plugin"));
|
|
322
328
|
var _webexPlugin = _interopRequireDefault(require("./lib/webex-plugin"));
|
|
329
|
+
var _staticAssetLoader = _interopRequireDefault(require("./lib/static-asset-loader"));
|
|
323
330
|
var _auth = _interopRequireDefault(require("./interceptors/auth"));
|
|
324
331
|
var _catalogUrl = _interopRequireDefault(require("./interceptors/catalog-url"));
|
|
325
332
|
var _networkTiming = _interopRequireDefault(require("./interceptors/network-timing"));
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["require","_credentials","_services","_servicesV","_serviceConstants","_interopRequireWildcard","exports","serviceConstants","_storage","_webexCore","_webexHttpError","_interopRequireDefault","_statelessWebexPlugin","_webexPlugin","_auth","_catalogUrl","_networkTiming","_payloadTransformer","_redirect","_responseLogger","_requestEvent","_requestLogger","_requestTiming","_userAgent","_proxy","_webexTrackingId","_webexUserAgent","_rateLimit","_embargo","_defaultOptions","_hostmap","_service","_serverError","_batcher","_page","_config","e","t","_WeakMap","r","n","__esModule","o","i","f","__proto__","default","_typeof","has","get","set","_t","hasOwnProperty","call","_Object$defineProperty","_Object$getOwnPropertyDescriptor"],"sources":["index.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n *\n * Services is currently a part of webex-core due to how the contents of\n * the original internal-plugin-services needed to be accessed when webex-core\n * is initialized. As a plugin outside of webex-core, it would initialize after\n * credentials, causing all requests prior to its initialization to fail\n * federation requirements, and instead send requests to the environmentally-\n * assigned urls.\n */\n\nimport './plugins/logger';\nimport './lib/credentials';\nimport './lib/services';\n\nexport {Credentials, filterScope, grantErrors, sortScope, Token} from './lib/credentials';\n\nexport {\n ServiceCatalog,\n ServiceRegistry,\n ServiceState,\n Services,\n ServiceHost,\n ServiceUrl,\n} from './lib/services';\n\nexport {ServiceCatalogV2, ServicesV2, ServiceDetail} from './lib/services-v2';\nexport * as serviceConstants from './lib/constants';\nexport {\n makeWebexStore,\n makeWebexPluginStore,\n MemoryStoreAdapter,\n NotFoundError,\n persist,\n StorageError,\n waitForValue,\n} from './lib/storage';\n\nexport {default, registerPlugin, registerInternalPlugin} from './webex-core';\n\nexport {default as WebexHttpError} from './lib/webex-http-error';\nexport {default as StatelessWebexPlugin} from './lib/stateless-webex-plugin';\nexport {default as WebexPlugin} from './lib/webex-plugin';\nexport {default as AuthInterceptor} from './interceptors/auth';\nexport {default as CatalogUrlInterceptor} from './interceptors/catalog-url';\nexport {default as NetworkTimingInterceptor} from './interceptors/network-timing';\nexport {default as PayloadTransformerInterceptor} from './interceptors/payload-transformer';\nexport {default as RedirectInterceptor} from './interceptors/redirect';\nexport {default as ResponseLoggerInterceptor} from './interceptors/response-logger';\nexport {default as RequestEventInterceptor} from './interceptors/request-event';\nexport {default as RequestLoggerInterceptor} from './interceptors/request-logger';\nexport {default as RequestTimingInterceptor} from './interceptors/request-timing';\nexport {default as UserAgentInterceptor} from './interceptors/user-agent';\nexport {default as ProxyInterceptor} from './interceptors/proxy';\nexport {default as WebexTrackingIdInterceptor} from './interceptors/webex-tracking-id';\nexport {sequenceNumbers as webexTrackingIdSequenceNumbers} from './interceptors/webex-tracking-id';\nexport {default as WebexUserAgentInterceptor} from './interceptors/webex-user-agent';\nexport {default as RateLimitInterceptor} from './interceptors/rate-limit';\nexport {default as EmbargoInterceptor} from './interceptors/embargo';\nexport {default as DefaultOptionsInterceptor} from './interceptors/default-options';\nexport {default as HostMapInterceptor} from './lib/interceptors/hostmap';\nexport {default as ServiceInterceptor} from './lib/interceptors/service';\nexport {default as ServerErrorInterceptor} from './lib/interceptors/server-error';\n\nexport {default as Batcher} from './lib/batcher';\nexport {default as Page} from './lib/page';\nexport {default as config} from './config';\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["require","_credentials","_services","_servicesV","_serviceConstants","_interopRequireWildcard","exports","serviceConstants","_storage","_webexCore","_webexHttpError","_interopRequireDefault","_statelessWebexPlugin","_webexPlugin","_staticAssetLoader","_auth","_catalogUrl","_networkTiming","_payloadTransformer","_redirect","_responseLogger","_requestEvent","_requestLogger","_requestTiming","_userAgent","_proxy","_webexTrackingId","_webexUserAgent","_rateLimit","_embargo","_defaultOptions","_hostmap","_service","_serverError","_batcher","_page","_config","e","t","_WeakMap","r","n","__esModule","o","i","f","__proto__","default","_typeof","has","get","set","_t","hasOwnProperty","call","_Object$defineProperty","_Object$getOwnPropertyDescriptor"],"sources":["index.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n *\n * Services is currently a part of webex-core due to how the contents of\n * the original internal-plugin-services needed to be accessed when webex-core\n * is initialized. As a plugin outside of webex-core, it would initialize after\n * credentials, causing all requests prior to its initialization to fail\n * federation requirements, and instead send requests to the environmentally-\n * assigned urls.\n */\n\nimport './plugins/logger';\nimport './lib/credentials';\nimport './lib/services';\n\nexport {Credentials, filterScope, grantErrors, sortScope, Token} from './lib/credentials';\n\nexport {\n ServiceCatalog,\n ServiceRegistry,\n ServiceState,\n Services,\n ServiceHost,\n ServiceUrl,\n} from './lib/services';\n\nexport {ServiceCatalogV2, ServicesV2, ServiceDetail} from './lib/services-v2';\nexport * as serviceConstants from './lib/constants';\nexport {\n makeWebexStore,\n makeWebexPluginStore,\n MemoryStoreAdapter,\n NotFoundError,\n persist,\n StorageError,\n waitForValue,\n} from './lib/storage';\n\nexport {default, registerPlugin, registerInternalPlugin} from './webex-core';\n\nexport {default as WebexHttpError} from './lib/webex-http-error';\nexport {default as StatelessWebexPlugin} from './lib/stateless-webex-plugin';\nexport {default as WebexPlugin} from './lib/webex-plugin';\nexport {default as StaticAssetLoader} from './lib/static-asset-loader';\nexport {default as AuthInterceptor} from './interceptors/auth';\nexport {default as CatalogUrlInterceptor} from './interceptors/catalog-url';\nexport {default as NetworkTimingInterceptor} from './interceptors/network-timing';\nexport {default as PayloadTransformerInterceptor} from './interceptors/payload-transformer';\nexport {default as RedirectInterceptor} from './interceptors/redirect';\nexport {default as ResponseLoggerInterceptor} from './interceptors/response-logger';\nexport {default as RequestEventInterceptor} from './interceptors/request-event';\nexport {default as RequestLoggerInterceptor} from './interceptors/request-logger';\nexport {default as RequestTimingInterceptor} from './interceptors/request-timing';\nexport {default as UserAgentInterceptor} from './interceptors/user-agent';\nexport {default as ProxyInterceptor} from './interceptors/proxy';\nexport {default as WebexTrackingIdInterceptor} from './interceptors/webex-tracking-id';\nexport {sequenceNumbers as webexTrackingIdSequenceNumbers} from './interceptors/webex-tracking-id';\nexport {default as WebexUserAgentInterceptor} from './interceptors/webex-user-agent';\nexport {default as RateLimitInterceptor} from './interceptors/rate-limit';\nexport {default as EmbargoInterceptor} from './interceptors/embargo';\nexport {default as DefaultOptionsInterceptor} from './interceptors/default-options';\nexport {default as HostMapInterceptor} from './lib/interceptors/hostmap';\nexport {default as ServiceInterceptor} from './lib/interceptors/service';\nexport {default as ServerErrorInterceptor} from './lib/interceptors/server-error';\n\nexport {default as Batcher} from './lib/batcher';\nexport {default as Page} from './lib/page';\nexport {default as config} from './config';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWAA,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AAaA,IAAAG,UAAA,GAAAH,OAAA;AAA8E,IAAAI,iBAAA,GAAAC,uBAAA,CAAAL,OAAA;AAAAM,OAAA,CAAAC,gBAAA,GAAAH,iBAAA;AAE9E,IAAAI,QAAA,GAAAR,OAAA;AAUA,IAAAS,UAAA,GAAAJ,uBAAA,CAAAL,OAAA;AAEA,IAAAU,eAAA,GAAAC,sBAAA,CAAAX,OAAA;AACA,IAAAY,qBAAA,GAAAD,sBAAA,CAAAX,OAAA;AACA,IAAAa,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,QAAA,YAAAlC,uBAAA,YAAAA,wBAAAgC,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,gBAAAW,OAAA,CAAAX,CAAA,0BAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAM,GAAA,CAAAZ,CAAA,UAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,GAAAM,CAAA,CAAAQ,GAAA,CAAAd,CAAA,EAAAQ,CAAA,cAAAO,EAAA,IAAAf,CAAA,gBAAAe,EAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAjB,CAAA,EAAAe,EAAA,OAAAR,CAAA,IAAAD,CAAA,GAAAY,sBAAA,KAAAC,gCAAA,CAAAnB,CAAA,EAAAe,EAAA,OAAAR,CAAA,CAAAM,GAAA,IAAAN,CAAA,CAAAO,GAAA,IAAAR,CAAA,CAAAE,CAAA,EAAAO,EAAA,EAAAR,CAAA,IAAAC,CAAA,CAAAO,EAAA,IAAAf,CAAA,CAAAe,EAAA,WAAAP,CAAA,KAAAR,CAAA,EAAAC,CAAA","ignoreList":[]}
|
package/dist/lib/batcher.js
CHANGED
|
@@ -302,7 +302,7 @@ var Batcher = _webexPlugin.default.extend({
|
|
|
302
302
|
fingerprintResponse: function fingerprintResponse(item) {
|
|
303
303
|
throw new Error('fingerprintResponse() must be implemented');
|
|
304
304
|
},
|
|
305
|
-
version: "3.12.0-next.
|
|
305
|
+
version: "3.12.0-next.64"
|
|
306
306
|
});
|
|
307
307
|
var _default2 = exports.default = Batcher;
|
|
308
308
|
//# sourceMappingURL=batcher.js.map
|
|
@@ -655,7 +655,7 @@ var Credentials = _webexPlugin.default.extend((_dec = (0, _common.oneFlight)({
|
|
|
655
655
|
this.refresh();
|
|
656
656
|
}
|
|
657
657
|
},
|
|
658
|
-
version: "3.12.0-next.
|
|
658
|
+
version: "3.12.0-next.64"
|
|
659
659
|
}, (0, _applyDecoratedDescriptor2.default)(_obj, "getUserToken", [_dec, _dec2], (0, _getOwnPropertyDescriptor.default)(_obj, "getUserToken"), _obj), (0, _applyDecoratedDescriptor2.default)(_obj, "initialize", [_dec3], (0, _getOwnPropertyDescriptor.default)(_obj, "initialize"), _obj), (0, _applyDecoratedDescriptor2.default)(_obj, "invalidate", [_common.oneFlight, _dec4], (0, _getOwnPropertyDescriptor.default)(_obj, "invalidate"), _obj), (0, _applyDecoratedDescriptor2.default)(_obj, "refresh", [_common.oneFlight, _dec5, _dec6], (0, _getOwnPropertyDescriptor.default)(_obj, "refresh"), _obj), _obj));
|
|
660
660
|
var _default = exports.default = Credentials;
|
|
661
661
|
//# sourceMappingURL=credentials.js.map
|
|
@@ -532,7 +532,7 @@ var Token = _webexPlugin.default.extend((_dec = (0, _common.oneFlight)({
|
|
|
532
532
|
return res.body;
|
|
533
533
|
});
|
|
534
534
|
},
|
|
535
|
-
version: "3.12.0-next.
|
|
535
|
+
version: "3.12.0-next.64"
|
|
536
536
|
}, (0, _applyDecoratedDescriptor2.default)(_obj, "downscope", [_dec], (0, _getOwnPropertyDescriptor.default)(_obj, "downscope"), _obj), (0, _applyDecoratedDescriptor2.default)(_obj, "refresh", [_common.oneFlight], (0, _getOwnPropertyDescriptor.default)(_obj, "refresh"), _obj), (0, _applyDecoratedDescriptor2.default)(_obj, "revoke", [_common.oneFlight], (0, _getOwnPropertyDescriptor.default)(_obj, "revoke"), _obj), _obj));
|
|
537
537
|
var _default = exports.default = Token;
|
|
538
538
|
//# sourceMappingURL=token.js.map
|
|
@@ -1641,7 +1641,7 @@ var Services = _webexPlugin.default.extend({
|
|
|
1641
1641
|
}, _callee6);
|
|
1642
1642
|
})));
|
|
1643
1643
|
},
|
|
1644
|
-
version: "3.12.0-next.
|
|
1644
|
+
version: "3.12.0-next.64"
|
|
1645
1645
|
});
|
|
1646
1646
|
/* eslint-enable no-underscore-dangle */
|
|
1647
1647
|
var _default = exports.default = Services;
|
|
@@ -1577,7 +1577,7 @@ var Services = _webexPlugin.default.extend({
|
|
|
1577
1577
|
}, _callee5);
|
|
1578
1578
|
})));
|
|
1579
1579
|
},
|
|
1580
|
-
version: "3.12.0-next.
|
|
1580
|
+
version: "3.12.0-next.64"
|
|
1581
1581
|
});
|
|
1582
1582
|
/* eslint-enable no-underscore-dangle */
|
|
1583
1583
|
var _default = exports.default = Services;
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _Reflect$construct = require("@babel/runtime-corejs2/core-js/reflect/construct");
|
|
4
|
+
var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property");
|
|
5
|
+
var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault");
|
|
6
|
+
_Object$defineProperty(exports, "__esModule", {
|
|
7
|
+
value: true
|
|
8
|
+
});
|
|
9
|
+
exports.default = void 0;
|
|
10
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime-corejs2/regenerator"));
|
|
11
|
+
var _map = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/map"));
|
|
12
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/asyncToGenerator"));
|
|
13
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/classCallCheck"));
|
|
14
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/createClass"));
|
|
15
|
+
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/possibleConstructorReturn"));
|
|
16
|
+
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/getPrototypeOf"));
|
|
17
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/inherits"));
|
|
18
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/defineProperty"));
|
|
19
|
+
var _statelessWebexPlugin = _interopRequireDefault(require("./stateless-webex-plugin"));
|
|
20
|
+
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? _Reflect$construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
21
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /*!
|
|
22
|
+
* Copyright (c) 2015-2026 Cisco Systems, Inc. See LICENSE file.
|
|
23
|
+
*/ // @ts-ignore
|
|
24
|
+
/**
|
|
25
|
+
* Detects an HTML document prefix in an otherwise successful binary asset response.
|
|
26
|
+
* @param {ArrayBuffer} buffer
|
|
27
|
+
* @returns {boolean}
|
|
28
|
+
*/
|
|
29
|
+
function looksLikeHtmlDocument(buffer) {
|
|
30
|
+
var prefix = new TextDecoder().decode(buffer.slice(0, 256)).trimStart();
|
|
31
|
+
return prefix.startsWith('<');
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Resolves and downloads static assets for SDK plugins. Requests are shared between callers and
|
|
36
|
+
* cached after a successful response.
|
|
37
|
+
*/
|
|
38
|
+
var StaticAssetLoader = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
39
|
+
/**
|
|
40
|
+
* @param {Object} attrs
|
|
41
|
+
* @param {string} attrs.baseUrl - Base URL for the plugin's static assets.
|
|
42
|
+
* @param {Object} options
|
|
43
|
+
* @param {Object} [options.parent] - The parent Webex SDK instance.
|
|
44
|
+
*/
|
|
45
|
+
function StaticAssetLoader(attrs) {
|
|
46
|
+
var _this;
|
|
47
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
48
|
+
(0, _classCallCheck2.default)(this, StaticAssetLoader);
|
|
49
|
+
_this = _callSuper(this, StaticAssetLoader, [attrs, options]);
|
|
50
|
+
(0, _defineProperty2.default)(_this, "baseUrl", void 0);
|
|
51
|
+
(0, _defineProperty2.default)(_this, "assets", new _map.default());
|
|
52
|
+
_this.baseUrl = attrs.baseUrl.replace(/\/+$/, ''); // remove trailing slashes
|
|
53
|
+
return _this;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Returns the URL for an asset in the configured asset directory.
|
|
58
|
+
* @param {string} assetName
|
|
59
|
+
* @returns {string}
|
|
60
|
+
*/
|
|
61
|
+
(0, _inherits2.default)(StaticAssetLoader, _StatelessWebexPlugin);
|
|
62
|
+
return (0, _createClass2.default)(StaticAssetLoader, [{
|
|
63
|
+
key: "getUrl",
|
|
64
|
+
value: function getUrl(assetName) {
|
|
65
|
+
return "".concat(this.baseUrl, "/").concat(assetName.replace(/^\/+/, '')); // regex removes leading slashes from the asset name
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Downloads an asset as bytes. Failed requests are evicted so a later call can retry.
|
|
70
|
+
* @param {string} assetName
|
|
71
|
+
* @returns {Promise<Uint8Array>}
|
|
72
|
+
*/
|
|
73
|
+
}, {
|
|
74
|
+
key: "getBytes",
|
|
75
|
+
value: (function () {
|
|
76
|
+
var _getBytes = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(assetName) {
|
|
77
|
+
var _this2 = this;
|
|
78
|
+
var url, asset, _t, _t2;
|
|
79
|
+
return _regenerator.default.wrap(function (_context) {
|
|
80
|
+
while (1) switch (_context.prev = _context.next) {
|
|
81
|
+
case 0:
|
|
82
|
+
url = this.getUrl(assetName);
|
|
83
|
+
asset = this.assets.get(url);
|
|
84
|
+
if (!asset) {
|
|
85
|
+
// @ts-ignore - StatelessWebexPlugin exposes request from the parent Webex instance.
|
|
86
|
+
asset = this.request({
|
|
87
|
+
method: 'GET',
|
|
88
|
+
uri: url,
|
|
89
|
+
responseType: 'buffer',
|
|
90
|
+
// Assets may be hosted on a third-party CDN: never send the user's token, and suppress
|
|
91
|
+
// the SDK's custom headers so the request doesn't trigger a CORS preflight.
|
|
92
|
+
addAuthHeader: false,
|
|
93
|
+
headers: {
|
|
94
|
+
trackingid: null,
|
|
95
|
+
'spark-user-agent': null,
|
|
96
|
+
'cisco-no-http-redirect': null
|
|
97
|
+
}
|
|
98
|
+
}).then(function (response) {
|
|
99
|
+
var _response$headers, _response$headers$con;
|
|
100
|
+
if (response.statusCode < 200 || response.statusCode >= 300) {
|
|
101
|
+
throw new Error("Failed to fetch static asset ".concat(url, ": HTTP ").concat(response.statusCode));
|
|
102
|
+
}
|
|
103
|
+
var contentType = (_response$headers = response.headers) === null || _response$headers === void 0 ? void 0 : (_response$headers$con = _response$headers['content-type']) === null || _response$headers$con === void 0 ? void 0 : _response$headers$con.split(';')[0].trim().toLowerCase();
|
|
104
|
+
if (contentType === 'text/html' || contentType === 'application/xhtml+xml') {
|
|
105
|
+
throw new Error("Failed to fetch static asset ".concat(url, ": unexpected HTML content type \"").concat(contentType, "\""));
|
|
106
|
+
}
|
|
107
|
+
var responseBody = response.body;
|
|
108
|
+
var buffer;
|
|
109
|
+
if (responseBody instanceof ArrayBuffer) {
|
|
110
|
+
buffer = responseBody;
|
|
111
|
+
} else if (ArrayBuffer.isView(responseBody)) {
|
|
112
|
+
buffer = responseBody.buffer.slice(responseBody.byteOffset, responseBody.byteOffset + responseBody.byteLength);
|
|
113
|
+
} else {
|
|
114
|
+
throw new Error("Failed to fetch static asset ".concat(url, ": response body is not binary data"));
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
// Some static servers return an HTML fallback page with a successful status and a
|
|
118
|
+
// generic binary content type. Reject it before callers pass those bytes to modules
|
|
119
|
+
// that expect binary data, such as WASM.
|
|
120
|
+
if (looksLikeHtmlDocument(buffer)) {
|
|
121
|
+
throw new Error("Failed to fetch static asset ".concat(url, ": response body looks like an HTML document"));
|
|
122
|
+
}
|
|
123
|
+
return buffer;
|
|
124
|
+
}).catch(function (error) {
|
|
125
|
+
_this2.assets.delete(url);
|
|
126
|
+
throw error;
|
|
127
|
+
});
|
|
128
|
+
this.assets.set(url, asset);
|
|
129
|
+
}
|
|
130
|
+
_t = Uint8Array;
|
|
131
|
+
_context.next = 1;
|
|
132
|
+
return asset;
|
|
133
|
+
case 1:
|
|
134
|
+
_t2 = _context.sent.slice(0);
|
|
135
|
+
return _context.abrupt("return", new _t(_t2));
|
|
136
|
+
case 2:
|
|
137
|
+
case "end":
|
|
138
|
+
return _context.stop();
|
|
139
|
+
}
|
|
140
|
+
}, _callee, this);
|
|
141
|
+
}));
|
|
142
|
+
function getBytes(_x) {
|
|
143
|
+
return _getBytes.apply(this, arguments);
|
|
144
|
+
}
|
|
145
|
+
return getBytes;
|
|
146
|
+
}())
|
|
147
|
+
}]);
|
|
148
|
+
}(_statelessWebexPlugin.default);
|
|
149
|
+
//# sourceMappingURL=static-asset-loader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_statelessWebexPlugin","_interopRequireDefault","require","_callSuper","t","o","e","_getPrototypeOf2","default","_possibleConstructorReturn2","_isNativeReflectConstruct","_Reflect$construct","constructor","apply","Boolean","prototype","valueOf","call","looksLikeHtmlDocument","buffer","prefix","TextDecoder","decode","slice","trimStart","startsWith","StaticAssetLoader","exports","_StatelessWebexPlugin","attrs","_this","options","arguments","length","undefined","_classCallCheck2","_defineProperty2","_map","baseUrl","replace","_inherits2","_createClass2","key","value","getUrl","assetName","concat","_getBytes","_asyncToGenerator2","_regenerator","mark","_callee","_this2","url","asset","_t","_t2","wrap","_context","prev","next","assets","get","request","method","uri","responseType","addAuthHeader","headers","trackingid","then","response","_response$headers","_response$headers$con","statusCode","Error","contentType","split","trim","toLowerCase","responseBody","body","ArrayBuffer","isView","byteOffset","byteLength","catch","error","delete","set","Uint8Array","sent","abrupt","stop","getBytes","_x","StatelessWebexPlugin"],"sources":["static-asset-loader.ts"],"sourcesContent":["/*!\n * Copyright (c) 2015-2026 Cisco Systems, Inc. See LICENSE file.\n */\n\n// @ts-ignore\nimport StatelessWebexPlugin from './stateless-webex-plugin';\n\n/**\n * Detects an HTML document prefix in an otherwise successful binary asset response.\n * @param {ArrayBuffer} buffer\n * @returns {boolean}\n */\nfunction looksLikeHtmlDocument(buffer: ArrayBuffer): boolean {\n const prefix = new TextDecoder().decode(buffer.slice(0, 256)).trimStart();\n\n return prefix.startsWith('<');\n}\n\n/**\n * Resolves and downloads static assets for SDK plugins. Requests are shared between callers and\n * cached after a successful response.\n */\nexport default class StaticAssetLoader extends StatelessWebexPlugin {\n private readonly baseUrl: string;\n\n private readonly assets = new Map<string, Promise<ArrayBuffer>>();\n\n /**\n * @param {Object} attrs\n * @param {string} attrs.baseUrl - Base URL for the plugin's static assets.\n * @param {Object} options\n * @param {Object} [options.parent] - The parent Webex SDK instance.\n */\n constructor(attrs: {baseUrl: string}, options: {parent?: any} = {}) {\n super(attrs, options);\n this.baseUrl = attrs.baseUrl.replace(/\\/+$/, ''); // remove trailing slashes\n }\n\n /**\n * Returns the URL for an asset in the configured asset directory.\n * @param {string} assetName\n * @returns {string}\n */\n getUrl(assetName: string): string {\n return `${this.baseUrl}/${assetName.replace(/^\\/+/, '')}`; // regex removes leading slashes from the asset name\n }\n\n /**\n * Downloads an asset as bytes. Failed requests are evicted so a later call can retry.\n * @param {string} assetName\n * @returns {Promise<Uint8Array>}\n */\n async getBytes(assetName: string): Promise<Uint8Array> {\n const url = this.getUrl(assetName);\n let asset = this.assets.get(url);\n\n if (!asset) {\n // @ts-ignore - StatelessWebexPlugin exposes request from the parent Webex instance.\n asset = this.request({\n method: 'GET',\n uri: url,\n responseType: 'buffer',\n // Assets may be hosted on a third-party CDN: never send the user's token, and suppress\n // the SDK's custom headers so the request doesn't trigger a CORS preflight.\n addAuthHeader: false,\n headers: {\n trackingid: null,\n 'spark-user-agent': null,\n 'cisco-no-http-redirect': null,\n },\n })\n .then((response: any) => {\n if (response.statusCode < 200 || response.statusCode >= 300) {\n throw new Error(`Failed to fetch static asset ${url}: HTTP ${response.statusCode}`);\n }\n\n const contentType = response.headers?.['content-type']\n ?.split(';')[0]\n .trim()\n .toLowerCase();\n\n if (contentType === 'text/html' || contentType === 'application/xhtml+xml') {\n throw new Error(\n `Failed to fetch static asset ${url}: unexpected HTML content type \"${contentType}\"`\n );\n }\n\n const responseBody = response.body;\n let buffer: ArrayBuffer;\n\n if (responseBody instanceof ArrayBuffer) {\n buffer = responseBody;\n } else if (ArrayBuffer.isView(responseBody)) {\n buffer = responseBody.buffer.slice(\n responseBody.byteOffset,\n responseBody.byteOffset + responseBody.byteLength\n ) as ArrayBuffer;\n } else {\n throw new Error(\n `Failed to fetch static asset ${url}: response body is not binary data`\n );\n }\n\n // Some static servers return an HTML fallback page with a successful status and a\n // generic binary content type. Reject it before callers pass those bytes to modules\n // that expect binary data, such as WASM.\n if (looksLikeHtmlDocument(buffer)) {\n throw new Error(\n `Failed to fetch static asset ${url}: response body looks like an HTML document`\n );\n }\n\n return buffer;\n })\n .catch((error: Error) => {\n this.assets.delete(url);\n throw error;\n });\n this.assets.set(url, asset);\n }\n\n return new Uint8Array((await asset).slice(0));\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAKA,IAAAA,qBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA4D,SAAAC,WAAAC,CAAA,EAAAC,CAAA,EAAAC,CAAA,WAAAD,CAAA,OAAAE,gBAAA,CAAAC,OAAA,EAAAH,CAAA,OAAAI,2BAAA,CAAAD,OAAA,EAAAJ,CAAA,EAAAM,yBAAA,KAAAC,kBAAA,CAAAN,CAAA,EAAAC,CAAA,YAAAC,gBAAA,CAAAC,OAAA,EAAAJ,CAAA,EAAAQ,WAAA,IAAAP,CAAA,CAAAQ,KAAA,CAAAT,CAAA,EAAAE,CAAA;AAAA,SAAAI,0BAAA,cA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CAAC2B,MAAM,CAACnC,GAAG,CAAC;kBACvB,MAAMkC,KAAK;gBACb,CAAC,CAAC;gBACJ,IAAI,CAAC1B,MAAM,CAAC4B,GAAG,CAACpC,GAAG,EAAEC,KAAK,CAAC;cAC7B;cAACC,EAAA,GAEUmC,UAAU;cAAAhC,QAAA,CAAAE,IAAA;cAAA,OAAQN,KAAK;YAAA;cAAAE,GAAA,GAAAE,QAAA,CAAAiC,IAAA,CAAEpE,KAAK,CAAC,CAAC;cAAA,OAAAmC,QAAA,CAAAkC,MAAA,eAAArC,EAAA,CAAAC,GAAA;YAAA;YAAA;cAAA,OAAAE,QAAA,CAAAmC,IAAA;UAAA;QAAA,GAAA1C,OAAA;MAAA,CAC5C;MAAA,SAtEK2C,QAAQA,CAAAC,EAAA;QAAA,OAAAhD,SAAA,CAAAlC,KAAA,OAAAmB,SAAA;MAAA;MAAA,OAAR8D,QAAQ;IAAA;EAAA;AAAA,EA9B+BE,6BAAoB","ignoreList":[]}
|
package/dist/plugins/logger.js
CHANGED
|
@@ -57,7 +57,7 @@ var Logger = _webexPlugin.default.extend({
|
|
|
57
57
|
info: wrapConsoleMethod('info'),
|
|
58
58
|
debug: wrapConsoleMethod('debug'),
|
|
59
59
|
trace: wrapConsoleMethod('trace'),
|
|
60
|
-
version: "3.12.0-next.
|
|
60
|
+
version: "3.12.0-next.64"
|
|
61
61
|
});
|
|
62
62
|
(0, _webexCore.registerPlugin)('logger', Logger);
|
|
63
63
|
var _default = exports.default = Logger;
|
package/dist/webex-core.js
CHANGED
|
@@ -98,7 +98,7 @@ var MAX_FILE_SIZE_IN_MB = 2048;
|
|
|
98
98
|
* @class
|
|
99
99
|
*/
|
|
100
100
|
var WebexCore = _ampersandState.default.extend((_obj = {
|
|
101
|
-
version: "3.12.0-next.
|
|
101
|
+
version: "3.12.0-next.64",
|
|
102
102
|
children: {
|
|
103
103
|
internal: _webexInternalCore.default
|
|
104
104
|
},
|
|
@@ -642,7 +642,7 @@ var WebexCore = _ampersandState.default.extend((_obj = {
|
|
|
642
642
|
});
|
|
643
643
|
}
|
|
644
644
|
}, (0, _applyDecoratedDescriptor2.default)(_obj, "_uploadPhaseUpload", [_common.retry], (0, _getOwnPropertyDescriptor.default)(_obj, "_uploadPhaseUpload"), _obj), _obj));
|
|
645
|
-
WebexCore.version = "3.12.0-next.
|
|
645
|
+
WebexCore.version = "3.12.0-next.64";
|
|
646
646
|
(0, _webexInternalCorePluginMixin.default)(_webexInternalCore.default, _config.default, interceptors);
|
|
647
647
|
(0, _webexCorePluginMixin.default)(WebexCore, _config.default, interceptors);
|
|
648
648
|
var _default = exports.default = WebexCore;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<!-- sdd-generated-metadata
|
|
2
|
+
doc_kind: standing-doc
|
|
3
|
+
generated_from: adr-index@0.3.0
|
|
4
|
+
generated_by: claude-code
|
|
5
|
+
approved_by: rsarika@cisco.com
|
|
6
|
+
updated_at: 2026-10-07T13:20:21Z
|
|
7
|
+
validation_status: pass-with-warnings
|
|
8
|
+
-->
|
|
9
|
+
|
|
10
|
+
# Architectural decision records
|
|
11
|
+
|
|
12
|
+
Numbered, append-only records of structural decisions affecting `@webex/webex-core` and its
|
|
13
|
+
documentation. Add a concrete ADR (for example, `0001-some-decision.md`) when a decision is
|
|
14
|
+
non-obvious, hard to reverse, or worth explaining to a future contributor. Do not edit an accepted
|
|
15
|
+
decision in place when its outcome changes; supersede it with a new ADR and link both records.
|
|
16
|
+
|
|
17
|
+
## Index
|
|
18
|
+
|
|
19
|
+
No architectural decisions are registered yet.
|
|
20
|
+
|
|
21
|
+
The package does carry design decisions worth preserving — services and credentials living inside core
|
|
22
|
+
rather than as outside plugins (stated in the header comment of [`src/index.js`](../../src/index.js)), a
|
|
23
|
+
process-global plugin registry, and parallel v1 and v2 service discovery. They are recorded in the
|
|
24
|
+
module specifications' trade-off sections rather than as ADRs, because the code does not identify the
|
|
25
|
+
deciders or decision dates an ADR record requires. Promote any of them to a numbered ADR once that
|
|
26
|
+
provenance is established.
|
|
27
|
+
|
|
28
|
+
Add new entries as ADRs are accepted. Keep this list in numeric order.
|
|
29
|
+
|
|
30
|
+
Each ADR should state its context, decision, alternatives, consequences, and the condition that would
|
|
31
|
+
cause the team to revisit it. Record the deciders, any superseded decision, and the constraint future
|
|
32
|
+
changes must preserve.
|