@coderyo/pine-lite 1.0.0-rc.2

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.
@@ -0,0 +1,15 @@
1
+ interface PineVmResult {
2
+ plots: number[];
3
+ }
4
+ /** Minimal stack VM stub (PR-18b) — no user scripts executed by default. */
5
+ declare function runPineVm(ir: NonNullable<PineCompileResult['ir']>, length: number): PineVmResult;
6
+
7
+ /** Pine-lite compile-only skeleton (PR-18a) */
8
+ interface PineCompileResult {
9
+ ok: boolean;
10
+ errors: string[];
11
+ ir?: unknown;
12
+ }
13
+ declare function compilePineLite(_source: string): PineCompileResult;
14
+
15
+ export { type PineCompileResult, type PineVmResult, compilePineLite, runPineVm };
package/dist/index.js ADDED
@@ -0,0 +1,16 @@
1
+ // src/vm.ts
2
+ function runPineVm(ir, length) {
3
+ const plots = Array.from({ length }, (_, i) => Math.sin(i * 0.05));
4
+ void ir;
5
+ return { plots };
6
+ }
7
+
8
+ // src/index.ts
9
+ function compilePineLite(_source) {
10
+ return { ok: true, errors: [], ir: { version: 0, plots: [] } };
11
+ }
12
+ export {
13
+ compilePineLite,
14
+ runPineVm
15
+ };
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/vm.ts","../src/index.ts"],"sourcesContent":["import type { PineCompileResult } from './index.js';\n\nexport interface PineVmResult {\n plots: number[];\n}\n\n/** Minimal stack VM stub (PR-18b) — no user scripts executed by default. */\nexport function runPineVm(ir: NonNullable<PineCompileResult['ir']>, length: number): PineVmResult {\n const plots = Array.from({ length }, (_, i) => Math.sin(i * 0.05));\n void ir;\n return { plots };\n}","/** Pine-lite compile-only skeleton (PR-18a) */\nexport interface PineCompileResult {\n ok: boolean;\n errors: string[];\n ir?: unknown;\n}\n\nexport function compilePineLite(_source: string): PineCompileResult {\n return { ok: true, errors: [], ir: { version: 0, plots: [] } };\n}\n\nexport * from './vm.js';"],"mappings":";AAOO,SAAS,UAAU,IAA0C,QAA8B;AAChG,QAAM,QAAQ,MAAM,KAAK,EAAE,OAAO,GAAG,CAAC,GAAG,MAAM,KAAK,IAAI,IAAI,IAAI,CAAC;AACjE,OAAK;AACL,SAAO,EAAE,MAAM;AACjB;;;ACJO,SAAS,gBAAgB,SAAoC;AAClE,SAAO,EAAE,IAAI,MAAM,QAAQ,CAAC,GAAG,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,EAAE,EAAE;AAC/D;","names":[]}
package/package.json ADDED
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "@coderyo/pine-lite",
3
+ "version": "1.0.0-rc.2",
4
+ "license": "MIT",
5
+ "type": "module",
6
+ "exports": {
7
+ ".": {
8
+ "types": "./dist/index.d.ts",
9
+ "import": "./dist/index.js"
10
+ }
11
+ },
12
+ "devDependencies": {
13
+ "tsup": "^8.5.0",
14
+ "typescript": "^5.8.3",
15
+ "vitest": "^3.2.4",
16
+ "@coderyo/eslint-config": "0.0.0",
17
+ "@coderyo/tsconfig": "0.0.0"
18
+ },
19
+ "files": [
20
+ "dist"
21
+ ],
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "git+https://github.com/CodeRyoStudio/tradview.git",
25
+ "directory": "packages/pine-lite"
26
+ },
27
+ "publishConfig": {
28
+ "access": "public"
29
+ },
30
+ "scripts": {
31
+ "build": "tsup",
32
+ "test": "vitest run --passWithNoTests",
33
+ "lint": "eslint src",
34
+ "typecheck": "tsc --noEmit"
35
+ }
36
+ }