toilscript 0.1.63 → 0.1.65

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "imports": {
3
- "toilscript": "https://cdn.jsdelivr.net/npm/toilscript@0.1.63/dist/toilscript.js",
4
- "toilscript/cli": "https://cdn.jsdelivr.net/npm/toilscript@0.1.63/dist/cli.js",
3
+ "toilscript": "https://cdn.jsdelivr.net/npm/toilscript@0.1.65/dist/toilscript.js",
4
+ "toilscript/cli": "https://cdn.jsdelivr.net/npm/toilscript@0.1.65/dist/cli.js",
5
5
  "binaryen": "https://cdn.jsdelivr.net/npm/binaryen@130.0.0/index.js",
6
6
  "long": "https://cdn.jsdelivr.net/npm/long@5.3.2/index.js"
7
7
  }
@@ -611,7 +611,8 @@ declare module "types:toilscript/src/diagnosticMessages.generated" {
611
611
  Stream_connect_handler_0_has_an_invalid_signature = 9014,
612
612
  Stream_message_handler_0_has_an_invalid_signature = 9015,
613
613
  Stream_close_handler_0_has_an_invalid_signature = 9016,
614
- Stream_disconnect_handler_0_has_an_invalid_signature = 9017
614
+ Stream_disconnect_handler_0_has_an_invalid_signature = 9017,
615
+ Host_import_0_is_not_available_in_a_cold_daemon_artifact_use_the_server_Log_API = 9018
615
616
  }
616
617
  /** Translates a diagnostic code to its respective string. */
617
618
  export function diagnosticCodeToString(code: DiagnosticCode): string;
@@ -3019,11 +3020,11 @@ declare module "types:toilscript/src/parser" {
3019
3020
  getDependee(dependent: string): string | null;
3020
3021
  /** Finishes parsing. */
3021
3022
  finish(): void;
3022
- /** Synthesize the hot/default module-level `derive_run(derive_id)` export for
3023
+ /** Synthesize the module-level `derive_run(derive_id)` export for
3023
3024
  * `@database` classes with `@derive` methods. Runs before element creation
3024
3025
  * from `initializeProgram`, so generated members/exports are compiled as
3025
- * ordinary program symbols. Cold artifacts intentionally do not export
3026
- * request-path derive runners and do not emit `toildb.derives`. */
3026
+ * ordinary program symbols. Cold artifacts carry the same materializers so
3027
+ * daemon writes can refresh their views without waiting for a request. */
3027
3028
  weaveDeriveHandlers(): void;
3028
3029
  weaveDataMigrations(): void;
3029
3030
  /** Enforce the migration-file convention (folder AND extension): every `@migrate`
@@ -4656,7 +4657,7 @@ declare module "types:toilscript/src/dbcatalog" {
4656
4657
  /** Build the `toildaemon.catalog` section bytes, or `null` if the program
4657
4658
  * declares no `@daemon` class. Per Part 5 (LE):
4658
4659
  *
4659
- * u16 format_version = 1
4660
+ * u16 format_version = 1 or 2 (2 when a scheduled task is @job)
4660
4661
  * u8 has_daemon
4661
4662
  * u16 n_scheduled
4662
4663
  * per task:
@@ -4672,6 +4673,7 @@ declare module "types:toilscript/src/dbcatalog" {
4672
4673
  * u8 overlap_policy (0 default)
4673
4674
  * u8 catchup_policy (0 default)
4674
4675
  * u64 gas_hint
4676
+ * u8 function_kind (v2 only: 1 Action, 2 Job; v1 is Action)
4675
4677
  *
4676
4678
  * Parses each `@scheduled(spec)` argument; fires diagnostics 9010/9011 for a
4677
4679
  * missing/non-string arg or an unparseable spec.
@@ -4689,7 +4691,7 @@ declare module "types:toilscript/src/dbcatalog" {
4689
4691
  * u16 format_version = 1
4690
4692
  * u16 n_derives
4691
4693
  * per derive:
4692
- * u16 derive_id (global declaration order in the hot/default module)
4694
+ * u16 derive_id (global declaration order in the compiled artifact)
4693
4695
  * str db_name (the @database class name; the write -> derive key)
4694
4696
  * str method_name (the @derive method, for diagnostics)
4695
4697
  */