@wildo-ai/external-connectors-models 1.0.1 → 1.1.0
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/LICENSE +34 -0
- package/dist/esm/.builder.pid +9 -0
- package/dist/esm/companion-exports.d.ts +8 -0
- package/dist/esm/companion-exports.d.ts.map +1 -0
- package/dist/esm/companion-exports.js +8 -0
- package/dist/esm/companion-exports.js.map +1 -0
- package/dist/esm/core/commons.external-connectors-models.schemas.d.ts +66 -19
- package/dist/esm/core/commons.external-connectors-models.schemas.d.ts.map +1 -1
- package/dist/esm/core/commons.external-connectors-models.schemas.js +51 -3
- package/dist/esm/core/commons.external-connectors-models.schemas.js.map +1 -1
- package/dist/esm/core/oauth2.enums.d.ts.map +1 -1
- package/dist/esm/core/oauth2.enums.js +1 -1
- package/dist/esm/core/oauth2.enums.js.map +1 -1
- package/dist/esm/core/operations.external-connectors-models.schemas.d.ts.map +1 -1
- package/dist/esm/core/operations.external-connectors-models.schemas.js +1 -1
- package/dist/esm/core/operations.external-connectors-models.schemas.js.map +1 -1
- package/dist/esm/core/protocols.external-connectors-models.schemas.d.ts +35 -20
- package/dist/esm/core/protocols.external-connectors-models.schemas.d.ts.map +1 -1
- package/dist/esm/core/protocols.external-connectors-models.schemas.js +1 -1
- package/dist/esm/core/protocols.external-connectors-models.schemas.js.map +1 -1
- package/dist/esm/core/security.external-connectors-models.schemas.d.ts +1 -1
- package/dist/esm/core/security.external-connectors-models.schemas.d.ts.map +1 -1
- package/dist/esm/core/security.external-connectors-models.schemas.js +1 -1
- package/dist/esm/core/security.external-connectors-models.schemas.js.map +1 -1
- package/dist/esm/features/core.external-connectors-models.schemas.d.ts +4 -4
- package/dist/esm/features/core.external-connectors-models.schemas.d.ts.map +1 -1
- package/dist/esm/features/core.external-connectors-models.schemas.js +13 -13
- package/dist/esm/features/core.external-connectors-models.schemas.js.map +1 -1
- package/dist/esm/features/email.external-connectors-models.schemas.d.ts +12 -12
- package/dist/esm/features/email.external-connectors-models.schemas.d.ts.map +1 -1
- package/dist/esm/features/email.external-connectors-models.schemas.js +2 -2
- package/dist/esm/features/email.external-connectors-models.schemas.js.map +1 -1
- package/dist/esm/features/hooks.external-connectors-models.schemas.d.ts.map +1 -1
- package/dist/esm/features/hooks.external-connectors-models.schemas.js +1 -1
- package/dist/esm/features/hooks.external-connectors-models.schemas.js.map +1 -1
- package/dist/esm/features/sms.external-connectors-models.schemas.d.ts +4 -4
- package/dist/esm/features/sms.external-connectors-models.schemas.d.ts.map +1 -1
- package/dist/esm/features/sms.external-connectors-models.schemas.js +1 -1
- package/dist/esm/features/sms.external-connectors-models.schemas.js.map +1 -1
- package/dist/esm/index.d.ts +27 -27
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +5 -6
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/protocols/a2a.external-connectors-models.schemas.d.ts +3 -3
- package/dist/esm/protocols/a2a.external-connectors-models.schemas.d.ts.map +1 -1
- package/dist/esm/protocols/a2a.external-connectors-models.schemas.js +1 -1
- package/dist/esm/protocols/a2a.external-connectors-models.schemas.js.map +1 -1
- package/dist/esm/protocols/agent-client-protocol.external-connectors-models.schemas.d.ts +526 -0
- package/dist/esm/protocols/agent-client-protocol.external-connectors-models.schemas.d.ts.map +1 -0
- package/dist/esm/protocols/agent-client-protocol.external-connectors-models.schemas.js +639 -0
- package/dist/esm/protocols/agent-client-protocol.external-connectors-models.schemas.js.map +1 -0
- package/dist/esm/protocols/billing.standard-interface.schemas.d.ts +67 -0
- package/dist/esm/protocols/billing.standard-interface.schemas.d.ts.map +1 -1
- package/dist/esm/protocols/billing.standard-interface.schemas.js +1 -1
- package/dist/esm/protocols/billing.standard-interface.schemas.js.map +1 -1
- package/dist/esm/protocols/document-extraction.external-connectors-models.schemas.d.ts +179 -0
- package/dist/esm/protocols/document-extraction.external-connectors-models.schemas.d.ts.map +1 -0
- package/dist/esm/protocols/document-extraction.external-connectors-models.schemas.js +217 -0
- package/dist/esm/protocols/document-extraction.external-connectors-models.schemas.js.map +1 -0
- package/dist/esm/protocols/email.external-connectors-models.schemas.d.ts +5 -5
- package/dist/esm/protocols/email.external-connectors-models.schemas.d.ts.map +1 -1
- package/dist/esm/protocols/email.external-connectors-models.schemas.js +1 -1
- package/dist/esm/protocols/email.external-connectors-models.schemas.js.map +1 -1
- package/dist/esm/protocols/email.standard-interface.schemas.d.ts +37 -10
- package/dist/esm/protocols/email.standard-interface.schemas.d.ts.map +1 -1
- package/dist/esm/protocols/email.standard-interface.schemas.js +137 -4
- package/dist/esm/protocols/email.standard-interface.schemas.js.map +1 -1
- package/dist/esm/protocols/embeddings.external-connectors-models.schemas.d.ts +175 -0
- package/dist/esm/protocols/embeddings.external-connectors-models.schemas.d.ts.map +1 -0
- package/dist/esm/protocols/embeddings.external-connectors-models.schemas.js +191 -0
- package/dist/esm/protocols/embeddings.external-connectors-models.schemas.js.map +1 -0
- package/dist/esm/protocols/frontend.external-connectors-models.schemas.d.ts +4 -4
- package/dist/esm/protocols/frontend.external-connectors-models.schemas.d.ts.map +1 -1
- package/dist/esm/protocols/frontend.external-connectors-models.schemas.js +2 -2
- package/dist/esm/protocols/frontend.external-connectors-models.schemas.js.map +1 -1
- package/dist/esm/protocols/git.external-connectors-models.schemas.d.ts +3 -3
- package/dist/esm/protocols/git.external-connectors-models.schemas.d.ts.map +1 -1
- package/dist/esm/protocols/git.external-connectors-models.schemas.js +1 -1
- package/dist/esm/protocols/git.external-connectors-models.schemas.js.map +1 -1
- package/dist/esm/protocols/grpc.external-connectors-models.schemas.d.ts +3 -3
- package/dist/esm/protocols/grpc.external-connectors-models.schemas.d.ts.map +1 -1
- package/dist/esm/protocols/grpc.external-connectors-models.schemas.js +1 -1
- package/dist/esm/protocols/grpc.external-connectors-models.schemas.js.map +1 -1
- package/dist/esm/protocols/hooks.external-connectors-models.schemas.d.ts +14 -6
- package/dist/esm/protocols/hooks.external-connectors-models.schemas.d.ts.map +1 -1
- package/dist/esm/protocols/hooks.external-connectors-models.schemas.js +1 -1
- package/dist/esm/protocols/hooks.external-connectors-models.schemas.js.map +1 -1
- package/dist/esm/protocols/image.external-connectors-models.schemas.d.ts +151 -0
- package/dist/esm/protocols/image.external-connectors-models.schemas.d.ts.map +1 -0
- package/dist/esm/protocols/image.external-connectors-models.schemas.js +150 -0
- package/dist/esm/protocols/image.external-connectors-models.schemas.js.map +1 -0
- package/dist/esm/protocols/llm.external-connectors-models.schemas.d.ts +567 -67
- package/dist/esm/protocols/llm.external-connectors-models.schemas.d.ts.map +1 -1
- package/dist/esm/protocols/llm.external-connectors-models.schemas.js +815 -36
- package/dist/esm/protocols/llm.external-connectors-models.schemas.js.map +1 -1
- package/dist/esm/protocols/mcp.external-connectors-models.schemas.d.ts +3 -3
- package/dist/esm/protocols/mcp.external-connectors-models.schemas.d.ts.map +1 -1
- package/dist/esm/protocols/mcp.external-connectors-models.schemas.js +1 -1
- package/dist/esm/protocols/mcp.external-connectors-models.schemas.js.map +1 -1
- package/dist/esm/protocols/oauth2.external-connectors-models.schemas.d.ts +27 -28
- package/dist/esm/protocols/oauth2.external-connectors-models.schemas.d.ts.map +1 -1
- package/dist/esm/protocols/oauth2.external-connectors-models.schemas.js +1 -3
- package/dist/esm/protocols/oauth2.external-connectors-models.schemas.js.map +1 -1
- package/dist/esm/protocols/rest-api.external-connectors-models.schemas.d.ts +3 -3
- package/dist/esm/protocols/rest-api.external-connectors-models.schemas.d.ts.map +1 -1
- package/dist/esm/protocols/rest-api.external-connectors-models.schemas.js +1 -1
- package/dist/esm/protocols/rest-api.external-connectors-models.schemas.js.map +1 -1
- package/dist/esm/protocols/saml.external-connectors-models.schemas.d.ts +30 -30
- package/dist/esm/protocols/saml.external-connectors-models.schemas.d.ts.map +1 -1
- package/dist/esm/protocols/saml.external-connectors-models.schemas.js +1 -1
- package/dist/esm/protocols/saml.external-connectors-models.schemas.js.map +1 -1
- package/dist/esm/protocols/sms.external-connectors-models.schemas.d.ts +2 -2
- package/dist/esm/protocols/sms.external-connectors-models.schemas.d.ts.map +1 -1
- package/dist/esm/protocols/sms.external-connectors-models.schemas.js +1 -1
- package/dist/esm/protocols/sms.external-connectors-models.schemas.js.map +1 -1
- package/dist/esm/protocols/sms.standard-interface.schemas.d.ts +1 -1
- package/dist/esm/protocols/sms.standard-interface.schemas.d.ts.map +1 -1
- package/dist/esm/protocols/sms.standard-interface.schemas.js +1 -1
- package/dist/esm/protocols/sms.standard-interface.schemas.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +20 -10
- package/dist/esm/core/lazy-loading.external-connectors-models.schemas.d.ts +0 -127
- package/dist/esm/core/lazy-loading.external-connectors-models.schemas.d.ts.map +0 -1
- package/dist/esm/core/lazy-loading.external-connectors-models.schemas.js +0 -22
- package/dist/esm/core/lazy-loading.external-connectors-models.schemas.js.map +0 -1
- package/dist/esm/core/providers.external-connectors-models.schemas.d.ts +0 -80
- package/dist/esm/core/providers.external-connectors-models.schemas.d.ts.map +0 -1
- package/dist/esm/core/providers.external-connectors-models.schemas.js +0 -55
- package/dist/esm/core/providers.external-connectors-models.schemas.js.map +0 -1
- package/dist/esm/protocols/cli-runtime.external-connectors-models.schemas.d.ts +0 -214
- package/dist/esm/protocols/cli-runtime.external-connectors-models.schemas.d.ts.map +0 -1
- package/dist/esm/protocols/cli-runtime.external-connectors-models.schemas.js +0 -188
- package/dist/esm/protocols/cli-runtime.external-connectors-models.schemas.js.map +0 -1
|
@@ -0,0 +1,526 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { ExternalProvider_OperationDefinition_Base } from "../core/operations.external-connectors-models.schemas";
|
|
3
|
+
import { APPLICATION_ENVIRONMENT, ExternalProvider_ExchangeProtocol_Configuration_Base, ExternalProvider_ExchangeProtocol_Kind, ExternalProvider_ExchangeProtocol_Profile_Base } from "../core/commons.external-connectors-models.schemas";
|
|
4
|
+
/**
|
|
5
|
+
* Where the agent subprocess runs.
|
|
6
|
+
*
|
|
7
|
+
* Only one host exists today, and it is the same constraint the coding lane has
|
|
8
|
+
* always had: the agent must share a filesystem with the workspace it mutates.
|
|
9
|
+
* A remote host is not a variant of this — it would need the workspace shipped
|
|
10
|
+
* to it, which is a different design, so it is deliberately not enumerated
|
|
11
|
+
* until it exists.
|
|
12
|
+
*/
|
|
13
|
+
export declare enum AgentClientProtocol_RunnerHost {
|
|
14
|
+
BACKEND_SUBPROCESS = "backend_subprocess"
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* How the spawned agent authenticates to its own model provider.
|
|
18
|
+
*
|
|
19
|
+
* ACP additionally defines a protocol-level `authenticate` method, advertised
|
|
20
|
+
* through the agent's `authMethods` array. That is NOT enumerated here: when an
|
|
21
|
+
* agent advertises auth methods the runner negotiates them at `initialize`
|
|
22
|
+
* time, which is a runtime handshake rather than authored configuration. These
|
|
23
|
+
* modes describe what the HOST does before the process starts.
|
|
24
|
+
*/
|
|
25
|
+
export declare enum AgentClientProtocol_AuthMode {
|
|
26
|
+
/** The agent needs no credential (a local model, or an agent that refuses work). */
|
|
27
|
+
NONE = "none",
|
|
28
|
+
/**
|
|
29
|
+
* The agent resolves its own credential from host state — an operator's prior
|
|
30
|
+
* interactive login, a keychain entry, an ambient cloud identity. Wildo
|
|
31
|
+
* injects nothing and can see nothing. This is the correct mode for a
|
|
32
|
+
* developer-machine coding agent.
|
|
33
|
+
*/
|
|
34
|
+
HOST_MANAGED = "host_managed",
|
|
35
|
+
/** Wildo resolves a secret by ref and injects it into the child environment. */
|
|
36
|
+
SECRET_REF_ENV_INJECTION = "secret_ref_env_injection"
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Which directory becomes the ACP session's `cwd`.
|
|
40
|
+
*
|
|
41
|
+
* ACP requires `cwd` to be an ABSOLUTE path and treats it as the session's
|
|
42
|
+
* primary filesystem context. The absolute path itself is never authored here:
|
|
43
|
+
* it is host authority supplied at invocation time, which is what makes a
|
|
44
|
+
* profile portable across applications and machines.
|
|
45
|
+
*/
|
|
46
|
+
export declare enum AgentClientProtocol_WorkingDirectoryPolicy {
|
|
47
|
+
WORKSPACE_ROOT = "workspace_root",
|
|
48
|
+
WORKSPACE_RELATIVE_PATH = "workspace_relative_path"
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* The MOST autonomy a session started from this profile may be granted.
|
|
52
|
+
*
|
|
53
|
+
* This is a Wildo-owned vocabulary, deliberately expressed in terms of what the
|
|
54
|
+
* CLIENT must still decide rather than in any agent's mode identifiers. Agents
|
|
55
|
+
* advertise their own modes at `session/new` (Claude's adapter offers
|
|
56
|
+
* `default`, `auto`, `acceptEdits`, `plan`, `dontAsk`, `bypassPermissions`),
|
|
57
|
+
* and those identifiers are agent-specific strings — binding a provider profile
|
|
58
|
+
* to them would make the contract unusable for any other agent and would break
|
|
59
|
+
* the moment an agent renames one.
|
|
60
|
+
*
|
|
61
|
+
* It is a CEILING, not a selection: the caller (for application creation, the
|
|
62
|
+
* autonomy mode of the journey) chooses at or below it. An authored ceiling is
|
|
63
|
+
* what lets an application say "no session started from this profile may ever
|
|
64
|
+
* skip the permission gate" independently of what any individual run requests.
|
|
65
|
+
*
|
|
66
|
+
* Ordering is meaningful and increasing: PROMPT_ALWAYS < AUTO_ACCEPT_EDITS <
|
|
67
|
+
* UNRESTRICTED. Compare through {@link agentClientProtocolPermissionCeilingRank}
|
|
68
|
+
* rather than by string, so the ordering has one definition.
|
|
69
|
+
*/
|
|
70
|
+
export declare enum AgentClientProtocol_PermissionCeiling {
|
|
71
|
+
/**
|
|
72
|
+
* Every permission request the agent raises must be answered by the client.
|
|
73
|
+
*
|
|
74
|
+
* Note what this does and does not promise: it guarantees the CLIENT decides
|
|
75
|
+
* every request the agent RAISES, not that the agent raises one per action.
|
|
76
|
+
* Which tool calls escalate is the agent's own policy — measured against
|
|
77
|
+
* Claude's adapter, file edits and writes prompt while a read-only shell
|
|
78
|
+
* command does not. Treat this as "no blanket pre-approval", never as "a
|
|
79
|
+
* complete inventory of what the agent did"; that inventory comes from the
|
|
80
|
+
* tool-call stream and, authoritatively, from the change set.
|
|
81
|
+
*/
|
|
82
|
+
PROMPT_ALWAYS = "prompt_always",
|
|
83
|
+
/**
|
|
84
|
+
* File edits are auto-accepted; everything else must still be answered.
|
|
85
|
+
*
|
|
86
|
+
* "Must still be answered" is a promise the CLIENT keeps, and it is only
|
|
87
|
+
* keepable because the runner refuses to hand the decision to the agent.
|
|
88
|
+
* Measured live against Claude's adapter on 2026-08-27: selecting that
|
|
89
|
+
* agent's own `acceptEdits` session mode ALSO auto-approves arbitrary shell
|
|
90
|
+
* commands, so a mutating `printf > file` executed with no permission request
|
|
91
|
+
* at all and wrote outside the task's declared mutation scope. Under the
|
|
92
|
+
* strictest mode the identical prompt escalated and was denied, and nothing
|
|
93
|
+
* was written.
|
|
94
|
+
*
|
|
95
|
+
* So this ceiling is implemented by keeping the agent in its most-escalating
|
|
96
|
+
* mode and auto-allowing edit-kind requests HERE. The agent's similarly named
|
|
97
|
+
* mode is deliberately not selected: it grants strictly more than its name.
|
|
98
|
+
*/
|
|
99
|
+
AUTO_ACCEPT_EDITS = "auto_accept_edits",
|
|
100
|
+
/**
|
|
101
|
+
* The protocol's NON-MUTATING tool kinds are auto-accepted; everything else must still be
|
|
102
|
+
* answered — and with no human at the other end, that means denied.
|
|
103
|
+
*
|
|
104
|
+
* The read-only lane. `read`, `search`, `fetch` and `think` are exactly the kinds the Agent Client
|
|
105
|
+
* Protocol itself classes as non-mutating; `edit`, `delete` and `move` are its mutating set and are
|
|
106
|
+
* refused here, as are `execute` (which can mutate anything) and `other` (unclassified, so
|
|
107
|
+
* fail-closed).
|
|
108
|
+
*
|
|
109
|
+
* Added 2026-08-29 because neither existing ceiling could express a research agent, MEASURED
|
|
110
|
+
* rather than assumed: a probe under {@link PROMPT_ALWAYS} with every location refused had both
|
|
111
|
+
* `WebFetch` and `WebSearch` arrive as `toolKind: 'fetch'` and be `ceiling_refused`, and the agent
|
|
112
|
+
* ended its turn saying it would not guess a price from memory. So PROMPT_ALWAYS denies research
|
|
113
|
+
* outright, and {@link AUTO_ACCEPT_EDITS} admits precisely the inverse of what research needs.
|
|
114
|
+
*/
|
|
115
|
+
AUTO_ACCEPT_READS = "auto_accept_reads",
|
|
116
|
+
/** No permission gate. Reserve for a disposable or isolated workspace. */
|
|
117
|
+
UNRESTRICTED = "unrestricted"
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Increasing rank for {@link AgentClientProtocol_PermissionCeiling}; the single ordering definition.
|
|
121
|
+
*
|
|
122
|
+
* ## It is a CLAMP order, not a subset lattice — and that distinction is load-bearing
|
|
123
|
+
*
|
|
124
|
+
* Rank answers one question: how much is pre-approved without a human. It is used to LOWER a
|
|
125
|
+
* request that asks for more autonomy than its profile allows, never to reason about which
|
|
126
|
+
* permissions contain which.
|
|
127
|
+
*
|
|
128
|
+
* The sets are deliberately NOT nested. {@link AgentClientProtocol_PermissionCeiling.AUTO_ACCEPT_EDITS}
|
|
129
|
+
* (rank 2) admits the mutating kinds and still refuses `fetch`, while
|
|
130
|
+
* {@link AgentClientProtocol_PermissionCeiling.AUTO_ACCEPT_READS} (rank 1) admits `fetch` and refuses
|
|
131
|
+
* every mutating kind. Reading rank as containment would say the higher ceiling must also admit
|
|
132
|
+
* `fetch` — and making that true would hand every coding agent network access as a side effect of
|
|
133
|
+
* building a research lane. That is a change to the coding lane's posture and it needs its own
|
|
134
|
+
* evidence, not a corollary. Clamping still behaves correctly: a coding profile lowered to
|
|
135
|
+
* AUTO_ACCEPT_READS may fetch and may not edit, which is exactly what asking for less autonomy in
|
|
136
|
+
* the read direction should mean.
|
|
137
|
+
*/
|
|
138
|
+
export declare function agentClientProtocolPermissionCeilingRank(ceiling: AgentClientProtocol_PermissionCeiling): number;
|
|
139
|
+
/**
|
|
140
|
+
* How much of the HOST MACHINE's agent configuration a session inherits.
|
|
141
|
+
*
|
|
142
|
+
* Coding agents read configuration from the filesystem — instructions, skills,
|
|
143
|
+
* slash commands, sub-agent personas, tool permissions — and they layer several
|
|
144
|
+
* scopes. Measured against Claude's ACP adapter, the default is to load ALL of
|
|
145
|
+
* them, including the operator's personal `~/.claude`: a probe session returned
|
|
146
|
+
* roughly forty commands and a persona belonging to the machine running it,
|
|
147
|
+
* none of which the application authored.
|
|
148
|
+
*
|
|
149
|
+
* That inheritance is not simply undesirable, which is why this is a three-way
|
|
150
|
+
* choice rather than a boolean. A dispatched coding task SHOULD read the
|
|
151
|
+
* application's own instructions and installed skills — that is how the
|
|
152
|
+
* application teaches the agent to use its framework. What it should not
|
|
153
|
+
* silently absorb is whoever happens to be logged in.
|
|
154
|
+
*/
|
|
155
|
+
export declare enum AgentClientProtocol_HostConfigurationInheritance {
|
|
156
|
+
/** No filesystem-sourced agent configuration. The prompt is the whole instruction. */
|
|
157
|
+
ISOLATED = "isolated",
|
|
158
|
+
/**
|
|
159
|
+
* Configuration owned by the workspace (its committed instructions, its
|
|
160
|
+
* installed skills, its checked-in settings) — but not the operator's
|
|
161
|
+
* personal configuration. The correct default for a dispatched task.
|
|
162
|
+
*/
|
|
163
|
+
APPLICATION_SCOPED = "application_scoped",
|
|
164
|
+
/**
|
|
165
|
+
* Everything the agent would load if a human had started it by hand,
|
|
166
|
+
* including operator-level configuration. Honest about what it is: the run
|
|
167
|
+
* then depends on machine state Wildo neither authored nor recorded, so a run
|
|
168
|
+
* is not reproducible on another machine.
|
|
169
|
+
*/
|
|
170
|
+
HOST_INHERITED = "host_inherited"
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* One authored way to start an ACP agent.
|
|
174
|
+
*
|
|
175
|
+
* Mirrors the shape a provider's execution profiles have always had: the
|
|
176
|
+
* spawnable command plus the policy that decides whether it may run at all.
|
|
177
|
+
*/
|
|
178
|
+
export declare const AgentClientProtocol_ExecutionProfileSchema: z.ZodObject<{
|
|
179
|
+
runnerHost: z.ZodDefault<z.ZodEnum<typeof AgentClientProtocol_RunnerHost>>;
|
|
180
|
+
command: z.ZodOptional<z.ZodString>;
|
|
181
|
+
args: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
182
|
+
inheritedEnvironmentVariables: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
183
|
+
authMode: z.ZodEnum<typeof AgentClientProtocol_AuthMode>;
|
|
184
|
+
secretRef: z.ZodOptional<z.ZodString>;
|
|
185
|
+
secretEnvVarName: z.ZodOptional<z.ZodString>;
|
|
186
|
+
allowedApplicationEnvironments: z.ZodArray<z.ZodEnum<typeof APPLICATION_ENVIRONMENT>>;
|
|
187
|
+
allowedPlatformEnvironmentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
188
|
+
workingDirectoryPolicy: z.ZodDefault<z.ZodEnum<typeof AgentClientProtocol_WorkingDirectoryPolicy>>;
|
|
189
|
+
workingDirectoryRelativePath: z.ZodOptional<z.ZodString>;
|
|
190
|
+
permissionCeiling: z.ZodDefault<z.ZodEnum<typeof AgentClientProtocol_PermissionCeiling>>;
|
|
191
|
+
hostConfigurationInheritance: z.ZodDefault<z.ZodEnum<typeof AgentClientProtocol_HostConfigurationInheritance>>;
|
|
192
|
+
turnTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
193
|
+
maximumRecordedEventBytes: z.ZodOptional<z.ZodNumber>;
|
|
194
|
+
sessionMetaExtensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
195
|
+
}, z.core.$strict>;
|
|
196
|
+
export type AgentClientProtocol_ExecutionProfile = z.infer<typeof AgentClientProtocol_ExecutionProfileSchema>;
|
|
197
|
+
/**
|
|
198
|
+
* Transport capability metadata for an ACP-speaking provider.
|
|
199
|
+
*
|
|
200
|
+
* Note how little is declared here compared with a one-shot CLI contract, and
|
|
201
|
+
* why: ACP agents advertise their own capabilities, session modes and available
|
|
202
|
+
* commands during `initialize` and `session/new`. Re-declaring any of that in
|
|
203
|
+
* authored configuration would create a second source of truth that drifts the
|
|
204
|
+
* first time the agent is upgraded. What remains is what the HOST must know
|
|
205
|
+
* before it opens a connection.
|
|
206
|
+
*/
|
|
207
|
+
export declare const AgentClientProtocol_ProfileSchema: z.ZodObject<{
|
|
208
|
+
endpoints: z.ZodOptional<z.ZodRecord<z.ZodEnum<typeof APPLICATION_ENVIRONMENT>, z.ZodString>>;
|
|
209
|
+
availableAuthMethods: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof import("..").ExternalProvider_Auth_Kind>>>;
|
|
210
|
+
authProfiles: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
211
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
212
|
+
isDefault: z.ZodDefault<z.ZodBoolean>;
|
|
213
|
+
location: z.ZodDefault<z.ZodEnum<typeof import("..").ExternalProvider_Auth_ApiKey_Location>>;
|
|
214
|
+
kind: z.ZodLiteral<import("..").ExternalProvider_Auth_Kind.API_KEY>;
|
|
215
|
+
locationField: z.ZodDefault<z.ZodString>;
|
|
216
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
217
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
218
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
219
|
+
isDefault: z.ZodDefault<z.ZodBoolean>;
|
|
220
|
+
location: z.ZodDefault<z.ZodEnum<typeof import("..").ExternalProvider_Auth_ApiKey_Location>>;
|
|
221
|
+
kind: z.ZodLiteral<import("..").ExternalProvider_Auth_Kind.HMAC_SIGNATURE>;
|
|
222
|
+
locationField: z.ZodDefault<z.ZodString>;
|
|
223
|
+
algorithm: z.ZodDefault<z.ZodEnum<typeof import("..").ExternalProvider_Auth_HMAC_Signature_Algorithm>>;
|
|
224
|
+
signaturePayload: z.ZodOptional<z.ZodEnum<{
|
|
225
|
+
custom: "custom";
|
|
226
|
+
body: "body";
|
|
227
|
+
timestamp: "timestamp";
|
|
228
|
+
}>>;
|
|
229
|
+
timestampHeader: z.ZodOptional<z.ZodString>;
|
|
230
|
+
nonceHeader: z.ZodOptional<z.ZodString>;
|
|
231
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
232
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
233
|
+
isDefault: z.ZodDefault<z.ZodBoolean>;
|
|
234
|
+
kind: z.ZodLiteral<import("..").ExternalProvider_Auth_Kind.BEARER>;
|
|
235
|
+
location: z.ZodDefault<z.ZodEnum<typeof import("..").ExternalProvider_Auth_ApiKey_Location>>;
|
|
236
|
+
locationField: z.ZodDefault<z.ZodString>;
|
|
237
|
+
prefix: z.ZodDefault<z.ZodString>;
|
|
238
|
+
format: z.ZodDefault<z.ZodEnum<typeof import("..").ExternalProvider_Auth_Bearer_Format>>;
|
|
239
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
240
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
241
|
+
isDefault: z.ZodDefault<z.ZodBoolean>;
|
|
242
|
+
location: z.ZodDefault<z.ZodEnum<typeof import("..").ExternalProvider_Auth_ApiKey_Location>>;
|
|
243
|
+
locationField: z.ZodDefault<z.ZodString>;
|
|
244
|
+
kind: z.ZodLiteral<import("..").ExternalProvider_Auth_Kind.OPENID_CONNECT>;
|
|
245
|
+
discoveryUrl: z.ZodOptional<z.ZodURL>;
|
|
246
|
+
issuer: z.ZodOptional<z.ZodString>;
|
|
247
|
+
audience: z.ZodOptional<z.ZodString>;
|
|
248
|
+
validationMode: z.ZodOptional<z.ZodEnum<{
|
|
249
|
+
jwks: "jwks";
|
|
250
|
+
introspection: "introspection";
|
|
251
|
+
local: "local";
|
|
252
|
+
}>>;
|
|
253
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
254
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
255
|
+
isDefault: z.ZodDefault<z.ZodBoolean>;
|
|
256
|
+
location: z.ZodDefault<z.ZodEnum<typeof import("..").ExternalProvider_Auth_ApiKey_Location>>;
|
|
257
|
+
locationField: z.ZodDefault<z.ZodString>;
|
|
258
|
+
kind: z.ZodLiteral<import("..").ExternalProvider_Auth_Kind.OAUTH2>;
|
|
259
|
+
oauth2ProviderRef: z.ZodOptional<z.ZodString>;
|
|
260
|
+
authUrl: z.ZodOptional<z.ZodURL>;
|
|
261
|
+
tokenUrl: z.ZodOptional<z.ZodURL>;
|
|
262
|
+
refreshUrl: z.ZodOptional<z.ZodURL>;
|
|
263
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
264
|
+
grantType: z.ZodOptional<z.ZodEnum<typeof import("./oauth2.external-connectors-models.schemas").OAuth2_GrantType>>;
|
|
265
|
+
tokenEndpointAuthMethod: z.ZodOptional<z.ZodEnum<typeof import("./oauth2.external-connectors-models.schemas").OAuth2_TokenEndpoint_AuthMethod>>;
|
|
266
|
+
pkce: z.ZodOptional<z.ZodBoolean>;
|
|
267
|
+
pkceMethod: z.ZodOptional<z.ZodEnum<typeof import("./oauth2.external-connectors-models.schemas").OAuth2_PKCE_Method>>;
|
|
268
|
+
prompt: z.ZodOptional<z.ZodEnum<typeof import("./oauth2.external-connectors-models.schemas").OAuth2_Prompt>>;
|
|
269
|
+
accessType: z.ZodOptional<z.ZodEnum<typeof import("./oauth2.external-connectors-models.schemas").OAuth2_AccessType>>;
|
|
270
|
+
extraAuthParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
271
|
+
extraTokenParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
272
|
+
tokenFormat: z.ZodDefault<z.ZodEnum<{
|
|
273
|
+
token: "token";
|
|
274
|
+
bearer: "bearer";
|
|
275
|
+
oauth: "oauth";
|
|
276
|
+
custom: "custom";
|
|
277
|
+
}>>;
|
|
278
|
+
customTokenPrefix: z.ZodOptional<z.ZodString>;
|
|
279
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
280
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
281
|
+
isDefault: z.ZodDefault<z.ZodBoolean>;
|
|
282
|
+
location: z.ZodDefault<z.ZodEnum<typeof import("..").ExternalProvider_Auth_ApiKey_Location>>;
|
|
283
|
+
locationField: z.ZodDefault<z.ZodString>;
|
|
284
|
+
kind: z.ZodLiteral<import("..").ExternalProvider_Auth_Kind.BASIC>;
|
|
285
|
+
usernameRef: z.ZodOptional<z.ZodString>;
|
|
286
|
+
passwordRef: z.ZodOptional<z.ZodString>;
|
|
287
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
288
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
289
|
+
isDefault: z.ZodDefault<z.ZodBoolean>;
|
|
290
|
+
location: z.ZodDefault<z.ZodEnum<typeof import("..").ExternalProvider_Auth_ApiKey_Location>>;
|
|
291
|
+
locationField: z.ZodDefault<z.ZodString>;
|
|
292
|
+
kind: z.ZodLiteral<import("..").ExternalProvider_Auth_Kind.NONE>;
|
|
293
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
294
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
295
|
+
isDefault: z.ZodDefault<z.ZodBoolean>;
|
|
296
|
+
location: z.ZodDefault<z.ZodEnum<typeof import("..").ExternalProvider_Auth_ApiKey_Location>>;
|
|
297
|
+
locationField: z.ZodDefault<z.ZodString>;
|
|
298
|
+
kind: z.ZodLiteral<import("..").ExternalProvider_Auth_Kind.FRONTEND_SECRET>;
|
|
299
|
+
frontendOnly: z.ZodDefault<z.ZodBoolean>;
|
|
300
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
301
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
302
|
+
isDefault: z.ZodDefault<z.ZodBoolean>;
|
|
303
|
+
location: z.ZodDefault<z.ZodEnum<typeof import("..").ExternalProvider_Auth_ApiKey_Location>>;
|
|
304
|
+
locationField: z.ZodDefault<z.ZodString>;
|
|
305
|
+
kind: z.ZodLiteral<import("..").ExternalProvider_Auth_Kind.MUTUAL_TLS>;
|
|
306
|
+
certificateRef: z.ZodOptional<z.ZodString>;
|
|
307
|
+
privateKeyRef: z.ZodOptional<z.ZodString>;
|
|
308
|
+
caRef: z.ZodOptional<z.ZodString>;
|
|
309
|
+
}, z.core.$strip>], "kind">>>;
|
|
310
|
+
supportedRunnerHosts: z.ZodDefault<z.ZodArray<z.ZodEnum<typeof AgentClientProtocol_RunnerHost>>>;
|
|
311
|
+
supportedProtocolVersions: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
312
|
+
supportedOperationKeys: z.ZodArray<z.ZodString>;
|
|
313
|
+
supportedModels: z.ZodArray<z.ZodString>;
|
|
314
|
+
supportedAuthModes: z.ZodDefault<z.ZodArray<z.ZodEnum<typeof AgentClientProtocol_AuthMode>>>;
|
|
315
|
+
}, z.core.$strip>;
|
|
316
|
+
export type AgentClientProtocol_Profile = ExternalProvider_ExchangeProtocol_Profile_Base & z.infer<typeof AgentClientProtocol_ProfileSchema>;
|
|
317
|
+
export declare const AgentClientProtocol_ConfigurationSchema: z.ZodObject<{
|
|
318
|
+
enabled: z.ZodBoolean;
|
|
319
|
+
authConfig: z.ZodOptional<z.ZodObject<{
|
|
320
|
+
authKind: z.ZodEnum<typeof import("..").ExternalProvider_Auth_Kind>;
|
|
321
|
+
profileRefs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
322
|
+
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
323
|
+
secretRef: z.ZodString;
|
|
324
|
+
}, z.core.$strip>>;
|
|
325
|
+
rateLimitConfig: z.ZodOptional<z.ZodObject<{
|
|
326
|
+
maxConcurrent: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
327
|
+
minTime: z.ZodOptional<z.ZodNumber>;
|
|
328
|
+
reservoir: z.ZodOptional<z.ZodNumber>;
|
|
329
|
+
reservoirRefreshInterval: z.ZodOptional<z.ZodNumber>;
|
|
330
|
+
reservoirRefreshAmount: z.ZodOptional<z.ZodNumber>;
|
|
331
|
+
priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
332
|
+
}, z.core.$strip>>;
|
|
333
|
+
defaultExecutionProfileRef: z.ZodOptional<z.ZodString>;
|
|
334
|
+
executionProfiles: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
335
|
+
runnerHost: z.ZodDefault<z.ZodEnum<typeof AgentClientProtocol_RunnerHost>>;
|
|
336
|
+
command: z.ZodOptional<z.ZodString>;
|
|
337
|
+
args: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
338
|
+
inheritedEnvironmentVariables: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
339
|
+
authMode: z.ZodEnum<typeof AgentClientProtocol_AuthMode>;
|
|
340
|
+
secretRef: z.ZodOptional<z.ZodString>;
|
|
341
|
+
secretEnvVarName: z.ZodOptional<z.ZodString>;
|
|
342
|
+
allowedApplicationEnvironments: z.ZodArray<z.ZodEnum<typeof APPLICATION_ENVIRONMENT>>;
|
|
343
|
+
allowedPlatformEnvironmentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
344
|
+
workingDirectoryPolicy: z.ZodDefault<z.ZodEnum<typeof AgentClientProtocol_WorkingDirectoryPolicy>>;
|
|
345
|
+
workingDirectoryRelativePath: z.ZodOptional<z.ZodString>;
|
|
346
|
+
permissionCeiling: z.ZodDefault<z.ZodEnum<typeof AgentClientProtocol_PermissionCeiling>>;
|
|
347
|
+
hostConfigurationInheritance: z.ZodDefault<z.ZodEnum<typeof AgentClientProtocol_HostConfigurationInheritance>>;
|
|
348
|
+
turnTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
349
|
+
maximumRecordedEventBytes: z.ZodOptional<z.ZodNumber>;
|
|
350
|
+
sessionMetaExtensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
351
|
+
}, z.core.$strict>>;
|
|
352
|
+
}, z.core.$strip>;
|
|
353
|
+
export type AgentClientProtocol_Configuration = ExternalProvider_ExchangeProtocol_Configuration_Base & z.infer<typeof AgentClientProtocol_ConfigurationSchema>;
|
|
354
|
+
export declare const AgentClientProtocol_StatusSchema: z.ZodObject<{
|
|
355
|
+
status: z.ZodEnum<typeof import("..").ExternalProvider_Status>;
|
|
356
|
+
lastCheckedAt: z.ZodString;
|
|
357
|
+
errorReason: z.ZodOptional<z.ZodString>;
|
|
358
|
+
protocolKind: z.ZodLiteral<ExternalProvider_ExchangeProtocol_Kind.AGENT_CLIENT_PROTOCOL>;
|
|
359
|
+
negotiatedProtocolVersion: z.ZodOptional<z.ZodNumber>;
|
|
360
|
+
observedAgentName: z.ZodOptional<z.ZodString>;
|
|
361
|
+
observedAgentVersion: z.ZodOptional<z.ZodString>;
|
|
362
|
+
}, z.core.$strip>;
|
|
363
|
+
export type AgentClientProtocol_Status = z.infer<typeof AgentClientProtocol_StatusSchema>;
|
|
364
|
+
export declare enum CodingAgent_OperationKey {
|
|
365
|
+
/** A bounded, scoped change to a workspace, performed by an autonomous agent. */
|
|
366
|
+
RUN_CODING_TASK = "coding.runCodingTask"
|
|
367
|
+
}
|
|
368
|
+
/**
|
|
369
|
+
* Why a prompt turn ended.
|
|
370
|
+
*
|
|
371
|
+
* The wire values are ACP's own — this is the thin boundary where the
|
|
372
|
+
* protocol's vocabulary is translated into a named one Wildo can branch on and
|
|
373
|
+
* explain. `CANCELLED` in particular must stay distinguishable from `END_TURN`:
|
|
374
|
+
* a cancelled run's partial change set is a different fact from a completed
|
|
375
|
+
* run's, and a lane that conflates them reports work as finished that was
|
|
376
|
+
* interrupted.
|
|
377
|
+
*/
|
|
378
|
+
export declare enum CodingAgent_StopReason {
|
|
379
|
+
/** The agent finished of its own accord. */
|
|
380
|
+
END_TURN = "end_turn",
|
|
381
|
+
/** The model's output limit was reached mid-work. */
|
|
382
|
+
MAX_TOKENS = "max_tokens",
|
|
383
|
+
/** The agent's own per-turn request budget was exhausted. */
|
|
384
|
+
MAX_TURN_REQUESTS = "max_turn_requests",
|
|
385
|
+
/** The model declined the task. */
|
|
386
|
+
REFUSAL = "refusal",
|
|
387
|
+
/** The client asked the session to stop, and the agent complied. */
|
|
388
|
+
CANCELLED = "cancelled",
|
|
389
|
+
/**
|
|
390
|
+
* WILDO'S OWN marker, not an ACP wire value: the agent reported a stop reason
|
|
391
|
+
* this protocol version does not define.
|
|
392
|
+
*
|
|
393
|
+
* It exists so an unknown value cannot discard evidence. The alternative —
|
|
394
|
+
* throwing — happens AFTER the turn, i.e. after the workspace has already been
|
|
395
|
+
* mutated, so it would turn a completed run into an error whose change set
|
|
396
|
+
* nobody records. Callers must treat this like `CANCELLED`: not a working
|
|
397
|
+
* result, but a run whose changes are real and must still be captured.
|
|
398
|
+
*/
|
|
399
|
+
UNRECOGNISED = "wildo.unrecognised"
|
|
400
|
+
}
|
|
401
|
+
/**
|
|
402
|
+
* What one coding turn consumed.
|
|
403
|
+
*
|
|
404
|
+
* EVERY field is optional, and that is a statement about the protocol rather
|
|
405
|
+
* than laziness. ACP guarantees only the context-window pair (`used` / `size`)
|
|
406
|
+
* on its usage notification; token breakdowns and monetary cost are agent
|
|
407
|
+
* EXTENSIONS — Claude's adapter reports all of them, another agent may report
|
|
408
|
+
* none. Code that enforces a budget must therefore decide what to do when the
|
|
409
|
+
* number it wants is absent, and the schema makes that unavoidable rather than
|
|
410
|
+
* letting a missing value read as zero.
|
|
411
|
+
*
|
|
412
|
+
* This is the capability the transport it replaces could not express at all:
|
|
413
|
+
* a one-shot CLI reported nothing, so budgets were reduced to wall-clock and
|
|
414
|
+
* run-count proxies.
|
|
415
|
+
*/
|
|
416
|
+
export declare const CodingAgent_UsageSchema: z.ZodObject<{
|
|
417
|
+
contextUsed: z.ZodOptional<z.ZodNumber>;
|
|
418
|
+
contextWindowSize: z.ZodOptional<z.ZodNumber>;
|
|
419
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
420
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
421
|
+
cachedReadTokens: z.ZodOptional<z.ZodNumber>;
|
|
422
|
+
cachedWriteTokens: z.ZodOptional<z.ZodNumber>;
|
|
423
|
+
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
424
|
+
cost: z.ZodOptional<z.ZodObject<{
|
|
425
|
+
amount: z.ZodNumber;
|
|
426
|
+
currency: z.ZodString;
|
|
427
|
+
}, z.core.$strip>>;
|
|
428
|
+
}, z.core.$strip>;
|
|
429
|
+
export type CodingAgent_Usage = z.infer<typeof CodingAgent_UsageSchema>;
|
|
430
|
+
/**
|
|
431
|
+
* Transport metadata for a completed coding run.
|
|
432
|
+
*
|
|
433
|
+
* Note where this lives: WITH the coding-agent family, not in the LLM
|
|
434
|
+
* protocol's transport union. A coding run is not an LLM call with a different
|
|
435
|
+
* wire format, and recording it inside the LLM execution-metadata union would
|
|
436
|
+
* re-create, one layer down, exactly the mis-modelling this protocol exists to
|
|
437
|
+
* end.
|
|
438
|
+
*/
|
|
439
|
+
export declare const AgentClientProtocol_ExecutionTransportMetadataSchema: z.ZodObject<{
|
|
440
|
+
protocolKind: z.ZodLiteral<ExternalProvider_ExchangeProtocol_Kind.AGENT_CLIENT_PROTOCOL>;
|
|
441
|
+
providerRef: z.ZodString;
|
|
442
|
+
executionProfileRef: z.ZodString;
|
|
443
|
+
model: z.ZodOptional<z.ZodString>;
|
|
444
|
+
negotiatedProtocolVersion: z.ZodOptional<z.ZodNumber>;
|
|
445
|
+
agentName: z.ZodOptional<z.ZodString>;
|
|
446
|
+
agentVersion: z.ZodOptional<z.ZodString>;
|
|
447
|
+
sessionModeId: z.ZodOptional<z.ZodString>;
|
|
448
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
449
|
+
}, z.core.$strip>;
|
|
450
|
+
export type AgentClientProtocol_ExecutionTransportMetadata = z.infer<typeof AgentClientProtocol_ExecutionTransportMetadataSchema>;
|
|
451
|
+
export declare const CodingAgent_OperationContext_BaseSchema: z.ZodObject<{
|
|
452
|
+
callTimestamp: z.ZodISODateTime;
|
|
453
|
+
callDuration: z.ZodOptional<z.ZodNumber>;
|
|
454
|
+
errorReason: z.ZodOptional<z.ZodString>;
|
|
455
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
456
|
+
contextUsed: z.ZodOptional<z.ZodNumber>;
|
|
457
|
+
contextWindowSize: z.ZodOptional<z.ZodNumber>;
|
|
458
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
459
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
460
|
+
cachedReadTokens: z.ZodOptional<z.ZodNumber>;
|
|
461
|
+
cachedWriteTokens: z.ZodOptional<z.ZodNumber>;
|
|
462
|
+
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
463
|
+
cost: z.ZodOptional<z.ZodObject<{
|
|
464
|
+
amount: z.ZodNumber;
|
|
465
|
+
currency: z.ZodString;
|
|
466
|
+
}, z.core.$strip>>;
|
|
467
|
+
}, z.core.$strip>>;
|
|
468
|
+
executionTime: z.ZodOptional<z.ZodNumber>;
|
|
469
|
+
finishedAt: z.ZodOptional<z.ZodString>;
|
|
470
|
+
transport: z.ZodOptional<z.ZodObject<{
|
|
471
|
+
protocolKind: z.ZodLiteral<ExternalProvider_ExchangeProtocol_Kind.AGENT_CLIENT_PROTOCOL>;
|
|
472
|
+
providerRef: z.ZodString;
|
|
473
|
+
executionProfileRef: z.ZodString;
|
|
474
|
+
model: z.ZodOptional<z.ZodString>;
|
|
475
|
+
negotiatedProtocolVersion: z.ZodOptional<z.ZodNumber>;
|
|
476
|
+
agentName: z.ZodOptional<z.ZodString>;
|
|
477
|
+
agentVersion: z.ZodOptional<z.ZodString>;
|
|
478
|
+
sessionModeId: z.ZodOptional<z.ZodString>;
|
|
479
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
480
|
+
}, z.core.$strip>>;
|
|
481
|
+
}, z.core.$strip>;
|
|
482
|
+
export type CodingAgent_OperationContext_Base = z.infer<typeof CodingAgent_OperationContext_BaseSchema>;
|
|
483
|
+
export type CodingAgent_OperationDefinitionBase = ExternalProvider_OperationDefinition_Base & {
|
|
484
|
+
operationContextSchema: typeof CodingAgent_OperationContext_BaseSchema;
|
|
485
|
+
supportedModels?: string[];
|
|
486
|
+
};
|
|
487
|
+
/**
|
|
488
|
+
* Model-selection configuration for a coding agent.
|
|
489
|
+
*
|
|
490
|
+
* Deliberately smaller than its LLM sibling, and the omissions are the design.
|
|
491
|
+
* There is no `temperature`, `topP` or penalty here: those tune a completion,
|
|
492
|
+
* and an ACP agent is not one — it runs its own inner loop, chooses its own
|
|
493
|
+
* tools and manages its own sampling. Offering an application knobs the
|
|
494
|
+
* transport cannot honour would be worse than offering none, because it would
|
|
495
|
+
* read as configuration and behave as decoration.
|
|
496
|
+
*
|
|
497
|
+
* `maxTokens` is likewise absent: a coding run's budget is enforced by the
|
|
498
|
+
* caller against reported usage after each turn, not requested up front — the
|
|
499
|
+
* agent decides how many model calls its task needs.
|
|
500
|
+
*/
|
|
501
|
+
export declare const CodingAgent_OperationModelConfiguration_Schema: z.ZodObject<{
|
|
502
|
+
model: z.ZodString;
|
|
503
|
+
providerRef: z.ZodString;
|
|
504
|
+
}, z.core.$strip>;
|
|
505
|
+
export type CodingAgent_OperationModelConfiguration = z.infer<typeof CodingAgent_OperationModelConfiguration_Schema>;
|
|
506
|
+
export declare const CodingAgent_RunTaskInputSchema: z.ZodObject<{
|
|
507
|
+
prompt: z.ZodString;
|
|
508
|
+
requestedPermissionCeiling: z.ZodOptional<z.ZodEnum<typeof AgentClientProtocol_PermissionCeiling>>;
|
|
509
|
+
}, z.core.$strip>;
|
|
510
|
+
export type CodingAgent_RunTaskInput = z.infer<typeof CodingAgent_RunTaskInputSchema>;
|
|
511
|
+
export declare const CodingAgent_RunTaskOutputSchema: z.ZodObject<{
|
|
512
|
+
finalMessage: z.ZodString;
|
|
513
|
+
stopReason: z.ZodEnum<typeof CodingAgent_StopReason>;
|
|
514
|
+
reportedFileLocations: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
515
|
+
deniedPermissionCount: z.ZodOptional<z.ZodNumber>;
|
|
516
|
+
permissionDecisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
517
|
+
allowed: z.ZodBoolean;
|
|
518
|
+
reason: z.ZodString;
|
|
519
|
+
toolKind: z.ZodOptional<z.ZodString>;
|
|
520
|
+
locations: z.ZodArray<z.ZodString>;
|
|
521
|
+
offeredOptionKinds: z.ZodArray<z.ZodString>;
|
|
522
|
+
}, z.core.$strict>>>;
|
|
523
|
+
rawStopReason: z.ZodOptional<z.ZodString>;
|
|
524
|
+
}, z.core.$strip>;
|
|
525
|
+
export type CodingAgent_RunTaskOutput = z.infer<typeof CodingAgent_RunTaskOutputSchema>;
|
|
526
|
+
//# sourceMappingURL=agent-client-protocol.external-connectors-models.schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-client-protocol.external-connectors-models.schemas.d.ts","sourceRoot":"","sources":["../../../../src/protocols/agent-client-protocol.external-connectors-models.schemas.ts"],"names":[],"mappings":"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"}
|