dirac-lang 0.1.81 → 0.1.82

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/cli.js CHANGED
@@ -17,7 +17,7 @@ import "dotenv/config";
17
17
  // package.json
18
18
  var package_default = {
19
19
  name: "dirac-lang",
20
- version: "0.1.81",
20
+ version: "0.1.82",
21
21
  description: "LLM-Augmented Declarative Execution",
22
22
  type: "module",
23
23
  main: "dist/index.js",
@@ -145,7 +145,7 @@ async function main() {
145
145
  const args = process.argv.slice(2);
146
146
  const calledAs = process.argv[1];
147
147
  if (calledAs && calledAs.endsWith("/dish")) {
148
- const { DiracShell } = await import("./shell-W6NOJBXV.js");
148
+ const { DiracShell } = await import("./shell-QEN2FMAY.js");
149
149
  const shellConfig = loadShellConfig(args);
150
150
  const shell = new DiracShell(shellConfig);
151
151
  await shell.start();
@@ -225,7 +225,7 @@ async function main() {
225
225
  return;
226
226
  }
227
227
  if (args[0] === "shell") {
228
- const { DiracShell } = await import("./shell-W6NOJBXV.js");
228
+ const { DiracShell } = await import("./shell-QEN2FMAY.js");
229
229
  const { SessionServer, isSessionRunning, getSocketPath } = await import("./session-server-IDEV4CXY.js");
230
230
  const { SessionClient } = await import("./session-client-3VTC5MLO.js");
231
231
  const daemonMode = args.includes("--daemon") || args.includes("-d");
@@ -1030,7 +1030,7 @@ Examples:
1030
1030
  if (!fs.existsSync(resolvedPath)) {
1031
1031
  return;
1032
1032
  }
1033
- console.log(`Loading init script: ${scriptPath}`);
1033
+ console.log(`Loading init script: ${resolvedPath}`);
1034
1034
  const scriptContent = fs.readFileSync(resolvedPath, "utf-8");
1035
1035
  if (this.client) {
1036
1036
  const xml = this.braketParser.parse(scriptContent);
@@ -1038,7 +1038,10 @@ Examples:
1038
1038
  } else {
1039
1039
  const xml = this.braketParser.parse(scriptContent);
1040
1040
  const ast = this.xmlParser.parse(xml);
1041
+ const oldCurrentFile = this.session.currentFile;
1042
+ this.session.currentFile = resolvedPath;
1041
1043
  await integrate(this.session, ast);
1044
+ this.session.currentFile = oldCurrentFile;
1042
1045
  }
1043
1046
  console.log(`Init script loaded.
1044
1047
  `);
package/lib/shell-init.di CHANGED
@@ -4,10 +4,10 @@
4
4
  # Auto-index user's saved subroutines for search functionality
5
5
  <index-subroutines path="~/.dirac/lib/user" />
6
6
 
7
- # Uncomment to load native tags for tab completion:
8
- |import src="dirac/lib/native-tags.di" >
7
+ # Load native tags for tab completion and AI helper subroutines
8
+ |import src="native-tags.di" >
9
9
 
10
- |import src="dirac/lib/ai.di" >
10
+ |import src="ai.di" >
11
11
 
12
12
  # Define some useful helper subroutines
13
13
  #<hello |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dirac-lang",
3
- "version": "0.1.81",
3
+ "version": "0.1.82",
4
4
  "description": "LLM-Augmented Declarative Execution",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",