nola-lang 0.1.10 → 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/console.js +1 -1
- package/dist/init.d.ts +1 -1
- package/dist/key.js +1 -1
- package/dist/tshost.js +7 -0
- package/package.json +10 -10
package/dist/console.js
CHANGED
|
@@ -33,7 +33,7 @@ export function formatConsoleBanner(info, p = plain) {
|
|
|
33
33
|
`${p.dim("Local:")} ${p.command(info.url)}`,
|
|
34
34
|
`${p.dim("Home:")} ${p.path(info.home)}`,
|
|
35
35
|
"",
|
|
36
|
-
p.dim(`Enable tracing with \`telemetry:
|
|
36
|
+
p.dim(`Enable tracing with \`telemetry: "${info.url}"\` in nola.config.ts`),
|
|
37
37
|
"",
|
|
38
38
|
p.dim("Press Ctrl+C to stop"),
|
|
39
39
|
].join("\n");
|
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/key.js
CHANGED
|
@@ -56,7 +56,7 @@ export async function cmdKey(opts = {}) {
|
|
|
56
56
|
out(NOT_WRITTEN);
|
|
57
57
|
return 0;
|
|
58
58
|
}
|
|
59
|
-
out(`${replace ? "Replaced in" : "Added to"} .env.`);
|
|
59
|
+
out(`${replace ? "Replaced in" : "Added to"} .env. Use it with \`model: "nola"\` in nola.config.ts.`);
|
|
60
60
|
return 0;
|
|
61
61
|
}
|
|
62
62
|
//# sourceMappingURL=key.js.map
|
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
|
},
|