fascicle 0.6.0 → 0.6.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.6.3 — 2026-06-11
4
+
5
+ ### Fixed
6
+ - CI `pnpm install --frozen-lockfile` no longer fails with `ERR_PNPM_IGNORED_BUILDS`; the `esbuild` build script is now approved in the `allowBuilds` map, classifying a transitive dependency that a recent toolchain bump introduced.
7
+
8
+ ## v0.6.2 — 2026-06-11
9
+
10
+ ### Internal
11
+ - Stopped tracking the local `.codegraph` tooling config (`config.json` and its `.gitignore`). These are per-machine artifacts and no longer belong in version control.
12
+
13
+ ## v0.6.1 — 2026-06-11
14
+
15
+ ### Fixed
16
+ - AI-SDK adapter: the caller's `system` prompt is now delivered through the AI SDK's top-level `system` option instead of as a `role: "system"` entry in the `messages` array. This removes the SDK's "System messages in the prompt or messages fields can be a security risk..." warning that fired on every `generateText`/`streamText` call (most visibly on non-Claude providers, flooding build logs), without changing what the model receives. A leading run of system messages is joined into the single `system` option; the `claude_cli` subprocess transport is unaffected.
17
+
3
18
  ## v0.6.0 — 2026-06-10
4
19
 
5
20
  ### Added
@@ -1,4 +1,4 @@
1
- import { G as CheckpointStore, X as TrajectoryLogger } from "./index-CCFSc--s.js";
1
+ import { G as CheckpointStore, X as TrajectoryLogger } from "./index-BiuCs04Z.js";
2
2
 
3
3
  //#region packages/observability/src/noop.d.ts
4
4
  declare function noop_logger(): TrajectoryLogger;
@@ -326,7 +326,7 @@ type CustomTrajectoryEvent = z.infer<typeof custom_event_schema>;
326
326
  type ParsedTrajectoryEvent = z.infer<typeof trajectory_event_schema>;
327
327
  //#endregion
328
328
  //#region packages/core/src/version.d.ts
329
- declare const version = "0.6.0";
329
+ declare const version = "0.6.3";
330
330
  //#endregion
331
331
  //#region packages/core/src/index.d.ts
332
332
  declare const flow_schema: {
@@ -707,4 +707,4 @@ declare const flow_schema: {
707
707
  };
708
708
  //#endregion
709
709
  export { loop as A, FlowNode as B, use as C, LoopConfig as D, compose as E, map as F, CheckpointStore as G, describe as H, branch as I, StepMetadata as J, RunContext as K, parallel as L, fallback as M, retry as N, LoopGuardResult as O, pipe as P, sequence as R, stash as S, checkpoint as T, step as U, FlowValue as V, run as W, TrajectoryLogger as X, TrajectoryEvent as Y, describe_cycle_error as _, ParsedTrajectoryEvent as a, timeout_error as b, custom_event_schema as c, span_start_event_schema as d, trajectory_event_schema as f, aborted_error as g, is_step_kind as h, EmitEvent as i, timeout as j, LoopResult as k, emit_event_schema as l, StepKind as m, version as n, SpanEndEvent as o, STEP_KINDS as p, Step as q, CustomTrajectoryEvent as r, SpanStartEvent as s, flow_schema as t, span_end_event_schema as u, resume_validation_error as v, suspend as w, scope as x, suspended_error as y, DescribeOptions as z };
710
- //# sourceMappingURL=index-CCFSc--s.d.ts.map
710
+ //# sourceMappingURL=index-BiuCs04Z.d.ts.map
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as loop, B as FlowNode, C as use, D as LoopConfig, E as compose, F as map, G as CheckpointStore, H as describe, I as branch, J as StepMetadata, K as RunContext, L as parallel, M as fallback, N as retry, O as LoopGuardResult, P as pipe, R as sequence, S as stash, T as checkpoint, U as step, V as FlowValue, W as run, X as TrajectoryLogger, Y as TrajectoryEvent, _ as describe_cycle_error, a as ParsedTrajectoryEvent, b as timeout_error, c as custom_event_schema, d as span_start_event_schema, f as trajectory_event_schema, g as aborted_error, h as is_step_kind, i as EmitEvent, j as timeout, k as LoopResult, l as emit_event_schema, m as StepKind, n as version, o as SpanEndEvent, p as STEP_KINDS, q as Step, r as CustomTrajectoryEvent, s as SpanStartEvent, t as flow_schema, u as span_end_event_schema, v as resume_validation_error, w as suspend, x as scope, y as suspended_error, z as DescribeOptions } from "./index-CCFSc--s.js";
1
+ import { A as loop, B as FlowNode, C as use, D as LoopConfig, E as compose, F as map, G as CheckpointStore, H as describe, I as branch, J as StepMetadata, K as RunContext, L as parallel, M as fallback, N as retry, O as LoopGuardResult, P as pipe, R as sequence, S as stash, T as checkpoint, U as step, V as FlowValue, W as run, X as TrajectoryLogger, Y as TrajectoryEvent, _ as describe_cycle_error, a as ParsedTrajectoryEvent, b as timeout_error, c as custom_event_schema, d as span_start_event_schema, f as trajectory_event_schema, g as aborted_error, h as is_step_kind, i as EmitEvent, j as timeout, k as LoopResult, l as emit_event_schema, m as StepKind, n as version, o as SpanEndEvent, p as STEP_KINDS, q as Step, r as CustomTrajectoryEvent, s as SpanStartEvent, t as flow_schema, u as span_end_event_schema, v as resume_validation_error, w as suspend, x as scope, y as suspended_error, z as DescribeOptions } from "./index-BiuCs04Z.js";
2
2
  import { z } from "zod";
3
3
 
4
4
  //#region packages/composites/src/adversarial.d.ts
@@ -273,7 +273,7 @@ declare function read_baseline(path: string): Promise<BenchReport>;
273
273
  declare function write_baseline(path: string, report: BenchReport): Promise<void>;
274
274
  //#endregion
275
275
  //#region packages/engine/src/version.d.ts
276
- declare const version$1 = "0.6.0";
276
+ declare const version$1 = "0.6.3";
277
277
  //#endregion
278
278
  //#region packages/engine/src/providers/claude_cli/types.d.ts
279
279
  /**
package/dist/index.js CHANGED
@@ -1815,7 +1815,7 @@ const trajectory_event_schema = z.union([
1815
1815
  ]);
1816
1816
  //#endregion
1817
1817
  //#region packages/core/src/version.ts
1818
- const version = "0.6.0";
1818
+ const version = "0.6.3";
1819
1819
  //#endregion
1820
1820
  //#region packages/core/src/index.ts
1821
1821
  /**
@@ -2905,7 +2905,7 @@ function validate_report(value, path) {
2905
2905
  }
2906
2906
  //#endregion
2907
2907
  //#region packages/engine/src/version.ts
2908
- const version$1 = "0.6.0";
2908
+ const version$1 = "0.6.3";
2909
2909
  //#endregion
2910
2910
  //#region packages/engine/src/errors.ts
2911
2911
  var rate_limit_error = class extends Error {
@@ -6021,6 +6021,39 @@ function to_sdk_messages(messages) {
6021
6021
  }
6022
6022
  return out;
6023
6023
  }
6024
+ /**
6025
+ * Hoist a leading run of system messages out of the SDK message list into the
6026
+ * AI SDK's top-level `system` option.
6027
+ *
6028
+ * Passing a `role: 'system'` entry inside `messages` makes the AI SDK treat it
6029
+ * as potentially attacker-controlled: it warns on every call (and newer `ai`
6030
+ * versions throw unless `allowSystemInMessages` is set). fascicle's system
6031
+ * content is the developer's own prompt, and the SDK's own recommendation is to
6032
+ * deliver it through the top-level `system` option, which removes the warning
6033
+ * at its source rather than suppressing it.
6034
+ *
6035
+ * Only the *leading* run is hoisted (fascicle's only shape: one or more system
6036
+ * messages, then the conversation). A system message that appears after a
6037
+ * non-system message keeps its position rather than being silently reordered to
6038
+ * the top, and the original list is returned untouched when hoisting would leave
6039
+ * `messages` empty, since the SDK rejects an empty messages array.
6040
+ */
6041
+ function split_leading_system(messages) {
6042
+ let run_end = 0;
6043
+ const system_parts = [];
6044
+ while (run_end < messages.length) {
6045
+ const m = messages[run_end];
6046
+ if (m?.role !== "system") break;
6047
+ system_parts.push(m.content);
6048
+ run_end += 1;
6049
+ }
6050
+ const rest = messages.slice(run_end);
6051
+ if (system_parts.length === 0 || rest.length === 0) return { messages: [...messages] };
6052
+ return {
6053
+ system: system_parts.join("\n\n"),
6054
+ messages: rest
6055
+ };
6056
+ }
6024
6057
  function to_sdk_tools(tools) {
6025
6058
  if (tools.length === 0) return void 0;
6026
6059
  const entries = {};
@@ -6253,12 +6286,14 @@ async function generate(opts_in, engine) {
6253
6286
  };
6254
6287
  if (args.abort.aborted) internal_controller.abort(args.abort.reason);
6255
6288
  else args.abort.addEventListener("abort", cancel_on_user_abort, { once: true });
6289
+ const { system: hoisted_system, messages: sdk_messages } = split_leading_system(to_sdk_messages(args.messages));
6256
6290
  const base_params = {
6257
6291
  model,
6258
- messages: to_sdk_messages(args.messages),
6292
+ messages: sdk_messages,
6259
6293
  abortSignal: internal_controller.signal,
6260
6294
  stopWhen: stepCountIs(1)
6261
6295
  };
6296
+ if (hoisted_system !== void 0) base_params.system = hoisted_system;
6262
6297
  if (sdk_tools !== void 0) base_params.tools = sdk_tools;
6263
6298
  if (provider_options !== void 0) base_params.providerOptions = provider_options;
6264
6299
  if (opts.temperature !== void 0) base_params.temperature = opts.temperature;