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.
- package/dist/{agent-UJOKQHAX.js → agent-OP5VWQN3.js} +5 -5
- package/dist/{chunk-7RXHPRIW.js → chunk-B7KLVI42.js} +2 -2
- package/dist/{chunk-HJSHCEK4.js → chunk-ECAW4X46.js} +1 -1
- package/dist/{chunk-KS5BEPQN.js → chunk-PKLOBITC.js} +436 -22
- package/dist/{chunk-2VFQ2YBT.js → chunk-PPH7KYKH.js} +13 -2
- package/dist/{chunk-O6T7UF2Y.js → chunk-R42DSFUB.js} +2 -2
- package/dist/{chunk-BGG2SULN.js → chunk-SLGJRZ3P.js} +1 -1
- package/dist/cli.js +14 -15
- package/dist/{cron-YZK5DMGO.js → cron-QRAJN2S2.js} +4 -4
- package/dist/index.js +5 -5
- package/dist/interpreter-4XJNFNMA.js +12 -0
- package/dist/{run-at-3JETXLOI.js → run-at-THEZWPTK.js} +4 -4
- package/dist/{schedule-K7V77KGN.js → schedule-FMQJKZ4Z.js} +4 -4
- package/dist/{session-YZHVQ4XN.js → session-IH5LO7FS.js} +1 -1
- package/dist/{session-server-F374HUP7.js → session-server-6Z2THFHB.js} +5 -5
- package/dist/{shell-JQ3UQCDD.js → shell-KREANC2A.js} +16 -18
- package/dist/{subroutine-5SNHBXRN.js → subroutine-7JJKHTV4.js} +2 -2
- package/dist/{subroutine-index-E6XE6XNL.js → subroutine-index-RVJSWWJ7.js} +2 -2
- package/dist/{tag-validator-DBQVSG75.js → tag-validator-TSD3CDMQ.js} +1 -1
- package/dist/test-runner.js +4 -4
- package/lib/ai.di +2 -1
- package/package.json +1 -1
- package/dist/chunk-AJSYOXXZ.js +0 -323
- package/dist/interpreter-PTTFEDJF.js +0 -12
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
integrate
|
|
3
|
-
} from "./chunk-
|
|
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-
|
|
11
|
+
} from "./chunk-PPH7KYKH.js";
|
|
12
12
|
|
|
13
13
|
// src/utils/llm-adapter.ts
|
|
14
14
|
function createLLMAdapter(session) {
|
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-
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
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-
|
|
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.
|
|
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-
|
|
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-
|
|
202
|
+
const { runAgentDaemon } = await import("./agent-OP5VWQN3.js");
|
|
204
203
|
await runAgentDaemon();
|
|
205
204
|
return;
|
|
206
205
|
}
|
|
207
|
-
const { AgentCLI } = await import("./agent-
|
|
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-
|
|
235
|
-
const { SessionServer, isSessionRunning, getSocketPath } = await import("./session-server-
|
|
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-
|
|
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-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-PKLOBITC.js";
|
|
7
|
+
import "./chunk-ECAW4X46.js";
|
|
8
|
+
import "./chunk-SLGJRZ3P.js";
|
|
9
9
|
import "./chunk-HRHAMPOB.js";
|
|
10
|
-
import "./chunk-
|
|
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-
|
|
5
|
+
} from "./chunk-R42DSFUB.js";
|
|
6
6
|
import {
|
|
7
7
|
integrate
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
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-
|
|
18
|
+
} from "./chunk-PPH7KYKH.js";
|
|
19
19
|
export {
|
|
20
20
|
DiracParser,
|
|
21
21
|
createLLMAdapter,
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
cancelScheduledRun,
|
|
4
4
|
executeRunAt,
|
|
5
5
|
listScheduledRuns
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-PKLOBITC.js";
|
|
7
|
+
import "./chunk-ECAW4X46.js";
|
|
8
|
+
import "./chunk-SLGJRZ3P.js";
|
|
9
9
|
import "./chunk-HRHAMPOB.js";
|
|
10
|
-
import "./chunk-
|
|
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-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-PKLOBITC.js";
|
|
7
|
+
import "./chunk-ECAW4X46.js";
|
|
8
|
+
import "./chunk-SLGJRZ3P.js";
|
|
9
9
|
import "./chunk-HRHAMPOB.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-PPH7KYKH.js";
|
|
11
11
|
export {
|
|
12
12
|
executeSchedule,
|
|
13
13
|
listScheduledTasks,
|
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
SessionServer,
|
|
3
3
|
getSocketPath,
|
|
4
4
|
isSessionRunning
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
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-
|
|
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-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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) {
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
executeRegistryStats,
|
|
4
4
|
executeSearchSubroutines,
|
|
5
5
|
registry
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SLGJRZ3P.js";
|
|
7
7
|
import "./chunk-HRHAMPOB.js";
|
|
8
|
-
import "./chunk-
|
|
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-
|
|
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;
|
package/dist/test-runner.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
integrate
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
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-
|
|
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
|
|