@tickernelz/paperclip-pro-adapter-utils 2026.1009.3 → 2026.1010.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/node_modules/@agentclientprotocol/sdk/dist/acp.d.ts +1 -1
- package/node_modules/@agentclientprotocol/sdk/dist/acp.js +1 -1
- package/node_modules/@agentclientprotocol/sdk/dist/acp.js.map +1 -1
- package/node_modules/@agentclientprotocol/sdk/dist/schema/guards.gen.d.ts +62 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema/guards.gen.js +94 -1
- package/node_modules/@agentclientprotocol/sdk/dist/schema/guards.gen.js.map +1 -1
- package/node_modules/@agentclientprotocol/sdk/dist/schema/index.d.ts +1 -1
- package/node_modules/@agentclientprotocol/sdk/dist/schema/index.js.map +1 -1
- package/node_modules/@agentclientprotocol/sdk/dist/schema/types.gen.d.ts +58 -75
- package/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.d.ts +680 -1355
- package/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.js +88 -80
- package/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.js.map +1 -1
- package/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.js +19 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.js.map +1 -1
- package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.d.ts +2 -2
- package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.js +1 -1
- package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.js.map +1 -1
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/guards.gen.d.ts +67 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/guards.gen.js +158 -15
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/guards.gen.js.map +1 -1
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/index.d.ts +1 -1
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/types.gen.d.ts +66 -55
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/zod.gen.d.ts +656 -870
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/zod.gen.js +75 -69
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/zod.gen.js.map +1 -1
- package/node_modules/@agentclientprotocol/sdk/package.json +1 -1
- package/node_modules/@agentclientprotocol/sdk/schema/schema.json +209 -67
- package/node_modules/@agentclientprotocol/sdk/schema/v2/schema.unstable.json +206 -89
- package/node_modules/bare-fs/binding.c +1 -1
- package/node_modules/bare-fs/package.json +1 -1
- package/node_modules/bare-fs/prebuilds/android-arm/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/android-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/android-ia32/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/android-x64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/darwin-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/darwin-x64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/ios-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/ios-arm64-simulator/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/ios-x64-simulator/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/linux-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/linux-x64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/win32-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/win32-x64/bare-fs.bare +0 -0
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
import { defaultOnError, excludeKnownTags, preserveCustomPayload, requiredDefaultOnError, vecSkipError, } from "../../schema-deserialize.js";
|
|
2
|
+
import { defaultOnError, defaultOnErrorOptionalStringTag, excludeKnownTags, preserveCustomPayload, requiredDefaultOnError, vecSkipError, } from "../../schema-deserialize.js";
|
|
3
3
|
import * as z from "zod/v4";
|
|
4
4
|
/**
|
|
5
5
|
* JSON RPC Request Id
|
|
@@ -1129,8 +1129,8 @@ export const zAuthMethodTerminal = z.object({
|
|
|
1129
1129
|
methodId: zAuthMethodId,
|
|
1130
1130
|
name: z.string(),
|
|
1131
1131
|
description: defaultOnError(z.string().nullish(), () => undefined),
|
|
1132
|
-
args:
|
|
1133
|
-
env:
|
|
1132
|
+
args: z.array(z.string()).optional(),
|
|
1133
|
+
env: z.array(zEnvVariable).optional(),
|
|
1134
1134
|
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1135
1135
|
});
|
|
1136
1136
|
/**
|
|
@@ -1493,7 +1493,11 @@ export const zSetSessionConfigOptionResponse = z.object({
|
|
|
1493
1493
|
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1494
1494
|
});
|
|
1495
1495
|
/**
|
|
1496
|
-
*
|
|
1496
|
+
* Identifier for a message, unique among messages of the same type within a session.
|
|
1497
|
+
*
|
|
1498
|
+
* Each message type, such as user messages, agent messages, and agent thoughts,
|
|
1499
|
+
* has its own ID space: messages of different types may share an ID and remain
|
|
1500
|
+
* distinct messages.
|
|
1497
1501
|
*/
|
|
1498
1502
|
export const zMessageId = z.string();
|
|
1499
1503
|
/**
|
|
@@ -1786,18 +1790,11 @@ export const zRunningStateUpdate = z.object({
|
|
|
1786
1790
|
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1787
1791
|
});
|
|
1788
1792
|
/**
|
|
1789
|
-
*
|
|
1790
|
-
*
|
|
1791
|
-
* See protocol docs: [Stop Reasons](https://agentclientprotocol.com/protocol/v2/draft/prompt-lifecycle#stop-reasons)
|
|
1793
|
+
* Details of a failure that ended active work.
|
|
1792
1794
|
*/
|
|
1793
|
-
export const
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
z.literal("max_turn_requests"),
|
|
1797
|
-
z.literal("refusal"),
|
|
1798
|
-
z.literal("cancelled"),
|
|
1799
|
-
z.string(),
|
|
1800
|
-
]);
|
|
1795
|
+
export const zErrorStopReason = z.object({
|
|
1796
|
+
error: defaultOnError(zError.nullish(), () => undefined),
|
|
1797
|
+
});
|
|
1801
1798
|
/**
|
|
1802
1799
|
* **UNSTABLE**
|
|
1803
1800
|
*
|
|
@@ -1818,12 +1815,59 @@ export const zUsage = z.object({
|
|
|
1818
1815
|
});
|
|
1819
1816
|
/**
|
|
1820
1817
|
* The agent is ready to process a new prompt.
|
|
1818
|
+
*
|
|
1819
|
+
* Agents SHOULD include a `stopReason` when the idle transition ends foreground
|
|
1820
|
+
* work. An omitted, `null`, or malformed `stopReason` means the agent is not
|
|
1821
|
+
* reporting one.
|
|
1822
|
+
*
|
|
1823
|
+
* Custom variants (unknown `stopReason` values) keep their extra
|
|
1824
|
+
* properties exactly as received; unlike known variants, those keys
|
|
1825
|
+
* bypass lenient-field salvage and arrive unvalidated.
|
|
1821
1826
|
*/
|
|
1822
|
-
export const zIdleStateUpdate = z.
|
|
1823
|
-
|
|
1827
|
+
export const zIdleStateUpdate = defaultOnErrorOptionalStringTag(preserveCustomPayload(z.intersection(z.union([
|
|
1828
|
+
z.object({
|
|
1829
|
+
stopReason: z.literal("end_turn"),
|
|
1830
|
+
}),
|
|
1831
|
+
z.object({
|
|
1832
|
+
stopReason: z.literal("max_tokens"),
|
|
1833
|
+
}),
|
|
1834
|
+
z.object({
|
|
1835
|
+
stopReason: z.literal("max_turn_requests"),
|
|
1836
|
+
}),
|
|
1837
|
+
z.object({
|
|
1838
|
+
stopReason: z.literal("refusal"),
|
|
1839
|
+
}),
|
|
1840
|
+
z.object({
|
|
1841
|
+
stopReason: z.literal("cancelled"),
|
|
1842
|
+
}),
|
|
1843
|
+
zErrorStopReason.and(z.object({
|
|
1844
|
+
stopReason: z.literal("error"),
|
|
1845
|
+
})),
|
|
1846
|
+
excludeKnownTags(z.object({
|
|
1847
|
+
stopReason: z.string(),
|
|
1848
|
+
}), "stopReason", [
|
|
1849
|
+
"cancelled",
|
|
1850
|
+
"end_turn",
|
|
1851
|
+
"error",
|
|
1852
|
+
"max_tokens",
|
|
1853
|
+
"max_turn_requests",
|
|
1854
|
+
"refusal",
|
|
1855
|
+
]),
|
|
1856
|
+
z.object({
|
|
1857
|
+
stopReason: z.null().optional(),
|
|
1858
|
+
}),
|
|
1859
|
+
]), z.object({
|
|
1824
1860
|
usage: defaultOnError(zUsage.nullish(), () => undefined),
|
|
1825
1861
|
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1826
|
-
|
|
1862
|
+
stopReason: defaultOnError(z.string().nullish(), () => undefined),
|
|
1863
|
+
})), "stopReason", [
|
|
1864
|
+
"cancelled",
|
|
1865
|
+
"end_turn",
|
|
1866
|
+
"error",
|
|
1867
|
+
"max_tokens",
|
|
1868
|
+
"max_turn_requests",
|
|
1869
|
+
"refusal",
|
|
1870
|
+
]), "stopReason");
|
|
1827
1871
|
/**
|
|
1828
1872
|
* Foreground work is blocked on user action.
|
|
1829
1873
|
*/
|
|
@@ -2105,13 +2149,7 @@ export const zUsageUpdate = z.object({
|
|
|
2105
2149
|
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2106
2150
|
});
|
|
2107
2151
|
/**
|
|
2108
|
-
* **UNSTABLE**
|
|
2109
|
-
*
|
|
2110
|
-
* This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
2111
|
-
*
|
|
2112
2152
|
* Severity hint for a session notice.
|
|
2113
|
-
*
|
|
2114
|
-
* @experimental
|
|
2115
2153
|
*/
|
|
2116
2154
|
export const zNoticeSeverity = z.union([
|
|
2117
2155
|
z.literal("info"),
|
|
@@ -2120,19 +2158,13 @@ export const zNoticeSeverity = z.union([
|
|
|
2120
2158
|
z.string(),
|
|
2121
2159
|
]);
|
|
2122
2160
|
/**
|
|
2123
|
-
*
|
|
2124
|
-
*
|
|
2125
|
-
* This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
2126
|
-
*
|
|
2127
|
-
* Fire-and-forget advisory information for the user.
|
|
2161
|
+
* Fire-and-forget information for the user.
|
|
2128
2162
|
*
|
|
2129
2163
|
* Notices are live events rather than session history. Agents must not rely on
|
|
2130
2164
|
* a notice being received, displayed, or seen by the user.
|
|
2131
2165
|
* No Client capability is required, and unsupported Clients may ignore notices.
|
|
2132
2166
|
*
|
|
2133
2167
|
* See RFD: [Session Notices](https://agentclientprotocol.com/rfds/session-notices)
|
|
2134
|
-
*
|
|
2135
|
-
* @experimental
|
|
2136
2168
|
*/
|
|
2137
2169
|
export const zNotice = z.object({
|
|
2138
2170
|
severity: zNoticeSeverity,
|
|
@@ -2141,23 +2173,11 @@ export const zNotice = z.object({
|
|
|
2141
2173
|
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2142
2174
|
});
|
|
2143
2175
|
/**
|
|
2144
|
-
* **UNSTABLE**
|
|
2145
|
-
*
|
|
2146
|
-
* This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
2147
|
-
*
|
|
2148
2176
|
* Unique identifier for a context compaction within a session.
|
|
2149
|
-
*
|
|
2150
|
-
* @experimental
|
|
2151
2177
|
*/
|
|
2152
2178
|
export const zCompactionId = z.string();
|
|
2153
2179
|
/**
|
|
2154
|
-
* **UNSTABLE**
|
|
2155
|
-
*
|
|
2156
|
-
* This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
2157
|
-
*
|
|
2158
2180
|
* Lifecycle state of a context compaction.
|
|
2159
|
-
*
|
|
2160
|
-
* @experimental
|
|
2161
2181
|
*/
|
|
2162
2182
|
export const zCompactionStatus = z.union([
|
|
2163
2183
|
z.literal("in_progress"),
|
|
@@ -2167,19 +2187,12 @@ export const zCompactionStatus = z.union([
|
|
|
2167
2187
|
z.string(),
|
|
2168
2188
|
]);
|
|
2169
2189
|
/**
|
|
2170
|
-
*
|
|
2171
|
-
*
|
|
2172
|
-
* This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
2173
|
-
*
|
|
2174
|
-
* A context compaction upsert. The first update fixes the compaction's
|
|
2190
|
+
* A context compaction upsert. The first notification fixes the compaction's
|
|
2175
2191
|
* timeline position. Later updates with the same ID patch that entity in place.
|
|
2176
2192
|
*
|
|
2177
2193
|
* `summary`, `error`, and `_meta` have patch semantics: omission leaves the
|
|
2178
2194
|
* stored value unchanged, `null` clears it, and a concrete value replaces it.
|
|
2179
|
-
* `summary: []` also clears the
|
|
2180
|
-
* valid with `completed`; `error` is only valid with `failed`.
|
|
2181
|
-
*
|
|
2182
|
-
* @experimental
|
|
2195
|
+
* `summary: []` also clears the summary.
|
|
2183
2196
|
*/
|
|
2184
2197
|
export const zCompactionUpdate = z.object({
|
|
2185
2198
|
compactionId: zCompactionId,
|
|
@@ -2189,15 +2202,8 @@ export const zCompactionUpdate = z.object({
|
|
|
2189
2202
|
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2190
2203
|
});
|
|
2191
2204
|
/**
|
|
2192
|
-
*
|
|
2193
|
-
*
|
|
2194
|
-
* This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
2195
|
-
*
|
|
2196
|
-
* A content block appended to the retained summary of an in-progress
|
|
2197
|
-
* compaction. Agents send chunks only after an `in_progress` update and before
|
|
2198
|
-
* the terminal update for the same ID.
|
|
2199
|
-
*
|
|
2200
|
-
* @experimental
|
|
2205
|
+
* A content block appended to a compaction's summary. A first-seen ID creates
|
|
2206
|
+
* an in-progress compaction. Chunks append in receive order.
|
|
2201
2207
|
*/
|
|
2202
2208
|
export const zCompactionSummaryChunk = z.object({
|
|
2203
2209
|
compactionId: zCompactionId,
|
|
@@ -2729,8 +2735,8 @@ export const zMcpServer = preserveCustomPayload(z.union([
|
|
|
2729
2735
|
*/
|
|
2730
2736
|
export const zNewSessionRequest = z.object({
|
|
2731
2737
|
cwd: zAbsolutePath,
|
|
2732
|
-
additionalDirectories:
|
|
2733
|
-
mcpServers:
|
|
2738
|
+
additionalDirectories: z.array(zAbsolutePath).optional(),
|
|
2739
|
+
mcpServers: z.array(zMcpServer).optional(),
|
|
2734
2740
|
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2735
2741
|
});
|
|
2736
2742
|
/**
|
|
@@ -2767,8 +2773,8 @@ export const zDeleteSessionRequest = z.object({
|
|
|
2767
2773
|
export const zForkSessionRequest = z.object({
|
|
2768
2774
|
sessionId: zSessionId,
|
|
2769
2775
|
cwd: zAbsolutePath,
|
|
2770
|
-
additionalDirectories:
|
|
2771
|
-
mcpServers:
|
|
2776
|
+
additionalDirectories: z.array(zAbsolutePath).optional(),
|
|
2777
|
+
mcpServers: z.array(zMcpServer).optional(),
|
|
2772
2778
|
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2773
2779
|
});
|
|
2774
2780
|
/**
|
|
@@ -2804,9 +2810,9 @@ export const zReplayFrom = preserveCustomPayload(z.union([
|
|
|
2804
2810
|
export const zResumeSessionRequest = z.object({
|
|
2805
2811
|
sessionId: zSessionId,
|
|
2806
2812
|
cwd: zAbsolutePath,
|
|
2807
|
-
additionalDirectories:
|
|
2808
|
-
mcpServers:
|
|
2809
|
-
replayFrom:
|
|
2813
|
+
additionalDirectories: z.array(zAbsolutePath).optional(),
|
|
2814
|
+
mcpServers: z.array(zMcpServer).optional(),
|
|
2815
|
+
replayFrom: zReplayFrom.nullish(),
|
|
2810
2816
|
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2811
2817
|
});
|
|
2812
2818
|
/**
|
|
@@ -3207,7 +3213,7 @@ export const zDidChangeDocumentNotification = z.object({
|
|
|
3207
3213
|
sessionId: zSessionId,
|
|
3208
3214
|
uri: z.url(),
|
|
3209
3215
|
version: z.number(),
|
|
3210
|
-
contentChanges:
|
|
3216
|
+
contentChanges: z.array(zTextDocumentContentChangeEvent),
|
|
3211
3217
|
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
3212
3218
|
});
|
|
3213
3219
|
/**
|