nola-lang 0.1.11 → 0.1.12
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/init.d.ts +1 -1
- package/dist/tshost.js +7 -0
- package/package.json +10 -10
package/dist/init.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export interface InitOptions {
|
|
|
3
3
|
add?: boolean;
|
|
4
4
|
ide?: string;
|
|
5
5
|
agents?: string;
|
|
6
|
-
/** --provider nola|openai|anthropic|google|none; undefined = ask interactively, none otherwise */
|
|
6
|
+
/** --provider nola|openai|anthropic|google|typesafe|none; undefined = ask interactively, none otherwise */
|
|
7
7
|
provider?: string;
|
|
8
8
|
/** --trial / --no-trial: shorthand for --provider nola / none */
|
|
9
9
|
trial?: boolean;
|
package/dist/tshost.js
CHANGED
|
@@ -58,9 +58,16 @@ export function createLoweredProgram(entries, projectDir, mode, sourceRoot, hook
|
|
|
58
58
|
host.getSourceFile = (f, lang, onError, shouldCreate) => virtual.has(norm(f))
|
|
59
59
|
? ts.createSourceFile(f, virtual.get(norm(f)), lang)
|
|
60
60
|
: defaultGetSourceFile(f, lang, onError, shouldCreate);
|
|
61
|
+
// realpath is load-bearing: without it TypeScript resolves a package's OWN
|
|
62
|
+
// imports from the symlink path, so under a linked or pnpm-style install
|
|
63
|
+
// `@nola-lang/core` is not found next to the runtime's link and `Askable`
|
|
64
|
+
// becomes an error type — every ask silently types as `unknown`.
|
|
61
65
|
const defaultResolve = (specifier, containing) => ts.resolveModuleName(specifier, containing, options, {
|
|
62
66
|
fileExists: host.fileExists,
|
|
63
67
|
readFile: (f) => host.readFile(f) ?? undefined,
|
|
68
|
+
directoryExists: host.directoryExists?.bind(host),
|
|
69
|
+
realpath: host.realpath?.bind(host),
|
|
70
|
+
getCurrentDirectory: host.getCurrentDirectory.bind(host),
|
|
64
71
|
}).resolvedModule;
|
|
65
72
|
host.resolveModuleNameLiterals = (literals, containingFile) => literals.map((lit) => {
|
|
66
73
|
const spec = lit.text;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nola-lang",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"description": "The Nola language toolchain: nola init/build/run/check and the Node loader for .tsi files",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"nola",
|
|
@@ -44,15 +44,15 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@ampproject/remapping": "^2.3.0",
|
|
46
46
|
"@jridgewell/trace-mapping": "^0.3.25",
|
|
47
|
-
"@nola-lang/ast": "0.1.
|
|
48
|
-
"@nola-lang/compiler": "0.1.
|
|
49
|
-
"@nola-lang/console": "0.1.
|
|
50
|
-
"@nola-lang/core": "0.1.
|
|
51
|
-
"@nola-lang/derive": "0.1.
|
|
52
|
-
"@nola-lang/node-loader": "0.1.
|
|
53
|
-
"@nola-lang/parser": "0.1.
|
|
54
|
-
"@nola-lang/runtime": "0.1.
|
|
55
|
-
"create-nola-lang": "0.1.
|
|
47
|
+
"@nola-lang/ast": "0.1.12",
|
|
48
|
+
"@nola-lang/compiler": "0.1.12",
|
|
49
|
+
"@nola-lang/console": "0.1.12",
|
|
50
|
+
"@nola-lang/core": "0.1.12",
|
|
51
|
+
"@nola-lang/derive": "0.1.12",
|
|
52
|
+
"@nola-lang/node-loader": "0.1.12",
|
|
53
|
+
"@nola-lang/parser": "0.1.12",
|
|
54
|
+
"@nola-lang/runtime": "0.1.12",
|
|
55
|
+
"create-nola-lang": "0.1.12",
|
|
56
56
|
"esbuild": "^0.25.0",
|
|
57
57
|
"typescript": "^5.6.0"
|
|
58
58
|
},
|