@hachej/boring-agent 0.1.23 → 0.1.24

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.
@@ -352,6 +352,9 @@
352
352
  .max-h-48 {
353
353
  max-height: calc(var(--spacing) * 48);
354
354
  }
355
+ .max-h-\[45vh\] {
356
+ max-height: 45vh;
357
+ }
355
358
  .max-h-\[300px\] {
356
359
  max-height: 300px;
357
360
  }
@@ -2528,6 +2531,11 @@
2528
2531
  background-color: transparent;
2529
2532
  }
2530
2533
  }
2534
+ .\[\&\>p\]\:mx-auto {
2535
+ &>p {
2536
+ margin-inline: auto;
2537
+ }
2538
+ }
2531
2539
  .\[\&\>span\[aria-hidden\]\]\:hidden {
2532
2540
  &>span[aria-hidden] {
2533
2541
  display: none;
@@ -42,11 +42,13 @@ declare const noopTelemetry: TelemetrySink;
42
42
  declare function safeCapture(telemetry: TelemetrySink, event: TelemetryEvent): void;
43
43
 
44
44
  type JSONSchema = Record<string, unknown>;
45
+ type ToolReadinessRequirement = 'workspace-fs' | 'sandbox-exec' | 'ui-bridge';
45
46
  interface AgentTool {
46
47
  name: string;
47
48
  description: string;
48
49
  /** Optional one-line prompt entry. Pi-built tools should preserve pi's snippet verbatim. */
49
50
  promptSnippet?: string;
51
+ readinessRequirements?: ToolReadinessRequirement[];
50
52
  parameters: JSONSchema;
51
53
  execute(params: Record<string, unknown>, ctx: ToolExecContext): Promise<ToolResult>;
52
54
  }
@@ -68,7 +70,10 @@ interface ToolResult {
68
70
 
69
71
  interface AgentHarnessFactoryInput {
70
72
  tools: AgentTool[];
73
+ /** Host/storage cwd used for harness-owned filesystem resources. */
71
74
  cwd: string;
75
+ /** Agent-visible cwd used by Pi/system prompt/session metadata. */
76
+ runtimeCwd?: string;
72
77
  systemPromptAppend?: string;
73
78
  sessionNamespace?: string;
74
79
  sessionDir?: string;
@@ -1,14 +1,21 @@
1
- import { S as Sandbox, f as SandboxHandleStore, e as SandboxHandleRecord, W as Workspace, F as FileSearch, P as PluginRestartWarning } from '../agentPluginEvents-zyIvVjsA.js';
1
+ import { i as WorkspaceRuntimeContext, S as Sandbox, f as SandboxHandleStore, e as SandboxHandleRecord, W as Workspace, F as FileSearch, P as PluginRestartWarning } from '../agentPluginEvents-CF0BGY4D.js';
2
2
  import { Sandbox as Sandbox$1 } from '@vercel/sandbox';
3
3
  import { FastifyInstance, FastifyRequest, FastifyPluginAsync } from 'fastify';
4
- import { f as TelemetrySink, A as AgentTool, i as AgentHarnessFactory } from '../harness-BCit36Ha.js';
5
- export { j as AgentHarnessFactoryInput } from '../harness-BCit36Ha.js';
4
+ import { f as TelemetrySink, A as AgentTool, i as AgentHarnessFactory } from '../harness-CQ0uw6xW.js';
5
+ export { j as AgentHarnessFactoryInput } from '../harness-CQ0uw6xW.js';
6
6
  import { PackageSource, ExtensionFactory, SettingsManager } from '@mariozechner/pi-coding-agent';
7
7
  import 'ai';
8
8
 
9
- declare function createDirectSandbox(): Sandbox;
9
+ interface CreateDirectSandboxOptions {
10
+ runtimeContext?: WorkspaceRuntimeContext;
11
+ }
12
+ declare function createDirectSandbox(opts?: CreateDirectSandboxOptions): Sandbox;
10
13
 
11
- declare function createBwrapSandbox(): Sandbox;
14
+ interface CreateBwrapSandboxOptions {
15
+ hostWorkspaceRoot?: string;
16
+ runtimeContext?: WorkspaceRuntimeContext;
17
+ }
18
+ declare function createBwrapSandbox(opts?: CreateBwrapSandboxOptions): Sandbox;
12
19
 
13
20
  interface FileHandleStoreOptions {
14
21
  storePath?: string;
@@ -174,7 +181,10 @@ interface VercelDeploymentSnapshotOptions {
174
181
  declare function createVercelDeploymentSnapshotProvider(opts: Omit<VercelDeploymentSnapshotOptions, 'runtime' | 'setupCommands' | 'pythonPackages' | 'systemPackages'>): DeploymentSnapshotProvider;
175
182
  declare function prepareVercelDeploymentSnapshot(opts: VercelDeploymentSnapshotOptions): Promise<SnapshotBakeResult>;
176
183
 
177
- declare function createNodeWorkspace(root: string): Workspace;
184
+ interface CreateNodeWorkspaceOptions {
185
+ runtimeContext?: WorkspaceRuntimeContext;
186
+ }
187
+ declare function createNodeWorkspace(root: string, opts?: CreateNodeWorkspaceOptions): Workspace;
178
188
 
179
189
  declare function fileRoutes(app: FastifyInstance, opts: {
180
190
  workspace?: Workspace;
@@ -393,6 +403,13 @@ interface ModeContext {
393
403
  telemetry?: TelemetrySink;
394
404
  }
395
405
  interface RuntimeBundle {
406
+ runtimeContext?: WorkspaceRuntimeContext;
407
+ /**
408
+ * Server-private host/storage root for host-side filesystem work. Do not use
409
+ * this as the agent-visible cwd; Workspace.root remains the public runtime
410
+ * namespace shown to tools/model.
411
+ */
412
+ storageRoot?: string;
396
413
  workspace: Workspace;
397
414
  sandbox: Sandbox;
398
415
  fileSearch: FileSearch;