fascicle 0.17.7 → 0.17.8

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/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { a as FlowValue, c as Step, d as StepMetadata, f as StepOptions, h as TrajectoryLogger, i as FlowNode, l as StepFn, m as TrajectoryEvent, n as CheckpointStore, o as RunContext, p as StepOutput, r as CleanupFn, s as ScopedCheckpointStore, t as AnyStep, u as StepInput } from "./types-CPqLZOEr.js";
2
2
  import { n as SchemaIssue, r as ToolSchema, t as AnySchema } from "./types-BK0UW28o.js";
3
3
  import { _ as is_run_end_event, a as MapItemFailedEvent, b as is_step_replayed_event, c as RunEndStatus, d as StepReplayedEvent, f as TrajectoryParseResult, g as is_map_item_failed_event, h as is_emit_event, i as EmitEvent, l as SpanEndEvent, m as is_custom_trajectory_event, n as CheckpointStatus, o as ParsedTrajectoryEvent, p as is_checkpoint_event, r as CustomTrajectoryEvent, s as RunEndEvent, t as CheckpointEvent, u as SpanStartEvent, v as is_span_end_event, x as parse_trajectory_event, y as is_span_start_event } from "./trajectory-BKGNxi7u.js";
4
- import { A as StepTiming, B as UsageTotals, C as ProviderConfigMap, D as RetryFailureKind, E as ResolvedModel, F as ToolCallRecord, G as NativeProviderAdapter, H as AiSdkProviderAdapter, I as ToolExecContext, J as ProviderFactory, K as ProviderAdapter, L as TruncatedTurnPolicy, M as Tool, N as ToolApprovalHandler, O as RetryPolicy, P as ToolApprovalRequest, Q as ClaudeCliProviderReported, R as TurnRequest, S as PricingTable, T as ProviderOptions, U as EffortTranslation, V as UserContentPart, W as ExternalAgentAdapter, X as RawProviderUsage, Y as ProviderTransport, Z as default_normalize_usage, _ as Message, a as CacheSetting, b as PrepareStepResult, c as CostBreakdown, d as EngineConfig, f as EngineDefaults, g as GenerateTiming, h as GenerateResult, i as BedrockCredentials, j as StreamChunk, k as StepRecord, l as EffortLevel, m as GenerateOptions, n as AssistantContentPart, o as CaptureLevel, p as FinishReason, q as ProviderCapability, r as BedrockCredentialProvider, s as CapturePayload, t as AiSdkTelemetrySettings, u as Engine, v as PrepareStepContext, w as ProviderInit, x as Pricing, y as PrepareStepHook, z as TurnResult } from "./types-xYjCEd6i.js";
4
+ import { A as StepTiming, B as UsageTotals, C as ProviderConfigMap, D as RetryFailureKind, E as ResolvedModel, F as ToolCallRecord, G as NativeProviderAdapter, H as AiSdkProviderAdapter, I as ToolExecContext, J as ProviderFactory, K as ProviderAdapter, L as TruncatedTurnPolicy, M as Tool, N as ToolApprovalHandler, O as RetryPolicy, P as ToolApprovalRequest, Q as ClaudeCliProviderReported, R as TurnRequest, S as PricingTable, T as ProviderOptions, U as EffortTranslation, V as UserContentPart, W as ExternalAgentAdapter, X as RawProviderUsage, Y as ProviderTransport, Z as default_normalize_usage, _ as Message, a as CacheSetting, b as PrepareStepResult, c as CostBreakdown, d as EngineConfig, f as EngineDefaults, g as GenerateTiming, h as GenerateResult, i as BedrockCredentials, j as StreamChunk, k as StepRecord, l as EffortLevel, m as GenerateOptions, n as AssistantContentPart, o as CaptureLevel, p as FinishReason, q as ProviderCapability, r as BedrockCredentialProvider, s as CapturePayload, t as AiSdkTelemetrySettings, u as Engine, v as PrepareStepContext, w as ProviderInit, x as Pricing, y as PrepareStepHook, z as TurnResult } from "./types-C6PB2aP0.js";
5
5
  //#region src/core/runner.d.ts
6
6
  type RunOptions = {
7
7
  readonly install_signal_handlers?: boolean;
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { A as is_step, B as timeout_error, F as flow_changed_error, H as is_step_kind, I as gate_result_error, L as resume_validation_error, M as describe_cycle_error, N as duplicate_suspend_id_error, O as same_input_as, P as error_path, R as run_not_found_error, U as resolve_display_name, V as STEP_KINDS, _ as step, a as suspend, b as suggest_step_id, c as loop, d as retry, f as pipe, g as sequence, h as parallel, i as use, j as aborted_error, k as describe, l as timeout, m as branch, n as scope, o as checkpoint, p as map, r as stash, s as compose, t as chain, u as fallback, v as assert_valid_step_id, w as run, x as durable, y as is_valid_step_id, z as suspended_error } from "./core-Bfzt55Fl.js";
2
- import { t as create_engine } from "./engine-B5iQ3if9.js";
2
+ import { t as create_engine } from "./engine-D7ANZ8eq.js";
3
3
  import { n as is_record$1 } from "./records-1HU7mWXf.js";
4
4
  import { t as json_schema_to_standard } from "./json_schema_to_standard-C4F4lXHE.js";
5
5
  import { a as is_run_end_event, c as is_step_replayed_event, i as is_map_item_failed_event, l as parse_trajectory_event, n as is_custom_trajectory_event, o as is_span_end_event, r as is_emit_event, s as is_span_start_event, t as is_checkpoint_event } from "./trajectory-DeURWIhj.js";
package/dist/mcp.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { c as Step, h as TrajectoryLogger } from "./types-CPqLZOEr.js";
2
2
  import { r as ToolSchema } from "./types-BK0UW28o.js";
3
- import { M as Tool } from "./types-xYjCEd6i.js";
3
+ import { M as Tool } from "./types-C6PB2aP0.js";
4
4
  import { Client } from "@modelcontextprotocol/sdk/client/index.js";
5
5
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
6
6
  import { z } from "zod";
package/dist/testing.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { n as CheckpointStore } from "./types-CPqLZOEr.js";
2
- import { B as UsageTotals, F as ToolCallRecord, G as NativeProviderAdapter, R as TurnRequest, h as GenerateResult, m as GenerateOptions, n as AssistantContentPart, p as FinishReason, u as Engine } from "./types-xYjCEd6i.js";
2
+ import { B as UsageTotals, F as ToolCallRecord, G as NativeProviderAdapter, R as TurnRequest, h as GenerateResult, m as GenerateOptions, n as AssistantContentPart, p as FinishReason, u as Engine } from "./types-C6PB2aP0.js";
3
3
  //#region src/testing/assert_prefix_stable.d.ts
4
4
  /**
5
5
  * Check that every turn of every call in `requests` sends the turn before it
package/dist/testing.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { C as validate_schema, S as format_schema_issues, j as aborted_error } from "./core-Bfzt55Fl.js";
2
- import { n as to_json_schema, t as create_engine } from "./engine-B5iQ3if9.js";
2
+ import { n as to_json_schema, t as create_engine } from "./engine-D7ANZ8eq.js";
3
3
  import { I as schema_validation_error } from "./leading_system-CHSYz0h9.js";
4
4
  //#region src/testing/assert_prefix_stable.ts
5
5
  const ONE_AT_A_TIME = "the check reads calls that ran one at a time, so a parallel flow takes one double per branch";
@@ -11,10 +11,49 @@ import { r as ToolSchema } from "./types-BK0UW28o.js";
11
11
  */
12
12
  type AuthMode = 'auto' | 'oauth' | 'api_key';
13
13
  type SandboxProviderConfig = {
14
+ /**
15
+ * Claude Code's own sandbox, passed to the CLI as `--settings`. It
16
+ * confines Bash at the OS level (Seatbelt on macOS, bubblewrap on
17
+ * Linux) and keeps the file tools inside the working directories.
18
+ * Needs Claude Code 2.1.314 or later, which the adapter checks.
19
+ */
20
+ readonly kind: 'claude_code';
21
+ /**
22
+ * Domains that Bash commands may reach; `*.example.com` matches the
23
+ * subdomains. Empty or absent means no network. WebFetch and
24
+ * WebSearch run outside the sandbox, so this list doesn't bind them.
25
+ */
26
+ readonly network_allowlist?: ReadonlyArray<string>;
27
+ /**
28
+ * Absolute or `~/` paths that Bash commands may write, beyond the
29
+ * working directory and the per-user temp directory.
30
+ */
31
+ readonly additional_write_paths?: ReadonlyArray<string>;
32
+ /**
33
+ * Absolute or `~/` paths that Bash commands may still read, such as
34
+ * a package manager's config or cache. The sandbox shuts Bash out of
35
+ * the home directory apart from the working directory, the temp
36
+ * directory, and git's global config.
37
+ */
38
+ readonly additional_read_paths?: ReadonlyArray<string>;
39
+ /**
40
+ * Absolute or `~/` paths that neither Bash nor the file tools may
41
+ * read, such as `~/.ssh`.
42
+ */
43
+ readonly deny_read_paths?: ReadonlyArray<string>;
44
+ } | {
45
+ /**
46
+ * @deprecated `bwrap` doesn't enforce `network_allowlist`: a non-empty
47
+ * list shares the host network. Use `kind: 'claude_code'`.
48
+ */
14
49
  readonly kind: 'bwrap';
15
50
  readonly network_allowlist?: ReadonlyArray<string>;
16
51
  readonly additional_write_paths?: ReadonlyArray<string>;
17
52
  } | {
53
+ /**
54
+ * @deprecated greywall ignores `network_allowlist` unless you set up
55
+ * greyproxy's rules yourself. Use `kind: 'claude_code'`.
56
+ */
18
57
  readonly kind: 'greywall';
19
58
  readonly network_allowlist?: ReadonlyArray<string>;
20
59
  readonly additional_write_paths?: ReadonlyArray<string>;
@@ -951,4 +990,4 @@ type Engine = {
951
990
  };
952
991
  //#endregion
953
992
  export { StepTiming as A, UsageTotals as B, ProviderConfigMap as C, RetryFailureKind as D, ResolvedModel as E, ToolCallRecord as F, NativeProviderAdapter as G, AiSdkProviderAdapter as H, ToolExecContext as I, ProviderFactory as J, ProviderAdapter as K, TruncatedTurnPolicy as L, Tool as M, ToolApprovalHandler as N, RetryPolicy as O, ToolApprovalRequest as P, ClaudeCliProviderReported as Q, TurnRequest as R, PricingTable as S, ProviderOptions as T, EffortTranslation as U, UserContentPart as V, ExternalAgentAdapter as W, RawProviderUsage as X, ProviderTransport as Y, default_normalize_usage as Z, Message as _, CacheSetting as a, PrepareStepResult as b, CostBreakdown as c, EngineConfig as d, EngineDefaults as f, GenerateTiming as g, GenerateResult as h, BedrockCredentials as i, StreamChunk as j, StepRecord as k, EffortLevel as l, GenerateOptions as m, AssistantContentPart as n, CaptureLevel as o, FinishReason as p, ProviderCapability as q, BedrockCredentialProvider as r, CapturePayload as s, AiSdkTelemetrySettings as t, Engine as u, PrepareStepContext as v, ProviderInit as w, Pricing as x, PrepareStepHook as y, TurnResult as z };
954
- //# sourceMappingURL=types-xYjCEd6i.d.ts.map
993
+ //# sourceMappingURL=types-C6PB2aP0.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fascicle",
3
- "version": "0.17.7",
3
+ "version": "0.17.8",
4
4
  "description": "Compose agents like plain values. A TypeScript toolkit that wires LLM calls, tools, and functions into typed steps over eight providers. No framework, no ambient state.",
5
5
  "keywords": [
6
6
  "agents",