@tsplc/compiler 0.5.13 → 0.5.14

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 (83) hide show
  1. package/dist/codesys.js +2 -2
  2. package/dist/codesys.js.map +1 -1
  3. package/package.json +9 -9
  4. package/src/runtime/.runtime-65O4JH/server/router.ts +0 -17
  5. package/src/runtime/.runtime-65O4JH/src/cell.ts +0 -45
  6. package/src/runtime/.runtime-65O4JH/src/controller.ts +0 -58
  7. package/src/runtime/.runtime-65O4JH/src/lane.ts +0 -6
  8. package/src/runtime/.runtime-65O4JH/src/main.ts +0 -11
  9. package/src/runtime/.runtime-65O4JH/src/services.ts +0 -8
  10. package/src/runtime/.runtime-65O4JH/tsconfig.json +0 -13
  11. package/src/runtime/.runtime-65O4JH/tsplc.config.ts +0 -31
  12. package/src/runtime/.runtime-Brw2kO/server/router.ts +0 -17
  13. package/src/runtime/.runtime-Brw2kO/src/cell.ts +0 -45
  14. package/src/runtime/.runtime-Brw2kO/src/controller.ts +0 -58
  15. package/src/runtime/.runtime-Brw2kO/src/lane.ts +0 -6
  16. package/src/runtime/.runtime-Brw2kO/src/main.ts +0 -11
  17. package/src/runtime/.runtime-Brw2kO/src/services.ts +0 -8
  18. package/src/runtime/.runtime-Brw2kO/tsconfig.json +0 -13
  19. package/src/runtime/.runtime-Brw2kO/tsplc.config.ts +0 -31
  20. package/src/runtime/.runtime-NHfu1D/server/router.ts +0 -17
  21. package/src/runtime/.runtime-NHfu1D/src/cell.ts +0 -45
  22. package/src/runtime/.runtime-NHfu1D/src/controller.ts +0 -58
  23. package/src/runtime/.runtime-NHfu1D/src/lane.ts +0 -6
  24. package/src/runtime/.runtime-NHfu1D/src/main.ts +0 -11
  25. package/src/runtime/.runtime-NHfu1D/src/services.ts +0 -8
  26. package/src/runtime/.runtime-NHfu1D/tsconfig.json +0 -13
  27. package/src/runtime/.runtime-NHfu1D/tsplc.config.ts +0 -31
  28. package/src/runtime/.runtime-VaUSOu/server/router.ts +0 -17
  29. package/src/runtime/.runtime-VaUSOu/src/cell.ts +0 -45
  30. package/src/runtime/.runtime-VaUSOu/src/controller.ts +0 -58
  31. package/src/runtime/.runtime-VaUSOu/src/lane.ts +0 -6
  32. package/src/runtime/.runtime-VaUSOu/src/main.ts +0 -11
  33. package/src/runtime/.runtime-VaUSOu/src/services.ts +0 -8
  34. package/src/runtime/.runtime-VaUSOu/tsconfig.json +0 -13
  35. package/src/runtime/.runtime-VaUSOu/tsplc.config.ts +0 -31
  36. package/src/runtime/.runtime-WbtNvR/server/router.ts +0 -17
  37. package/src/runtime/.runtime-WbtNvR/src/cell.ts +0 -45
  38. package/src/runtime/.runtime-WbtNvR/src/controller.ts +0 -58
  39. package/src/runtime/.runtime-WbtNvR/src/lane.ts +0 -6
  40. package/src/runtime/.runtime-WbtNvR/src/main.ts +0 -11
  41. package/src/runtime/.runtime-WbtNvR/src/services.ts +0 -8
  42. package/src/runtime/.runtime-WbtNvR/tsconfig.json +0 -13
  43. package/src/runtime/.runtime-WbtNvR/tsplc.config.ts +0 -31
  44. package/src/runtime/.runtime-opcua-GMPUt8/server/router.ts +0 -17
  45. package/src/runtime/.runtime-opcua-GMPUt8/src/cell.ts +0 -45
  46. package/src/runtime/.runtime-opcua-GMPUt8/src/controller.ts +0 -58
  47. package/src/runtime/.runtime-opcua-GMPUt8/src/lane.ts +0 -6
  48. package/src/runtime/.runtime-opcua-GMPUt8/src/main.ts +0 -11
  49. package/src/runtime/.runtime-opcua-GMPUt8/src/services.ts +0 -8
  50. package/src/runtime/.runtime-opcua-GMPUt8/tsconfig.json +0 -13
  51. package/src/runtime/.runtime-opcua-GMPUt8/tsplc.config.ts +0 -31
  52. package/src/runtime/.runtime-opcua-UwafxO/server/router.ts +0 -17
  53. package/src/runtime/.runtime-opcua-UwafxO/src/cell.ts +0 -45
  54. package/src/runtime/.runtime-opcua-UwafxO/src/controller.ts +0 -58
  55. package/src/runtime/.runtime-opcua-UwafxO/src/lane.ts +0 -6
  56. package/src/runtime/.runtime-opcua-UwafxO/src/main.ts +0 -11
  57. package/src/runtime/.runtime-opcua-UwafxO/src/services.ts +0 -8
  58. package/src/runtime/.runtime-opcua-UwafxO/tsconfig.json +0 -13
  59. package/src/runtime/.runtime-opcua-UwafxO/tsplc.config.ts +0 -31
  60. package/src/runtime/.runtime-opcua-ecaSee/server/router.ts +0 -17
  61. package/src/runtime/.runtime-opcua-ecaSee/src/cell.ts +0 -45
  62. package/src/runtime/.runtime-opcua-ecaSee/src/controller.ts +0 -58
  63. package/src/runtime/.runtime-opcua-ecaSee/src/lane.ts +0 -6
  64. package/src/runtime/.runtime-opcua-ecaSee/src/main.ts +0 -11
  65. package/src/runtime/.runtime-opcua-ecaSee/src/services.ts +0 -8
  66. package/src/runtime/.runtime-opcua-ecaSee/tsconfig.json +0 -13
  67. package/src/runtime/.runtime-opcua-ecaSee/tsplc.config.ts +0 -31
  68. package/src/runtime/.runtime-opcua-y91UCm/server/router.ts +0 -17
  69. package/src/runtime/.runtime-opcua-y91UCm/src/cell.ts +0 -45
  70. package/src/runtime/.runtime-opcua-y91UCm/src/controller.ts +0 -58
  71. package/src/runtime/.runtime-opcua-y91UCm/src/lane.ts +0 -6
  72. package/src/runtime/.runtime-opcua-y91UCm/src/main.ts +0 -11
  73. package/src/runtime/.runtime-opcua-y91UCm/src/services.ts +0 -8
  74. package/src/runtime/.runtime-opcua-y91UCm/tsconfig.json +0 -13
  75. package/src/runtime/.runtime-opcua-y91UCm/tsplc.config.ts +0 -31
  76. package/src/runtime/.runtime-ybIxYh/server/router.ts +0 -17
  77. package/src/runtime/.runtime-ybIxYh/src/cell.ts +0 -45
  78. package/src/runtime/.runtime-ybIxYh/src/controller.ts +0 -58
  79. package/src/runtime/.runtime-ybIxYh/src/lane.ts +0 -6
  80. package/src/runtime/.runtime-ybIxYh/src/main.ts +0 -11
  81. package/src/runtime/.runtime-ybIxYh/src/services.ts +0 -8
  82. package/src/runtime/.runtime-ybIxYh/tsconfig.json +0 -13
  83. package/src/runtime/.runtime-ybIxYh/tsplc.config.ts +0 -31
@@ -1,58 +0,0 @@
1
- import { telemetry } from "@tsplc/compiler/telemetry";
2
- import type { Cell } from "./cell";
3
- import { Lane } from "./lane";
4
- import type { ReportReply, Services } from "./services";
5
-
6
- export class CellController {
7
- private sending = false;
8
-
9
- constructor(
10
- private readonly cell: Cell,
11
- private readonly services: Services,
12
- ) {}
13
-
14
- scan(): void {
15
- const cell = this.cell;
16
- cell.scans += 1;
17
- for (const card of cell.cards) {
18
- card.output.motion = card.input.sensor && cell.mode === "running";
19
- card.output.speed = card.input.sensor ? cell.settings.speed : 0;
20
- }
21
- if (cell.start) {
22
- cell.start = false;
23
- cell.mode = "running";
24
- }
25
- if (cell.bump) {
26
- cell.bump = false;
27
- cell.count = cell.count + 1;
28
- }
29
- cell.lastLane = undefined;
30
- if (cell.lanes[Lane.Left]) {
31
- cell.lastLane = Lane.Left;
32
- }
33
- if (cell.lanes[Lane.Right]) {
34
- cell.lastLane = Lane.Right;
35
- }
36
- if (cell.report && !this.sending) {
37
- cell.report = false;
38
- void this.send();
39
- }
40
- }
41
-
42
- private async send(): Promise<void> {
43
- this.sending = true;
44
- try {
45
- const reply: ReportReply = await this.services.cell.report({
46
- count: this.cell.count,
47
- running: this.cell.mode === "running",
48
- });
49
- this.cell.replies += 1;
50
- this.cell.answer = reply.answer;
51
- telemetry.info("Report answered", { answer: reply.answer });
52
- } catch (error) {
53
- this.cell.failures += 1;
54
- telemetry.captureException(error);
55
- }
56
- this.sending = false;
57
- }
58
- }
@@ -1,6 +0,0 @@
1
- /** Where the cell sends a part. */
2
- export enum Lane {
3
- Unknown = 0,
4
- Left = 1,
5
- Right = 2,
6
- }
@@ -1,11 +0,0 @@
1
- import { createCell } from "./cell";
2
- import { CellController } from "./controller";
3
- import { services } from "./services";
4
-
5
- export const cell = createCell();
6
- const controller = new CellController(cell, services);
7
-
8
- /** One PLC scan. */
9
- export function main(): void {
10
- controller.scan();
11
- }
@@ -1,8 +0,0 @@
1
- import type { inferRouterOutputs } from "@trpc/server";
2
- import { createServiceClient } from "@tsplc/compiler/async";
3
- import type { AppRouter } from "../server/router";
4
-
5
- /** The server procedures the program calls. */
6
- export const services = createServiceClient<AppRouter>();
7
- export type Services = typeof services;
8
- export type ReportReply = inferRouterOutputs<AppRouter>["cell"]["report"];
@@ -1,13 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "strict": true,
4
- "target": "ES2022",
5
- "module": "ESNext",
6
- "moduleResolution": "Bundler",
7
- "noEmit": true,
8
- "skipLibCheck": true,
9
- "types": ["bun", "@tsplc/compiler/globals"],
10
- "allowImportingTsExtensions": true
11
- },
12
- "include": ["src/**/*.ts", "server/**/*.ts"]
13
- }
@@ -1,31 +0,0 @@
1
- import { defineConfig, ms } from "@tsplc/config";
2
-
3
- /** A cell whose plain TypeScript program the Bun runtime runs in the compiler's tests. */
4
- export default defineConfig({
5
- name: "BunRuntimeCell",
6
- backend: "codesys",
7
- build: { outDir: "build/codesys", symbols: true },
8
- codesys: {
9
- http: {
10
- timeoutMs: 2000,
11
- credentials: [
12
- { originEnv: "CELL_SERVER_URL", bearerTokenEnv: "CELL_SERVER_TOKEN" },
13
- ],
14
- },
15
- programNames: { main: "Main" },
16
- },
17
- compiler: {
18
- programs: { main: { module: "src/main.ts", export: "main" } },
19
- },
20
- tasks: [
21
- {
22
- name: "MainTask",
23
- priority: 1,
24
- schedule: { kind: "cyclic", interval: ms(20) },
25
- programs: ["main"],
26
- },
27
- ],
28
- publish: { development: ["cell"], production: ["cell"] },
29
- server: { transport: "http", baseUrlEnv: "CELL_SERVER_URL" },
30
- typegen: { dir: "generated" },
31
- });
@@ -1,17 +0,0 @@
1
- import { initTRPC } from "@trpc/server";
2
- import { iec, type PlcMeta } from "@tsplc/server";
3
- import { z } from "zod";
4
-
5
- const api = initTRPC.meta<PlcMeta>().create();
6
- /** Callable by the PLC through createServiceClient. */
7
- const plcProcedure = api.procedure.meta({ plc: true });
8
-
9
- export const appRouter = api.router({
10
- cell: api.router({
11
- report: plcProcedure
12
- .input(z.strictObject({ count: iec.UINT(), running: z.boolean() }))
13
- .output(z.strictObject({ answer: iec.DINT() }))
14
- .mutation(({ input }) => ({ answer: input.count * 2 + 1 })),
15
- }),
16
- });
17
- export type AppRouter = typeof appRouter;
@@ -1,45 +0,0 @@
1
- import { retain } from "@tsplc/compiler/retain";
2
- import { Lane } from "./lane";
3
-
4
- export type Mode = "idle" | "running";
5
-
6
- export interface Card {
7
- input: { sensor: BOOL };
8
- output: { motion: BOOL; speed: INT };
9
- }
10
-
11
- /** The cell's IO, its operator's controls and its counts: what the program publishes. */
12
- export interface Cell {
13
- cards: Card[];
14
- mode: Mode;
15
- start: BOOL;
16
- bump: BOOL;
17
- count: UINT;
18
- scans: UDINT;
19
- lanes: Record<Lane, BOOL>;
20
- lastLane: Lane | undefined;
21
- report: BOOL;
22
- replies: UDINT;
23
- answer: DINT;
24
- failures: UDINT;
25
- settings: { speed: INT };
26
- }
27
-
28
- export const createCell = (): Cell => ({
29
- cards: Array.from({ length: 3 }, () => ({
30
- input: { sensor: false },
31
- output: { motion: false, speed: 0 },
32
- })),
33
- mode: "idle",
34
- start: false,
35
- bump: false,
36
- count: 0,
37
- scans: 0,
38
- lanes: { [Lane.Unknown]: false, [Lane.Left]: false, [Lane.Right]: false },
39
- lastLane: undefined,
40
- report: false,
41
- replies: 0,
42
- answer: 0,
43
- failures: 0,
44
- settings: retain({ speed: 50 }),
45
- });
@@ -1,58 +0,0 @@
1
- import { telemetry } from "@tsplc/compiler/telemetry";
2
- import type { Cell } from "./cell";
3
- import { Lane } from "./lane";
4
- import type { ReportReply, Services } from "./services";
5
-
6
- export class CellController {
7
- private sending = false;
8
-
9
- constructor(
10
- private readonly cell: Cell,
11
- private readonly services: Services,
12
- ) {}
13
-
14
- scan(): void {
15
- const cell = this.cell;
16
- cell.scans += 1;
17
- for (const card of cell.cards) {
18
- card.output.motion = card.input.sensor && cell.mode === "running";
19
- card.output.speed = card.input.sensor ? cell.settings.speed : 0;
20
- }
21
- if (cell.start) {
22
- cell.start = false;
23
- cell.mode = "running";
24
- }
25
- if (cell.bump) {
26
- cell.bump = false;
27
- cell.count = cell.count + 1;
28
- }
29
- cell.lastLane = undefined;
30
- if (cell.lanes[Lane.Left]) {
31
- cell.lastLane = Lane.Left;
32
- }
33
- if (cell.lanes[Lane.Right]) {
34
- cell.lastLane = Lane.Right;
35
- }
36
- if (cell.report && !this.sending) {
37
- cell.report = false;
38
- void this.send();
39
- }
40
- }
41
-
42
- private async send(): Promise<void> {
43
- this.sending = true;
44
- try {
45
- const reply: ReportReply = await this.services.cell.report({
46
- count: this.cell.count,
47
- running: this.cell.mode === "running",
48
- });
49
- this.cell.replies += 1;
50
- this.cell.answer = reply.answer;
51
- telemetry.info("Report answered", { answer: reply.answer });
52
- } catch (error) {
53
- this.cell.failures += 1;
54
- telemetry.captureException(error);
55
- }
56
- this.sending = false;
57
- }
58
- }
@@ -1,6 +0,0 @@
1
- /** Where the cell sends a part. */
2
- export enum Lane {
3
- Unknown = 0,
4
- Left = 1,
5
- Right = 2,
6
- }
@@ -1,11 +0,0 @@
1
- import { createCell } from "./cell";
2
- import { CellController } from "./controller";
3
- import { services } from "./services";
4
-
5
- export const cell = createCell();
6
- const controller = new CellController(cell, services);
7
-
8
- /** One PLC scan. */
9
- export function main(): void {
10
- controller.scan();
11
- }
@@ -1,8 +0,0 @@
1
- import type { inferRouterOutputs } from "@trpc/server";
2
- import { createServiceClient } from "@tsplc/compiler/async";
3
- import type { AppRouter } from "../server/router";
4
-
5
- /** The server procedures the program calls. */
6
- export const services = createServiceClient<AppRouter>();
7
- export type Services = typeof services;
8
- export type ReportReply = inferRouterOutputs<AppRouter>["cell"]["report"];
@@ -1,13 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "strict": true,
4
- "target": "ES2022",
5
- "module": "ESNext",
6
- "moduleResolution": "Bundler",
7
- "noEmit": true,
8
- "skipLibCheck": true,
9
- "types": ["bun", "@tsplc/compiler/globals"],
10
- "allowImportingTsExtensions": true
11
- },
12
- "include": ["src/**/*.ts", "server/**/*.ts"]
13
- }
@@ -1,31 +0,0 @@
1
- import { defineConfig, ms } from "@tsplc/config";
2
-
3
- /** A cell whose plain TypeScript program the Bun runtime runs in the compiler's tests. */
4
- export default defineConfig({
5
- name: "BunRuntimeCell",
6
- backend: "codesys",
7
- build: { outDir: "build/codesys", symbols: true },
8
- codesys: {
9
- http: {
10
- timeoutMs: 2000,
11
- credentials: [
12
- { originEnv: "CELL_SERVER_URL", bearerTokenEnv: "CELL_SERVER_TOKEN" },
13
- ],
14
- },
15
- programNames: { main: "Main" },
16
- },
17
- compiler: {
18
- programs: { main: { module: "src/main.ts", export: "main" } },
19
- },
20
- tasks: [
21
- {
22
- name: "MainTask",
23
- priority: 1,
24
- schedule: { kind: "cyclic", interval: ms(20) },
25
- programs: ["main"],
26
- },
27
- ],
28
- publish: { development: ["cell"], production: ["cell"] },
29
- server: { transport: "http", baseUrlEnv: "CELL_SERVER_URL" },
30
- typegen: { dir: "generated" },
31
- });
@@ -1,17 +0,0 @@
1
- import { initTRPC } from "@trpc/server";
2
- import { iec, type PlcMeta } from "@tsplc/server";
3
- import { z } from "zod";
4
-
5
- const api = initTRPC.meta<PlcMeta>().create();
6
- /** Callable by the PLC through createServiceClient. */
7
- const plcProcedure = api.procedure.meta({ plc: true });
8
-
9
- export const appRouter = api.router({
10
- cell: api.router({
11
- report: plcProcedure
12
- .input(z.strictObject({ count: iec.UINT(), running: z.boolean() }))
13
- .output(z.strictObject({ answer: iec.DINT() }))
14
- .mutation(({ input }) => ({ answer: input.count * 2 + 1 })),
15
- }),
16
- });
17
- export type AppRouter = typeof appRouter;
@@ -1,45 +0,0 @@
1
- import { retain } from "@tsplc/compiler/retain";
2
- import { Lane } from "./lane";
3
-
4
- export type Mode = "idle" | "running";
5
-
6
- export interface Card {
7
- input: { sensor: BOOL };
8
- output: { motion: BOOL; speed: INT };
9
- }
10
-
11
- /** The cell's IO, its operator's controls and its counts: what the program publishes. */
12
- export interface Cell {
13
- cards: Card[];
14
- mode: Mode;
15
- start: BOOL;
16
- bump: BOOL;
17
- count: UINT;
18
- scans: UDINT;
19
- lanes: Record<Lane, BOOL>;
20
- lastLane: Lane | undefined;
21
- report: BOOL;
22
- replies: UDINT;
23
- answer: DINT;
24
- failures: UDINT;
25
- settings: { speed: INT };
26
- }
27
-
28
- export const createCell = (): Cell => ({
29
- cards: Array.from({ length: 3 }, () => ({
30
- input: { sensor: false },
31
- output: { motion: false, speed: 0 },
32
- })),
33
- mode: "idle",
34
- start: false,
35
- bump: false,
36
- count: 0,
37
- scans: 0,
38
- lanes: { [Lane.Unknown]: false, [Lane.Left]: false, [Lane.Right]: false },
39
- lastLane: undefined,
40
- report: false,
41
- replies: 0,
42
- answer: 0,
43
- failures: 0,
44
- settings: retain({ speed: 50 }),
45
- });
@@ -1,58 +0,0 @@
1
- import { telemetry } from "@tsplc/compiler/telemetry";
2
- import type { Cell } from "./cell";
3
- import { Lane } from "./lane";
4
- import type { ReportReply, Services } from "./services";
5
-
6
- export class CellController {
7
- private sending = false;
8
-
9
- constructor(
10
- private readonly cell: Cell,
11
- private readonly services: Services,
12
- ) {}
13
-
14
- scan(): void {
15
- const cell = this.cell;
16
- cell.scans += 1;
17
- for (const card of cell.cards) {
18
- card.output.motion = card.input.sensor && cell.mode === "running";
19
- card.output.speed = card.input.sensor ? cell.settings.speed : 0;
20
- }
21
- if (cell.start) {
22
- cell.start = false;
23
- cell.mode = "running";
24
- }
25
- if (cell.bump) {
26
- cell.bump = false;
27
- cell.count = cell.count + 1;
28
- }
29
- cell.lastLane = undefined;
30
- if (cell.lanes[Lane.Left]) {
31
- cell.lastLane = Lane.Left;
32
- }
33
- if (cell.lanes[Lane.Right]) {
34
- cell.lastLane = Lane.Right;
35
- }
36
- if (cell.report && !this.sending) {
37
- cell.report = false;
38
- void this.send();
39
- }
40
- }
41
-
42
- private async send(): Promise<void> {
43
- this.sending = true;
44
- try {
45
- const reply: ReportReply = await this.services.cell.report({
46
- count: this.cell.count,
47
- running: this.cell.mode === "running",
48
- });
49
- this.cell.replies += 1;
50
- this.cell.answer = reply.answer;
51
- telemetry.info("Report answered", { answer: reply.answer });
52
- } catch (error) {
53
- this.cell.failures += 1;
54
- telemetry.captureException(error);
55
- }
56
- this.sending = false;
57
- }
58
- }
@@ -1,6 +0,0 @@
1
- /** Where the cell sends a part. */
2
- export enum Lane {
3
- Unknown = 0,
4
- Left = 1,
5
- Right = 2,
6
- }
@@ -1,11 +0,0 @@
1
- import { createCell } from "./cell";
2
- import { CellController } from "./controller";
3
- import { services } from "./services";
4
-
5
- export const cell = createCell();
6
- const controller = new CellController(cell, services);
7
-
8
- /** One PLC scan. */
9
- export function main(): void {
10
- controller.scan();
11
- }
@@ -1,8 +0,0 @@
1
- import type { inferRouterOutputs } from "@trpc/server";
2
- import { createServiceClient } from "@tsplc/compiler/async";
3
- import type { AppRouter } from "../server/router";
4
-
5
- /** The server procedures the program calls. */
6
- export const services = createServiceClient<AppRouter>();
7
- export type Services = typeof services;
8
- export type ReportReply = inferRouterOutputs<AppRouter>["cell"]["report"];
@@ -1,13 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "strict": true,
4
- "target": "ES2022",
5
- "module": "ESNext",
6
- "moduleResolution": "Bundler",
7
- "noEmit": true,
8
- "skipLibCheck": true,
9
- "types": ["bun", "@tsplc/compiler/globals"],
10
- "allowImportingTsExtensions": true
11
- },
12
- "include": ["src/**/*.ts", "server/**/*.ts"]
13
- }
@@ -1,31 +0,0 @@
1
- import { defineConfig, ms } from "@tsplc/config";
2
-
3
- /** A cell whose plain TypeScript program the Bun runtime runs in the compiler's tests. */
4
- export default defineConfig({
5
- name: "BunRuntimeCell",
6
- backend: "codesys",
7
- build: { outDir: "build/codesys", symbols: true },
8
- codesys: {
9
- http: {
10
- timeoutMs: 2000,
11
- credentials: [
12
- { originEnv: "CELL_SERVER_URL", bearerTokenEnv: "CELL_SERVER_TOKEN" },
13
- ],
14
- },
15
- programNames: { main: "Main" },
16
- },
17
- compiler: {
18
- programs: { main: { module: "src/main.ts", export: "main" } },
19
- },
20
- tasks: [
21
- {
22
- name: "MainTask",
23
- priority: 1,
24
- schedule: { kind: "cyclic", interval: ms(20) },
25
- programs: ["main"],
26
- },
27
- ],
28
- publish: { development: ["cell"], production: ["cell"] },
29
- server: { transport: "http", baseUrlEnv: "CELL_SERVER_URL" },
30
- typegen: { dir: "generated" },
31
- });