@agent-watch-ai/edge 0.2.5 → 0.3.1
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/CHANGELOG.md +512 -0
- package/README.md +217 -96
- package/SECURITY.md +69 -0
- package/dist/billing/session-billing.d.ts +19 -0
- package/dist/billing/session-billing.js +52 -0
- package/dist/cli/args.d.ts +10 -0
- package/dist/cli/args.js +20 -0
- package/dist/cli/constants/cli.constants.d.ts +50 -4
- package/dist/cli/constants/cli.constants.js +54 -5
- package/dist/cli/context.d.ts +33 -2
- package/dist/cli/context.js +84 -14
- package/dist/cli/doctor.js +309 -32
- package/dist/cli/hook-check.d.ts +23 -0
- package/dist/cli/hook-check.js +114 -0
- package/dist/cli/hook.js +118 -7
- package/dist/cli/index.d.ts +3 -1
- package/dist/cli/index.js +3 -1
- package/dist/cli/misc.d.ts +11 -0
- package/dist/cli/misc.js +80 -4
- package/dist/cli/npx-install.d.ts +37 -0
- package/dist/cli/npx-install.js +79 -0
- package/dist/cli/open-browser.d.ts +39 -0
- package/dist/cli/open-browser.js +62 -0
- package/dist/cli/setup.d.ts +17 -8
- package/dist/cli/setup.js +439 -98
- package/dist/cli/status.js +82 -13
- package/dist/cli/toggle.d.ts +9 -0
- package/dist/cli/toggle.js +113 -0
- package/dist/cli/types/cli.types.d.ts +37 -3
- package/dist/cli/ui.d.ts +7 -0
- package/dist/cli/ui.js +10 -1
- package/dist/cli/uninstall.js +39 -2
- package/dist/cli/update.d.ts +17 -0
- package/dist/cli/update.js +76 -0
- package/dist/cli.js +100 -13
- package/dist/config/config-store.d.ts +57 -0
- package/dist/config/config-store.js +250 -12
- package/dist/config/config.d.ts +53 -6
- package/dist/config/config.js +66 -6
- package/dist/config/constants/config.constants.d.ts +113 -6
- package/dist/config/constants/config.constants.js +126 -8
- package/dist/config/destination.d.ts +24 -0
- package/dist/config/destination.js +33 -0
- package/dist/config/index.d.ts +7 -4
- package/dist/config/index.js +5 -3
- package/dist/config/repo-config.d.ts +11 -7
- package/dist/config/repo-config.js +64 -15
- package/dist/config/root-config.d.ts +72 -0
- package/dist/config/root-config.js +170 -0
- package/dist/config/schemas/config.schema.d.ts +721 -84
- package/dist/config/schemas/config.schema.js +388 -15
- package/dist/config/types/config.types.d.ts +15 -1
- package/dist/config/types/destination.types.d.ts +8 -0
- package/dist/core/async.d.ts +36 -0
- package/dist/core/async.js +68 -0
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.js +1 -1
- package/dist/core/object.d.ts +5 -0
- package/dist/core/object.js +9 -4
- package/dist/core/pipe.d.ts +0 -13
- package/dist/core/pipe.js +1 -9
- package/dist/core/types/core.types.d.ts +9 -0
- package/dist/core/types/core.types.js +0 -3
- package/dist/core/which.d.ts +14 -0
- package/dist/core/which.js +43 -3
- package/dist/credentials/budget.d.ts +9 -0
- package/dist/credentials/budget.js +16 -0
- package/dist/credentials/command-runner.d.ts +16 -0
- package/dist/credentials/command-runner.js +37 -0
- package/dist/credentials/constants/credentials.constants.d.ts +111 -0
- package/dist/credentials/constants/credentials.constants.js +112 -0
- package/dist/credentials/credential-status.d.ts +14 -0
- package/dist/credentials/credential-status.js +34 -0
- package/dist/credentials/credentials.d.ts +72 -0
- package/dist/credentials/credentials.js +253 -0
- package/dist/credentials/device-api.d.ts +64 -0
- package/dist/credentials/device-api.js +150 -0
- package/dist/credentials/device-state.d.ts +31 -0
- package/dist/credentials/device-state.js +51 -0
- package/dist/credentials/identity.d.ts +62 -0
- package/dist/credentials/identity.js +90 -0
- package/dist/credentials/index.d.ts +7 -0
- package/dist/credentials/index.js +5 -0
- package/dist/credentials/migration.d.ts +46 -0
- package/dist/credentials/migration.js +164 -0
- package/dist/credentials/schemas/device-api.schema.d.ts +77 -0
- package/dist/credentials/schemas/device-api.schema.js +33 -0
- package/dist/credentials/schemas/device-state.schema.d.ts +51 -0
- package/dist/credentials/schemas/device-state.schema.js +20 -0
- package/dist/credentials/secret-store.d.ts +54 -0
- package/dist/credentials/secret-store.js +217 -0
- package/dist/credentials/sign-in.d.ts +18 -0
- package/dist/credentials/sign-in.js +86 -0
- package/dist/credentials/token-refresher.d.ts +39 -0
- package/dist/credentials/token-refresher.js +185 -0
- package/dist/credentials/types/credentials.types.d.ts +195 -0
- package/dist/credentials/types/credentials.types.js +1 -0
- package/dist/enforcement/constants/enforcement.constants.d.ts +47 -1
- package/dist/enforcement/constants/enforcement.constants.js +56 -0
- package/dist/enforcement/decision-cache.d.ts +20 -1
- package/dist/enforcement/decision-cache.js +65 -2
- package/dist/enforcement/decision-client.d.ts +9 -8
- package/dist/enforcement/decision-client.js +62 -16
- package/dist/enforcement/enforcement.d.ts +23 -2
- package/dist/enforcement/enforcement.js +103 -15
- package/dist/enforcement/index.d.ts +4 -3
- package/dist/enforcement/index.js +3 -2
- package/dist/enforcement/types/enforcement.types.d.ts +64 -0
- package/dist/enrollment/constants/enrollment.constants.d.ts +2 -6
- package/dist/enrollment/constants/enrollment.constants.js +2 -6
- package/dist/enrollment/enrollment.d.ts +16 -0
- package/dist/enrollment/enrollment.js +54 -0
- package/dist/enrollment/index.d.ts +3 -7
- package/dist/enrollment/index.js +1 -1
- package/dist/enrollment/types/enrollment.types.d.ts +9 -13
- package/dist/events/constants/enrich.constants.d.ts +15 -0
- package/dist/events/constants/enrich.constants.js +15 -0
- package/dist/events/constants/events.constants.d.ts +6 -2
- package/dist/events/constants/events.constants.js +5 -1
- package/dist/events/enrich.js +92 -10
- package/dist/events/event-id.d.ts +0 -8
- package/dist/events/event-id.js +0 -10
- package/dist/events/index.d.ts +2 -2
- package/dist/events/index.js +1 -1
- package/dist/events/product-event.d.ts +9 -6
- package/dist/events/types/repo-snapshot.types.d.ts +7 -0
- package/dist/events/types/session-billing.types.d.ts +16 -0
- package/dist/events/types/session-billing.types.js +1 -0
- package/dist/feature/constants/feature.constants.d.ts +7 -0
- package/dist/feature/constants/feature.constants.js +7 -0
- package/dist/feature/index.d.ts +1 -1
- package/dist/feature/index.js +1 -1
- package/dist/feature/ticket-candidates.d.ts +14 -0
- package/dist/feature/ticket-candidates.js +26 -8
- package/dist/git/blob-hash.d.ts +21 -0
- package/dist/git/blob-hash.js +69 -0
- package/dist/git/checkout-root.d.ts +27 -0
- package/dist/git/checkout-root.js +75 -0
- package/dist/git/constants/git.constants.d.ts +160 -0
- package/dist/git/constants/git.constants.js +181 -0
- package/dist/git/fingerprint.d.ts +74 -0
- package/dist/git/fingerprint.js +219 -0
- package/dist/git/gate-checkout.d.ts +44 -0
- package/dist/git/gate-checkout.js +201 -0
- package/dist/git/git-context.d.ts +45 -0
- package/dist/git/git-context.js +61 -3
- package/dist/git/index.d.ts +4 -2
- package/dist/git/index.js +2 -1
- package/dist/git/manifest-repository.d.ts +13 -0
- package/dist/git/manifest-repository.js +92 -0
- package/dist/git/repo-snapshot.d.ts +29 -3
- package/dist/git/repo-snapshot.js +110 -7
- package/dist/git/repository-root.d.ts +39 -0
- package/dist/git/repository-root.js +131 -0
- package/dist/git/types/git.types.d.ts +55 -0
- package/dist/git/types/repository-root.types.d.ts +11 -0
- package/dist/git/types/repository-root.types.js +1 -0
- package/dist/git/types/snapshot.types.d.ts +9 -0
- package/dist/pipeline/constants/pipeline.constants.d.ts +7 -0
- package/dist/pipeline/constants/pipeline.constants.js +7 -0
- package/dist/pipeline/hook-pipeline.js +360 -32
- package/dist/pipeline/types/pipeline.types.d.ts +39 -4
- package/dist/privacy/constants/privacy.constants.js +15 -1
- package/dist/privacy/index.d.ts +1 -0
- package/dist/privacy/index.js +1 -0
- package/dist/privacy/product-capture.d.ts +12 -0
- package/dist/privacy/product-capture.js +73 -0
- package/dist/privacy/sanitizer.d.ts +21 -3
- package/dist/privacy/sanitizer.js +52 -8
- package/dist/process/ancestors.d.ts +39 -0
- package/dist/process/ancestors.js +121 -0
- package/dist/process/constants/process.constants.d.ts +34 -0
- package/dist/process/constants/process.constants.js +34 -0
- package/dist/process/index.d.ts +7 -0
- package/dist/process/index.js +2 -0
- package/dist/process/types/process.types.d.ts +23 -0
- package/dist/process/types/process.types.js +1 -0
- package/dist/providers/antigravity/antigravity.adapter.d.ts +12 -1
- package/dist/providers/antigravity/antigravity.adapter.js +21 -3
- package/dist/providers/antigravity/antigravity.detect.d.ts +0 -9
- package/dist/providers/antigravity/antigravity.detect.js +1 -1
- package/dist/providers/antigravity/antigravity.provider.js +3 -2
- package/dist/providers/antigravity/constants/antigravity.constants.d.ts +2 -0
- package/dist/providers/antigravity/constants/antigravity.constants.js +2 -0
- package/dist/providers/claude/claude.adapter.d.ts +11 -1
- package/dist/providers/claude/claude.adapter.js +26 -5
- package/dist/providers/claude/claude.otel.d.ts +32 -18
- package/dist/providers/claude/claude.otel.js +81 -6
- package/dist/providers/claude/claude.provider.js +5 -2
- package/dist/providers/claude/constants/claude.constants.d.ts +2 -0
- package/dist/providers/claude/constants/claude.constants.js +2 -0
- package/dist/providers/claude/constants/claude.otel.constants.d.ts +4 -0
- package/dist/providers/claude/constants/claude.otel.constants.js +8 -0
- package/dist/providers/codex/codex.adapter.d.ts +15 -1
- package/dist/providers/codex/codex.adapter.js +29 -5
- package/dist/providers/codex/codex.otel.d.ts +24 -2
- package/dist/providers/codex/codex.otel.js +147 -30
- package/dist/providers/codex/codex.provider.js +5 -2
- package/dist/providers/codex/constants/codex.constants.d.ts +2 -0
- package/dist/providers/codex/constants/codex.constants.js +16 -0
- package/dist/providers/codex/constants/codex.otel.constants.d.ts +5 -0
- package/dist/providers/codex/constants/codex.otel.constants.js +5 -0
- package/dist/providers/constants/provider.constants.d.ts +0 -3
- package/dist/providers/constants/provider.constants.js +0 -3
- package/dist/providers/cursor/constants/cursor.constants.d.ts +7 -0
- package/dist/providers/cursor/constants/cursor.constants.js +7 -0
- package/dist/providers/cursor/cursor.adapter.d.ts +33 -1
- package/dist/providers/cursor/cursor.adapter.js +52 -3
- package/dist/providers/cursor/cursor.detect.d.ts +0 -7
- package/dist/providers/cursor/cursor.detect.js +1 -1
- package/dist/providers/cursor/cursor.provider.js +5 -2
- package/dist/providers/gemini/constants/gemini.constants.d.ts +9 -0
- package/dist/providers/gemini/constants/gemini.constants.js +9 -0
- package/dist/providers/gemini/constants/gemini.otel.constants.d.ts +3 -1
- package/dist/providers/gemini/constants/gemini.otel.constants.js +3 -0
- package/dist/providers/gemini/gemini.adapter.d.ts +14 -1
- package/dist/providers/gemini/gemini.adapter.js +25 -5
- package/dist/providers/gemini/gemini.detect.d.ts +0 -7
- package/dist/providers/gemini/gemini.detect.js +1 -1
- package/dist/providers/gemini/gemini.otel.d.ts +19 -20
- package/dist/providers/gemini/gemini.otel.js +121 -17
- package/dist/providers/gemini/gemini.provider.js +2 -1
- package/dist/providers/index.d.ts +1 -1
- package/dist/providers/index.js +1 -1
- package/dist/providers/loaders.d.ts +10 -0
- package/dist/providers/loaders.js +40 -0
- package/dist/providers/provider.d.ts +11 -0
- package/dist/providers/provider.js +1 -1
- package/dist/providers/registry.d.ts +11 -8
- package/dist/providers/registry.js +11 -15
- package/dist/providers/shared/constants/hook-refusal.constants.d.ts +7 -0
- package/dist/providers/shared/constants/hook-refusal.constants.js +7 -0
- package/dist/providers/shared/constants/shell-directories.constants.d.ts +30 -0
- package/dist/providers/shared/constants/shell-directories.constants.js +39 -0
- package/dist/providers/shared/constants/tooling.constants.d.ts +18 -2
- package/dist/providers/shared/constants/tooling.constants.js +19 -3
- package/dist/providers/shared/event-builder.d.ts +12 -14
- package/dist/providers/shared/event-builder.js +20 -14
- package/dist/providers/shared/exporter-allowlist.d.ts +20 -0
- package/dist/providers/shared/exporter-allowlist.js +49 -0
- package/dist/providers/shared/hook-config.d.ts +2 -21
- package/dist/providers/shared/hook-config.js +5 -4
- package/dist/providers/shared/hook-refusal.d.ts +12 -0
- package/dist/providers/shared/hook-refusal.js +17 -1
- package/dist/providers/shared/install-record.d.ts +12 -2
- package/dist/providers/shared/install-record.js +5 -2
- package/dist/providers/shared/shell-directories.d.ts +24 -0
- package/dist/providers/shared/shell-directories.js +90 -0
- package/dist/providers/shared/tooling.d.ts +12 -1
- package/dist/providers/shared/tooling.js +18 -0
- package/dist/providers/shared/types/adapter.types.d.ts +1 -2
- package/dist/providers/types/provider.types.d.ts +57 -1
- package/dist/snapshot/constants/snapshot.constants.d.ts +32 -0
- package/dist/snapshot/constants/snapshot.constants.js +33 -0
- package/dist/snapshot/snapshot-event.js +52 -11
- package/dist/snapshot/snapshot-pipeline.js +1 -1
- package/dist/snapshot/types/snapshot.types.d.ts +2 -0
- package/dist/storage/atomic-file.d.ts +7 -0
- package/dist/storage/atomic-file.js +1 -1
- package/dist/storage/constants/storage.constants.d.ts +17 -0
- package/dist/storage/constants/storage.constants.js +17 -0
- package/dist/storage/disabled.d.ts +13 -0
- package/dist/storage/disabled.js +24 -0
- package/dist/storage/index.d.ts +2 -0
- package/dist/storage/index.js +2 -0
- package/dist/storage/paths.js +3 -2
- package/dist/storage/schemas/storage.schema.d.ts +72 -0
- package/dist/storage/schemas/storage.schema.js +6 -0
- package/dist/storage/sweep-marker.d.ts +19 -0
- package/dist/storage/sweep-marker.js +55 -0
- package/dist/storage/types/storage.types.d.ts +2 -0
- package/dist/storage/uninstalled.d.ts +58 -0
- package/dist/storage/uninstalled.js +107 -0
- package/dist/transport/auth-block.d.ts +66 -0
- package/dist/transport/auth-block.js +129 -0
- package/dist/transport/constants/transport.constants.d.ts +82 -3
- package/dist/transport/constants/transport.constants.js +83 -4
- package/dist/transport/cooldown.js +8 -1
- package/dist/transport/delivery.d.ts +14 -6
- package/dist/transport/delivery.js +80 -55
- package/dist/transport/http-transport.d.ts +1 -0
- package/dist/transport/http-transport.js +52 -10
- package/dist/transport/index.d.ts +6 -3
- package/dist/transport/index.js +3 -0
- package/dist/transport/queue-partition.d.ts +91 -0
- package/dist/transport/queue-partition.js +143 -0
- package/dist/transport/queue.d.ts +99 -20
- package/dist/transport/queue.js +210 -69
- package/dist/transport/response-body.d.ts +25 -0
- package/dist/transport/response-body.js +64 -0
- package/dist/transport/send.d.ts +11 -0
- package/dist/transport/send.js +17 -0
- package/dist/transport/types/delivery-flow.types.d.ts +19 -0
- package/dist/transport/types/delivery-flow.types.js +1 -0
- package/dist/transport/types/transport.types.d.ts +45 -0
- package/dist/turns/claude-transcript.d.ts +19 -1
- package/dist/turns/claude-transcript.js +46 -1
- package/dist/turns/codex-originator.d.ts +11 -0
- package/dist/turns/codex-originator.js +31 -0
- package/dist/turns/codex-transcript.d.ts +30 -0
- package/dist/turns/codex-transcript.js +88 -0
- package/dist/turns/constants/turns.constants.d.ts +141 -5
- package/dist/turns/constants/turns.constants.js +155 -5
- package/dist/turns/file-identity.d.ts +27 -0
- package/dist/turns/file-identity.js +48 -0
- package/dist/turns/gemini-transcript.d.ts +30 -0
- package/dist/turns/gemini-transcript.js +96 -0
- package/dist/turns/index.d.ts +3 -3
- package/dist/turns/index.js +1 -1
- package/dist/turns/inherited-checkout.d.ts +54 -0
- package/dist/turns/inherited-checkout.js +155 -0
- package/dist/turns/native-session-titles.d.ts +26 -0
- package/dist/turns/native-session-titles.js +102 -0
- package/dist/turns/transcript.d.ts +3 -2
- package/dist/turns/transcript.js +5 -1
- package/dist/turns/turn-state.d.ts +224 -3
- package/dist/turns/turn-state.js +456 -21
- package/dist/turns/turn-summary.d.ts +1 -14
- package/dist/turns/turn-summary.js +87 -51
- package/dist/turns/turn-tracker.d.ts +21 -2
- package/dist/turns/turn-tracker.js +379 -56
- package/dist/turns/types/transcript.types.d.ts +5 -0
- package/dist/turns/types/turn-state.types.d.ts +116 -5
- package/dist/turns/types/turn-summary.types.d.ts +64 -14
- package/dist/turns/types/turn-tracker.types.d.ts +27 -1
- package/dist/turns/work-checkout.d.ts +65 -0
- package/dist/turns/work-checkout.js +666 -0
- package/dist/untraced/constants/untraced.constants.d.ts +31 -0
- package/dist/untraced/constants/untraced.constants.js +63 -0
- package/dist/untraced/untraced.d.ts +35 -0
- package/dist/untraced/untraced.js +105 -0
- package/dist/update/constants/update.constants.d.ts +18 -0
- package/dist/update/constants/update.constants.js +20 -0
- package/dist/update/update-check.d.ts +52 -0
- package/dist/update/update-check.js +113 -0
- package/docs/AUDIT_PROMPT.md +129 -0
- package/docs/DATA_HANDLING.md +648 -0
- package/docs/ENTERPRISE_DEPLOYMENT.md +179 -0
- package/docs/PERFORMANCE.md +81 -0
- package/package.json +14 -4
- package/dist/enrollment/enrollment-provider.d.ts +0 -5
- package/dist/enrollment/manual-enrollment.d.ts +0 -32
- package/dist/enrollment/manual-enrollment.js +0 -72
- package/example/README.md +0 -43
- package/example/server.mjs +0 -240
- /package/dist/{enrollment/enrollment-provider.js → config/types/destination.types.js} +0 -0
|
@@ -1,34 +1,56 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
3
|
+
* Content is opt-IN; metadata stays on.
|
|
4
|
+
*
|
|
5
|
+
* `promptText` carries what the developer typed, bounded and scrubbed, so the
|
|
6
|
+
* backend can tell what a session with no repository was about. `toolInput` and
|
|
7
|
+
* `toolOutput` carry what went into and came out of a tool. `sessionTitle`
|
|
8
|
+
* carries the session's name and generated title. All four are
|
|
9
|
+
* material an IT review will not wave through, so nothing ships them unless
|
|
10
|
+
* someone deliberately turned them on. The agent's response text has no flag:
|
|
11
|
+
* it never leaves the machine. An older config's `prompts` / `responses` keys
|
|
12
|
+
* are stripped here, and the next `setup` removes them from the file.
|
|
13
|
+
*
|
|
14
|
+
* `git` and `files` are a different kind of thing: they gate the
|
|
15
|
+
* repo/branch/SHA and the per-file *path*, which is metadata about where work
|
|
16
|
+
* happened, not the work itself — and it is what feature and project
|
|
17
|
+
* attribution is made of, so it stays on by default.
|
|
18
|
+
*
|
|
19
|
+
* Independent of all of them: `contentEvidence()` still records a length and a
|
|
20
|
+
* SHA-256 of prompts and responses, and the sanitizer scrubs secrets from
|
|
21
|
+
* whatever does get sent.
|
|
22
|
+
*
|
|
23
|
+
* The content flags are gated a second time by the global
|
|
24
|
+
* `contentCaptureConsent` marker below: a config carrying `promptText: true`
|
|
25
|
+
* without it collects nothing, which is what keeps an upgrade of an older
|
|
26
|
+
* install from silently starting to ship content.
|
|
6
27
|
*/
|
|
7
28
|
export declare const captureSchema: z.ZodObject<{
|
|
8
|
-
|
|
9
|
-
responses: z.ZodDefault<z.ZodBoolean>;
|
|
10
|
-
toolInput: z.ZodDefault<z.ZodBoolean>;
|
|
11
|
-
toolOutput: z.ZodDefault<z.ZodBoolean>;
|
|
12
|
-
git: z.ZodDefault<z.ZodBoolean>;
|
|
13
|
-
files: z.ZodDefault<z.ZodBoolean>;
|
|
14
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
15
|
-
prompts: z.ZodDefault<z.ZodBoolean>;
|
|
16
|
-
responses: z.ZodDefault<z.ZodBoolean>;
|
|
17
|
-
toolInput: z.ZodDefault<z.ZodBoolean>;
|
|
18
|
-
toolOutput: z.ZodDefault<z.ZodBoolean>;
|
|
19
|
-
git: z.ZodDefault<z.ZodBoolean>;
|
|
20
|
-
files: z.ZodDefault<z.ZodBoolean>;
|
|
21
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
22
|
-
prompts: z.ZodDefault<z.ZodBoolean>;
|
|
23
|
-
responses: z.ZodDefault<z.ZodBoolean>;
|
|
29
|
+
promptText: z.ZodDefault<z.ZodBoolean>;
|
|
24
30
|
toolInput: z.ZodDefault<z.ZodBoolean>;
|
|
25
31
|
toolOutput: z.ZodDefault<z.ZodBoolean>;
|
|
32
|
+
/** The provider's native session name/title, scrubbed and bounded. A generated title can paraphrase the first prompt; the edge never derives one from the prompt. */
|
|
33
|
+
sessionTitle: z.ZodDefault<z.ZodBoolean>;
|
|
26
34
|
git: z.ZodDefault<z.ZodBoolean>;
|
|
27
35
|
files: z.ZodDefault<z.ZodBoolean>;
|
|
28
|
-
}, z.ZodTypeAny,
|
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
promptText: boolean;
|
|
38
|
+
toolInput: boolean;
|
|
39
|
+
toolOutput: boolean;
|
|
40
|
+
sessionTitle: boolean;
|
|
41
|
+
git: boolean;
|
|
42
|
+
files: boolean;
|
|
43
|
+
}, {
|
|
44
|
+
promptText?: boolean | undefined;
|
|
45
|
+
toolInput?: boolean | undefined;
|
|
46
|
+
toolOutput?: boolean | undefined;
|
|
47
|
+
sessionTitle?: boolean | undefined;
|
|
48
|
+
git?: boolean | undefined;
|
|
49
|
+
files?: boolean | undefined;
|
|
50
|
+
}>;
|
|
29
51
|
/** Tuning for the in-hook send and the machine-global offline queue. */
|
|
30
52
|
export declare const deliverySchema: z.ZodObject<{
|
|
31
|
-
/**
|
|
53
|
+
/** Shared network budget for direct send and backlog retries in one delivery pass. */
|
|
32
54
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
33
55
|
/** How many queued events one drain pass may send. */
|
|
34
56
|
drainBatchSize: z.ZodDefault<z.ZodNumber>;
|
|
@@ -108,41 +130,245 @@ export declare const emitSchema: z.ZodObject<{
|
|
|
108
130
|
llmCalls?: boolean | undefined;
|
|
109
131
|
turnSummaries?: boolean | undefined;
|
|
110
132
|
}>;
|
|
133
|
+
/**
|
|
134
|
+
* Whether the edge may send a bearer and records to this URL. See `judgeUrl`.
|
|
135
|
+
*
|
|
136
|
+
* @param value - The URL as written.
|
|
137
|
+
* @param trusted - Origins this machine trusts (`customEndpoints`).
|
|
138
|
+
* @returns True when the edge may send there.
|
|
139
|
+
*/
|
|
140
|
+
export declare function isAllowedHost(value: string, trusted: ReadonlySet<string>): boolean;
|
|
141
|
+
/**
|
|
142
|
+
* The origin of a URL the edge could deliver to, for recording trust in it.
|
|
143
|
+
*
|
|
144
|
+
* @param value - The URL as written.
|
|
145
|
+
* @returns The origin, or undefined when the URL is not deliverable.
|
|
146
|
+
*/
|
|
147
|
+
export declare function deliverableOrigin(value: string): string | undefined;
|
|
148
|
+
/**
|
|
149
|
+
* Whether only a trusted origin would let this URL through: deliverable, but
|
|
150
|
+
* neither an Agent Watch host nor loopback.
|
|
151
|
+
*
|
|
152
|
+
* @param value - The URL as written.
|
|
153
|
+
* @returns True when sending there needs `--allow-custom-endpoint`.
|
|
154
|
+
*/
|
|
155
|
+
export declare function needsTrust(value: string): boolean;
|
|
156
|
+
/** The config with its refused URLs nulled, what to say about them, and what was grandfathered. */
|
|
157
|
+
export interface ScreenedConfig {
|
|
158
|
+
readonly value: unknown;
|
|
159
|
+
readonly warnings: readonly string[];
|
|
160
|
+
/** Origins added to `customEndpoints` because the file predates the allowlist. */
|
|
161
|
+
readonly grandfathered: readonly string[];
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Every backend URL in a raw config file, judged once, before the schema reads it.
|
|
165
|
+
*
|
|
166
|
+
* The one place both the refusal and its report come from: one walk over the
|
|
167
|
+
* machine fields and every `roots[]` entry, one parse per URL. A refused value
|
|
168
|
+
* becomes `null` — "a URL was written here and refused" — rather than fatal.
|
|
169
|
+
* Failing the parse instead took the whole file down with it, and `loadConfig`
|
|
170
|
+
* answers a failed parse with `fallbackConfig()` — no endpoint, no token, no
|
|
171
|
+
* installation id:
|
|
172
|
+
*
|
|
173
|
+
* - An upgrade of a fleet pointed at an internal `http://collector.corp:4318`
|
|
174
|
+
* lost its *token* along with its endpoint, so every hook queued into
|
|
175
|
+
* `unconfigured/` while the existing backlog stayed pinned to
|
|
176
|
+
* `sha256(token)` — a partition nothing would ever drain again.
|
|
177
|
+
* - `roots` is a record of these same fields, so one typo in one project's
|
|
178
|
+
* entry stopped delivery for every other project on the machine.
|
|
179
|
+
*
|
|
180
|
+
* `null` and not absent, and that distinction is the whole point for a `roots[]`
|
|
181
|
+
* entry. `applyRootOverride` lays the override over the global config through
|
|
182
|
+
* `compact`, which skips undefined-valued keys so an override cannot erase a
|
|
183
|
+
* global — so an *absent* endpoint made the root inherit the machine's, and a
|
|
184
|
+
* consultant's `roots["/work/clientA"]` would have had every prompt in that
|
|
185
|
+
* directory POSTed to the *other* tenant's backend under clientA's own bearer.
|
|
186
|
+
* `null` survives `compact`, so the root's events queue under its own token
|
|
187
|
+
* instead of leaving.
|
|
188
|
+
*
|
|
189
|
+
* Anything present that is not a deliverable *string* counts: a number, an array
|
|
190
|
+
* or a `null` a templating tool emitted for a missing value is refused and
|
|
191
|
+
* reported, not waved through as absent.
|
|
192
|
+
*
|
|
193
|
+
* With `grandfather`, a URL only trust would let through is trusted instead of
|
|
194
|
+
* refused: the file predates the allowlist, and that backend was the
|
|
195
|
+
* developer's choice before there was a flag to say so.
|
|
196
|
+
*
|
|
197
|
+
* @param raw - The parsed JSON of the config file, whatever shape it has.
|
|
198
|
+
* @param grandfather - The file predates the allowlist.
|
|
199
|
+
* @returns The value to hand the schema, the warnings, and the origins grandfathered.
|
|
200
|
+
*/
|
|
201
|
+
export declare function screenConfigUrls(raw: unknown, grandfather: boolean): ScreenedConfig;
|
|
202
|
+
/**
|
|
203
|
+
* One project root's identity. Only the fields that decide *who* the events
|
|
204
|
+
* belong to and *where* they go: capture and emission stay machine-wide, so a
|
|
205
|
+
* second tenant cannot quietly widen what is collected under it.
|
|
206
|
+
*
|
|
207
|
+
* `.strip()` rather than passthrough, so a nested `roots` key cannot recurse
|
|
208
|
+
* and a mistyped block cannot smuggle in delivery tuning.
|
|
209
|
+
*/
|
|
210
|
+
export declare const rootOverrideSchema: z.ZodObject<{
|
|
211
|
+
endpoint: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
212
|
+
eventsUrl: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
213
|
+
otlpUrl: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
214
|
+
token: z.ZodOptional<z.ZodString>;
|
|
215
|
+
device: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
216
|
+
id: z.ZodString;
|
|
217
|
+
store: z.ZodEnum<["macos-keychain", "libsecret", "windows-dpapi", "file"]>;
|
|
218
|
+
endpoint: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
219
|
+
}, "strip", z.ZodTypeAny, {
|
|
220
|
+
id: string;
|
|
221
|
+
store: "macos-keychain" | "libsecret" | "windows-dpapi" | "file";
|
|
222
|
+
endpoint?: string | undefined;
|
|
223
|
+
}, {
|
|
224
|
+
id: string;
|
|
225
|
+
store: "macos-keychain" | "libsecret" | "windows-dpapi" | "file";
|
|
226
|
+
endpoint?: unknown;
|
|
227
|
+
}>>>;
|
|
228
|
+
installationId: z.ZodOptional<z.ZodString>;
|
|
229
|
+
developerEmail: z.ZodOptional<z.ZodString>;
|
|
230
|
+
developerName: z.ZodOptional<z.ZodString>;
|
|
231
|
+
}, "strip", z.ZodTypeAny, {
|
|
232
|
+
endpoint?: string | null | undefined;
|
|
233
|
+
token?: string | undefined;
|
|
234
|
+
eventsUrl?: string | null | undefined;
|
|
235
|
+
otlpUrl?: string | null | undefined;
|
|
236
|
+
device?: {
|
|
237
|
+
id: string;
|
|
238
|
+
store: "macos-keychain" | "libsecret" | "windows-dpapi" | "file";
|
|
239
|
+
endpoint?: string | undefined;
|
|
240
|
+
} | undefined;
|
|
241
|
+
installationId?: string | undefined;
|
|
242
|
+
developerEmail?: string | undefined;
|
|
243
|
+
developerName?: string | undefined;
|
|
244
|
+
}, {
|
|
245
|
+
endpoint?: unknown;
|
|
246
|
+
token?: string | undefined;
|
|
247
|
+
eventsUrl?: unknown;
|
|
248
|
+
otlpUrl?: unknown;
|
|
249
|
+
device?: unknown;
|
|
250
|
+
installationId?: string | undefined;
|
|
251
|
+
developerEmail?: string | undefined;
|
|
252
|
+
developerName?: string | undefined;
|
|
253
|
+
}>;
|
|
111
254
|
/** The whole configuration file. Passthrough: forward compatibility. */
|
|
112
|
-
export declare const configSchema: z.ZodObject<{
|
|
255
|
+
export declare const configSchema: z.ZodEffects<z.ZodObject<{
|
|
113
256
|
schemaVersion: z.ZodDefault<z.ZodLiteral<1>>;
|
|
114
257
|
/** Backend base URL, e.g. https://backend.example.com */
|
|
115
|
-
endpoint: z.ZodOptional<z.ZodString
|
|
258
|
+
endpoint: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
116
259
|
/** Overrides; derived from endpoint when absent. */
|
|
117
|
-
eventsUrl: z.ZodOptional<z.ZodString
|
|
118
|
-
otlpUrl: z.ZodOptional<z.ZodString
|
|
119
|
-
enforcementUrl: z.ZodOptional<z.ZodString
|
|
260
|
+
eventsUrl: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
261
|
+
otlpUrl: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
262
|
+
enforcementUrl: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
263
|
+
/** The install key, until it is exchanged for `device` (AWT-356). */
|
|
120
264
|
token: z.ZodOptional<z.ZodString>;
|
|
265
|
+
device: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
266
|
+
id: z.ZodString;
|
|
267
|
+
store: z.ZodEnum<["macos-keychain", "libsecret", "windows-dpapi", "file"]>;
|
|
268
|
+
endpoint: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
269
|
+
}, "strip", z.ZodTypeAny, {
|
|
270
|
+
id: string;
|
|
271
|
+
store: "macos-keychain" | "libsecret" | "windows-dpapi" | "file";
|
|
272
|
+
endpoint?: string | undefined;
|
|
273
|
+
}, {
|
|
274
|
+
id: string;
|
|
275
|
+
store: "macos-keychain" | "libsecret" | "windows-dpapi" | "file";
|
|
276
|
+
endpoint?: unknown;
|
|
277
|
+
}>>>;
|
|
121
278
|
installationId: z.ZodOptional<z.ZodString>;
|
|
122
279
|
/** Developer identity attached to turn summaries; falls back to `git config user.email`. */
|
|
123
280
|
developerEmail: z.ZodOptional<z.ZodString>;
|
|
281
|
+
/**
|
|
282
|
+
* What to call this developer in the platform's views; falls back to
|
|
283
|
+
* `git config user.name`. Never an identity: nothing is keyed on it, and a
|
|
284
|
+
* turn is still reported under `developerEmail`.
|
|
285
|
+
*/
|
|
286
|
+
developerName: z.ZodOptional<z.ZodString>;
|
|
287
|
+
/**
|
|
288
|
+
* Absolute project root -> the identity to use beneath it. Longest match
|
|
289
|
+
* wins, so a nested checkout can override the workspace above it.
|
|
290
|
+
*/
|
|
291
|
+
roots: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
292
|
+
endpoint: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
293
|
+
eventsUrl: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
294
|
+
otlpUrl: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
295
|
+
token: z.ZodOptional<z.ZodString>;
|
|
296
|
+
device: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
297
|
+
id: z.ZodString;
|
|
298
|
+
store: z.ZodEnum<["macos-keychain", "libsecret", "windows-dpapi", "file"]>;
|
|
299
|
+
endpoint: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
300
|
+
}, "strip", z.ZodTypeAny, {
|
|
301
|
+
id: string;
|
|
302
|
+
store: "macos-keychain" | "libsecret" | "windows-dpapi" | "file";
|
|
303
|
+
endpoint?: string | undefined;
|
|
304
|
+
}, {
|
|
305
|
+
id: string;
|
|
306
|
+
store: "macos-keychain" | "libsecret" | "windows-dpapi" | "file";
|
|
307
|
+
endpoint?: unknown;
|
|
308
|
+
}>>>;
|
|
309
|
+
installationId: z.ZodOptional<z.ZodString>;
|
|
310
|
+
developerEmail: z.ZodOptional<z.ZodString>;
|
|
311
|
+
developerName: z.ZodOptional<z.ZodString>;
|
|
312
|
+
}, "strip", z.ZodTypeAny, {
|
|
313
|
+
endpoint?: string | null | undefined;
|
|
314
|
+
token?: string | undefined;
|
|
315
|
+
eventsUrl?: string | null | undefined;
|
|
316
|
+
otlpUrl?: string | null | undefined;
|
|
317
|
+
device?: {
|
|
318
|
+
id: string;
|
|
319
|
+
store: "macos-keychain" | "libsecret" | "windows-dpapi" | "file";
|
|
320
|
+
endpoint?: string | undefined;
|
|
321
|
+
} | undefined;
|
|
322
|
+
installationId?: string | undefined;
|
|
323
|
+
developerEmail?: string | undefined;
|
|
324
|
+
developerName?: string | undefined;
|
|
325
|
+
}, {
|
|
326
|
+
endpoint?: unknown;
|
|
327
|
+
token?: string | undefined;
|
|
328
|
+
eventsUrl?: unknown;
|
|
329
|
+
otlpUrl?: unknown;
|
|
330
|
+
device?: unknown;
|
|
331
|
+
installationId?: string | undefined;
|
|
332
|
+
developerEmail?: string | undefined;
|
|
333
|
+
developerName?: string | undefined;
|
|
334
|
+
}>>>;
|
|
335
|
+
contentCaptureConsent: z.ZodDefault<z.ZodBoolean>;
|
|
336
|
+
/**
|
|
337
|
+
* Origins this machine sends to outside the Agent Watch hosts. Written by
|
|
338
|
+
* `setup --allow-custom-endpoint` (exactly the origin that run named) or
|
|
339
|
+
* grandfathered from a file older than the allowlist; shown by `status` and
|
|
340
|
+
* `doctor`. A malformed value reads as no trust without failing the file.
|
|
341
|
+
*/
|
|
342
|
+
customEndpoints: z.ZodDefault<z.ZodCatch<z.ZodArray<z.ZodString, "many">>>;
|
|
343
|
+
/** Present on a file written after the allowlist; see `ALLOWLIST_VERSION_KEY`. */
|
|
344
|
+
allowlistVersion: z.ZodOptional<z.ZodNumber>;
|
|
345
|
+
/** Tell the developer, once per repository per session, that a run called an LLM with no tracing (AWT-310). */
|
|
346
|
+
untracedNotices: z.ZodDefault<z.ZodBoolean>;
|
|
347
|
+
/** At session start, say when npm has a newer release; checked at most once a day, in the background. */
|
|
348
|
+
updateNotices: z.ZodDefault<z.ZodBoolean>;
|
|
124
349
|
capture: z.ZodDefault<z.ZodObject<{
|
|
125
|
-
|
|
126
|
-
responses: z.ZodDefault<z.ZodBoolean>;
|
|
127
|
-
toolInput: z.ZodDefault<z.ZodBoolean>;
|
|
128
|
-
toolOutput: z.ZodDefault<z.ZodBoolean>;
|
|
129
|
-
git: z.ZodDefault<z.ZodBoolean>;
|
|
130
|
-
files: z.ZodDefault<z.ZodBoolean>;
|
|
131
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
132
|
-
prompts: z.ZodDefault<z.ZodBoolean>;
|
|
133
|
-
responses: z.ZodDefault<z.ZodBoolean>;
|
|
134
|
-
toolInput: z.ZodDefault<z.ZodBoolean>;
|
|
135
|
-
toolOutput: z.ZodDefault<z.ZodBoolean>;
|
|
136
|
-
git: z.ZodDefault<z.ZodBoolean>;
|
|
137
|
-
files: z.ZodDefault<z.ZodBoolean>;
|
|
138
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
139
|
-
prompts: z.ZodDefault<z.ZodBoolean>;
|
|
140
|
-
responses: z.ZodDefault<z.ZodBoolean>;
|
|
350
|
+
promptText: z.ZodDefault<z.ZodBoolean>;
|
|
141
351
|
toolInput: z.ZodDefault<z.ZodBoolean>;
|
|
142
352
|
toolOutput: z.ZodDefault<z.ZodBoolean>;
|
|
353
|
+
/** The provider's native session name/title, scrubbed and bounded. A generated title can paraphrase the first prompt; the edge never derives one from the prompt. */
|
|
354
|
+
sessionTitle: z.ZodDefault<z.ZodBoolean>;
|
|
143
355
|
git: z.ZodDefault<z.ZodBoolean>;
|
|
144
356
|
files: z.ZodDefault<z.ZodBoolean>;
|
|
145
|
-
}, z.ZodTypeAny,
|
|
357
|
+
}, "strip", z.ZodTypeAny, {
|
|
358
|
+
promptText: boolean;
|
|
359
|
+
toolInput: boolean;
|
|
360
|
+
toolOutput: boolean;
|
|
361
|
+
sessionTitle: boolean;
|
|
362
|
+
git: boolean;
|
|
363
|
+
files: boolean;
|
|
364
|
+
}, {
|
|
365
|
+
promptText?: boolean | undefined;
|
|
366
|
+
toolInput?: boolean | undefined;
|
|
367
|
+
toolOutput?: boolean | undefined;
|
|
368
|
+
sessionTitle?: boolean | undefined;
|
|
369
|
+
git?: boolean | undefined;
|
|
370
|
+
files?: boolean | undefined;
|
|
371
|
+
}>>;
|
|
146
372
|
emit: z.ZodDefault<z.ZodObject<{
|
|
147
373
|
/** One flat summary per prompt→response turn, emitted on Stop. */
|
|
148
374
|
turnSummaries: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -173,7 +399,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
173
399
|
metrics?: boolean | undefined;
|
|
174
400
|
}>>;
|
|
175
401
|
delivery: z.ZodDefault<z.ZodObject<{
|
|
176
|
-
/**
|
|
402
|
+
/** Shared network budget for direct send and backlog retries in one delivery pass. */
|
|
177
403
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
178
404
|
/** How many queued events one drain pass may send. */
|
|
179
405
|
drainBatchSize: z.ZodDefault<z.ZodNumber>;
|
|
@@ -211,37 +437,120 @@ export declare const configSchema: z.ZodObject<{
|
|
|
211
437
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
212
438
|
schemaVersion: z.ZodDefault<z.ZodLiteral<1>>;
|
|
213
439
|
/** Backend base URL, e.g. https://backend.example.com */
|
|
214
|
-
endpoint: z.ZodOptional<z.ZodString
|
|
440
|
+
endpoint: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
215
441
|
/** Overrides; derived from endpoint when absent. */
|
|
216
|
-
eventsUrl: z.ZodOptional<z.ZodString
|
|
217
|
-
otlpUrl: z.ZodOptional<z.ZodString
|
|
218
|
-
enforcementUrl: z.ZodOptional<z.ZodString
|
|
442
|
+
eventsUrl: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
443
|
+
otlpUrl: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
444
|
+
enforcementUrl: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
445
|
+
/** The install key, until it is exchanged for `device` (AWT-356). */
|
|
219
446
|
token: z.ZodOptional<z.ZodString>;
|
|
447
|
+
device: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
448
|
+
id: z.ZodString;
|
|
449
|
+
store: z.ZodEnum<["macos-keychain", "libsecret", "windows-dpapi", "file"]>;
|
|
450
|
+
endpoint: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
451
|
+
}, "strip", z.ZodTypeAny, {
|
|
452
|
+
id: string;
|
|
453
|
+
store: "macos-keychain" | "libsecret" | "windows-dpapi" | "file";
|
|
454
|
+
endpoint?: string | undefined;
|
|
455
|
+
}, {
|
|
456
|
+
id: string;
|
|
457
|
+
store: "macos-keychain" | "libsecret" | "windows-dpapi" | "file";
|
|
458
|
+
endpoint?: unknown;
|
|
459
|
+
}>>>;
|
|
220
460
|
installationId: z.ZodOptional<z.ZodString>;
|
|
221
461
|
/** Developer identity attached to turn summaries; falls back to `git config user.email`. */
|
|
222
462
|
developerEmail: z.ZodOptional<z.ZodString>;
|
|
463
|
+
/**
|
|
464
|
+
* What to call this developer in the platform's views; falls back to
|
|
465
|
+
* `git config user.name`. Never an identity: nothing is keyed on it, and a
|
|
466
|
+
* turn is still reported under `developerEmail`.
|
|
467
|
+
*/
|
|
468
|
+
developerName: z.ZodOptional<z.ZodString>;
|
|
469
|
+
/**
|
|
470
|
+
* Absolute project root -> the identity to use beneath it. Longest match
|
|
471
|
+
* wins, so a nested checkout can override the workspace above it.
|
|
472
|
+
*/
|
|
473
|
+
roots: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
474
|
+
endpoint: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
475
|
+
eventsUrl: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
476
|
+
otlpUrl: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
477
|
+
token: z.ZodOptional<z.ZodString>;
|
|
478
|
+
device: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
479
|
+
id: z.ZodString;
|
|
480
|
+
store: z.ZodEnum<["macos-keychain", "libsecret", "windows-dpapi", "file"]>;
|
|
481
|
+
endpoint: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
482
|
+
}, "strip", z.ZodTypeAny, {
|
|
483
|
+
id: string;
|
|
484
|
+
store: "macos-keychain" | "libsecret" | "windows-dpapi" | "file";
|
|
485
|
+
endpoint?: string | undefined;
|
|
486
|
+
}, {
|
|
487
|
+
id: string;
|
|
488
|
+
store: "macos-keychain" | "libsecret" | "windows-dpapi" | "file";
|
|
489
|
+
endpoint?: unknown;
|
|
490
|
+
}>>>;
|
|
491
|
+
installationId: z.ZodOptional<z.ZodString>;
|
|
492
|
+
developerEmail: z.ZodOptional<z.ZodString>;
|
|
493
|
+
developerName: z.ZodOptional<z.ZodString>;
|
|
494
|
+
}, "strip", z.ZodTypeAny, {
|
|
495
|
+
endpoint?: string | null | undefined;
|
|
496
|
+
token?: string | undefined;
|
|
497
|
+
eventsUrl?: string | null | undefined;
|
|
498
|
+
otlpUrl?: string | null | undefined;
|
|
499
|
+
device?: {
|
|
500
|
+
id: string;
|
|
501
|
+
store: "macos-keychain" | "libsecret" | "windows-dpapi" | "file";
|
|
502
|
+
endpoint?: string | undefined;
|
|
503
|
+
} | undefined;
|
|
504
|
+
installationId?: string | undefined;
|
|
505
|
+
developerEmail?: string | undefined;
|
|
506
|
+
developerName?: string | undefined;
|
|
507
|
+
}, {
|
|
508
|
+
endpoint?: unknown;
|
|
509
|
+
token?: string | undefined;
|
|
510
|
+
eventsUrl?: unknown;
|
|
511
|
+
otlpUrl?: unknown;
|
|
512
|
+
device?: unknown;
|
|
513
|
+
installationId?: string | undefined;
|
|
514
|
+
developerEmail?: string | undefined;
|
|
515
|
+
developerName?: string | undefined;
|
|
516
|
+
}>>>;
|
|
517
|
+
contentCaptureConsent: z.ZodDefault<z.ZodBoolean>;
|
|
518
|
+
/**
|
|
519
|
+
* Origins this machine sends to outside the Agent Watch hosts. Written by
|
|
520
|
+
* `setup --allow-custom-endpoint` (exactly the origin that run named) or
|
|
521
|
+
* grandfathered from a file older than the allowlist; shown by `status` and
|
|
522
|
+
* `doctor`. A malformed value reads as no trust without failing the file.
|
|
523
|
+
*/
|
|
524
|
+
customEndpoints: z.ZodDefault<z.ZodCatch<z.ZodArray<z.ZodString, "many">>>;
|
|
525
|
+
/** Present on a file written after the allowlist; see `ALLOWLIST_VERSION_KEY`. */
|
|
526
|
+
allowlistVersion: z.ZodOptional<z.ZodNumber>;
|
|
527
|
+
/** Tell the developer, once per repository per session, that a run called an LLM with no tracing (AWT-310). */
|
|
528
|
+
untracedNotices: z.ZodDefault<z.ZodBoolean>;
|
|
529
|
+
/** At session start, say when npm has a newer release; checked at most once a day, in the background. */
|
|
530
|
+
updateNotices: z.ZodDefault<z.ZodBoolean>;
|
|
223
531
|
capture: z.ZodDefault<z.ZodObject<{
|
|
224
|
-
|
|
225
|
-
responses: z.ZodDefault<z.ZodBoolean>;
|
|
532
|
+
promptText: z.ZodDefault<z.ZodBoolean>;
|
|
226
533
|
toolInput: z.ZodDefault<z.ZodBoolean>;
|
|
227
534
|
toolOutput: z.ZodDefault<z.ZodBoolean>;
|
|
535
|
+
/** The provider's native session name/title, scrubbed and bounded. A generated title can paraphrase the first prompt; the edge never derives one from the prompt. */
|
|
536
|
+
sessionTitle: z.ZodDefault<z.ZodBoolean>;
|
|
228
537
|
git: z.ZodDefault<z.ZodBoolean>;
|
|
229
538
|
files: z.ZodDefault<z.ZodBoolean>;
|
|
230
|
-
}, "
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
git:
|
|
236
|
-
files:
|
|
237
|
-
},
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
git
|
|
243
|
-
files
|
|
244
|
-
}
|
|
539
|
+
}, "strip", z.ZodTypeAny, {
|
|
540
|
+
promptText: boolean;
|
|
541
|
+
toolInput: boolean;
|
|
542
|
+
toolOutput: boolean;
|
|
543
|
+
sessionTitle: boolean;
|
|
544
|
+
git: boolean;
|
|
545
|
+
files: boolean;
|
|
546
|
+
}, {
|
|
547
|
+
promptText?: boolean | undefined;
|
|
548
|
+
toolInput?: boolean | undefined;
|
|
549
|
+
toolOutput?: boolean | undefined;
|
|
550
|
+
sessionTitle?: boolean | undefined;
|
|
551
|
+
git?: boolean | undefined;
|
|
552
|
+
files?: boolean | undefined;
|
|
553
|
+
}>>;
|
|
245
554
|
emit: z.ZodDefault<z.ZodObject<{
|
|
246
555
|
/** One flat summary per prompt→response turn, emitted on Stop. */
|
|
247
556
|
turnSummaries: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -272,7 +581,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
272
581
|
metrics?: boolean | undefined;
|
|
273
582
|
}>>;
|
|
274
583
|
delivery: z.ZodDefault<z.ZodObject<{
|
|
275
|
-
/**
|
|
584
|
+
/** Shared network budget for direct send and backlog retries in one delivery pass. */
|
|
276
585
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
277
586
|
/** How many queued events one drain pass may send. */
|
|
278
587
|
drainBatchSize: z.ZodDefault<z.ZodNumber>;
|
|
@@ -310,37 +619,365 @@ export declare const configSchema: z.ZodObject<{
|
|
|
310
619
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
311
620
|
schemaVersion: z.ZodDefault<z.ZodLiteral<1>>;
|
|
312
621
|
/** Backend base URL, e.g. https://backend.example.com */
|
|
313
|
-
endpoint: z.ZodOptional<z.ZodString
|
|
622
|
+
endpoint: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
314
623
|
/** Overrides; derived from endpoint when absent. */
|
|
315
|
-
eventsUrl: z.ZodOptional<z.ZodString
|
|
316
|
-
otlpUrl: z.ZodOptional<z.ZodString
|
|
317
|
-
enforcementUrl: z.ZodOptional<z.ZodString
|
|
624
|
+
eventsUrl: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
625
|
+
otlpUrl: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
626
|
+
enforcementUrl: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
627
|
+
/** The install key, until it is exchanged for `device` (AWT-356). */
|
|
318
628
|
token: z.ZodOptional<z.ZodString>;
|
|
629
|
+
device: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
630
|
+
id: z.ZodString;
|
|
631
|
+
store: z.ZodEnum<["macos-keychain", "libsecret", "windows-dpapi", "file"]>;
|
|
632
|
+
endpoint: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
633
|
+
}, "strip", z.ZodTypeAny, {
|
|
634
|
+
id: string;
|
|
635
|
+
store: "macos-keychain" | "libsecret" | "windows-dpapi" | "file";
|
|
636
|
+
endpoint?: string | undefined;
|
|
637
|
+
}, {
|
|
638
|
+
id: string;
|
|
639
|
+
store: "macos-keychain" | "libsecret" | "windows-dpapi" | "file";
|
|
640
|
+
endpoint?: unknown;
|
|
641
|
+
}>>>;
|
|
319
642
|
installationId: z.ZodOptional<z.ZodString>;
|
|
320
643
|
/** Developer identity attached to turn summaries; falls back to `git config user.email`. */
|
|
321
644
|
developerEmail: z.ZodOptional<z.ZodString>;
|
|
645
|
+
/**
|
|
646
|
+
* What to call this developer in the platform's views; falls back to
|
|
647
|
+
* `git config user.name`. Never an identity: nothing is keyed on it, and a
|
|
648
|
+
* turn is still reported under `developerEmail`.
|
|
649
|
+
*/
|
|
650
|
+
developerName: z.ZodOptional<z.ZodString>;
|
|
651
|
+
/**
|
|
652
|
+
* Absolute project root -> the identity to use beneath it. Longest match
|
|
653
|
+
* wins, so a nested checkout can override the workspace above it.
|
|
654
|
+
*/
|
|
655
|
+
roots: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
656
|
+
endpoint: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
657
|
+
eventsUrl: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
658
|
+
otlpUrl: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
659
|
+
token: z.ZodOptional<z.ZodString>;
|
|
660
|
+
device: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
661
|
+
id: z.ZodString;
|
|
662
|
+
store: z.ZodEnum<["macos-keychain", "libsecret", "windows-dpapi", "file"]>;
|
|
663
|
+
endpoint: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
664
|
+
}, "strip", z.ZodTypeAny, {
|
|
665
|
+
id: string;
|
|
666
|
+
store: "macos-keychain" | "libsecret" | "windows-dpapi" | "file";
|
|
667
|
+
endpoint?: string | undefined;
|
|
668
|
+
}, {
|
|
669
|
+
id: string;
|
|
670
|
+
store: "macos-keychain" | "libsecret" | "windows-dpapi" | "file";
|
|
671
|
+
endpoint?: unknown;
|
|
672
|
+
}>>>;
|
|
673
|
+
installationId: z.ZodOptional<z.ZodString>;
|
|
674
|
+
developerEmail: z.ZodOptional<z.ZodString>;
|
|
675
|
+
developerName: z.ZodOptional<z.ZodString>;
|
|
676
|
+
}, "strip", z.ZodTypeAny, {
|
|
677
|
+
endpoint?: string | null | undefined;
|
|
678
|
+
token?: string | undefined;
|
|
679
|
+
eventsUrl?: string | null | undefined;
|
|
680
|
+
otlpUrl?: string | null | undefined;
|
|
681
|
+
device?: {
|
|
682
|
+
id: string;
|
|
683
|
+
store: "macos-keychain" | "libsecret" | "windows-dpapi" | "file";
|
|
684
|
+
endpoint?: string | undefined;
|
|
685
|
+
} | undefined;
|
|
686
|
+
installationId?: string | undefined;
|
|
687
|
+
developerEmail?: string | undefined;
|
|
688
|
+
developerName?: string | undefined;
|
|
689
|
+
}, {
|
|
690
|
+
endpoint?: unknown;
|
|
691
|
+
token?: string | undefined;
|
|
692
|
+
eventsUrl?: unknown;
|
|
693
|
+
otlpUrl?: unknown;
|
|
694
|
+
device?: unknown;
|
|
695
|
+
installationId?: string | undefined;
|
|
696
|
+
developerEmail?: string | undefined;
|
|
697
|
+
developerName?: string | undefined;
|
|
698
|
+
}>>>;
|
|
699
|
+
contentCaptureConsent: z.ZodDefault<z.ZodBoolean>;
|
|
700
|
+
/**
|
|
701
|
+
* Origins this machine sends to outside the Agent Watch hosts. Written by
|
|
702
|
+
* `setup --allow-custom-endpoint` (exactly the origin that run named) or
|
|
703
|
+
* grandfathered from a file older than the allowlist; shown by `status` and
|
|
704
|
+
* `doctor`. A malformed value reads as no trust without failing the file.
|
|
705
|
+
*/
|
|
706
|
+
customEndpoints: z.ZodDefault<z.ZodCatch<z.ZodArray<z.ZodString, "many">>>;
|
|
707
|
+
/** Present on a file written after the allowlist; see `ALLOWLIST_VERSION_KEY`. */
|
|
708
|
+
allowlistVersion: z.ZodOptional<z.ZodNumber>;
|
|
709
|
+
/** Tell the developer, once per repository per session, that a run called an LLM with no tracing (AWT-310). */
|
|
710
|
+
untracedNotices: z.ZodDefault<z.ZodBoolean>;
|
|
711
|
+
/** At session start, say when npm has a newer release; checked at most once a day, in the background. */
|
|
712
|
+
updateNotices: z.ZodDefault<z.ZodBoolean>;
|
|
322
713
|
capture: z.ZodDefault<z.ZodObject<{
|
|
323
|
-
|
|
324
|
-
responses: z.ZodDefault<z.ZodBoolean>;
|
|
325
|
-
toolInput: z.ZodDefault<z.ZodBoolean>;
|
|
326
|
-
toolOutput: z.ZodDefault<z.ZodBoolean>;
|
|
327
|
-
git: z.ZodDefault<z.ZodBoolean>;
|
|
328
|
-
files: z.ZodDefault<z.ZodBoolean>;
|
|
329
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
330
|
-
prompts: z.ZodDefault<z.ZodBoolean>;
|
|
331
|
-
responses: z.ZodDefault<z.ZodBoolean>;
|
|
714
|
+
promptText: z.ZodDefault<z.ZodBoolean>;
|
|
332
715
|
toolInput: z.ZodDefault<z.ZodBoolean>;
|
|
333
716
|
toolOutput: z.ZodDefault<z.ZodBoolean>;
|
|
717
|
+
/** The provider's native session name/title, scrubbed and bounded. A generated title can paraphrase the first prompt; the edge never derives one from the prompt. */
|
|
718
|
+
sessionTitle: z.ZodDefault<z.ZodBoolean>;
|
|
334
719
|
git: z.ZodDefault<z.ZodBoolean>;
|
|
335
720
|
files: z.ZodDefault<z.ZodBoolean>;
|
|
336
|
-
}, z.ZodTypeAny,
|
|
337
|
-
|
|
338
|
-
|
|
721
|
+
}, "strip", z.ZodTypeAny, {
|
|
722
|
+
promptText: boolean;
|
|
723
|
+
toolInput: boolean;
|
|
724
|
+
toolOutput: boolean;
|
|
725
|
+
sessionTitle: boolean;
|
|
726
|
+
git: boolean;
|
|
727
|
+
files: boolean;
|
|
728
|
+
}, {
|
|
729
|
+
promptText?: boolean | undefined;
|
|
730
|
+
toolInput?: boolean | undefined;
|
|
731
|
+
toolOutput?: boolean | undefined;
|
|
732
|
+
sessionTitle?: boolean | undefined;
|
|
733
|
+
git?: boolean | undefined;
|
|
734
|
+
files?: boolean | undefined;
|
|
735
|
+
}>>;
|
|
736
|
+
emit: z.ZodDefault<z.ZodObject<{
|
|
737
|
+
/** One flat summary per prompt→response turn, emitted on Stop. */
|
|
738
|
+
turnSummaries: z.ZodDefault<z.ZodBoolean>;
|
|
739
|
+
/**
|
|
740
|
+
* Every provider request is mandatory: it is the lossless usage ledger.
|
|
741
|
+
* Accept a legacy `false` on input, but migrate that field to `true`
|
|
742
|
+
* instead of invalidating the entire global config.
|
|
743
|
+
*/
|
|
744
|
+
llmCalls: z.ZodEffects<z.ZodDefault<z.ZodBoolean>, true, boolean | undefined>;
|
|
745
|
+
}, "strip", z.ZodTypeAny, {
|
|
746
|
+
llmCalls: true;
|
|
747
|
+
turnSummaries: boolean;
|
|
748
|
+
}, {
|
|
749
|
+
llmCalls?: boolean | undefined;
|
|
750
|
+
turnSummaries?: boolean | undefined;
|
|
751
|
+
}>>;
|
|
752
|
+
otel: z.ZodDefault<z.ZodObject<{
|
|
753
|
+
logs: z.ZodDefault<z.ZodBoolean>;
|
|
754
|
+
traces: z.ZodDefault<z.ZodBoolean>;
|
|
755
|
+
metrics: z.ZodDefault<z.ZodBoolean>;
|
|
756
|
+
}, "strip", z.ZodTypeAny, {
|
|
757
|
+
logs: boolean;
|
|
758
|
+
traces: boolean;
|
|
759
|
+
metrics: boolean;
|
|
760
|
+
}, {
|
|
761
|
+
logs?: boolean | undefined;
|
|
762
|
+
traces?: boolean | undefined;
|
|
763
|
+
metrics?: boolean | undefined;
|
|
764
|
+
}>>;
|
|
765
|
+
delivery: z.ZodDefault<z.ZodObject<{
|
|
766
|
+
/** Shared network budget for direct send and backlog retries in one delivery pass. */
|
|
767
|
+
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
768
|
+
/** How many queued events one drain pass may send. */
|
|
769
|
+
drainBatchSize: z.ZodDefault<z.ZodNumber>;
|
|
770
|
+
maxQueueEvents: z.ZodDefault<z.ZodNumber>;
|
|
771
|
+
maxAttempts: z.ZodDefault<z.ZodNumber>;
|
|
772
|
+
maxEventAgeDays: z.ZodDefault<z.ZodNumber>;
|
|
773
|
+
}, "strip", z.ZodTypeAny, {
|
|
774
|
+
timeoutMs: number;
|
|
775
|
+
drainBatchSize: number;
|
|
776
|
+
maxQueueEvents: number;
|
|
777
|
+
maxAttempts: number;
|
|
778
|
+
maxEventAgeDays: number;
|
|
779
|
+
}, {
|
|
780
|
+
timeoutMs?: number | undefined;
|
|
781
|
+
drainBatchSize?: number | undefined;
|
|
782
|
+
maxQueueEvents?: number | undefined;
|
|
783
|
+
maxAttempts?: number | undefined;
|
|
784
|
+
maxEventAgeDays?: number | undefined;
|
|
785
|
+
}>>;
|
|
786
|
+
enforcement: z.ZodDefault<z.ZodObject<{
|
|
787
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
788
|
+
/** Hard ceiling for the check; it sits between enter and the agent's first call. */
|
|
789
|
+
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
790
|
+
/** Mirrors the platform's own cache TTL for the same decision. */
|
|
791
|
+
cacheTtlMs: z.ZodDefault<z.ZodNumber>;
|
|
792
|
+
}, "strip", z.ZodTypeAny, {
|
|
793
|
+
timeoutMs: number;
|
|
794
|
+
enabled: boolean;
|
|
795
|
+
cacheTtlMs: number;
|
|
796
|
+
}, {
|
|
797
|
+
timeoutMs?: number | undefined;
|
|
798
|
+
enabled?: boolean | undefined;
|
|
799
|
+
cacheTtlMs?: number | undefined;
|
|
800
|
+
}>>;
|
|
801
|
+
}, z.ZodTypeAny, "passthrough">>, {
|
|
802
|
+
capture: {
|
|
803
|
+
promptText: boolean;
|
|
804
|
+
toolInput: boolean;
|
|
805
|
+
toolOutput: boolean;
|
|
806
|
+
sessionTitle: boolean;
|
|
807
|
+
git: boolean;
|
|
808
|
+
files: boolean;
|
|
809
|
+
};
|
|
810
|
+
otel: {
|
|
811
|
+
logs: boolean;
|
|
812
|
+
traces: boolean;
|
|
813
|
+
metrics: boolean;
|
|
814
|
+
};
|
|
815
|
+
customEndpoints: string[];
|
|
816
|
+
contentCaptureConsent: boolean;
|
|
817
|
+
untracedNotices: boolean;
|
|
818
|
+
updateNotices: boolean;
|
|
819
|
+
delivery: {
|
|
820
|
+
timeoutMs: number;
|
|
821
|
+
drainBatchSize: number;
|
|
822
|
+
maxQueueEvents: number;
|
|
823
|
+
maxAttempts: number;
|
|
824
|
+
maxEventAgeDays: number;
|
|
825
|
+
};
|
|
826
|
+
enforcement: {
|
|
827
|
+
timeoutMs: number;
|
|
828
|
+
enabled: boolean;
|
|
829
|
+
cacheTtlMs: number;
|
|
830
|
+
};
|
|
831
|
+
emit: {
|
|
832
|
+
llmCalls: true;
|
|
833
|
+
turnSummaries: boolean;
|
|
834
|
+
};
|
|
835
|
+
schemaVersion: 1;
|
|
836
|
+
endpoint?: string | null | undefined;
|
|
837
|
+
token?: string | undefined;
|
|
838
|
+
allowlistVersion?: number | undefined;
|
|
839
|
+
eventsUrl?: string | null | undefined;
|
|
840
|
+
otlpUrl?: string | null | undefined;
|
|
841
|
+
enforcementUrl?: string | null | undefined;
|
|
842
|
+
roots?: Record<string, {
|
|
843
|
+
endpoint?: string | null | undefined;
|
|
844
|
+
token?: string | undefined;
|
|
845
|
+
eventsUrl?: string | null | undefined;
|
|
846
|
+
otlpUrl?: string | null | undefined;
|
|
847
|
+
device?: {
|
|
848
|
+
id: string;
|
|
849
|
+
store: "macos-keychain" | "libsecret" | "windows-dpapi" | "file";
|
|
850
|
+
endpoint?: string | undefined;
|
|
851
|
+
} | undefined;
|
|
852
|
+
installationId?: string | undefined;
|
|
853
|
+
developerEmail?: string | undefined;
|
|
854
|
+
developerName?: string | undefined;
|
|
855
|
+
}> | undefined;
|
|
856
|
+
device?: {
|
|
857
|
+
id: string;
|
|
858
|
+
store: "macos-keychain" | "libsecret" | "windows-dpapi" | "file";
|
|
859
|
+
endpoint?: string | undefined;
|
|
860
|
+
} | undefined;
|
|
861
|
+
installationId?: string | undefined;
|
|
862
|
+
developerEmail?: string | undefined;
|
|
863
|
+
developerName?: string | undefined;
|
|
864
|
+
}, z.objectInputType<{
|
|
865
|
+
schemaVersion: z.ZodDefault<z.ZodLiteral<1>>;
|
|
866
|
+
/** Backend base URL, e.g. https://backend.example.com */
|
|
867
|
+
endpoint: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
868
|
+
/** Overrides; derived from endpoint when absent. */
|
|
869
|
+
eventsUrl: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
870
|
+
otlpUrl: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
871
|
+
enforcementUrl: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
872
|
+
/** The install key, until it is exchanged for `device` (AWT-356). */
|
|
873
|
+
token: z.ZodOptional<z.ZodString>;
|
|
874
|
+
device: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
875
|
+
id: z.ZodString;
|
|
876
|
+
store: z.ZodEnum<["macos-keychain", "libsecret", "windows-dpapi", "file"]>;
|
|
877
|
+
endpoint: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
878
|
+
}, "strip", z.ZodTypeAny, {
|
|
879
|
+
id: string;
|
|
880
|
+
store: "macos-keychain" | "libsecret" | "windows-dpapi" | "file";
|
|
881
|
+
endpoint?: string | undefined;
|
|
882
|
+
}, {
|
|
883
|
+
id: string;
|
|
884
|
+
store: "macos-keychain" | "libsecret" | "windows-dpapi" | "file";
|
|
885
|
+
endpoint?: unknown;
|
|
886
|
+
}>>>;
|
|
887
|
+
installationId: z.ZodOptional<z.ZodString>;
|
|
888
|
+
/** Developer identity attached to turn summaries; falls back to `git config user.email`. */
|
|
889
|
+
developerEmail: z.ZodOptional<z.ZodString>;
|
|
890
|
+
/**
|
|
891
|
+
* What to call this developer in the platform's views; falls back to
|
|
892
|
+
* `git config user.name`. Never an identity: nothing is keyed on it, and a
|
|
893
|
+
* turn is still reported under `developerEmail`.
|
|
894
|
+
*/
|
|
895
|
+
developerName: z.ZodOptional<z.ZodString>;
|
|
896
|
+
/**
|
|
897
|
+
* Absolute project root -> the identity to use beneath it. Longest match
|
|
898
|
+
* wins, so a nested checkout can override the workspace above it.
|
|
899
|
+
*/
|
|
900
|
+
roots: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
901
|
+
endpoint: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
902
|
+
eventsUrl: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
903
|
+
otlpUrl: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
904
|
+
token: z.ZodOptional<z.ZodString>;
|
|
905
|
+
device: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
906
|
+
id: z.ZodString;
|
|
907
|
+
store: z.ZodEnum<["macos-keychain", "libsecret", "windows-dpapi", "file"]>;
|
|
908
|
+
endpoint: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
909
|
+
}, "strip", z.ZodTypeAny, {
|
|
910
|
+
id: string;
|
|
911
|
+
store: "macos-keychain" | "libsecret" | "windows-dpapi" | "file";
|
|
912
|
+
endpoint?: string | undefined;
|
|
913
|
+
}, {
|
|
914
|
+
id: string;
|
|
915
|
+
store: "macos-keychain" | "libsecret" | "windows-dpapi" | "file";
|
|
916
|
+
endpoint?: unknown;
|
|
917
|
+
}>>>;
|
|
918
|
+
installationId: z.ZodOptional<z.ZodString>;
|
|
919
|
+
developerEmail: z.ZodOptional<z.ZodString>;
|
|
920
|
+
developerName: z.ZodOptional<z.ZodString>;
|
|
921
|
+
}, "strip", z.ZodTypeAny, {
|
|
922
|
+
endpoint?: string | null | undefined;
|
|
923
|
+
token?: string | undefined;
|
|
924
|
+
eventsUrl?: string | null | undefined;
|
|
925
|
+
otlpUrl?: string | null | undefined;
|
|
926
|
+
device?: {
|
|
927
|
+
id: string;
|
|
928
|
+
store: "macos-keychain" | "libsecret" | "windows-dpapi" | "file";
|
|
929
|
+
endpoint?: string | undefined;
|
|
930
|
+
} | undefined;
|
|
931
|
+
installationId?: string | undefined;
|
|
932
|
+
developerEmail?: string | undefined;
|
|
933
|
+
developerName?: string | undefined;
|
|
934
|
+
}, {
|
|
935
|
+
endpoint?: unknown;
|
|
936
|
+
token?: string | undefined;
|
|
937
|
+
eventsUrl?: unknown;
|
|
938
|
+
otlpUrl?: unknown;
|
|
939
|
+
device?: unknown;
|
|
940
|
+
installationId?: string | undefined;
|
|
941
|
+
developerEmail?: string | undefined;
|
|
942
|
+
developerName?: string | undefined;
|
|
943
|
+
}>>>;
|
|
944
|
+
contentCaptureConsent: z.ZodDefault<z.ZodBoolean>;
|
|
945
|
+
/**
|
|
946
|
+
* Origins this machine sends to outside the Agent Watch hosts. Written by
|
|
947
|
+
* `setup --allow-custom-endpoint` (exactly the origin that run named) or
|
|
948
|
+
* grandfathered from a file older than the allowlist; shown by `status` and
|
|
949
|
+
* `doctor`. A malformed value reads as no trust without failing the file.
|
|
950
|
+
*/
|
|
951
|
+
customEndpoints: z.ZodDefault<z.ZodCatch<z.ZodArray<z.ZodString, "many">>>;
|
|
952
|
+
/** Present on a file written after the allowlist; see `ALLOWLIST_VERSION_KEY`. */
|
|
953
|
+
allowlistVersion: z.ZodOptional<z.ZodNumber>;
|
|
954
|
+
/** Tell the developer, once per repository per session, that a run called an LLM with no tracing (AWT-310). */
|
|
955
|
+
untracedNotices: z.ZodDefault<z.ZodBoolean>;
|
|
956
|
+
/** At session start, say when npm has a newer release; checked at most once a day, in the background. */
|
|
957
|
+
updateNotices: z.ZodDefault<z.ZodBoolean>;
|
|
958
|
+
capture: z.ZodDefault<z.ZodObject<{
|
|
959
|
+
promptText: z.ZodDefault<z.ZodBoolean>;
|
|
339
960
|
toolInput: z.ZodDefault<z.ZodBoolean>;
|
|
340
961
|
toolOutput: z.ZodDefault<z.ZodBoolean>;
|
|
962
|
+
/** The provider's native session name/title, scrubbed and bounded. A generated title can paraphrase the first prompt; the edge never derives one from the prompt. */
|
|
963
|
+
sessionTitle: z.ZodDefault<z.ZodBoolean>;
|
|
341
964
|
git: z.ZodDefault<z.ZodBoolean>;
|
|
342
965
|
files: z.ZodDefault<z.ZodBoolean>;
|
|
343
|
-
}, z.ZodTypeAny,
|
|
966
|
+
}, "strip", z.ZodTypeAny, {
|
|
967
|
+
promptText: boolean;
|
|
968
|
+
toolInput: boolean;
|
|
969
|
+
toolOutput: boolean;
|
|
970
|
+
sessionTitle: boolean;
|
|
971
|
+
git: boolean;
|
|
972
|
+
files: boolean;
|
|
973
|
+
}, {
|
|
974
|
+
promptText?: boolean | undefined;
|
|
975
|
+
toolInput?: boolean | undefined;
|
|
976
|
+
toolOutput?: boolean | undefined;
|
|
977
|
+
sessionTitle?: boolean | undefined;
|
|
978
|
+
git?: boolean | undefined;
|
|
979
|
+
files?: boolean | undefined;
|
|
980
|
+
}>>;
|
|
344
981
|
emit: z.ZodDefault<z.ZodObject<{
|
|
345
982
|
/** One flat summary per prompt→response turn, emitted on Stop. */
|
|
346
983
|
turnSummaries: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -371,7 +1008,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
371
1008
|
metrics?: boolean | undefined;
|
|
372
1009
|
}>>;
|
|
373
1010
|
delivery: z.ZodDefault<z.ZodObject<{
|
|
374
|
-
/**
|
|
1011
|
+
/** Shared network budget for direct send and backlog retries in one delivery pass. */
|
|
375
1012
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
376
1013
|
/** How many queued events one drain pass may send. */
|
|
377
1014
|
drainBatchSize: z.ZodDefault<z.ZodNumber>;
|