@tsplc/compiler 0.5.3 → 0.5.4

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.
Files changed (101) hide show
  1. package/dist/bun-runtime.js.map +7 -7
  2. package/dist/cli.js.map +8 -8
  3. package/dist/codesys.js +2 -2
  4. package/dist/codesys.js.map +23 -23
  5. package/dist/elaborate-capture.js.map +1 -1
  6. package/dist/index.js.map +35 -35
  7. package/dist/ir.js.map +19 -19
  8. package/dist/project.js.map +1 -1
  9. package/dist/server-check.js.map +1 -1
  10. package/dist/telemetry.js.map +1 -1
  11. package/package.json +9 -9
  12. package/src/codesys/config.ts +2 -2
  13. package/src/codesys/debug.ts +2 -2
  14. package/src/codesys/emit.ts +10 -10
  15. package/src/codesys/engineering.ts +1 -1
  16. package/src/codesys/expressions.ts +1 -1
  17. package/src/codesys/global-lists.ts +6 -6
  18. package/src/codesys/global-names.ts +3 -3
  19. package/src/codesys/http.ts +3 -3
  20. package/src/codesys/index.ts +8 -8
  21. package/src/codesys/instrumentation.ts +9 -13
  22. package/src/codesys/io-paths.ts +1 -1
  23. package/src/codesys/manifest.ts +5 -5
  24. package/src/codesys/plan.ts +9 -9
  25. package/src/codesys/programs.ts +3 -3
  26. package/src/codesys/publication.ts +4 -4
  27. package/src/codesys/routines.ts +5 -5
  28. package/src/codesys/st-files.ts +4 -4
  29. package/src/codesys/symbols.ts +6 -6
  30. package/src/codesys/telemetry.ts +6 -6
  31. package/src/codesys/types.ts +2 -2
  32. package/src/codesys/vendor.ts +2 -2
  33. package/src/frontend/analyzer.ts +9 -9
  34. package/src/frontend/async.ts +6 -6
  35. package/src/frontend/blocks.ts +1 -1
  36. package/src/frontend/configuration.ts +4 -4
  37. package/src/frontend/const-functions.ts +2 -2
  38. package/src/frontend/cooperative.ts +1 -1
  39. package/src/frontend/coroutines.ts +6 -6
  40. package/src/frontend/elaborate/calls.ts +9 -12
  41. package/src/frontend/elaborate/capture.ts +1 -1
  42. package/src/frontend/elaborate/dialect.ts +7 -7
  43. package/src/frontend/elaborate/expressions.ts +12 -12
  44. package/src/frontend/elaborate/frame.ts +4 -4
  45. package/src/frontend/elaborate/graph.ts +1 -1
  46. package/src/frontend/elaborate/index.ts +12 -12
  47. package/src/frontend/elaborate/initializers.ts +4 -4
  48. package/src/frontend/elaborate/layouts.ts +3 -3
  49. package/src/frontend/elaborate/model.ts +1 -1
  50. package/src/frontend/elaborate/retention.ts +5 -5
  51. package/src/frontend/elaborate/specialize.ts +11 -11
  52. package/src/frontend/elaborate/statements.ts +8 -11
  53. package/src/frontend/elaborate/storage.ts +6 -11
  54. package/src/frontend/elaborate/values.ts +2 -2
  55. package/src/frontend/exposure.ts +3 -3
  56. package/src/frontend/expressions.ts +5 -5
  57. package/src/frontend/intrinsics.ts +2 -2
  58. package/src/frontend/module-graph.ts +1 -1
  59. package/src/frontend/promise-chains.ts +2 -2
  60. package/src/frontend/promises.ts +5 -5
  61. package/src/frontend/routines.ts +2 -2
  62. package/src/frontend/services.ts +3 -3
  63. package/src/frontend/statements.ts +4 -4
  64. package/src/frontend/tasks.ts +5 -10
  65. package/src/frontend/telemetry.ts +2 -2
  66. package/src/frontend/types.ts +1 -1
  67. package/src/frontend/typescript.ts +11 -15
  68. package/src/index.ts +1 -1
  69. package/src/ir/aggregates.ts +6 -6
  70. package/src/ir/allocation.ts +5 -5
  71. package/src/ir/core-model.ts +3 -3
  72. package/src/ir/declarations.ts +6 -6
  73. package/src/ir/domains.ts +3 -7
  74. package/src/ir/fold.ts +4 -9
  75. package/src/ir/index.ts +16 -16
  76. package/src/ir/layouts.ts +3 -3
  77. package/src/ir/link.ts +5 -5
  78. package/src/ir/model.ts +2 -2
  79. package/src/ir/normalization-error.ts +1 -1
  80. package/src/ir/normalize.ts +8 -8
  81. package/src/ir/numeric.ts +2 -2
  82. package/src/ir/operands.ts +2 -2
  83. package/src/ir/ranges.ts +4 -9
  84. package/src/ir/routine.ts +10 -15
  85. package/src/ir/scalars.ts +5 -5
  86. package/src/ir/share.ts +4 -4
  87. package/src/ir/temporaries.ts +4 -4
  88. package/src/project/cli.ts +3 -3
  89. package/src/project/debugger.ts +1 -1
  90. package/src/project/index.ts +1 -1
  91. package/src/project/plant.ts +2 -2
  92. package/src/project/project-commands.ts +3 -3
  93. package/src/project/project.ts +2 -2
  94. package/src/project/release.ts +2 -2
  95. package/src/project/server-check.ts +1 -1
  96. package/src/runtime/main.ts +2 -2
  97. package/src/runtime/process.ts +1 -1
  98. package/src/runtime/program.ts +2 -2
  99. package/src/runtime/retain.ts +1 -1
  100. package/src/runtime/runtime.ts +11 -16
  101. package/stdlib/telemetry.ts +2 -2
@@ -8,8 +8,8 @@
8
8
  import { readFileSync } from "node:fs";
9
9
  import { rm, writeFile } from "node:fs/promises";
10
10
  import { dirname, join } from "node:path";
11
- import { launchSchema, type RuntimeState, runtimeFiles } from "./launch.ts";
12
- import { runtimeEndpoint, startRuntime } from "./runtime.ts";
11
+ import { launchSchema, type RuntimeState, runtimeFiles } from "./launch";
12
+ import { runtimeEndpoint, startRuntime } from "./runtime";
13
13
 
14
14
  const [launchFile, port] = process.argv.slice(2);
15
15
  if (!launchFile) {
@@ -11,7 +11,7 @@ import {
11
11
  runtimeDirectory,
12
12
  runtimeFiles,
13
13
  runtimeStateSchema,
14
- } from "./launch.ts";
14
+ } from "./launch";
15
15
 
16
16
  /** How long a runtime has to start serving, and to stop. */
17
17
  const startTimeoutMs = 60_000;
@@ -1,8 +1,8 @@
1
1
  import { readFileSync, realpathSync } from "node:fs";
2
2
  import { plugin } from "bun";
3
3
  import ts from "typescript";
4
- import { withBindingRegistry } from "../frontend/elaborate/capture-protocol.ts";
5
- import { bindingNames } from "../frontend/elaborate/graph.ts";
4
+ import { withBindingRegistry } from "../frontend/elaborate/capture-protocol";
5
+ import { bindingNames } from "../frontend/elaborate/graph";
6
6
 
7
7
  /** The SDK modules a program imports, as the runtime implements them, by export name. */
8
8
  export type Sdk = Readonly<Record<string, Readonly<Record<string, unknown>>>>;
@@ -7,7 +7,7 @@ import type {
7
7
  PublishedValue,
8
8
  } from "@tsplc/opcua/server";
9
9
  import { z } from "zod";
10
- import { scalarPaths } from "./symbols.ts";
10
+ import { scalarPaths } from "./symbols";
11
11
 
12
12
  const retainedValue = z.union([
13
13
  z.boolean(),
@@ -9,22 +9,17 @@ import {
9
9
  servePublishedGlobals,
10
10
  } from "@tsplc/opcua/server";
11
11
  import { readDeclarations } from "@tsplc/typegen/declarations";
12
- import { now } from "../../stdlib/clock.ts";
13
- import { clamp, max, min } from "../../stdlib/math.ts";
14
- import { retain } from "../../stdlib/retain.ts";
15
- import { onTelemetry, telemetry } from "../../stdlib/telemetry.ts";
16
- import {
17
- createAsync,
18
- httpCall,
19
- oneLaunchAtATime,
20
- unsupported,
21
- } from "./async.ts";
22
- import { type Launch, runtimeDirectory, runtimeFiles } from "./launch.ts";
23
- import { loadProgram } from "./program.ts";
24
- import { createRetention } from "./retain.ts";
25
- import { createStorage } from "./storage.ts";
26
- import { plcGlobals, scalarPaths } from "./symbols.ts";
27
- import { createTelemetry } from "./telemetry.ts";
12
+ import { now } from "../../stdlib/clock";
13
+ import { clamp, max, min } from "../../stdlib/math";
14
+ import { retain } from "../../stdlib/retain";
15
+ import { onTelemetry, telemetry } from "../../stdlib/telemetry";
16
+ import { createAsync, httpCall, oneLaunchAtATime, unsupported } from "./async";
17
+ import { type Launch, runtimeDirectory, runtimeFiles } from "./launch";
18
+ import { loadProgram } from "./program";
19
+ import { createRetention } from "./retain";
20
+ import { createStorage } from "./storage";
21
+ import { plcGlobals, scalarPaths } from "./symbols";
22
+ import { createTelemetry } from "./telemetry";
28
23
 
29
24
  /** Where the runtime publishes OPC UA: the local CODESYS runtime's address and port. */
30
25
  export const runtimeEndpoint = { host: "127.0.0.1", port: 4840 } as const;
@@ -1,7 +1,7 @@
1
1
  import { relative } from "node:path";
2
2
  import { fileURLToPath } from "node:url";
3
- import { errorName } from "../src/ir/job-errors.ts";
4
- import { now } from "./clock.ts";
3
+ import { errorName } from "../src/ir/job-errors";
4
+ import { now } from "./clock";
5
5
 
6
6
  type Reported = Readonly<Record<string, unknown>>;
7
7
  class Text {