dsh-github-copilot 0.1.0-alpha.13.dsh.0.2.2.rc.3 → 0.1.0-alpha.14.dsh.0.2.2.rc.3
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/AGENTS.md +12 -0
- package/CHANGELOG.md +6 -0
- package/README.md +7 -3
- package/README.zh.md +6 -3
- package/deployment-baseline.json +7 -2
- package/docs/plugin-diagnostics.md +40 -4
- package/lib/client.js +77 -7
- package/lib/client.js.map +1 -1
- package/lib/diagnostics-analysis.js +6 -4
- package/lib/{diagnostics-types-DSXrTSCU.js → diagnostics-types-o02ogaiI.js} +9 -1
- package/lib/index.js +188 -5
- package/lib/manual-compaction-recovery.js +1 -1
- package/lib/remote.js +18 -1
- package/lib/types/config.d.ts +6 -2
- package/lib/types/diagnostics-analysis.d.ts +14 -0
- package/lib/types/diagnostics-collector.d.ts +8 -0
- package/lib/types/diagnostics-host.d.ts +5 -3
- package/lib/types/diagnostics-remote.d.ts +8 -0
- package/lib/types/diagnostics-types.d.ts +33 -2
- package/lib/types/native-diagnostics.d.ts +5 -0
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -164,6 +164,18 @@ evidence stay unknown. Preserve #385 qualification/revocation; clear, pause,
|
|
|
164
164
|
expiry and disposal fence later callbacks. Each diagnostic population, including
|
|
165
165
|
Auto, is independently collapsed by default; opening it never enables collection.
|
|
166
166
|
|
|
167
|
+
Native logical observations (#486) require a separate default-off
|
|
168
|
+
`nativeDiagnosticsEnabled` CAS/readback consent. Observe only the public
|
|
169
|
+
`llm/stream` waterfall and the plugin's native hosted-search operation, without
|
|
170
|
+
changing chunks, transport, retries or Usage. Store fixed hourly counts, coarse
|
|
171
|
+
duration buckets and terminal categories, never content, model/account/Session
|
|
172
|
+
IDs or raw errors. Review purpose is not proof of reviewer identity; neither
|
|
173
|
+
logical observation proves HTTP dispatch, supplier receipt, execution or
|
|
174
|
+
billing. Clear/pause/disposal fence late and unconsumed streams. Native and
|
|
175
|
+
account aggregates share the 14-day, 128-live and 2 MiB limits but remain
|
|
176
|
+
separate in presentation and offline analysis. Older strict versions may reject
|
|
177
|
+
new operation codes on rollback; never delete retained evidence to work around it.
|
|
178
|
+
|
|
167
179
|
## Session-policy compaction replay consent (#349, #352)
|
|
168
180
|
|
|
169
181
|
`/copilot-compact visible-history` explicitly authorizes one lossy managed Responses
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.14.dsh.0.2.2.rc.3 (prepared)
|
|
4
|
+
|
|
5
|
+
- Add independently enabled, content-free native Copilot logical stream and hosted-search aggregates (#486).
|
|
6
|
+
- Keep native observations separate from managed physical-request diagnostics; they do not prove HTTP dispatch, supplier receipt or execution.
|
|
7
|
+
- Preserve request, retry, Usage and settings ownership; old strict versions may not read retained new operation codes on rollback.
|
|
8
|
+
|
|
3
9
|
## 0.1.0-alpha.13.dsh.0.2.2.rc.3 (prepared)
|
|
4
10
|
|
|
5
11
|
- Qualify native Copilot profiles after actual Config/Settings normalization: schema-default empty template maps and boolean `supportsStrictMode` no longer disable reviewer-only temperature omission or canonical hosted-search readiness (#483).
|
package/README.md
CHANGED
|
@@ -67,15 +67,15 @@ After the exact compatible release is available and verified, download its
|
|
|
67
67
|
original asset and checksum in an empty directory:
|
|
68
68
|
|
|
69
69
|
```sh
|
|
70
|
-
curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.
|
|
71
|
-
curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.
|
|
70
|
+
curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.14.dsh.0.2.2.rc.3/dsh-github-copilot-0.1.0-alpha.14.dsh.0.2.2.rc.3.tgz
|
|
71
|
+
curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.14.dsh.0.2.2.rc.3/SHA256SUMS
|
|
72
72
|
sha256sum --check SHA256SUMS
|
|
73
73
|
```
|
|
74
74
|
|
|
75
75
|
For the `web` profile, install the same Release asset:
|
|
76
76
|
|
|
77
77
|
```sh
|
|
78
|
-
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.
|
|
78
|
+
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.14.dsh.0.2.2.rc.3/dsh-github-copilot-0.1.0-alpha.14.dsh.0.2.2.rc.3.tgz
|
|
79
79
|
```
|
|
80
80
|
|
|
81
81
|
Choose the intended profile explicitly. Then:
|
|
@@ -163,6 +163,10 @@ cannot be verified, quota is shown as unavailable rather than attributed to a
|
|
|
163
163
|
different account. This is not proof of request-level billing attribution.
|
|
164
164
|
Native context-incident diagnostics remain available without the optional
|
|
165
165
|
managed continuation service; they do not replace DSH's context meter.
|
|
166
|
+
Local diagnostics also offers separately opt-in, content-free logical
|
|
167
|
+
observations for native Copilot streams and the optional Copilot search backend.
|
|
168
|
+
They do not expose HTTP details or prove supplier receipt or execution.
|
|
169
|
+
See [local diagnostics](./docs/plugin-diagnostics.md).
|
|
166
170
|
|
|
167
171
|
### Removing the enhancement
|
|
168
172
|
|
package/README.zh.md
CHANGED
|
@@ -55,15 +55,15 @@ node scripts/select-core-release.mjs 0.2.2-rc.3
|
|
|
55
55
|
精确兼容版本发布且通过验证后,在空目录下载原始制品并校验:
|
|
56
56
|
|
|
57
57
|
```sh
|
|
58
|
-
curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.
|
|
59
|
-
curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.
|
|
58
|
+
curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.14.dsh.0.2.2.rc.3/dsh-github-copilot-0.1.0-alpha.14.dsh.0.2.2.rc.3.tgz
|
|
59
|
+
curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.14.dsh.0.2.2.rc.3/SHA256SUMS
|
|
60
60
|
sha256sum --check SHA256SUMS
|
|
61
61
|
```
|
|
62
62
|
|
|
63
63
|
例如安装到 `web` profile:
|
|
64
64
|
|
|
65
65
|
```sh
|
|
66
|
-
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.
|
|
66
|
+
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.14.dsh.0.2.2.rc.3/dsh-github-copilot-0.1.0-alpha.14.dsh.0.2.2.rc.3.tgz
|
|
67
67
|
```
|
|
68
68
|
|
|
69
69
|
请明确选择目标 profile,然后:
|
|
@@ -124,6 +124,9 @@ CI 验收和 Desktop 实际加载属于不同证据层级。参见
|
|
|
124
124
|
端点或非空请求头,或无法确认其配置,则显示额度不可用,不会将其他账号的额度归到原生路线。
|
|
125
125
|
这不证明单次请求实际计费的账号。
|
|
126
126
|
原生上下文异常诊断不依赖可选的托管续接服务,也不会替代 DSH 的上下文计量。
|
|
127
|
+
Local diagnostics 可另行启用不含内容的原生 Copilot 逻辑流和可选 Copilot 搜索观察;
|
|
128
|
+
它不显示 HTTP 细节,也不证明供应商收到请求或执行成功。参见
|
|
129
|
+
[本地诊断说明](./docs/plugin-diagnostics.md)。
|
|
127
130
|
|
|
128
131
|
### 移除增强
|
|
129
132
|
|
package/deployment-baseline.json
CHANGED
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
},
|
|
9
9
|
"package": {
|
|
10
10
|
"name": "dsh-github-copilot",
|
|
11
|
-
"version": "0.1.0-alpha.
|
|
11
|
+
"version": "0.1.0-alpha.14.dsh.0.2.2.rc.3"
|
|
12
12
|
},
|
|
13
13
|
"releaseLines": [
|
|
14
14
|
{ "core": "0.2.0-rc.2", "version": "0.4.2-alpha.15", "status": "published" },
|
|
15
15
|
{ "core": "0.2.1-alpha.4", "version": "0.4.2-alpha.16", "status": "published" },
|
|
16
16
|
{ "core": "0.2.1-alpha.5", "version": "0.1.0-alpha.2.dsh.0.2.1.alpha.5", "status": "published" },
|
|
17
17
|
{ "core": "0.2.1-rc.3", "version": "0.1.0-alpha.5.dsh.0.2.1.rc.3", "status": "published" },
|
|
18
|
-
{ "core": "0.2.2-rc.3", "version": "0.1.0-alpha.
|
|
18
|
+
{ "core": "0.2.2-rc.3", "version": "0.1.0-alpha.14.dsh.0.2.2.rc.3", "status": "pending" }
|
|
19
19
|
],
|
|
20
20
|
"evidence": {
|
|
21
21
|
"kind": "source-and-synthetic-test-inventory",
|
|
@@ -419,6 +419,8 @@
|
|
|
419
419
|
{"file": "src/request-body-composition.ts", "marker": "concurrent: 4"},
|
|
420
420
|
{"file": "src/request-diagnostics.ts", "marker": "REQUEST_DIAGNOSTICS_RETENTION_MS = 24 * 60 * 60 * 1000"},
|
|
421
421
|
{"file": "src/config.ts", "marker": "requestDiagnosticsEnabled: z.boolean().default(false).hidden().volatile()"},
|
|
422
|
+
{"file": "src/config.ts", "marker": "nativeDiagnosticsEnabled: z.boolean().default(false).hidden().volatile()"},
|
|
423
|
+
{"file": "src/native-diagnostics.ts", "marker": "observeNativeStream"},
|
|
422
424
|
{"file": "src/diagnostics-host.ts", "marker": "diagnosticsDomainForProfile"},
|
|
423
425
|
{"file": "src/diagnostics-client.ts", "marker": "createClientDiagnosticsScope"},
|
|
424
426
|
{"file": "src/remote.ts", "marker": "...diagnosticsRemote.descriptors"},
|
|
@@ -427,6 +429,9 @@
|
|
|
427
429
|
],
|
|
428
430
|
"tests": [
|
|
429
431
|
{"file": "tests/diagnostics-collector.spec.ts", "name": "is disabled until enabled, records success denominators and settles once"},
|
|
432
|
+
{"file": "tests/diagnostics-collector.spec.ts", "name": "requires independent native consent and fences paused or cleared native operations"},
|
|
433
|
+
{"file": "tests/native-diagnostics.spec.ts", "name": "preserves chunks and records only fixed, content-free terminal evidence"},
|
|
434
|
+
{"file": "tests/fixtures/diagnostics-native-core.fixture.ts", "name": "observes native and prepared streams through the published waterfall without affecting output"},
|
|
430
435
|
{"file": "tests/auto-allocation-diagnostics.spec.ts", "name": "separates assessment outcomes without changing model opportunities or exposing errors"},
|
|
431
436
|
{"file": "tests/auto-allocation-diagnostics.spec.ts", "name": "keeps legacy reasons unrecorded and captures no-fit and successful assessment outcomes"},
|
|
432
437
|
{"file": "tests/request-diagnostics.spec.ts", "name": "requires independent consent, captures status/timing and never infers upload or retry count"},
|
|
@@ -23,7 +23,7 @@ collection **and bounded local aggregate persistence**, not exports or uploads.
|
|
|
23
23
|
The normal installation does not change this default-off setting.
|
|
24
24
|
|
|
25
25
|
The dedicated Local diagnostics region opens with independently collapsed
|
|
26
|
-
**Physical request observations**, **Credential change observations**, and,
|
|
26
|
+
**Native Copilot observations**, **Physical request observations**, **Credential change observations**, and,
|
|
27
27
|
when present, **Account and compaction observations**. Summaries retain compact
|
|
28
28
|
status/count information; expanding a group neither enables collection nor
|
|
29
29
|
performs another status/request call. Account and compaction summaries,
|
|
@@ -45,8 +45,42 @@ snapshot fields on rollback; do not delete or silently rewrite retained evidence
|
|
|
45
45
|
The separate **Enable request observations** control uses the hidden volatile
|
|
46
46
|
`github-copilot.requestDiagnosticsEnabled` leaf with path-level CAS and exact
|
|
47
47
|
readback. Existing aggregate consent never enables request observations.
|
|
48
|
+
**Enable native observations** is a third, independent default-off consent,
|
|
49
|
+
stored as `github-copilot.nativeDiagnosticsEnabled` with path-level CAS and
|
|
50
|
+
exact readback. Existing request or aggregate settings never enable it.
|
|
48
51
|
**Clear local diagnostics** also clears retained historical Auto aggregates and
|
|
49
|
-
request observations, without changing saved collection settings.
|
|
52
|
+
request and native observations, without changing saved collection settings.
|
|
53
|
+
|
|
54
|
+
### Native Copilot logical observations (#486)
|
|
55
|
+
|
|
56
|
+
The public `llm/stream` waterfall observes consumed streams for the exact native
|
|
57
|
+
`github-copilot` route, including ordinary and prepared calls. Streams whose
|
|
58
|
+
public purpose is `auto-review` form a separate population; that purpose is not
|
|
59
|
+
proof of reviewer ownership. The optional `github-copilot-hosted` backend records
|
|
60
|
+
one logical operation after input validation, covering its preparation, proof
|
|
61
|
+
and final query together. Other Web backends, readiness, model listing,
|
|
62
|
+
pre-validation search rejection and failures before stream iteration are not
|
|
63
|
+
observed. These aggregates do not identify a Session, account, model or request.
|
|
64
|
+
|
|
65
|
+
Only hourly counts, plugin version, fixed operation/outcome codes and coarse
|
|
66
|
+
duration buckets are retained for 14 days. Stream success means an observed
|
|
67
|
+
`stop` or `tool-calls` terminal, not tool execution. Search success means the
|
|
68
|
+
backend returned a result. A reported abort without actual signal evidence,
|
|
69
|
+
missing terminal or token limit stays unknown; early consumer closure is
|
|
70
|
+
interrupted. Durations include consumer idle time or search preparation and
|
|
71
|
+
are not supplier latency. Exact native error codes `AUTH`, `RATE_LIMIT`,
|
|
72
|
+
`TIMEOUT` and `CONTEXT_WINDOW_EXCEEDED` map to fixed local categories; every
|
|
73
|
+
other code stays unknown. No HTTP status, body/bytes, retry count, query,
|
|
74
|
+
messages, credentials or raw errors are collected. None of these observations
|
|
75
|
+
proves dispatch, supplier receipt, billing or end-to-end success.
|
|
76
|
+
|
|
77
|
+
The native population shares the aggregate 4,096-row, 128-live-handle and 2 MiB
|
|
78
|
+
limits but stays separate from account/compaction and managed physical-request
|
|
79
|
+
presentations. Pause, clear and disposal fence pending and not-yet-consumed
|
|
80
|
+
streams; old snapshots can contain interrupted work. The offline account
|
|
81
|
+
analyzer excludes native rows with `native-observations-not-analyzed`.
|
|
82
|
+
Older strict plugin versions may reject snapshots containing the new operation
|
|
83
|
+
codes on rollback; preserve the data rather than deleting it.
|
|
50
84
|
|
|
51
85
|
### Credential-change decisions (#402)
|
|
52
86
|
|
|
@@ -159,8 +193,10 @@ signal evidence; arbitrary native error text cannot establish cancellation.
|
|
|
159
193
|
|
|
160
194
|
Stock/custom-engine physical summaries, recovery opt-out/native-only summary
|
|
161
195
|
branches, OAuth Add/reauthorization/removal, quota, ordinary model refresh,
|
|
162
|
-
canonical/custom transport and unwrapped RPCs remain uncovered
|
|
163
|
-
|
|
196
|
+
canonical/custom HTTP transport and unwrapped RPCs remain uncovered at the
|
|
197
|
+
physical layer. Native logical streams are observed only by the separately
|
|
198
|
+
enabled scope above. Managed native adapter HTTP dispatches have only the
|
|
199
|
+
separately enabled coverage below.
|
|
164
200
|
Native checkpoint observation is not filesystem durability evidence. Reporting
|
|
165
201
|
loss, crashes, disabled intervals and paging/coverage gaps must never be treated
|
|
166
202
|
as zero failures. No automatic daily analysis, issue creation, account/model
|
package/lib/client.js
CHANGED
|
@@ -7182,6 +7182,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7182
7182
|
"identity-flight",
|
|
7183
7183
|
"compaction",
|
|
7184
7184
|
"compaction-summary",
|
|
7185
|
+
"native-copilot-llm",
|
|
7186
|
+
"native-copilot-review",
|
|
7187
|
+
"native-copilot-search",
|
|
7185
7188
|
"collection"
|
|
7186
7189
|
];
|
|
7187
7190
|
const DIAGNOSTICS_STAGES = [
|
|
@@ -7226,6 +7229,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7226
7229
|
"unknown",
|
|
7227
7230
|
"rpc-unavailable",
|
|
7228
7231
|
"decode-invalid",
|
|
7232
|
+
"NATIVE_LLM_AUTH",
|
|
7233
|
+
"NATIVE_LLM_RATE_LIMIT",
|
|
7234
|
+
"NATIVE_LLM_TIMEOUT",
|
|
7235
|
+
"NATIVE_LLM_CONTEXT_LIMIT",
|
|
7229
7236
|
"COPILOT_ACCOUNTS_BUSY",
|
|
7230
7237
|
"COPILOT_ACCOUNTS_CONFLICT",
|
|
7231
7238
|
"COPILOT_ACCOUNTS_CHANGED",
|
|
@@ -7295,6 +7302,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7295
7302
|
enabled: boolean(),
|
|
7296
7303
|
autoAllocationEnabled: boolean(),
|
|
7297
7304
|
requestEnabled: boolean().optional(),
|
|
7305
|
+
nativeEnabled: boolean().optional(),
|
|
7298
7306
|
state: _enum([
|
|
7299
7307
|
"loading",
|
|
7300
7308
|
"ready",
|
|
@@ -7361,7 +7369,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7361
7369
|
//#region lib/types/diagnostics-remote.js
|
|
7362
7370
|
const ClientDiagnosticsBatchSchema = object({
|
|
7363
7371
|
epoch: number().int().nonnegative().max(Number.MAX_SAFE_INTEGER),
|
|
7364
|
-
rows: array(DiagnosticsRowSchema.refine((row) => row.layer === "client")).max(128),
|
|
7372
|
+
rows: array(DiagnosticsRowSchema.refine((row) => row.layer === "client" && !row.operation.startsWith("native-copilot-") && !row.reason.startsWith("NATIVE_LLM_"))).max(128),
|
|
7365
7373
|
dropped: number().int().nonnegative().max(Number.MAX_SAFE_INTEGER).optional(),
|
|
7366
7374
|
unconfirmed: number().int().nonnegative().max(Number.MAX_SAFE_INTEGER).optional()
|
|
7367
7375
|
}).strict();
|
|
@@ -7404,6 +7412,15 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7404
7412
|
codec: strictRemoteCodec("dsh-github-copilot#RequestDiagnosticsEnabled", boolean())
|
|
7405
7413
|
}]
|
|
7406
7414
|
},
|
|
7415
|
+
{
|
|
7416
|
+
method: "setNativeEnabled",
|
|
7417
|
+
parameters: [{
|
|
7418
|
+
name: "enabled",
|
|
7419
|
+
wire: "enabled",
|
|
7420
|
+
source: "json",
|
|
7421
|
+
codec: strictRemoteCodec("dsh-github-copilot#NativeDiagnosticsEnabled", boolean())
|
|
7422
|
+
}]
|
|
7423
|
+
},
|
|
7407
7424
|
{
|
|
7408
7425
|
method: "recordClient",
|
|
7409
7426
|
parameters: [{
|
|
@@ -7758,7 +7775,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7758
7775
|
};
|
|
7759
7776
|
//#endregion
|
|
7760
7777
|
//#region package.json
|
|
7761
|
-
var version = "0.1.0-alpha.
|
|
7778
|
+
var version = "0.1.0-alpha.14.dsh.0.2.2.rc.3";
|
|
7762
7779
|
//#endregion
|
|
7763
7780
|
//#region lib/types/diagnostics-client.js
|
|
7764
7781
|
let owner;
|
|
@@ -7991,7 +8008,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7991
8008
|
const credentials = requests?.credentialChanges;
|
|
7992
8009
|
const legacyAuto = view?.snapshot.autoAllocation;
|
|
7993
8010
|
const hasLegacyAuto = legacyAuto !== void 0 && (legacyAuto.status === "observed" || legacyAuto.rows.length > 0 || legacyAuto.noFitRows.length > 0 || legacyAuto.observationStart !== null || legacyAuto.rowsTruncated || legacyAuto.dropped > 0 || legacyAuto.expired > 0 || legacyAuto.saturated > 0 || legacyAuto.restarts > 0);
|
|
7994
|
-
const
|
|
8011
|
+
const nativePopulations = [...new Set(rows.filter((row) => row.operation.startsWith("native-copilot-")).map((row) => `${row.layer}/${row.operation}`))];
|
|
8012
|
+
const populations = [...new Set(rows.filter((row) => row.operation !== "collection" && !row.operation.startsWith("native-copilot-")).map((row) => `${row.layer}/${row.operation}`))];
|
|
7995
8013
|
const count = (metrics, population) => rows.filter((row) => metrics.includes(row.metric) && `${row.layer}/${row.operation}` === population).reduce((sum, row) => sum + row.count, 0);
|
|
7996
8014
|
const control = (label, action, disabled = false) => (0, react.createElement)("button", {
|
|
7997
8015
|
type: "button",
|
|
@@ -8010,7 +8028,54 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
8010
8028
|
} }, "Expand a diagnostic group to inspect its evidence. Collection controls are independent; opening a group does not enable collection."), failed ? (0, react.createElement)("p", {
|
|
8011
8029
|
role: "alert",
|
|
8012
8030
|
style: { margin: 0 }
|
|
8013
|
-
}, "Could not confirm the operation. Read status before retrying; no write is automatically replayed.") : null, view ? (0, react.createElement)("details", null, (0, react.createElement)("summary", null, "
|
|
8031
|
+
}, "Could not confirm the operation. Read status before retrying; no write is automatically replayed.") : null, view ? (0, react.createElement)("details", null, (0, react.createElement)("summary", null, "Native Copilot observations", (0, react.createElement)("span", { style: {
|
|
8032
|
+
...nativeCaptionStyle,
|
|
8033
|
+
marginInlineStart: 8
|
|
8034
|
+
} }, view.nativeEnabled === void 0 ? "Status unknown" : view.nativeEnabled ? view.state === "ready" ? "Enabled" : "Configured on; storage not ready" : "Paused")), (0, react.createElement)("p", { style: {
|
|
8035
|
+
...nativeCaptionStyle,
|
|
8036
|
+
margin: 0
|
|
8037
|
+
} }, "Separately enabled, content-free logical stream and hosted-search aggregates. Review means the request declared the auto-review purpose, not verified reviewer identity. A successful stream means a stop or tool-calls terminal was observed; search success means the search returned. Neither proves tool execution, supplier receipt or billing. HTTP, bytes and native retry counts are unavailable."), nativePopulations.length ? (0, react.createElement)("div", { style: {
|
|
8038
|
+
overflowX: "auto",
|
|
8039
|
+
minWidth: 0
|
|
8040
|
+
} }, (0, react.createElement)("table", { style: {
|
|
8041
|
+
width: "100%",
|
|
8042
|
+
borderCollapse: "collapse",
|
|
8043
|
+
textAlign: "left",
|
|
8044
|
+
font: "inherit"
|
|
8045
|
+
} }, (0, react.createElement)("thead", null, (0, react.createElement)("tr", null, ...[
|
|
8046
|
+
"Population",
|
|
8047
|
+
"Started",
|
|
8048
|
+
"Observed success",
|
|
8049
|
+
"Failed",
|
|
8050
|
+
"Cancelled",
|
|
8051
|
+
"Interrupted",
|
|
8052
|
+
"Unknown / revoked",
|
|
8053
|
+
"Failure codes"
|
|
8054
|
+
].map((label) => (0, react.createElement)("th", {
|
|
8055
|
+
key: label,
|
|
8056
|
+
scope: "col",
|
|
8057
|
+
style: {
|
|
8058
|
+
padding: 6,
|
|
8059
|
+
font: "inherit",
|
|
8060
|
+
fontWeight: 500
|
|
8061
|
+
}
|
|
8062
|
+
}, label)))), (0, react.createElement)("tbody", null, ...nativePopulations.map((population) => (0, react.createElement)("tr", { key: population }, (0, react.createElement)("th", {
|
|
8063
|
+
scope: "row",
|
|
8064
|
+
style: {
|
|
8065
|
+
padding: 6,
|
|
8066
|
+
font: "inherit",
|
|
8067
|
+
fontWeight: 500
|
|
8068
|
+
}
|
|
8069
|
+
}, population), ...[
|
|
8070
|
+
"started",
|
|
8071
|
+
"success",
|
|
8072
|
+
"failed",
|
|
8073
|
+
"cancelled",
|
|
8074
|
+
"interrupted"
|
|
8075
|
+
].map((metric) => (0, react.createElement)("td", {
|
|
8076
|
+
key: metric,
|
|
8077
|
+
style: { padding: 6 }
|
|
8078
|
+
}, count([metric], population))), (0, react.createElement)("td", { style: { padding: 6 } }, count(["unknown", "revoked"], population)), (0, react.createElement)("td", { style: { padding: 6 } }, [...new Set(rows.filter((row) => row.metric === "failed" && `${row.layer}/${row.operation}` === population).map((row) => row.reason))].join(", ") || "—")))))) : (0, react.createElement)("p", { style: { margin: 0 } }, "No retained native observations. This does not establish zero failures.")) : null, view ? (0, react.createElement)("details", null, (0, react.createElement)("summary", null, "Physical request observations", (0, react.createElement)("span", { style: {
|
|
8014
8079
|
...nativeCaptionStyle,
|
|
8015
8080
|
marginInlineStart: 8
|
|
8016
8081
|
} }, `${view.requestEnabled === void 0 ? "Status unknown" : view.requestEnabled ? "Enabled" : "Paused"} · ${requests?.rows.length ?? 0} retained`)), (0, react.createElement)("p", { style: { margin: 0 } }, requests ? `${requests.rows.length} retained requests · ${requests.pending ?? 0} sampled pending · ${requests.dropped} dropped · ${requests.evicted} expired/evicted · ${requests.interruptedOnReopen ?? 0} interrupted on reopen` : "No retained request observations. This does not establish zero failures or enabled collection."), (0, react.createElement)("p", { style: {
|
|
@@ -8144,7 +8209,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
8144
8209
|
], population)))))))) : null, view && !populations.length ? (0, react.createElement)("details", null, (0, react.createElement)("summary", null, "Account and compaction observations"), (0, react.createElement)("p", null, "No retained operation observations. This is not evidence of zero failures.")) : null, (0, react.createElement)("details", null, (0, react.createElement)("summary", null, "Collection controls"), (0, react.createElement)("p", { style: { margin: 0 } }, view?.requestEnabled === void 0 ? "Request observations unavailable in this snapshot." : `Request observations ${view.requestEnabled ? "enabled" : "paused"}. ${requests?.rows.length ?? 0} retained physical requests; ${requests?.dropped ?? 0} dropped; ${requests?.evicted ?? 0} expired/evicted.`), (0, react.createElement)("p", { style: {
|
|
8145
8210
|
...nativeCaptionStyle,
|
|
8146
8211
|
margin: 0
|
|
8147
|
-
} }, "Separate opt-in: retain at most 128 content-free physical requests and 128 credential-change observations for 24 hours within the shared storage cap. Includes model, payload byte counts, transport timing, HTTP status, terminal categories and fixed credential qualification reasons, not bodies, credentials, URLs, headers or Session/turn IDs. Random stream IDs correlate native SDK dispatches only; dispatch index is not a Core retry count."), (0, react.createElement)("p", {
|
|
8212
|
+
} }, "Separate opt-in: retain at most 128 content-free physical requests and 128 credential-change observations for 24 hours within the shared storage cap. Includes model, payload byte counts, transport timing, HTTP status, terminal categories and fixed credential qualification reasons, not bodies, credentials, URLs, headers or Session/turn IDs. Random stream IDs correlate native SDK dispatches only; dispatch index is not a Core retry count."), (0, react.createElement)("p", { style: {
|
|
8213
|
+
...nativeCaptionStyle,
|
|
8214
|
+
margin: 0
|
|
8215
|
+
} }, "A separate native opt-in records only operation type, hourly counts, coarse duration, fixed outcomes and a few allowlisted error codes for native Copilot streams and the optional Copilot search backend. Aggregates are retained for 14 days; no model, prompt, query, account or Session identifiers are recorded."), (0, react.createElement)("p", {
|
|
8148
8216
|
role: "status",
|
|
8149
8217
|
style: { margin: 0 }
|
|
8150
8218
|
}, !remote ? "Diagnostics controls are unavailable in this connection." : !view ? busy ? "Reading local collection status…" : "Collection status is unknown." : `${view.enabled ? view.state === "ready" ? "Local collection enabled" : "Local collection configured on; storage not ready" : "Local collection paused"} · Storage ${view.state}` + (view.diagnostic === "none" ? "" : ` · ${view.diagnostic}`) + (view.dirty ? " · Not all observations are persisted yet" : "")), clientDiagnosticsReportingFailed() ? (0, react.createElement)("p", {
|
|
@@ -8160,10 +8228,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
8160
8228
|
run((value) => value.setEnabled(!view?.enabled));
|
|
8161
8229
|
}, !remote || !view || !view.enabled && view.state !== "ready"), control(view?.requestEnabled ? "Pause request observations" : "Enable request observations", () => {
|
|
8162
8230
|
run((value) => value.setRequestEnabled(!view?.requestEnabled));
|
|
8163
|
-
}, !remote || !view || view.requestEnabled === void 0 || !view.requestEnabled && view.state !== "ready"), control(
|
|
8231
|
+
}, !remote || !view || view.requestEnabled === void 0 || !view.requestEnabled && view.state !== "ready"), control(view?.nativeEnabled ? "Pause native observations" : "Enable native observations", () => {
|
|
8232
|
+
run((value) => value.setNativeEnabled(!view?.nativeEnabled));
|
|
8233
|
+
}, !remote || !view || view.nativeEnabled === void 0 || !view.nativeEnabled && view.state !== "ready"), control("Clear local diagnostics", () => setConfirmClear(true), !remote || !view || view.state !== "ready")), confirmClear ? (0, react.createElement)("div", {
|
|
8164
8234
|
role: "group",
|
|
8165
8235
|
"aria-label": "Confirm clearing local diagnostics"
|
|
8166
|
-
}, (0, react.createElement)("p", null, "Delete collected aggregates and request observations? Collection controls keep their current enabled/paused settings. This does not clear account settings or conversation history."), control("Confirm clear", () => {
|
|
8236
|
+
}, (0, react.createElement)("p", null, "Delete collected aggregates and request observations, including native observations? Collection controls keep their current enabled/paused settings. This does not clear account settings or conversation history."), control("Confirm clear", () => {
|
|
8167
8237
|
setConfirmClear(false);
|
|
8168
8238
|
run((value) => value.clear());
|
|
8169
8239
|
}), control("Cancel", () => setConfirmClear(false))) : null), view ? (0, react.createElement)("details", null, (0, react.createElement)("summary", null, "Data scope, limits and JSON"), (0, react.createElement)("p", { style: { margin: 0 } }, "Aggregates stay in this profile for 14 days; request observations for 24 hours. They contain no Session or turn IDs or conversation content and are not uploaded automatically or used for automatic tuning."), (0, react.createElement)("p", { style: { margin: 0 } }, `Host pending: ${view.snapshot.pending.reduce((sum, row) => sum + row.count, 0)}. Host dropped: ${view.snapshot.dropped}; Client dropped: ${view.snapshot.clientDropped}; Client unconfirmed: ${view.snapshot.clientUnconfirmed}; evicted/expired: ${view.snapshot.evicted}; saturated: ${view.snapshot.saturated}. At most 4,096 aggregate rows and 2 MiB. Client pending samples are periodic observations, not a live outstanding count. Other settled includes policy rejection, revocation, environment faults and unknown/no-checkpoint results. Stock/custom-engine physical summaries, native recovery opt-out, OAuth, quota and unwrapped RPCs are not covered.`), (0, react.createElement)("details", null, (0, react.createElement)("summary", null, requests ? "Review local diagnostics JSON" : "Review aggregate-only JSON"), (0, react.createElement)("p", { style: { margin: 0 } }, "Review before sharing. This includes build versions and diagnostic counts. Retained request observations may include request times, model IDs, byte counts and random stream IDs. It never includes account or Session identifiers. Client timing does not prove supplier receipt or fault ownership."), hasLegacyAuto ? (0, react.createElement)("p", { style: { margin: 0 } }, "Historical Auto data is retained in this export; rows may contain model IDs, policy/cohort dimensions and aggregate counts. No new plugin Auto data is collected. Expired counts are strata, not removed decisions.") : null, control("Prepare current JSON", () => setExported(true)), exported ? (0, react.createElement)("textarea", {
|