@hachej/boring-agent 0.1.104 → 0.1.107

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 (34) hide show
  1. package/dist/{chunk-K25PK5EC.js → chunk-3JFPS2O6.js} +1 -0
  2. package/dist/{chunk-JNEKOVMJ.js → chunk-6OANSUEI.js} +1 -1
  3. package/dist/{chunk-4IQ4HHBG.js → chunk-7XAOVFSN.js} +7 -0
  4. package/dist/{chunk-I7KFNGB4.js → chunk-GS4ADE34.js} +877 -349
  5. package/dist/{chunk-BTYOMR7W.js → chunk-KDXIXVF6.js} +5179 -3668
  6. package/dist/{chunk-6DRHERVK.js → chunk-MVKXLMH3.js} +44 -2
  7. package/dist/chunk-YTUZFKB3.js +78 -0
  8. package/dist/core/index.d.ts +5 -5
  9. package/dist/core/index.js +2 -2
  10. package/dist/{createHarness-POZ4AXCZ.js → createHarness-AHWSC36D.js} +3 -3
  11. package/dist/{errors-DH7C01Pm.d.ts → errors-CEU4iujR.d.ts} +59 -4
  12. package/dist/{file-search-qcD5zItr.d.ts → file-search-BGUHnW9o.d.ts} +3 -3
  13. package/dist/front/index.d.ts +43 -7
  14. package/dist/front/index.js +1505 -729
  15. package/dist/front/styles.css +109 -15
  16. package/dist/{harness-Dcd08yKr.d.ts → harness-Ct0e4RWc.d.ts} +6 -3
  17. package/dist/{lease-DffrPrQn.d.ts → lease-nASWv2tU.d.ts} +1 -1
  18. package/dist/{piChatEvent-iNSXiFQq.d.ts → piChatEvent-BUWIzw5l.d.ts} +67 -36
  19. package/dist/{piChatSessionService-DQSQ_kWZ.d.ts → piChatSessionService-nvroRAVk.d.ts} +13 -11
  20. package/dist/server/agent-host/testing/gatewayConformance.d.ts +6 -5
  21. package/dist/server/agent-host/testing/gatewayConformance.js +57 -8
  22. package/dist/server/index.d.ts +207 -243
  23. package/dist/server/index.js +15 -9
  24. package/dist/server/worker/index.js +7 -7
  25. package/dist/shared/index.d.ts +34 -28
  26. package/dist/shared/index.js +8 -8
  27. package/dist/{types-B1xDlBSo.d.ts → types-B7-PN5jV.d.ts} +75 -23
  28. package/docs/AGENT_GATEWAY_V0.md +40 -2
  29. package/docs/ERROR_CODES.md +2 -1
  30. package/docs/README.md +1 -0
  31. package/docs/SESSION_IDENTITY.md +91 -0
  32. package/docs/tools.md +4 -0
  33. package/package.json +11 -10
  34. package/dist/chunk-WSQ5QNIY.js +0 -18
@@ -70,6 +70,9 @@
70
70
  .collapse {
71
71
  visibility: collapse;
72
72
  }
73
+ .invisible {
74
+ visibility: hidden;
75
+ }
73
76
  .visible {
74
77
  visibility: visible;
75
78
  }
@@ -581,6 +584,9 @@
581
584
  .rotate-180 {
582
585
  rotate: 180deg;
583
586
  }
587
+ .transform {
588
+ transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
589
+ }
584
590
  .animate-pulse {
585
591
  animation: var(--animate-pulse);
586
592
  }
@@ -736,6 +742,9 @@
736
742
  .rounded-\[0\.3em\] {
737
743
  border-radius: 0.3em;
738
744
  }
745
+ .rounded-\[2px\] {
746
+ border-radius: 2px;
747
+ }
739
748
  .rounded-\[var\(--boring-agent-code-radius\,0\.375rem\)\] {
740
749
  border-radius: var(--boring-agent-code-radius,0.375rem);
741
750
  }
@@ -1533,6 +1542,9 @@
1533
1542
  .break-words {
1534
1543
  overflow-wrap: break-word;
1535
1544
  }
1545
+ .wrap-anywhere {
1546
+ overflow-wrap: anywhere;
1547
+ }
1536
1548
  .break-all {
1537
1549
  word-break: break-all;
1538
1550
  }
@@ -1903,6 +1915,12 @@
1903
1915
  .\[counter-reset\:line\] {
1904
1916
  counter-reset: line;
1905
1917
  }
1918
+ .group-focus-within\/markdown-link\:pointer-events-auto:is(:where(.group\/markdown-link):focus-within *) {
1919
+ pointer-events: auto;
1920
+ }
1921
+ .group-focus-within\/markdown-link\:opacity-100:is(:where(.group\/markdown-link):focus-within *) {
1922
+ opacity: 100%;
1923
+ }
1906
1924
  @media (hover: hover) {
1907
1925
  .group-hover\:translate-x-0\.5:is(:where(.group):hover *) {
1908
1926
  --tw-translate-x: calc(var(--spacing) * 0.5);
@@ -1918,6 +1936,12 @@
1918
1936
  .group-hover\:opacity-100:is(:where(.group):hover *) {
1919
1937
  opacity: 100%;
1920
1938
  }
1939
+ .group-hover\/markdown-link\:pointer-events-auto:is(:where(.group\/markdown-link):hover *) {
1940
+ pointer-events: auto;
1941
+ }
1942
+ .group-hover\/markdown-link\:opacity-100:is(:where(.group\/markdown-link):hover *) {
1943
+ opacity: 100%;
1944
+ }
1921
1945
  .group-hover\/path\:opacity-100:is(:where(.group\/path):hover *) {
1922
1946
  opacity: 100%;
1923
1947
  }
@@ -2105,6 +2129,14 @@
2105
2129
  background-color: color-mix(in oklab, var(--foreground) 5%, transparent);
2106
2130
  }
2107
2131
  }
2132
+ .hover\:bg-foreground\/\[0\.06\]:hover {
2133
+ background-color: var(--foreground);
2134
+ }
2135
+ @supports (color: color-mix(in lab, red, red)) {
2136
+ .hover\:bg-foreground\/\[0\.06\]:hover {
2137
+ background-color: color-mix(in oklab, var(--foreground) 6%, transparent);
2138
+ }
2139
+ }
2108
2140
  .hover\:bg-muted:hover {
2109
2141
  background-color: var(--muted);
2110
2142
  }
@@ -2597,8 +2629,11 @@
2597
2629
  .top-4 {
2598
2630
  top: calc(var(--spacing) * 4);
2599
2631
  }
2600
- .top-\[50\%\] {
2601
- top: 50%;
2632
+ .top-\[calc\(1rem\+env\(safe-area-inset-top\,0px\)\)\] {
2633
+ top: calc(1rem + env(safe-area-inset-top,0px));
2634
+ }
2635
+ .top-\[max\(1rem\,env\(safe-area-inset-top\,0px\)\)\] {
2636
+ top: max(1rem, env(safe-area-inset-top,0px));
2602
2637
  }
2603
2638
  .right-0 {
2604
2639
  right: 0px;
@@ -2609,11 +2644,14 @@
2609
2644
  .right-4 {
2610
2645
  right: calc(var(--spacing) * 4);
2611
2646
  }
2647
+ .right-\[calc\(1rem\+env\(safe-area-inset-right\,0px\)\)\] {
2648
+ right: calc(1rem + env(safe-area-inset-right,0px));
2649
+ }
2612
2650
  .bottom-0 {
2613
2651
  bottom: 0px;
2614
2652
  }
2615
- .bottom-4 {
2616
- bottom: calc(var(--spacing) * 4);
2653
+ .bottom-\[calc\(1rem\+env\(safe-area-inset-bottom\,0px\)\)\] {
2654
+ bottom: calc(1rem + env(safe-area-inset-bottom,0px));
2617
2655
  }
2618
2656
  .left-0 {
2619
2657
  left: 0px;
@@ -2621,12 +2659,12 @@
2621
2659
  .left-2 {
2622
2660
  left: calc(var(--spacing) * 2);
2623
2661
  }
2624
- .left-4 {
2625
- left: calc(var(--spacing) * 4);
2626
- }
2627
2662
  .left-\[50\%\] {
2628
2663
  left: 50%;
2629
2664
  }
2665
+ .left-\[calc\(1rem\+env\(safe-area-inset-left\,0px\)\)\] {
2666
+ left: calc(1rem + env(safe-area-inset-left,0px));
2667
+ }
2630
2668
  .z-50 {
2631
2669
  z-index: 50;
2632
2670
  }
@@ -2766,6 +2804,9 @@
2766
2804
  .h-10 {
2767
2805
  height: calc(var(--spacing) * 10);
2768
2806
  }
2807
+ .h-\[100dvh\] {
2808
+ height: 100dvh;
2809
+ }
2769
2810
  .h-\[calc\(100\%-1px\)\] {
2770
2811
  height: calc(100% - 1px);
2771
2812
  }
@@ -2793,6 +2834,9 @@
2793
2834
  .max-h-\[300px\] {
2794
2835
  max-height: 300px;
2795
2836
  }
2837
+ .max-h-\[calc\(100dvh-var\(--keyboard-inset\,0px\)\)\] {
2838
+ max-height: calc(100dvh - var(--keyboard-inset,0px));
2839
+ }
2796
2840
  .min-h-0 {
2797
2841
  min-height: 0px;
2798
2842
  }
@@ -2896,8 +2940,8 @@
2896
2940
  --tw-translate-x: -50%;
2897
2941
  translate: var(--tw-translate-x) var(--tw-translate-y);
2898
2942
  }
2899
- .translate-y-\[-50\%\] {
2900
- --tw-translate-y: -50%;
2943
+ .translate-y-0 {
2944
+ --tw-translate-y: 0px;
2901
2945
  translate: var(--tw-translate-x) var(--tw-translate-y);
2902
2946
  }
2903
2947
  .translate-y-\[calc\(-50\%_-_2px\)\] {
@@ -3402,6 +3446,9 @@
3402
3446
  .pt-3 {
3403
3447
  padding-top: calc(var(--spacing) * 3);
3404
3448
  }
3449
+ .pt-\[env\(safe-area-inset-top\,0px\)\] {
3450
+ padding-top: env(safe-area-inset-top,0px);
3451
+ }
3405
3452
  .pr-2 {
3406
3453
  padding-right: calc(var(--spacing) * 2);
3407
3454
  }
@@ -3411,12 +3458,21 @@
3411
3458
  .pr-8 {
3412
3459
  padding-right: calc(var(--spacing) * 8);
3413
3460
  }
3461
+ .pr-\[env\(safe-area-inset-right\,0px\)\] {
3462
+ padding-right: env(safe-area-inset-right,0px);
3463
+ }
3414
3464
  .pb-2 {
3415
3465
  padding-bottom: calc(var(--spacing) * 2);
3416
3466
  }
3417
3467
  .pb-3 {
3418
3468
  padding-bottom: calc(var(--spacing) * 3);
3419
3469
  }
3470
+ .pb-\[calc\(1rem\+env\(safe-area-inset-bottom\,0px\)\)\] {
3471
+ padding-bottom: calc(1rem + env(safe-area-inset-bottom,0px));
3472
+ }
3473
+ .pb-\[env\(safe-area-inset-bottom\,0px\)\] {
3474
+ padding-bottom: env(safe-area-inset-bottom,0px);
3475
+ }
3420
3476
  .pl-2 {
3421
3477
  padding-left: calc(var(--spacing) * 2);
3422
3478
  }
@@ -3426,6 +3482,9 @@
3426
3482
  .pl-8 {
3427
3483
  padding-left: calc(var(--spacing) * 8);
3428
3484
  }
3485
+ .pl-\[env\(safe-area-inset-left\,0px\)\] {
3486
+ padding-left: env(safe-area-inset-left,0px);
3487
+ }
3429
3488
  .text-center {
3430
3489
  text-align: center;
3431
3490
  }
@@ -4225,12 +4284,19 @@
4225
4284
  border-radius: 0;
4226
4285
  }
4227
4286
  @media (width >= 40rem) {
4287
+ .sm\:top-\[50\%\] {
4288
+ top: 50%;
4289
+ }
4228
4290
  .sm\:max-w-lg {
4229
4291
  max-width: var(--container-lg);
4230
4292
  }
4231
4293
  .sm\:max-w-sm {
4232
4294
  max-width: var(--container-sm);
4233
4295
  }
4296
+ .sm\:translate-y-\[-50\%\] {
4297
+ --tw-translate-y: -50%;
4298
+ translate: var(--tw-translate-x) var(--tw-translate-y);
4299
+ }
4234
4300
  .sm\:flex-row {
4235
4301
  flex-direction: row;
4236
4302
  }
@@ -4798,12 +4864,13 @@
4798
4864
  --secondary-foreground: oklch(0.985 0 0);
4799
4865
  --muted: oklch(0.269 0.006 285.885);
4800
4866
  --muted-foreground: oklch(0.708 0.01 286.073);
4801
- --accent: oklch(0.62 0.14 65);
4802
- --accent-foreground: oklch(0.12 0.004 285.823);
4867
+ --accent: oklch(0.72 0.13 65);
4868
+ --accent-foreground: oklch(0.18 0.02 65);
4803
4869
  --accent-soft: oklch(0.28 0.04 65);
4870
+ --attention: oklch(0.8 0.11 75);
4804
4871
  --border: oklch(0.269 0.006 285.885);
4805
4872
  --input: oklch(0.269 0.006 285.885);
4806
- --ring: oklch(0.62 0.14 65);
4873
+ --ring: oklch(0.72 0.13 65);
4807
4874
  --canvas: oklch(0.12 0.004 285.823);
4808
4875
  }
4809
4876
  [data-boring-agent] {
@@ -4821,6 +4888,7 @@
4821
4888
  --muted-foreground: var(--boring-muted-foreground, oklch(0.52 0.008 72));
4822
4889
  --destructive: var(--boring-destructive, oklch(0.577 0.245 27.325));
4823
4890
  --destructive-foreground: var(--boring-destructive-foreground, oklch(0.985 0.002 72));
4891
+ --attention: var(--boring-attention, oklch(0.55 0.11 75));
4824
4892
  --border: var(--boring-border, oklch(0.915 0.004 72));
4825
4893
  --input: var(--boring-input, oklch(0.915 0.004 72));
4826
4894
  --accent: var(--boring-accent, oklch(0.62 0.14 65));
@@ -4890,12 +4958,13 @@
4890
4958
  --secondary-foreground: var(--boring-secondary-foreground, oklch(0.985 0 0));
4891
4959
  --muted: var(--boring-muted, oklch(0.269 0.006 285.885));
4892
4960
  --muted-foreground: var(--boring-muted-foreground, oklch(0.708 0.01 286.073));
4893
- --accent: var(--boring-accent, oklch(0.62 0.14 65));
4894
- --accent-foreground: var(--boring-accent-foreground, oklch(0.12 0.004 285.823));
4961
+ --accent: var(--boring-accent, oklch(0.72 0.13 65));
4962
+ --accent-foreground: var(--boring-accent-foreground, oklch(0.18 0.02 65));
4895
4963
  --accent-soft: var(--boring-accent-soft, oklch(0.28 0.04 65));
4964
+ --attention: var(--boring-attention, oklch(0.8 0.11 75));
4896
4965
  --border: var(--boring-border, oklch(0.269 0.006 285.885));
4897
4966
  --input: var(--boring-input, oklch(0.269 0.006 285.885));
4898
- --ring: var(--boring-ring, oklch(0.62 0.14 65));
4967
+ --ring: var(--boring-ring, oklch(0.72 0.13 65));
4899
4968
  --canvas: var(--boring-canvas, oklch(0.12 0.004 285.823));
4900
4969
  --surface-chat: var(--boring-surface-chat, oklch(0.165 0.004 285.823));
4901
4970
  --boring-agent-user-bg: oklch(from var(--accent) l c h / 0.16);
@@ -5000,6 +5069,26 @@ pre code span[style*="--sdm-c"] {
5000
5069
  inherits: false;
5001
5070
  initial-value: 0;
5002
5071
  }
5072
+ @property --tw-rotate-x {
5073
+ syntax: "*";
5074
+ inherits: false;
5075
+ }
5076
+ @property --tw-rotate-y {
5077
+ syntax: "*";
5078
+ inherits: false;
5079
+ }
5080
+ @property --tw-rotate-z {
5081
+ syntax: "*";
5082
+ inherits: false;
5083
+ }
5084
+ @property --tw-skew-x {
5085
+ syntax: "*";
5086
+ inherits: false;
5087
+ }
5088
+ @property --tw-skew-y {
5089
+ syntax: "*";
5090
+ inherits: false;
5091
+ }
5003
5092
  @property --tw-space-y-reverse {
5004
5093
  syntax: "*";
5005
5094
  inherits: false;
@@ -5230,6 +5319,11 @@ pre code span[style*="--sdm-c"] {
5230
5319
  --tw-translate-x: 0;
5231
5320
  --tw-translate-y: 0;
5232
5321
  --tw-translate-z: 0;
5322
+ --tw-rotate-x: initial;
5323
+ --tw-rotate-y: initial;
5324
+ --tw-rotate-z: initial;
5325
+ --tw-skew-x: initial;
5326
+ --tw-skew-y: initial;
5233
5327
  --tw-space-y-reverse: 0;
5234
5328
  --tw-border-style: solid;
5235
5329
  --tw-leading: initial;
@@ -1,4 +1,4 @@
1
- import { n as SessionCtx, c as PiChatEvent, S as SessionStore } from './piChatEvent-iNSXiFQq.js';
1
+ import { o as SessionCtx, d as PiChatEvent, S as SessionStore } from './piChatEvent-BUWIzw5l.js';
2
2
  import { AgentSessionEvent, PromptOptions } from '@mariozechner/pi-coding-agent';
3
3
 
4
4
  interface TelemetrySink {
@@ -93,7 +93,10 @@ interface AgentEvent {
93
93
  sessionId: string;
94
94
  chunk: PiChatEvent;
95
95
  }
96
- declare function sessionStreamPath(sessionId: string): string;
96
+ interface SessionStreamIdentity {
97
+ readonly workspaceScopeId: string;
98
+ readonly sessionId: string;
99
+ }
97
100
  interface AgentResolveInputResponse {
98
101
  approved?: boolean;
99
102
  content?: string;
@@ -270,4 +273,4 @@ interface RunContext {
270
273
  allowPromptDispatch?: boolean;
271
274
  }
272
275
 
273
- export { type AgentHarness as A, sessionStreamPath as B, type ToolReadinessRequirement as C, type AgentHarnessFactory as D, type AgentHarnessFactoryInput as E, type JSONSchema as J, type MessageAttachment as M, type RunContext as R, type SendMessageInput as S, type TelemetryEvent as T, type AgentReadiness as a, type Agent as b, AGENT_NOT_IMPLEMENTED_UNTIL_T1 as c, type AgentActor as d, type AgentCoreHarness as e, type AgentCoreHarnessFactory as f, type AgentCorePromptInput as g, type AgentCoreSessionAdapter as h, type AgentCoreSessionSnapshot as i, type AgentEvent as j, type AgentMessageContent as k, type AgentMessagePart as l, AgentNotImplementedError as m, type AgentReadinessStatus as n, type AgentResolveInputResponse as o, type AgentSendInput as p, type AgentStartReceipt as q, type AgentStreamOptions as r, type AgentTool as s, type AgentRuntimeAdapter as t, type AgentConfig as u, type TelemetrySink as v, type ToolExecContext as w, type ToolResult as x, noopTelemetry as y, safeCapture as z };
276
+ export { type AgentHarness as A, safeCapture as B, type ToolReadinessRequirement as C, type AgentHarnessFactory as D, type AgentHarnessFactoryInput as E, type JSONSchema as J, type MessageAttachment as M, type RunContext as R, type SendMessageInput as S, type TelemetryEvent as T, type AgentReadiness as a, type Agent as b, AGENT_NOT_IMPLEMENTED_UNTIL_T1 as c, type AgentActor as d, type AgentCoreHarness as e, type AgentCoreHarnessFactory as f, type AgentCorePromptInput as g, type AgentCoreSessionAdapter as h, type AgentCoreSessionSnapshot as i, type AgentEvent as j, type AgentMessageContent as k, type AgentMessagePart as l, AgentNotImplementedError as m, type AgentReadinessStatus as n, type AgentResolveInputResponse as o, type AgentSendInput as p, type AgentStartReceipt as q, type AgentStreamOptions as r, type AgentTool as s, type AgentRuntimeAdapter as t, type AgentConfig as u, type SessionStreamIdentity as v, type TelemetrySink as w, type ToolExecContext as x, type ToolResult as y, noopTelemetry as z };
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { A as AgentDefinitionErrorCode, o as AgentDeploymentErrorCode } from './piChatEvent-iNSXiFQq.js';
2
+ import { A as AgentDefinitionErrorCode, p as AgentDeploymentErrorCode } from './piChatEvent-BUWIzw5l.js';
3
3
  import { b as Workspace } from './sandbox-BMhut3kh.js';
4
4
 
5
5
  interface SandboxHandleRecord {