dirac-lang 0.1.88 → 0.1.90

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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  integrate
3
- } from "./chunk-KS5BEPQN.js";
3
+ } from "./chunk-PKLOBITC.js";
4
4
  import {
5
5
  DiracParser
6
6
  } from "./chunk-HRHAMPOB.js";
@@ -8,7 +8,7 @@ import {
8
8
  createSession,
9
9
  getAvailableSubroutines,
10
10
  getOutput
11
- } from "./chunk-2VFQ2YBT.js";
11
+ } from "./chunk-PPH7KYKH.js";
12
12
 
13
13
  // src/utils/llm-adapter.ts
14
14
  function createLLMAdapter(session) {
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  emit,
6
6
  setVariable
7
- } from "./chunk-2VFQ2YBT.js";
7
+ } from "./chunk-PPH7KYKH.js";
8
8
 
9
9
  // src/runtime/subroutine-registry.ts
10
10
  import * as fs from "fs";
package/dist/cli.js CHANGED
@@ -1,15 +1,14 @@
1
1
  #!/usr/bin/env node
2
- import {
3
- BraKetParser
4
- } from "./chunk-AJSYOXXZ.js";
5
2
  import {
6
3
  execute
7
- } from "./chunk-O6T7UF2Y.js";
8
- import "./chunk-KS5BEPQN.js";
9
- import "./chunk-HJSHCEK4.js";
10
- import "./chunk-BGG2SULN.js";
4
+ } from "./chunk-R42DSFUB.js";
5
+ import {
6
+ BraKetParser
7
+ } from "./chunk-PKLOBITC.js";
8
+ import "./chunk-ECAW4X46.js";
9
+ import "./chunk-SLGJRZ3P.js";
11
10
  import "./chunk-HRHAMPOB.js";
12
- import "./chunk-2VFQ2YBT.js";
11
+ import "./chunk-PPH7KYKH.js";
13
12
 
14
13
  // src/cli.ts
15
14
  import "dotenv/config";
@@ -17,7 +16,7 @@ import "dotenv/config";
17
16
  // package.json
18
17
  var package_default = {
19
18
  name: "dirac-lang",
20
- version: "0.1.87",
19
+ version: "0.1.90",
21
20
  description: "LLM-Augmented Declarative Execution",
22
21
  type: "module",
23
22
  main: "dist/index.js",
@@ -151,7 +150,7 @@ async function main() {
151
150
  const args = process.argv.slice(2);
152
151
  const calledAs = process.argv[1];
153
152
  if (calledAs && calledAs.endsWith("/dish")) {
154
- const { DiracShell } = await import("./shell-JQ3UQCDD.js");
153
+ const { DiracShell } = await import("./shell-KREANC2A.js");
155
154
  const shellConfig = loadShellConfig(args);
156
155
  const shell = new DiracShell(shellConfig);
157
156
  await shell.start();
@@ -200,11 +199,11 @@ async function main() {
200
199
  if (args[0] === "agent") {
201
200
  const subcommand = args[1];
202
201
  if (subcommand === "daemon") {
203
- const { runAgentDaemon } = await import("./agent-UJOKQHAX.js");
202
+ const { runAgentDaemon } = await import("./agent-OP5VWQN3.js");
204
203
  await runAgentDaemon();
205
204
  return;
206
205
  }
207
- const { AgentCLI } = await import("./agent-UJOKQHAX.js");
206
+ const { AgentCLI } = await import("./agent-OP5VWQN3.js");
208
207
  const agent = new AgentCLI();
209
208
  switch (subcommand) {
210
209
  case "start":
@@ -231,8 +230,8 @@ async function main() {
231
230
  return;
232
231
  }
233
232
  if (args[0] === "shell") {
234
- const { DiracShell } = await import("./shell-JQ3UQCDD.js");
235
- const { SessionServer, isSessionRunning, getSocketPath } = await import("./session-server-F374HUP7.js");
233
+ const { DiracShell } = await import("./shell-KREANC2A.js");
234
+ const { SessionServer, isSessionRunning, getSocketPath } = await import("./session-server-6Z2THFHB.js");
236
235
  const { SessionClient } = await import("./session-client-3VTC5MLO.js");
237
236
  const daemonMode = args.includes("--daemon") || args.includes("-d");
238
237
  const agentMode = args.includes("--agent") || args.includes("-a");
@@ -278,7 +277,7 @@ async function main() {
278
277
  return;
279
278
  }
280
279
  if (args[0] === "daemon") {
281
- const { SessionServer } = await import("./session-server-F374HUP7.js");
280
+ const { SessionServer } = await import("./session-server-6Z2THFHB.js");
282
281
  const server = new SessionServer();
283
282
  await server.start();
284
283
  console.log("Session daemon started");
@@ -3,11 +3,11 @@ import {
3
3
  listCronJobs,
4
4
  stopAllCronJobs,
5
5
  stopCronJob
6
- } from "./chunk-KS5BEPQN.js";
7
- import "./chunk-HJSHCEK4.js";
8
- import "./chunk-BGG2SULN.js";
6
+ } from "./chunk-PKLOBITC.js";
7
+ import "./chunk-ECAW4X46.js";
8
+ import "./chunk-SLGJRZ3P.js";
9
9
  import "./chunk-HRHAMPOB.js";
10
- import "./chunk-2VFQ2YBT.js";
10
+ import "./chunk-PPH7KYKH.js";
11
11
  export {
12
12
  executeCron,
13
13
  listCronJobs,
package/dist/index.js CHANGED
@@ -2,12 +2,12 @@ import {
2
2
  createLLMAdapter,
3
3
  execute,
4
4
  executeUserCommand
5
- } from "./chunk-O6T7UF2Y.js";
5
+ } from "./chunk-R42DSFUB.js";
6
6
  import {
7
7
  integrate
8
- } from "./chunk-KS5BEPQN.js";
9
- import "./chunk-HJSHCEK4.js";
10
- import "./chunk-BGG2SULN.js";
8
+ } from "./chunk-PKLOBITC.js";
9
+ import "./chunk-ECAW4X46.js";
10
+ import "./chunk-SLGJRZ3P.js";
11
11
  import {
12
12
  DiracParser
13
13
  } from "./chunk-HRHAMPOB.js";
@@ -15,7 +15,7 @@ import {
15
15
  createSession,
16
16
  getAvailableSubroutines,
17
17
  getOutput
18
- } from "./chunk-2VFQ2YBT.js";
18
+ } from "./chunk-PPH7KYKH.js";
19
19
  export {
20
20
  DiracParser,
21
21
  createLLMAdapter,
@@ -0,0 +1,12 @@
1
+ import {
2
+ integrate,
3
+ integrateChildren
4
+ } from "./chunk-PKLOBITC.js";
5
+ import "./chunk-ECAW4X46.js";
6
+ import "./chunk-SLGJRZ3P.js";
7
+ import "./chunk-HRHAMPOB.js";
8
+ import "./chunk-PPH7KYKH.js";
9
+ export {
10
+ integrate,
11
+ integrateChildren
12
+ };
@@ -3,11 +3,11 @@ import {
3
3
  cancelScheduledRun,
4
4
  executeRunAt,
5
5
  listScheduledRuns
6
- } from "./chunk-KS5BEPQN.js";
7
- import "./chunk-HJSHCEK4.js";
8
- import "./chunk-BGG2SULN.js";
6
+ } from "./chunk-PKLOBITC.js";
7
+ import "./chunk-ECAW4X46.js";
8
+ import "./chunk-SLGJRZ3P.js";
9
9
  import "./chunk-HRHAMPOB.js";
10
- import "./chunk-2VFQ2YBT.js";
10
+ import "./chunk-PPH7KYKH.js";
11
11
  export {
12
12
  cancelAllScheduledRuns,
13
13
  cancelScheduledRun,
@@ -3,11 +3,11 @@ import {
3
3
  listScheduledTasks,
4
4
  stopAllScheduledTasks,
5
5
  stopScheduledTask
6
- } from "./chunk-KS5BEPQN.js";
7
- import "./chunk-HJSHCEK4.js";
8
- import "./chunk-BGG2SULN.js";
6
+ } from "./chunk-PKLOBITC.js";
7
+ import "./chunk-ECAW4X46.js";
8
+ import "./chunk-SLGJRZ3P.js";
9
9
  import "./chunk-HRHAMPOB.js";
10
- import "./chunk-2VFQ2YBT.js";
10
+ import "./chunk-PPH7KYKH.js";
11
11
  export {
12
12
  executeSchedule,
13
13
  listScheduledTasks,
@@ -26,7 +26,7 @@ import {
26
26
  substituteVariables,
27
27
  throwException,
28
28
  unsetExceptionBoundary
29
- } from "./chunk-2VFQ2YBT.js";
29
+ } from "./chunk-PPH7KYKH.js";
30
30
  export {
31
31
  cleanSubroutinesToBoundary,
32
32
  cleanToBoundary,
@@ -2,12 +2,12 @@ import {
2
2
  SessionServer,
3
3
  getSocketPath,
4
4
  isSessionRunning
5
- } from "./chunk-7RXHPRIW.js";
6
- import "./chunk-KS5BEPQN.js";
7
- import "./chunk-HJSHCEK4.js";
8
- import "./chunk-BGG2SULN.js";
5
+ } from "./chunk-B7KLVI42.js";
6
+ import "./chunk-PKLOBITC.js";
7
+ import "./chunk-ECAW4X46.js";
8
+ import "./chunk-SLGJRZ3P.js";
9
9
  import "./chunk-HRHAMPOB.js";
10
- import "./chunk-2VFQ2YBT.js";
10
+ import "./chunk-PPH7KYKH.js";
11
11
  export {
12
12
  SessionServer,
13
13
  getSocketPath,
@@ -1,18 +1,16 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- BraKetParser
4
- } from "./chunk-AJSYOXXZ.js";
5
- import {
3
+ BraKetParser,
6
4
  integrate
7
- } from "./chunk-KS5BEPQN.js";
8
- import "./chunk-HJSHCEK4.js";
9
- import "./chunk-BGG2SULN.js";
5
+ } from "./chunk-PKLOBITC.js";
6
+ import "./chunk-ECAW4X46.js";
7
+ import "./chunk-SLGJRZ3P.js";
10
8
  import {
11
9
  DiracParser
12
10
  } from "./chunk-HRHAMPOB.js";
13
11
  import {
14
12
  createSession
15
- } from "./chunk-2VFQ2YBT.js";
13
+ } from "./chunk-PPH7KYKH.js";
16
14
 
17
15
  // src/shell.ts
18
16
  import * as readline from "readline";
@@ -360,7 +358,7 @@ var DiracShell = class {
360
358
  if (this.client) {
361
359
  this.client.disconnect();
362
360
  }
363
- import("./schedule-K7V77KGN.js").then(({ stopAllScheduledTasks }) => {
361
+ import("./schedule-FMQJKZ4Z.js").then(({ stopAllScheduledTasks }) => {
364
362
  stopAllScheduledTasks();
365
363
  console.log("\nGoodbye!");
366
364
  process.exit(0);
@@ -764,7 +762,7 @@ Examples:
764
762
  break;
765
763
  case "tasks":
766
764
  try {
767
- const { listScheduledTasks } = await import("./schedule-K7V77KGN.js");
765
+ const { listScheduledTasks } = await import("./schedule-FMQJKZ4Z.js");
768
766
  const tasks = listScheduledTasks();
769
767
  if (tasks.length === 0) {
770
768
  console.log("No scheduled tasks running.");
@@ -783,7 +781,7 @@ Examples:
783
781
  console.log("Usage: :stop <task-name>");
784
782
  } else {
785
783
  try {
786
- const { stopScheduledTask } = await import("./schedule-K7V77KGN.js");
784
+ const { stopScheduledTask } = await import("./schedule-FMQJKZ4Z.js");
787
785
  const taskName = args[0];
788
786
  const stopped = stopScheduledTask(taskName);
789
787
  if (stopped) {
@@ -798,7 +796,7 @@ Examples:
798
796
  break;
799
797
  case "stopall":
800
798
  try {
801
- const { stopAllScheduledTasks } = await import("./schedule-K7V77KGN.js");
799
+ const { stopAllScheduledTasks } = await import("./schedule-FMQJKZ4Z.js");
802
800
  stopAllScheduledTasks();
803
801
  console.log("All scheduled tasks stopped.");
804
802
  } catch (error) {
@@ -807,7 +805,7 @@ Examples:
807
805
  break;
808
806
  case "crons":
809
807
  try {
810
- const { listCronJobs } = await import("./cron-YZK5DMGO.js");
808
+ const { listCronJobs } = await import("./cron-QRAJN2S2.js");
811
809
  const jobs = listCronJobs();
812
810
  if (jobs.length === 0) {
813
811
  console.log("No cron jobs running.");
@@ -827,7 +825,7 @@ Examples:
827
825
  console.log("Usage: :stopcron <job-name>");
828
826
  } else {
829
827
  try {
830
- const { stopCronJob } = await import("./cron-YZK5DMGO.js");
828
+ const { stopCronJob } = await import("./cron-QRAJN2S2.js");
831
829
  const jobName = args[0];
832
830
  const stopped = stopCronJob(jobName);
833
831
  if (stopped) {
@@ -842,7 +840,7 @@ Examples:
842
840
  break;
843
841
  case "stopallcrons":
844
842
  try {
845
- const { stopAllCronJobs } = await import("./cron-YZK5DMGO.js");
843
+ const { stopAllCronJobs } = await import("./cron-QRAJN2S2.js");
846
844
  stopAllCronJobs();
847
845
  console.log("All cron jobs stopped.");
848
846
  } catch (error) {
@@ -851,7 +849,7 @@ Examples:
851
849
  break;
852
850
  case "scheduled":
853
851
  try {
854
- const { listScheduledRuns } = await import("./run-at-3JETXLOI.js");
852
+ const { listScheduledRuns } = await import("./run-at-THEZWPTK.js");
855
853
  const runs = listScheduledRuns();
856
854
  if (runs.length === 0) {
857
855
  console.log("No scheduled runs pending.");
@@ -871,7 +869,7 @@ Examples:
871
869
  console.log("Usage: :cancel <run-name>");
872
870
  } else {
873
871
  try {
874
- const { cancelScheduledRun } = await import("./run-at-3JETXLOI.js");
872
+ const { cancelScheduledRun } = await import("./run-at-THEZWPTK.js");
875
873
  const runName = args[0];
876
874
  const cancelled = cancelScheduledRun(runName);
877
875
  if (cancelled) {
@@ -886,7 +884,7 @@ Examples:
886
884
  break;
887
885
  case "cancelall":
888
886
  try {
889
- const { cancelAllScheduledRuns } = await import("./run-at-3JETXLOI.js");
887
+ const { cancelAllScheduledRuns } = await import("./run-at-THEZWPTK.js");
890
888
  cancelAllScheduledRuns();
891
889
  console.log("All scheduled runs cancelled.");
892
890
  } catch (error) {
@@ -995,7 +993,7 @@ Examples:
995
993
  console.log("Set ANTHROPIC_API_KEY or OPENAI_API_KEY environment variable,");
996
994
  console.log("or create ~/.dirac/config.yml with llmProvider and llmModel.\n");
997
995
  }
998
- const { registry } = await import("./subroutine-index-E6XE6XNL.js");
996
+ const { registry } = await import("./subroutine-index-RVJSWWJ7.js");
999
997
  const wasIndexed = await registry.autoIndexStdlib();
1000
998
  await this.loadEssentialSubroutines();
1001
999
  if (this.config.initScript) {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  executeSubroutine
3
- } from "./chunk-HJSHCEK4.js";
4
- import "./chunk-2VFQ2YBT.js";
3
+ } from "./chunk-ECAW4X46.js";
4
+ import "./chunk-PPH7KYKH.js";
5
5
  export {
6
6
  executeSubroutine
7
7
  };
@@ -3,9 +3,9 @@ import {
3
3
  executeRegistryStats,
4
4
  executeSearchSubroutines,
5
5
  registry
6
- } from "./chunk-BGG2SULN.js";
6
+ } from "./chunk-SLGJRZ3P.js";
7
7
  import "./chunk-HRHAMPOB.js";
8
- import "./chunk-2VFQ2YBT.js";
8
+ import "./chunk-PPH7KYKH.js";
9
9
  export {
10
10
  executeIndexSubroutines,
11
11
  executeRegistryStats,
@@ -49,7 +49,7 @@ async function getBestTagMatch(candidate, allowed) {
49
49
  }
50
50
  async function validateTag(session, element, options = {}) {
51
51
  const { autocorrect = false, similarityCutoff = SIMILARITY_CUTOFF } = options;
52
- const { getAvailableSubroutines } = await import("./session-YZHVQ4XN.js");
52
+ const { getAvailableSubroutines } = await import("./session-IH5LO7FS.js");
53
53
  const subroutines = getAvailableSubroutines(session);
54
54
  const allowed = new Set(subroutines.map((s) => s.name));
55
55
  const tagName = element.tag;
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  integrate
3
- } from "./chunk-KS5BEPQN.js";
4
- import "./chunk-HJSHCEK4.js";
5
- import "./chunk-BGG2SULN.js";
3
+ } from "./chunk-PKLOBITC.js";
4
+ import "./chunk-ECAW4X46.js";
5
+ import "./chunk-SLGJRZ3P.js";
6
6
  import {
7
7
  DiracParser
8
8
  } from "./chunk-HRHAMPOB.js";
9
9
  import {
10
10
  createSession,
11
11
  getOutput
12
- } from "./chunk-2VFQ2YBT.js";
12
+ } from "./chunk-PPH7KYKH.js";
13
13
 
14
14
  // src/test-runner.ts
15
15
  import fs from "fs";
package/lib/ai.di CHANGED
@@ -1,7 +1,8 @@
1
1
  <!-- Exported subroutine -->
2
2
 
3
3
  <subroutine name="ai"
4
- description="AI assistant with context loading (internal wrapper - use llm tag directly instead)">
4
+ description="AI assistant with context loading (internal wrapper - use llm tag directly instead)"
5
+ visible="subroutine" >
5
6
 
6
7
 
7
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dirac-lang",
3
- "version": "0.1.88",
3
+ "version": "0.1.90",
4
4
  "description": "LLM-Augmented Declarative Execution",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",