poe-code 11.0.5 → 11.0.6

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.
@@ -19,7 +19,7 @@ import {
19
19
  parseMcpConfig,
20
20
  splitFrontmatter,
21
21
  withBrokenPipeGuard
22
- } from "./chunks/chunk-EWC7GLGM.js";
22
+ } from "./chunks/chunk-NP42RTIU.js";
23
23
  import {
24
24
  Budget,
25
25
  SandboxError,
@@ -31,7 +31,7 @@ import {
31
31
  replaceErrorStack,
32
32
  restore,
33
33
  run
34
- } from "./chunks/chunk-WC2N7PM5.js";
34
+ } from "./chunks/chunk-OPNWSDXC.js";
35
35
  import "./chunks/chunk-4YIDX44G.js";
36
36
 
37
37
  // packages/safejs/src/cli.ts
@@ -3,7 +3,7 @@ import {
3
3
  createReplayableRandom,
4
4
  lint,
5
5
  run
6
- } from "./chunks/chunk-WC2N7PM5.js";
6
+ } from "./chunks/chunk-OPNWSDXC.js";
7
7
  import "./chunks/chunk-4YIDX44G.js";
8
8
  export {
9
9
  Budget,
@@ -26,7 +26,7 @@ import {
26
26
  runWithSpawnUsageAccumulator,
27
27
  splitFrontmatter,
28
28
  supportsSpawnMode
29
- } from "./chunks/chunk-EWC7GLGM.js";
29
+ } from "./chunks/chunk-NP42RTIU.js";
30
30
  import {
31
31
  Budget,
32
32
  FileSnapshotBackend,
@@ -48,7 +48,7 @@ import {
48
48
  registerPendingHostCallPolicy,
49
49
  restore,
50
50
  run
51
- } from "./chunks/chunk-WC2N7PM5.js";
51
+ } from "./chunks/chunk-OPNWSDXC.js";
52
52
  import "./chunks/chunk-4YIDX44G.js";
53
53
 
54
54
  // packages/safejs/src/runner/run-harness.ts
@@ -759,7 +759,13 @@ class Parser {
759
759
  }
760
760
  ];
761
761
  }
762
- this.expectKeyword("from");
762
+ const fromToken = this.currentToken();
763
+ if (fromToken.type !== "identifier" ||
764
+ fromToken.value !== "from" ||
765
+ fromToken.end.offset - fromToken.start.offset !== fromToken.value.length) {
766
+ throw new Error(`Expected 'from' at line ${fromToken.start.line}, column ${fromToken.start.column}.`);
767
+ }
768
+ this.index += 1;
763
769
  const sourceToken = this.currentToken();
764
770
  if (sourceToken.type !== "string") {
765
771
  throw unexpectedTokenError(sourceToken);
@@ -18,7 +18,6 @@ const KEYWORDS = new Set([
18
18
  "await",
19
19
  "yield",
20
20
  "import",
21
- "from",
22
21
  "as",
23
22
  "true",
24
23
  "false",