sim 2.1.4-dev.57.1 → 2.1.4-dev.62.1

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 (2) hide show
  1. package/dist/index.js +7 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -13284,6 +13284,13 @@ function readArgumentSource(raw, flagName) {
13284
13284
  return { text: raw.slice(1), from: "" };
13285
13285
  if (!raw.startsWith("@"))
13286
13286
  return { text: raw, from: "" };
13287
+ const embedded = embedStore.getStore();
13288
+ if (embedded) {
13289
+ const preloaded = embedded.fileArguments?.[raw.slice(1)];
13290
+ if (preloaded !== undefined)
13291
+ return { text: preloaded, from: " (read from your machine)" };
13292
+ throw new SimApiError(`--${flagName}: no file "${raw.slice(1)}" on this machine — write it first (run_code), or pass the value inline`, 0);
13293
+ }
13287
13294
  const path = raw.slice(1);
13288
13295
  if (path === "-") {
13289
13296
  if (process.stdin.isTTY) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sim",
3
- "version": "2.1.4-dev.57.1",
3
+ "version": "2.1.4-dev.62.1",
4
4
  "description": "Sim CLI - talk to the Sim API from your terminal",
5
5
  "type": "module",
6
6
  "bin": {