@tickernelz/paperclip-pro-adapter-utils 2026.1009.2 → 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.
Files changed (45) hide show
  1. package/node_modules/@agentclientprotocol/sdk/dist/acp.d.ts +1 -1
  2. package/node_modules/@agentclientprotocol/sdk/dist/acp.js +1 -1
  3. package/node_modules/@agentclientprotocol/sdk/dist/acp.js.map +1 -1
  4. package/node_modules/@agentclientprotocol/sdk/dist/schema/guards.gen.d.ts +62 -0
  5. package/node_modules/@agentclientprotocol/sdk/dist/schema/guards.gen.js +94 -1
  6. package/node_modules/@agentclientprotocol/sdk/dist/schema/guards.gen.js.map +1 -1
  7. package/node_modules/@agentclientprotocol/sdk/dist/schema/index.d.ts +1 -1
  8. package/node_modules/@agentclientprotocol/sdk/dist/schema/index.js.map +1 -1
  9. package/node_modules/@agentclientprotocol/sdk/dist/schema/types.gen.d.ts +58 -75
  10. package/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.d.ts +680 -1355
  11. package/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.js +88 -80
  12. package/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.js.map +1 -1
  13. package/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.d.ts +1 -0
  14. package/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.js +19 -0
  15. package/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.js.map +1 -1
  16. package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.d.ts +2 -2
  17. package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.js +1 -1
  18. package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.js.map +1 -1
  19. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/guards.gen.d.ts +67 -0
  20. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/guards.gen.js +158 -15
  21. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/guards.gen.js.map +1 -1
  22. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/index.d.ts +1 -1
  23. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/types.gen.d.ts +66 -55
  24. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/zod.gen.d.ts +656 -870
  25. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/zod.gen.js +75 -69
  26. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/zod.gen.js.map +1 -1
  27. package/node_modules/@agentclientprotocol/sdk/package.json +1 -1
  28. package/node_modules/@agentclientprotocol/sdk/schema/schema.json +209 -67
  29. package/node_modules/@agentclientprotocol/sdk/schema/v2/schema.unstable.json +206 -89
  30. package/node_modules/bare-fs/binding.c +1 -1
  31. package/node_modules/bare-fs/package.json +1 -1
  32. package/node_modules/bare-fs/prebuilds/android-arm/bare-fs.bare +0 -0
  33. package/node_modules/bare-fs/prebuilds/android-arm64/bare-fs.bare +0 -0
  34. package/node_modules/bare-fs/prebuilds/android-ia32/bare-fs.bare +0 -0
  35. package/node_modules/bare-fs/prebuilds/android-x64/bare-fs.bare +0 -0
  36. package/node_modules/bare-fs/prebuilds/darwin-arm64/bare-fs.bare +0 -0
  37. package/node_modules/bare-fs/prebuilds/darwin-x64/bare-fs.bare +0 -0
  38. package/node_modules/bare-fs/prebuilds/ios-arm64/bare-fs.bare +0 -0
  39. package/node_modules/bare-fs/prebuilds/ios-arm64-simulator/bare-fs.bare +0 -0
  40. package/node_modules/bare-fs/prebuilds/ios-x64-simulator/bare-fs.bare +0 -0
  41. package/node_modules/bare-fs/prebuilds/linux-arm64/bare-fs.bare +0 -0
  42. package/node_modules/bare-fs/prebuilds/linux-x64/bare-fs.bare +0 -0
  43. package/node_modules/bare-fs/prebuilds/win32-arm64/bare-fs.bare +0 -0
  44. package/node_modules/bare-fs/prebuilds/win32-x64/bare-fs.bare +0 -0
  45. package/package.json +2 -2
@@ -3904,21 +3904,11 @@ export type UsageUpdate = {
3904
3904
  } | null;
3905
3905
  };
3906
3906
  /**
3907
- * **UNSTABLE**
3908
- *
3909
- * This capability is not part of the spec yet, and may be removed or changed at any point.
3910
- *
3911
3907
  * Severity hint for a session notice.
3912
- *
3913
- * @experimental
3914
3908
  */
3915
3909
  export type NoticeSeverity = "info" | "warning" | "error" | string;
3916
3910
  /**
3917
- * **UNSTABLE**
3918
- *
3919
- * This capability is not part of the spec yet, and may be removed or changed at any point.
3920
- *
3921
- * Fire-and-forget advisory information for the user.
3911
+ * Fire-and-forget information for the user.
3922
3912
  *
3923
3913
  * Notices are live events rather than session history. Agents must not rely on
3924
3914
  * a notice being received, displayed, or seen by the user.
@@ -3927,8 +3917,6 @@ export type NoticeSeverity = "info" | "warning" | "error" | string;
3927
3917
  * message when the information should still be surfaced to the user.
3928
3918
  *
3929
3919
  * See RFD: [Session Notices](https://agentclientprotocol.com/rfds/session-notices)
3930
- *
3931
- * @experimental
3932
3920
  */
3933
3921
  export type Notice = {
3934
3922
  /**
@@ -3955,41 +3943,22 @@ export type Notice = {
3955
3943
  } | null;
3956
3944
  };
3957
3945
  /**
3958
- * **UNSTABLE**
3959
- *
3960
- * This capability is not part of the spec yet, and may be removed or changed at any point.
3961
- *
3962
3946
  * Unique identifier for a context compaction within a session.
3963
- *
3964
- * @experimental
3965
3947
  */
3966
3948
  export type CompactionId = string;
3967
3949
  /**
3968
- * **UNSTABLE**
3969
- *
3970
- * This capability is not part of the spec yet, and may be removed or changed at any point.
3971
- *
3972
3950
  * Lifecycle state of a context compaction.
3973
- *
3974
- * @experimental
3975
3951
  */
3976
3952
  export type CompactionStatus = "in_progress" | "completed" | "failed" | "cancelled" | string;
3977
3953
  /**
3978
- * **UNSTABLE**
3979
- *
3980
- * This capability is not part of the spec yet, and may be removed or changed at any point.
3981
- *
3982
- * A context compaction upsert. The first update fixes the compaction's
3954
+ * A context compaction upsert. The first notification fixes the compaction's
3983
3955
  * timeline position. Later updates with the same ID patch that entity in place.
3984
3956
  * Agents MUST only send this update when the Client advertised
3985
3957
  * [`ClientSessionCapabilities::compaction`].
3986
3958
  *
3987
3959
  * `summary`, `error`, and `_meta` have patch semantics: omission leaves the
3988
3960
  * stored value unchanged, `null` clears it, and a concrete value replaces it.
3989
- * `summary: []` also clears the retained summary. A non-empty summary is only
3990
- * valid with `completed`; `error` is only valid with `failed`.
3991
- *
3992
- * @experimental
3961
+ * `summary: []` also clears the summary.
3993
3962
  */
3994
3963
  export type CompactionUpdate = {
3995
3964
  /**
@@ -4001,11 +3970,11 @@ export type CompactionUpdate = {
4001
3970
  */
4002
3971
  status: CompactionStatus;
4003
3972
  /**
4004
- * Complete replacement user-displayable summary retained by the compaction.
3973
+ * Complete replacement user-displayable summary content for the compaction.
4005
3974
  */
4006
3975
  summary?: Array<ContentBlock> | null;
4007
3976
  /**
4008
- * Human-readable description of why the compaction failed.
3977
+ * Human-readable error details for the compaction.
4009
3978
  */
4010
3979
  error?: string | null;
4011
3980
  /**
@@ -4016,16 +3985,10 @@ export type CompactionUpdate = {
4016
3985
  } | null;
4017
3986
  };
4018
3987
  /**
4019
- * **UNSTABLE**
4020
- *
4021
- * This capability is not part of the spec yet, and may be removed or changed at any point.
4022
- *
4023
- * A content block appended to the retained summary of an in-progress
4024
- * compaction. Agents send chunks only after an `in_progress` update and before
4025
- * the terminal update for the same ID. Agents MUST only send this update when
4026
- * the Client advertised [`ClientSessionCapabilities::compaction`].
4027
- *
4028
- * @experimental
3988
+ * A content block appended to a compaction's summary. A first-seen ID creates
3989
+ * an in-progress compaction. Chunks append in receive order.
3990
+ * Agents MUST only send this update when the Client advertised
3991
+ * [`ClientSessionCapabilities::compaction`].
4029
3992
  */
4030
3993
  export type CompactionSummaryChunk = {
4031
3994
  /**
@@ -4135,14 +4098,50 @@ export type RunningStateUpdate = {
4135
4098
  [key: string]: unknown;
4136
4099
  } | null;
4137
4100
  };
4101
+ /**
4102
+ * **UNSTABLE**
4103
+ *
4104
+ * This capability is not part of the spec yet, and may be removed or changed at any point.
4105
+ *
4106
+ * Details of a failure that ended a child's foreground work.
4107
+ *
4108
+ * @experimental
4109
+ */
4110
+ export type ErrorStopReason = {
4111
+ /**
4112
+ * The failure, as a JSON-RPC error object.
4113
+ *
4114
+ * Optional. Omitted or `null` both mean the agent is not reporting failure details.
4115
+ * Agents SHOULD include it.
4116
+ */
4117
+ error?: Error | null;
4118
+ };
4138
4119
  /**
4139
4120
  * The child is ready to process another prompt.
4121
+ *
4122
+ * An omitted, `null`, or malformed `stopReason` means not reported.
4140
4123
  */
4141
- export type IdleStateUpdate = {
4124
+ export type IdleStateUpdate = ({
4125
+ stopReason: "end_turn";
4126
+ } | {
4127
+ stopReason: "max_tokens";
4128
+ } | {
4129
+ stopReason: "max_turn_requests";
4130
+ } | {
4131
+ stopReason: "refusal";
4132
+ } | {
4133
+ stopReason: "cancelled";
4134
+ } | (ErrorStopReason & {
4135
+ stopReason: "error";
4136
+ }) | {
4142
4137
  /**
4143
- * Reason foreground work stopped. Optional; omitted or `null` means not reported.
4138
+ * Unrecognized stop reason.
4144
4139
  */
4145
- stopReason?: StopReason | null;
4140
+ stopReason: string;
4141
+ [key: string]: unknown;
4142
+ } | {
4143
+ stopReason?: null;
4144
+ }) & {
4146
4145
  /**
4147
4146
  * **UNSTABLE** Token usage for completed foreground work.
4148
4147
  *
@@ -4159,6 +4158,14 @@ export type IdleStateUpdate = {
4159
4158
  _meta?: {
4160
4159
  [key: string]: unknown;
4161
4160
  } | null;
4161
+ /**
4162
+ * Why foreground work stopped. The value selects one of this type's variants, which may add fields of their own.
4163
+ *
4164
+ * Optional. Omitted or `null` both mean the agent is not reporting a stop reason; a malformed value is treated the same way.
4165
+ *
4166
+ * See protocol docs: [Current work state](https://agentclientprotocol.com/rfds/subagents#current-work-state)
4167
+ */
4168
+ stopReason?: string | null;
4162
4169
  };
4163
4170
  /**
4164
4171
  * Foreground work is blocked on user action.
@@ -4558,14 +4565,8 @@ export type FileSystemCapabilities = {
4558
4565
  */
4559
4566
  export type ClientSessionCapabilities = {
4560
4567
  /**
4561
- * **UNSTABLE**
4562
- *
4563
- * This capability is not part of the spec yet, and may be removed or changed at any point.
4564
- *
4565
4568
  * Support for ID-addressed context compaction updates. Omitted or `null`
4566
4569
  * means unsupported; `{}` advertises the complete compaction contract.
4567
- *
4568
- * @experimental
4569
4570
  */
4570
4571
  compaction?: CompactionCapabilities | null;
4571
4572
  /**
@@ -4576,16 +4577,10 @@ export type ClientSessionCapabilities = {
4576
4577
  */
4577
4578
  configOptions?: SessionConfigOptionsCapabilities | null;
4578
4579
  /**
4579
- * **UNSTABLE**
4580
- *
4581
- * This capability is not part of the spec yet, and may be removed or changed at any point.
4582
- *
4583
- * Support for live advisory `notice` session updates.
4580
+ * Support for live user-facing `notice` session updates.
4584
4581
  *
4585
4582
  * Optional. Omitted or `null` both mean the client does not advertise support.
4586
4583
  * Supplying `{}` means the client can present notices to the user.
4587
- *
4588
- * @experimental
4589
4584
  */
4590
4585
  notices?: NoticeCapabilities | null;
4591
4586
  /**
@@ -4600,13 +4595,7 @@ export type ClientSessionCapabilities = {
4600
4595
  } | null;
4601
4596
  };
4602
4597
  /**
4603
- * **UNSTABLE**
4604
- *
4605
- * This capability is not part of the spec yet, and may be removed or changed at any point.
4606
- *
4607
4598
  * Client support for ID-addressed context compaction updates.
4608
- *
4609
- * @experimental
4610
4599
  */
4611
4600
  export type CompactionCapabilities = {
4612
4601
  [key: string]: unknown;
@@ -4653,13 +4642,7 @@ export type BooleanConfigOptionCapabilities = {
4653
4642
  } | null;
4654
4643
  };
4655
4644
  /**
4656
- * **UNSTABLE**
4657
- *
4658
- * This capability is not part of the spec yet, and may be removed or changed at any point.
4659
- *
4660
- * Client support for presenting live advisory notices to the user.
4661
- *
4662
- * @experimental
4645
+ * Client support for presenting live notices to the user.
4663
4646
  */
4664
4647
  export type NoticeCapabilities = {
4665
4648
  [key: string]: unknown;