dirac-lang 0.1.70 → 0.1.71

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.
@@ -2,8 +2,8 @@ import {
2
2
  SessionServer,
3
3
  getSocketPath,
4
4
  isSessionRunning
5
- } from "./chunk-2SJHHQ5D.js";
6
- import "./chunk-WW2OXQZN.js";
5
+ } from "./chunk-YVI7T3DS.js";
6
+ import "./chunk-QPO3WKH2.js";
7
7
  import "./chunk-HRHAMPOB.js";
8
8
  import "./chunk-VC23AJJJ.js";
9
9
  import "./chunk-M57VI7KL.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  integrate
3
- } from "./chunk-WW2OXQZN.js";
3
+ } from "./chunk-QPO3WKH2.js";
4
4
  import {
5
5
  DiracParser
6
6
  } from "./chunk-HRHAMPOB.js";
@@ -181,6 +181,7 @@ async function executeAssign(session, element) {
181
181
  const name = element.attributes.name;
182
182
  const valueAttr = element.attributes.value;
183
183
  const trimAttr = element.attributes.trim;
184
+ const typeAttr = element.attributes.type;
184
185
  if (!name) {
185
186
  throw new Error("<assign> requires name attribute");
186
187
  }
@@ -203,6 +204,12 @@ async function executeAssign(session, element) {
203
204
  if (trimAttr === "true" && typeof value === "string") {
204
205
  value = value.trim();
205
206
  }
207
+ if (typeAttr === "cat") {
208
+ const existingValue = getVariable(session, name);
209
+ if (existingValue !== void 0) {
210
+ value = String(existingValue) + String(value);
211
+ }
212
+ }
206
213
  for (let i = session.variables.length - 1; i >= 0; i--) {
207
214
  if (session.variables[i].name === name) {
208
215
  session.variables[i].value = value;
@@ -474,12 +481,12 @@ async function executeIf(session, element) {
474
481
  const condition = await evaluatePredicate(session, conditionElement);
475
482
  if (condition) {
476
483
  if (thenElement) {
477
- const { integrateChildren: integrateChildren2 } = await import("./interpreter-TKNNX6UX.js");
484
+ const { integrateChildren: integrateChildren2 } = await import("./interpreter-Y2AU6RG6.js");
478
485
  await integrateChildren2(session, thenElement);
479
486
  }
480
487
  } else {
481
488
  if (elseElement) {
482
- const { integrateChildren: integrateChildren2 } = await import("./interpreter-TKNNX6UX.js");
489
+ const { integrateChildren: integrateChildren2 } = await import("./interpreter-Y2AU6RG6.js");
483
490
  await integrateChildren2(session, elseElement);
484
491
  }
485
492
  }
@@ -492,7 +499,7 @@ async function evaluatePredicate(session, predicateElement) {
492
499
  return await evaluateCondition(session, predicateElement);
493
500
  }
494
501
  const outputLengthBefore = session.output.length;
495
- const { integrate: integrate2 } = await import("./interpreter-TKNNX6UX.js");
502
+ const { integrate: integrate2 } = await import("./interpreter-Y2AU6RG6.js");
496
503
  await integrate2(session, predicateElement);
497
504
  const newOutputChunks = session.output.slice(outputLengthBefore);
498
505
  const result = newOutputChunks.join("").trim();
@@ -515,11 +522,11 @@ async function evaluateCondition(session, condElement) {
515
522
  }
516
523
  const outputLengthBefore = session.output.length;
517
524
  const args = [];
518
- const { integrate: integrate2 } = await import("./interpreter-TKNNX6UX.js");
525
+ const { integrate: integrate2 } = await import("./interpreter-Y2AU6RG6.js");
519
526
  for (const child of condElement.children) {
520
527
  if (child.tag.toLowerCase() === "arg") {
521
528
  const argOutputStart = session.output.length;
522
- const { integrateChildren: integrateChildren2 } = await import("./interpreter-TKNNX6UX.js");
529
+ const { integrateChildren: integrateChildren2 } = await import("./interpreter-Y2AU6RG6.js");
523
530
  await integrateChildren2(session, child);
524
531
  const newChunks = session.output.slice(argOutputStart);
525
532
  const argValue = newChunks.join("");
@@ -1740,7 +1747,7 @@ async function executeTagCheck(session, element) {
1740
1747
  const executeTag = correctedTag || tagName;
1741
1748
  console.error(`[tag-check] Executing <${executeTag}/> as all checks passed and execute=true.`);
1742
1749
  const elementToExecute = correctedTag ? { ...child, tag: correctedTag } : child;
1743
- const { integrate: integrate2 } = await import("./interpreter-TKNNX6UX.js");
1750
+ const { integrate: integrate2 } = await import("./interpreter-Y2AU6RG6.js");
1744
1751
  await integrate2(session, elementToExecute);
1745
1752
  }
1746
1753
  }
@@ -1749,7 +1756,7 @@ async function executeTagCheck(session, element) {
1749
1756
  // src/tags/throw.ts
1750
1757
  async function executeThrow(session, element) {
1751
1758
  const exceptionName = element.attributes?.name || "exception";
1752
- const { integrateChildren: integrateChildren2 } = await import("./interpreter-TKNNX6UX.js");
1759
+ const { integrateChildren: integrateChildren2 } = await import("./interpreter-Y2AU6RG6.js");
1753
1760
  const exceptionDom = {
1754
1761
  tag: "exception-content",
1755
1762
  attributes: { name: exceptionName },
@@ -1762,7 +1769,7 @@ async function executeThrow(session, element) {
1762
1769
  // src/tags/try.ts
1763
1770
  async function executeTry(session, element) {
1764
1771
  setExceptionBoundary(session);
1765
- const { integrateChildren: integrateChildren2 } = await import("./interpreter-TKNNX6UX.js");
1772
+ const { integrateChildren: integrateChildren2 } = await import("./interpreter-Y2AU6RG6.js");
1766
1773
  await integrateChildren2(session, element);
1767
1774
  unsetExceptionBoundary(session);
1768
1775
  }
@@ -1772,7 +1779,7 @@ async function executeCatch(session, element) {
1772
1779
  const exceptionName = element.attributes?.name || "exception";
1773
1780
  const caughtCount = lookupException(session, exceptionName);
1774
1781
  if (caughtCount > 0) {
1775
- const { integrateChildren: integrateChildren2 } = await import("./interpreter-TKNNX6UX.js");
1782
+ const { integrateChildren: integrateChildren2 } = await import("./interpreter-Y2AU6RG6.js");
1776
1783
  await integrateChildren2(session, element);
1777
1784
  }
1778
1785
  flushCurrentException(session);
@@ -1781,7 +1788,7 @@ async function executeCatch(session, element) {
1781
1788
  // src/tags/exception.ts
1782
1789
  async function executeException(session, element) {
1783
1790
  const exceptions = getCurrentExceptions(session);
1784
- const { integrateChildren: integrateChildren2 } = await import("./interpreter-TKNNX6UX.js");
1791
+ const { integrateChildren: integrateChildren2 } = await import("./interpreter-Y2AU6RG6.js");
1785
1792
  for (const exceptionDom of exceptions) {
1786
1793
  await integrateChildren2(session, exceptionDom);
1787
1794
  }
@@ -2249,7 +2256,7 @@ async function executeLoadContext(session, element) {
2249
2256
  query = element.text.trim();
2250
2257
  }
2251
2258
  if (!query && element.children.length > 0) {
2252
- const { integrate: integrate2 } = await import("./interpreter-TKNNX6UX.js");
2259
+ const { integrate: integrate2 } = await import("./interpreter-Y2AU6RG6.js");
2253
2260
  const beforeOutput = session.output.length;
2254
2261
  for (const child of element.children) {
2255
2262
  await integrate2(session, child);
@@ -2368,6 +2375,11 @@ async function executeSaveSubroutine(session, element) {
2368
2375
  writeFileSync4(filePath, content, "utf-8");
2369
2376
  emit(session, `Subroutine '${name}' saved to: ${filePath}
2370
2377
  `);
2378
+ const savedSub = session.subroutines.find((s) => s.name === name);
2379
+ if (savedSub) {
2380
+ savedSub.sourcePath = filePath;
2381
+ savedSub.modified = false;
2382
+ }
2371
2383
  if (session.debug) {
2372
2384
  console.error(`[save-subroutine] Saved '${name}' to: ${filePath}`);
2373
2385
  }
@@ -2492,7 +2504,7 @@ function escapeXml3(text) {
2492
2504
  }
2493
2505
 
2494
2506
  // src/tags/edit-subroutine.ts
2495
- import { writeFileSync as writeFileSync5, readFileSync as readFileSync3, unlinkSync } from "fs";
2507
+ import { writeFileSync as writeFileSync5, readFileSync as readFileSync3, unlinkSync, existsSync as existsSync6 } from "fs";
2496
2508
  import { tmpdir } from "os";
2497
2509
  import { join as join5 } from "path";
2498
2510
  import { spawnSync } from "child_process";
@@ -2512,7 +2524,36 @@ async function executeEditSubroutine(session, element) {
2512
2524
  if (!subroutine) {
2513
2525
  throw new Error(`Subroutine '${name}' not found in session`);
2514
2526
  }
2515
- const xml = serializeSubroutineToXML(subroutine);
2527
+ let xml;
2528
+ if (subroutine.sourcePath && existsSync6(subroutine.sourcePath)) {
2529
+ try {
2530
+ const sourceContent = readFileSync3(subroutine.sourcePath, "utf-8");
2531
+ const match = sourceContent.match(
2532
+ new RegExp(`<subroutine\\s+name="${name}"[\\s\\S]*?<\\/subroutine>`, "i")
2533
+ );
2534
+ if (match) {
2535
+ xml = match[0];
2536
+ if (session.debug) {
2537
+ console.error(`[edit-subroutine] Loaded from source: ${subroutine.sourcePath}`);
2538
+ }
2539
+ } else {
2540
+ xml = serializeSubroutineToXML(subroutine);
2541
+ if (session.debug) {
2542
+ console.error(`[edit-subroutine] Could not extract from source, using serialization`);
2543
+ }
2544
+ }
2545
+ } catch (err) {
2546
+ xml = serializeSubroutineToXML(subroutine);
2547
+ if (session.debug) {
2548
+ console.error(`[edit-subroutine] Error reading source file, using serialization`);
2549
+ }
2550
+ }
2551
+ } else {
2552
+ xml = serializeSubroutineToXML(subroutine);
2553
+ if (session.debug) {
2554
+ console.error(`[edit-subroutine] No source file, serializing from AST`);
2555
+ }
2556
+ }
2516
2557
  const tempFile = join5(tmpdir(), `dirac-edit-${name}-${Date.now()}.di`);
2517
2558
  writeFileSync5(tempFile, xml, "utf-8");
2518
2559
  if (session.debug) {
@@ -2540,6 +2581,10 @@ async function executeEditSubroutine(session, element) {
2540
2581
  const parser = new DiracParser();
2541
2582
  const ast = parser.parse(editedContent);
2542
2583
  await integrate(session, ast);
2584
+ const editedSub = session.subroutines.find((s) => s.name === name);
2585
+ if (editedSub) {
2586
+ editedSub.modified = true;
2587
+ }
2543
2588
  emit(session, `Subroutine '${name}' updated in session (use save-subroutine to persist)
2544
2589
  `);
2545
2590
  }
@@ -2551,9 +2596,14 @@ function serializeSubroutineToXML(sub) {
2551
2596
  return lines.join("\n");
2552
2597
  }
2553
2598
  function serializeElement2(el, lines, indent) {
2554
- if (!el || !el.tag) {
2555
- if (el && typeof el === "string") {
2556
- lines.push(indent + el);
2599
+ if (!el.tag || el.tag === "") {
2600
+ if (el.text) {
2601
+ let lastIdx = lines.length - 1;
2602
+ if (lastIdx >= 0 && !lines[lastIdx].endsWith(">")) {
2603
+ lines[lastIdx] += el.text;
2604
+ } else {
2605
+ lines.push(indent + el.text);
2606
+ }
2557
2607
  }
2558
2608
  return;
2559
2609
  }
@@ -2566,22 +2616,46 @@ function serializeElement2(el, lines, indent) {
2566
2616
  }
2567
2617
  }
2568
2618
  const hasChildren = el.children && el.children.length > 0;
2569
- const hasText = el.text && el.text.trim();
2570
- if (!hasChildren && !hasText) {
2571
- lines.push(tag + " />");
2572
- } else if (hasText && !hasChildren) {
2573
- lines.push(tag + ">" + el.text + `</${el.tag}>`);
2619
+ if (!hasChildren) {
2620
+ let lastIdx = lines.length - 1;
2621
+ if (lastIdx >= 0 && !lines[lastIdx].endsWith(">") && !lines[lastIdx].trim().startsWith("<")) {
2622
+ lines[lastIdx] += tag.slice(indent.length) + " />";
2623
+ } else {
2624
+ lines.push(tag + " />");
2625
+ }
2574
2626
  } else {
2575
- lines.push(tag + ">");
2576
- if (hasText) {
2577
- lines.push(indent + " " + el.text);
2627
+ let lastIdx = lines.length - 1;
2628
+ const shouldInline = lastIdx >= 0 && !lines[lastIdx].endsWith(">");
2629
+ if (shouldInline) {
2630
+ lines[lastIdx] += tag.slice(indent.length) + ">";
2631
+ } else {
2632
+ lines.push(tag + ">");
2578
2633
  }
2579
- if (hasChildren) {
2580
- for (const child of el.children) {
2581
- serializeElement2(child, lines, indent + " ");
2634
+ let allInline = true;
2635
+ for (let i = 0; i < el.children.length; i++) {
2636
+ const child = el.children[i];
2637
+ if (!child.tag || child.tag === "") {
2638
+ lastIdx = lines.length - 1;
2639
+ if (child.text) {
2640
+ lines[lastIdx] += child.text;
2641
+ }
2642
+ } else {
2643
+ const isSimpleVar = child.tag === "variable" && child.attributes && child.attributes.name;
2644
+ if (isSimpleVar) {
2645
+ lastIdx = lines.length - 1;
2646
+ lines[lastIdx] += `<variable name="${child.attributes.name}" />`;
2647
+ } else {
2648
+ allInline = false;
2649
+ serializeElement2(child, lines, indent + " ");
2650
+ }
2582
2651
  }
2583
2652
  }
2584
- lines.push(`${indent}</${el.tag}>`);
2653
+ lastIdx = lines.length - 1;
2654
+ if (allInline || lines[lastIdx].indexOf(`<${el.tag}`) !== -1) {
2655
+ lines[lastIdx] += `</${el.tag}>`;
2656
+ } else {
2657
+ lines.push(`${indent}</${el.tag}>`);
2658
+ }
2585
2659
  }
2586
2660
  }
2587
2661
 
@@ -2605,7 +2679,7 @@ async function executeForeach(session, element) {
2605
2679
  const parser2 = new DiracParser2();
2606
2680
  try {
2607
2681
  const fromElement = parser2.parse(fromAttr);
2608
- const { integrate: integrate2 } = await import("./interpreter-TKNNX6UX.js");
2682
+ const { integrate: integrate2 } = await import("./interpreter-Y2AU6RG6.js");
2609
2683
  await integrate2(session, fromElement);
2610
2684
  } catch (e) {
2611
2685
  session.output = savedOutput;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  integrate
3
- } from "./chunk-WW2OXQZN.js";
3
+ } from "./chunk-QPO3WKH2.js";
4
4
  import {
5
5
  DiracParser
6
6
  } from "./chunk-HRHAMPOB.js";
package/dist/cli.js CHANGED
@@ -4,8 +4,8 @@ import {
4
4
  } from "./chunk-AJSYOXXZ.js";
5
5
  import {
6
6
  execute
7
- } from "./chunk-3YGHR3R7.js";
8
- import "./chunk-WW2OXQZN.js";
7
+ } from "./chunk-PLH7YN7I.js";
8
+ import "./chunk-QPO3WKH2.js";
9
9
  import "./chunk-HRHAMPOB.js";
10
10
  import "./chunk-VC23AJJJ.js";
11
11
  import "./chunk-M57VI7KL.js";
@@ -16,7 +16,7 @@ import "dotenv/config";
16
16
  // package.json
17
17
  var package_default = {
18
18
  name: "dirac-lang",
19
- version: "0.1.69",
19
+ version: "0.1.70",
20
20
  description: "LLM-Augmented Declarative Execution",
21
21
  type: "module",
22
22
  main: "dist/index.js",
@@ -109,7 +109,7 @@ async function main() {
109
109
  const args = process.argv.slice(2);
110
110
  const calledAs = process.argv[1];
111
111
  if (calledAs && calledAs.endsWith("/dish")) {
112
- const { DiracShell } = await import("./shell-GYZYKP7V.js");
112
+ const { DiracShell } = await import("./shell-BTRWJIV3.js");
113
113
  const shellConfig = loadShellConfig(args);
114
114
  const shell = new DiracShell(shellConfig);
115
115
  await shell.start();
@@ -158,11 +158,11 @@ async function main() {
158
158
  if (args[0] === "agent") {
159
159
  const subcommand = args[1];
160
160
  if (subcommand === "daemon") {
161
- const { runAgentDaemon } = await import("./agent-YEC64Z37.js");
161
+ const { runAgentDaemon } = await import("./agent-WJUVRA6D.js");
162
162
  await runAgentDaemon();
163
163
  return;
164
164
  }
165
- const { AgentCLI } = await import("./agent-YEC64Z37.js");
165
+ const { AgentCLI } = await import("./agent-WJUVRA6D.js");
166
166
  const agent = new AgentCLI();
167
167
  switch (subcommand) {
168
168
  case "start":
@@ -189,8 +189,8 @@ async function main() {
189
189
  return;
190
190
  }
191
191
  if (args[0] === "shell") {
192
- const { DiracShell } = await import("./shell-GYZYKP7V.js");
193
- const { SessionServer, isSessionRunning, getSocketPath } = await import("./session-server-QQGWVEOL.js");
192
+ const { DiracShell } = await import("./shell-BTRWJIV3.js");
193
+ const { SessionServer, isSessionRunning, getSocketPath } = await import("./session-server-L5HBRT5P.js");
194
194
  const { SessionClient } = await import("./session-client-3VTC5MLO.js");
195
195
  const daemonMode = args.includes("--daemon") || args.includes("-d");
196
196
  const agentMode = args.includes("--agent") || args.includes("-a");
@@ -236,7 +236,7 @@ async function main() {
236
236
  return;
237
237
  }
238
238
  if (args[0] === "daemon") {
239
- const { SessionServer } = await import("./session-server-QQGWVEOL.js");
239
+ const { SessionServer } = await import("./session-server-L5HBRT5P.js");
240
240
  const server = new SessionServer();
241
241
  await server.start();
242
242
  console.log("Session daemon started");
@@ -3,7 +3,7 @@ import {
3
3
  listCronJobs,
4
4
  stopAllCronJobs,
5
5
  stopCronJob
6
- } from "./chunk-WW2OXQZN.js";
6
+ } from "./chunk-QPO3WKH2.js";
7
7
  import "./chunk-HRHAMPOB.js";
8
8
  import "./chunk-VC23AJJJ.js";
9
9
  import "./chunk-M57VI7KL.js";
package/dist/index.d.ts CHANGED
@@ -58,6 +58,7 @@ interface Subroutine {
58
58
  parameters?: ParameterMetadata[];
59
59
  meta?: Record<string, string>;
60
60
  sourcePath?: string;
61
+ modified?: boolean;
61
62
  }
62
63
  /**
63
64
  * Execution context - maps to MaskSession in MASK
package/dist/index.js CHANGED
@@ -2,10 +2,10 @@ import {
2
2
  createLLMAdapter,
3
3
  execute,
4
4
  executeUserCommand
5
- } from "./chunk-3YGHR3R7.js";
5
+ } from "./chunk-PLH7YN7I.js";
6
6
  import {
7
7
  integrate
8
- } from "./chunk-WW2OXQZN.js";
8
+ } from "./chunk-QPO3WKH2.js";
9
9
  import {
10
10
  DiracParser
11
11
  } from "./chunk-HRHAMPOB.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  integrate,
3
3
  integrateChildren
4
- } from "./chunk-WW2OXQZN.js";
4
+ } from "./chunk-QPO3WKH2.js";
5
5
  import "./chunk-HRHAMPOB.js";
6
6
  import "./chunk-VC23AJJJ.js";
7
7
  import "./chunk-M57VI7KL.js";
@@ -3,7 +3,7 @@ import {
3
3
  cancelScheduledRun,
4
4
  executeRunAt,
5
5
  listScheduledRuns
6
- } from "./chunk-WW2OXQZN.js";
6
+ } from "./chunk-QPO3WKH2.js";
7
7
  import "./chunk-HRHAMPOB.js";
8
8
  import "./chunk-VC23AJJJ.js";
9
9
  import "./chunk-M57VI7KL.js";
@@ -3,7 +3,7 @@ import {
3
3
  listScheduledTasks,
4
4
  stopAllScheduledTasks,
5
5
  stopScheduledTask
6
- } from "./chunk-WW2OXQZN.js";
6
+ } from "./chunk-QPO3WKH2.js";
7
7
  import "./chunk-HRHAMPOB.js";
8
8
  import "./chunk-VC23AJJJ.js";
9
9
  import "./chunk-M57VI7KL.js";
@@ -2,8 +2,8 @@ import {
2
2
  SessionServer,
3
3
  getSocketPath,
4
4
  isSessionRunning
5
- } from "./chunk-2SJHHQ5D.js";
6
- import "./chunk-WW2OXQZN.js";
5
+ } from "./chunk-YVI7T3DS.js";
6
+ import "./chunk-QPO3WKH2.js";
7
7
  import "./chunk-HRHAMPOB.js";
8
8
  import "./chunk-VC23AJJJ.js";
9
9
  import "./chunk-M57VI7KL.js";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-AJSYOXXZ.js";
5
5
  import {
6
6
  integrate
7
- } from "./chunk-WW2OXQZN.js";
7
+ } from "./chunk-QPO3WKH2.js";
8
8
  import {
9
9
  DiracParser
10
10
  } from "./chunk-HRHAMPOB.js";
@@ -283,6 +283,10 @@ var DiracShell = class {
283
283
  if (sub.meta && sub.meta["hide-from-llm"] === "true") {
284
284
  continue;
285
285
  }
286
+ if (sub.modified) {
287
+ unsaved.push(sub.name);
288
+ continue;
289
+ }
286
290
  if (!sub.sourcePath) {
287
291
  unsaved.push(sub.name);
288
292
  } else {
@@ -355,7 +359,7 @@ var DiracShell = class {
355
359
  if (this.client) {
356
360
  this.client.disconnect();
357
361
  }
358
- import("./schedule-G6ZSSQ5W.js").then(({ stopAllScheduledTasks }) => {
362
+ import("./schedule-R3ZBENYA.js").then(({ stopAllScheduledTasks }) => {
359
363
  stopAllScheduledTasks();
360
364
  console.log("\nGoodbye!");
361
365
  process.exit(0);
@@ -746,7 +750,7 @@ Examples:
746
750
  break;
747
751
  case "tasks":
748
752
  try {
749
- const { listScheduledTasks } = await import("./schedule-G6ZSSQ5W.js");
753
+ const { listScheduledTasks } = await import("./schedule-R3ZBENYA.js");
750
754
  const tasks = listScheduledTasks();
751
755
  if (tasks.length === 0) {
752
756
  console.log("No scheduled tasks running.");
@@ -765,7 +769,7 @@ Examples:
765
769
  console.log("Usage: :stop <task-name>");
766
770
  } else {
767
771
  try {
768
- const { stopScheduledTask } = await import("./schedule-G6ZSSQ5W.js");
772
+ const { stopScheduledTask } = await import("./schedule-R3ZBENYA.js");
769
773
  const taskName = args[0];
770
774
  const stopped = stopScheduledTask(taskName);
771
775
  if (stopped) {
@@ -780,7 +784,7 @@ Examples:
780
784
  break;
781
785
  case "stopall":
782
786
  try {
783
- const { stopAllScheduledTasks } = await import("./schedule-G6ZSSQ5W.js");
787
+ const { stopAllScheduledTasks } = await import("./schedule-R3ZBENYA.js");
784
788
  stopAllScheduledTasks();
785
789
  console.log("All scheduled tasks stopped.");
786
790
  } catch (error) {
@@ -789,7 +793,7 @@ Examples:
789
793
  break;
790
794
  case "crons":
791
795
  try {
792
- const { listCronJobs } = await import("./cron-GZ5XXDBY.js");
796
+ const { listCronJobs } = await import("./cron-HFJ3HK5G.js");
793
797
  const jobs = listCronJobs();
794
798
  if (jobs.length === 0) {
795
799
  console.log("No cron jobs running.");
@@ -809,7 +813,7 @@ Examples:
809
813
  console.log("Usage: :stopcron <job-name>");
810
814
  } else {
811
815
  try {
812
- const { stopCronJob } = await import("./cron-GZ5XXDBY.js");
816
+ const { stopCronJob } = await import("./cron-HFJ3HK5G.js");
813
817
  const jobName = args[0];
814
818
  const stopped = stopCronJob(jobName);
815
819
  if (stopped) {
@@ -824,7 +828,7 @@ Examples:
824
828
  break;
825
829
  case "stopallcrons":
826
830
  try {
827
- const { stopAllCronJobs } = await import("./cron-GZ5XXDBY.js");
831
+ const { stopAllCronJobs } = await import("./cron-HFJ3HK5G.js");
828
832
  stopAllCronJobs();
829
833
  console.log("All cron jobs stopped.");
830
834
  } catch (error) {
@@ -833,7 +837,7 @@ Examples:
833
837
  break;
834
838
  case "scheduled":
835
839
  try {
836
- const { listScheduledRuns } = await import("./run-at-ZYUWD64S.js");
840
+ const { listScheduledRuns } = await import("./run-at-JFHLEZNU.js");
837
841
  const runs = listScheduledRuns();
838
842
  if (runs.length === 0) {
839
843
  console.log("No scheduled runs pending.");
@@ -853,7 +857,7 @@ Examples:
853
857
  console.log("Usage: :cancel <run-name>");
854
858
  } else {
855
859
  try {
856
- const { cancelScheduledRun } = await import("./run-at-ZYUWD64S.js");
860
+ const { cancelScheduledRun } = await import("./run-at-JFHLEZNU.js");
857
861
  const runName = args[0];
858
862
  const cancelled = cancelScheduledRun(runName);
859
863
  if (cancelled) {
@@ -868,7 +872,7 @@ Examples:
868
872
  break;
869
873
  case "cancelall":
870
874
  try {
871
- const { cancelAllScheduledRuns } = await import("./run-at-ZYUWD64S.js");
875
+ const { cancelAllScheduledRuns } = await import("./run-at-JFHLEZNU.js");
872
876
  cancelAllScheduledRuns();
873
877
  console.log("All scheduled runs cancelled.");
874
878
  } catch (error) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  integrate
3
- } from "./chunk-WW2OXQZN.js";
3
+ } from "./chunk-QPO3WKH2.js";
4
4
  import {
5
5
  DiracParser
6
6
  } from "./chunk-HRHAMPOB.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dirac-lang",
3
- "version": "0.1.70",
3
+ "version": "0.1.71",
4
4
  "description": "LLM-Augmented Declarative Execution",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",