@mondaydotcomorg/atp-compiler 0.19.3 → 0.19.5
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/index.d.ts.map +1 -0
- package/dist/index.js.map +1 -0
- package/dist/plugin-system/create-default-compiler.d.ts.map +1 -0
- package/dist/plugin-system/create-default-compiler.js.map +1 -0
- package/dist/plugin-system/default-plugins/array-transformer-plugin.d.ts.map +1 -0
- package/dist/plugin-system/default-plugins/array-transformer-plugin.js.map +1 -0
- package/dist/plugin-system/default-plugins/detection-plugin.d.ts.map +1 -0
- package/dist/plugin-system/default-plugins/detection-plugin.js.map +1 -0
- package/dist/plugin-system/default-plugins/index.d.ts.map +1 -0
- package/dist/plugin-system/default-plugins/index.js.map +1 -0
- package/dist/plugin-system/default-plugins/loop-transformer-plugin.d.ts.map +1 -0
- package/dist/plugin-system/default-plugins/loop-transformer-plugin.js.map +1 -0
- package/dist/plugin-system/default-plugins/promise-transformer-plugin.d.ts.map +1 -0
- package/dist/plugin-system/default-plugins/promise-transformer-plugin.js.map +1 -0
- package/dist/plugin-system/examples/loop-transformer-plugin.d.ts.map +1 -0
- package/dist/plugin-system/examples/loop-transformer-plugin.js.map +1 -0
- package/dist/plugin-system/examples/security-validator-plugin.d.ts.map +1 -0
- package/dist/plugin-system/examples/security-validator-plugin.js.map +1 -0
- package/dist/plugin-system/examples/timeout-plugin.d.ts.map +1 -0
- package/dist/plugin-system/examples/timeout-plugin.js.map +1 -0
- package/dist/plugin-system/index.d.ts.map +1 -0
- package/dist/plugin-system/index.js.map +1 -0
- package/dist/plugin-system/pluggable-compiler.d.ts.map +1 -0
- package/dist/plugin-system/pluggable-compiler.js.map +1 -0
- package/dist/plugin-system/plugin-api.d.ts.map +1 -0
- package/dist/plugin-system/plugin-api.js.map +1 -0
- package/dist/runtime/batch-parallel.d.ts.map +1 -0
- package/dist/runtime/batch-parallel.js.map +1 -0
- package/dist/runtime/checkpoint-manager.d.ts.map +1 -0
- package/dist/runtime/checkpoint-manager.js.map +1 -0
- package/dist/runtime/context.d.ts.map +1 -0
- package/dist/runtime/context.js.map +1 -0
- package/dist/runtime/errors.d.ts.map +1 -0
- package/dist/runtime/errors.js.map +1 -0
- package/dist/runtime/index.d.ts.map +1 -0
- package/dist/runtime/index.js.map +1 -0
- package/dist/runtime/resumable-arrays.d.ts.map +1 -0
- package/dist/runtime/resumable-arrays.js.map +1 -0
- package/dist/runtime/resumable-loops.d.ts.map +1 -0
- package/dist/runtime/resumable-loops.js.map +1 -0
- package/dist/runtime/resumable-parallel.d.ts.map +1 -0
- package/dist/runtime/resumable-parallel.js.map +1 -0
- package/dist/transformer/array-transformer-batch.d.ts.map +1 -0
- package/dist/transformer/array-transformer-batch.js.map +1 -0
- package/dist/transformer/array-transformer-sequential.d.ts.map +1 -0
- package/dist/transformer/array-transformer-sequential.js.map +1 -0
- package/dist/transformer/array-transformer-utils.d.ts.map +1 -0
- package/dist/transformer/array-transformer-utils.js.map +1 -0
- package/dist/transformer/array-transformer-wrappers.d.ts.map +1 -0
- package/dist/transformer/array-transformer-wrappers.js.map +1 -0
- package/dist/transformer/array-transformer.d.ts.map +1 -0
- package/dist/transformer/array-transformer.js.map +1 -0
- package/dist/transformer/batch-detector.d.ts.map +1 -0
- package/dist/transformer/batch-detector.js.map +1 -0
- package/dist/transformer/batch-optimizer.d.ts.map +1 -0
- package/dist/transformer/batch-optimizer.js.map +1 -0
- package/dist/transformer/detector.d.ts.map +1 -0
- package/dist/transformer/detector.js.map +1 -0
- package/dist/transformer/index.d.ts.map +1 -0
- package/dist/transformer/index.js.map +1 -0
- package/dist/transformer/loop-transformer.d.ts.map +1 -0
- package/dist/transformer/loop-transformer.js.map +1 -0
- package/dist/transformer/promise-transformer.d.ts.map +1 -0
- package/dist/transformer/promise-transformer.js.map +1 -0
- package/dist/transformer/utils.d.ts.map +1 -0
- package/dist/transformer/utils.js.map +1 -0
- package/dist/types/compiler-interface.d.ts.map +1 -0
- package/dist/types/compiler-interface.js.map +1 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js.map +1 -0
- package/package.json +5 -5
- package/tsconfig.json +10 -3
- package/tsconfig.tsbuildinfo +1 -0
- package/dist/atp-compiler/src/index.d.ts.map +0 -1
- package/dist/atp-compiler/src/index.js.map +0 -1
- package/dist/atp-compiler/src/plugin-system/create-default-compiler.d.ts.map +0 -1
- package/dist/atp-compiler/src/plugin-system/create-default-compiler.js.map +0 -1
- package/dist/atp-compiler/src/plugin-system/default-plugins/array-transformer-plugin.d.ts.map +0 -1
- package/dist/atp-compiler/src/plugin-system/default-plugins/array-transformer-plugin.js.map +0 -1
- package/dist/atp-compiler/src/plugin-system/default-plugins/detection-plugin.d.ts.map +0 -1
- package/dist/atp-compiler/src/plugin-system/default-plugins/detection-plugin.js.map +0 -1
- package/dist/atp-compiler/src/plugin-system/default-plugins/index.d.ts.map +0 -1
- package/dist/atp-compiler/src/plugin-system/default-plugins/index.js.map +0 -1
- package/dist/atp-compiler/src/plugin-system/default-plugins/loop-transformer-plugin.d.ts.map +0 -1
- package/dist/atp-compiler/src/plugin-system/default-plugins/loop-transformer-plugin.js.map +0 -1
- package/dist/atp-compiler/src/plugin-system/default-plugins/promise-transformer-plugin.d.ts.map +0 -1
- package/dist/atp-compiler/src/plugin-system/default-plugins/promise-transformer-plugin.js.map +0 -1
- package/dist/atp-compiler/src/plugin-system/examples/loop-transformer-plugin.d.ts.map +0 -1
- package/dist/atp-compiler/src/plugin-system/examples/loop-transformer-plugin.js.map +0 -1
- package/dist/atp-compiler/src/plugin-system/examples/security-validator-plugin.d.ts.map +0 -1
- package/dist/atp-compiler/src/plugin-system/examples/security-validator-plugin.js.map +0 -1
- package/dist/atp-compiler/src/plugin-system/examples/timeout-plugin.d.ts.map +0 -1
- package/dist/atp-compiler/src/plugin-system/examples/timeout-plugin.js.map +0 -1
- package/dist/atp-compiler/src/plugin-system/index.d.ts.map +0 -1
- package/dist/atp-compiler/src/plugin-system/index.js.map +0 -1
- package/dist/atp-compiler/src/plugin-system/pluggable-compiler.d.ts.map +0 -1
- package/dist/atp-compiler/src/plugin-system/pluggable-compiler.js.map +0 -1
- package/dist/atp-compiler/src/plugin-system/plugin-api.d.ts.map +0 -1
- package/dist/atp-compiler/src/plugin-system/plugin-api.js.map +0 -1
- package/dist/atp-compiler/src/runtime/batch-parallel.d.ts.map +0 -1
- package/dist/atp-compiler/src/runtime/batch-parallel.js.map +0 -1
- package/dist/atp-compiler/src/runtime/checkpoint-manager.d.ts.map +0 -1
- package/dist/atp-compiler/src/runtime/checkpoint-manager.js.map +0 -1
- package/dist/atp-compiler/src/runtime/context.d.ts.map +0 -1
- package/dist/atp-compiler/src/runtime/context.js.map +0 -1
- package/dist/atp-compiler/src/runtime/errors.d.ts.map +0 -1
- package/dist/atp-compiler/src/runtime/errors.js.map +0 -1
- package/dist/atp-compiler/src/runtime/index.d.ts.map +0 -1
- package/dist/atp-compiler/src/runtime/index.js.map +0 -1
- package/dist/atp-compiler/src/runtime/resumable-arrays.d.ts.map +0 -1
- package/dist/atp-compiler/src/runtime/resumable-arrays.js.map +0 -1
- package/dist/atp-compiler/src/runtime/resumable-loops.d.ts.map +0 -1
- package/dist/atp-compiler/src/runtime/resumable-loops.js.map +0 -1
- package/dist/atp-compiler/src/runtime/resumable-parallel.d.ts.map +0 -1
- package/dist/atp-compiler/src/runtime/resumable-parallel.js.map +0 -1
- package/dist/atp-compiler/src/transformer/array-transformer-batch.d.ts.map +0 -1
- package/dist/atp-compiler/src/transformer/array-transformer-batch.js.map +0 -1
- package/dist/atp-compiler/src/transformer/array-transformer-sequential.d.ts.map +0 -1
- package/dist/atp-compiler/src/transformer/array-transformer-sequential.js.map +0 -1
- package/dist/atp-compiler/src/transformer/array-transformer-utils.d.ts.map +0 -1
- package/dist/atp-compiler/src/transformer/array-transformer-utils.js.map +0 -1
- package/dist/atp-compiler/src/transformer/array-transformer-wrappers.d.ts.map +0 -1
- package/dist/atp-compiler/src/transformer/array-transformer-wrappers.js.map +0 -1
- package/dist/atp-compiler/src/transformer/array-transformer.d.ts.map +0 -1
- package/dist/atp-compiler/src/transformer/array-transformer.js.map +0 -1
- package/dist/atp-compiler/src/transformer/batch-detector.d.ts.map +0 -1
- package/dist/atp-compiler/src/transformer/batch-detector.js.map +0 -1
- package/dist/atp-compiler/src/transformer/batch-optimizer.d.ts.map +0 -1
- package/dist/atp-compiler/src/transformer/batch-optimizer.js.map +0 -1
- package/dist/atp-compiler/src/transformer/detector.d.ts.map +0 -1
- package/dist/atp-compiler/src/transformer/detector.js.map +0 -1
- package/dist/atp-compiler/src/transformer/index.d.ts.map +0 -1
- package/dist/atp-compiler/src/transformer/index.js.map +0 -1
- package/dist/atp-compiler/src/transformer/loop-transformer.d.ts.map +0 -1
- package/dist/atp-compiler/src/transformer/loop-transformer.js.map +0 -1
- package/dist/atp-compiler/src/transformer/promise-transformer.d.ts.map +0 -1
- package/dist/atp-compiler/src/transformer/promise-transformer.js.map +0 -1
- package/dist/atp-compiler/src/transformer/utils.d.ts.map +0 -1
- package/dist/atp-compiler/src/transformer/utils.js.map +0 -1
- package/dist/atp-compiler/src/types/compiler-interface.d.ts.map +0 -1
- package/dist/atp-compiler/src/types/compiler-interface.js.map +0 -1
- package/dist/atp-compiler/src/types.d.ts.map +0 -1
- package/dist/atp-compiler/src/types.js.map +0 -1
- package/dist/protocol/src/auth.d.ts +0 -173
- package/dist/protocol/src/auth.d.ts.map +0 -1
- package/dist/protocol/src/auth.js +0 -202
- package/dist/protocol/src/auth.js.map +0 -1
- package/dist/protocol/src/index.d.ts +0 -7
- package/dist/protocol/src/index.d.ts.map +0 -1
- package/dist/protocol/src/index.js +0 -7
- package/dist/protocol/src/index.js.map +0 -1
- package/dist/protocol/src/oauth.d.ts +0 -63
- package/dist/protocol/src/oauth.d.ts.map +0 -1
- package/dist/protocol/src/oauth.js +0 -5
- package/dist/protocol/src/oauth.js.map +0 -1
- package/dist/protocol/src/providers.d.ts +0 -167
- package/dist/protocol/src/providers.d.ts.map +0 -1
- package/dist/protocol/src/providers.js +0 -33
- package/dist/protocol/src/providers.js.map +0 -1
- package/dist/protocol/src/schemas.d.ts +0 -6
- package/dist/protocol/src/schemas.d.ts.map +0 -1
- package/dist/protocol/src/schemas.js +0 -51
- package/dist/protocol/src/schemas.js.map +0 -1
- package/dist/protocol/src/types.d.ts +0 -514
- package/dist/protocol/src/types.d.ts.map +0 -1
- package/dist/protocol/src/types.js +0 -88
- package/dist/protocol/src/types.js.map +0 -1
- package/dist/protocol/src/validation.d.ts +0 -76
- package/dist/protocol/src/validation.d.ts.map +0 -1
- package/dist/protocol/src/validation.js +0 -129
- package/dist/protocol/src/validation.js.map +0 -1
- package/dist/provenance/src/ast/instrumentor.d.ts +0 -37
- package/dist/provenance/src/ast/instrumentor.d.ts.map +0 -1
- package/dist/provenance/src/ast/instrumentor.js +0 -299
- package/dist/provenance/src/ast/instrumentor.js.map +0 -1
- package/dist/provenance/src/index.d.ts +0 -12
- package/dist/provenance/src/index.d.ts.map +0 -1
- package/dist/provenance/src/index.js +0 -12
- package/dist/provenance/src/index.js.map +0 -1
- package/dist/provenance/src/policies/builder.d.ts +0 -36
- package/dist/provenance/src/policies/builder.d.ts.map +0 -1
- package/dist/provenance/src/policies/builder.js +0 -77
- package/dist/provenance/src/policies/builder.js.map +0 -1
- package/dist/provenance/src/policies/declarative.d.ts +0 -47
- package/dist/provenance/src/policies/declarative.d.ts.map +0 -1
- package/dist/provenance/src/policies/declarative.js +0 -170
- package/dist/provenance/src/policies/declarative.js.map +0 -1
- package/dist/provenance/src/policies/dynamic.d.ts +0 -39
- package/dist/provenance/src/policies/dynamic.d.ts.map +0 -1
- package/dist/provenance/src/policies/dynamic.js +0 -75
- package/dist/provenance/src/policies/dynamic.js.map +0 -1
- package/dist/provenance/src/policies/engine.d.ts +0 -71
- package/dist/provenance/src/policies/engine.d.ts.map +0 -1
- package/dist/provenance/src/policies/engine.js +0 -433
- package/dist/provenance/src/policies/engine.js.map +0 -1
- package/dist/provenance/src/policies/schema.d.ts +0 -270
- package/dist/provenance/src/policies/schema.d.ts.map +0 -1
- package/dist/provenance/src/policies/schema.js +0 -42
- package/dist/provenance/src/policies/schema.js.map +0 -1
- package/dist/provenance/src/registry.d.ts +0 -109
- package/dist/provenance/src/registry.d.ts.map +0 -1
- package/dist/provenance/src/registry.js +0 -518
- package/dist/provenance/src/registry.js.map +0 -1
- package/dist/provenance/src/store.d.ts +0 -53
- package/dist/provenance/src/store.d.ts.map +0 -1
- package/dist/provenance/src/store.js +0 -78
- package/dist/provenance/src/store.js.map +0 -1
- package/dist/provenance/src/tokens.d.ts +0 -49
- package/dist/provenance/src/tokens.d.ts.map +0 -1
- package/dist/provenance/src/tokens.js +0 -239
- package/dist/provenance/src/tokens.js.map +0 -1
- package/dist/provenance/src/types.d.ts +0 -150
- package/dist/provenance/src/types.d.ts.map +0 -1
- package/dist/provenance/src/types.js +0 -47
- package/dist/provenance/src/types.js.map +0 -1
- package/dist/runtime/src/approval/handler.d.ts +0 -12
- package/dist/runtime/src/approval/handler.d.ts.map +0 -1
- package/dist/runtime/src/approval/handler.js +0 -17
- package/dist/runtime/src/approval/handler.js.map +0 -1
- package/dist/runtime/src/approval/index.d.ts +0 -17
- package/dist/runtime/src/approval/index.d.ts.map +0 -1
- package/dist/runtime/src/approval/index.js +0 -95
- package/dist/runtime/src/approval/index.js.map +0 -1
- package/dist/runtime/src/approval/types.d.ts +0 -21
- package/dist/runtime/src/approval/types.d.ts.map +0 -1
- package/dist/runtime/src/approval/types.js +0 -5
- package/dist/runtime/src/approval/types.js.map +0 -1
- package/dist/runtime/src/cache/backends.d.ts +0 -39
- package/dist/runtime/src/cache/backends.d.ts.map +0 -1
- package/dist/runtime/src/cache/backends.js +0 -167
- package/dist/runtime/src/cache/backends.js.map +0 -1
- package/dist/runtime/src/cache/index.d.ts +0 -32
- package/dist/runtime/src/cache/index.d.ts.map +0 -1
- package/dist/runtime/src/cache/index.js +0 -103
- package/dist/runtime/src/cache/index.js.map +0 -1
- package/dist/runtime/src/cache/types.d.ts +0 -20
- package/dist/runtime/src/cache/types.d.ts.map +0 -1
- package/dist/runtime/src/cache/types.js +0 -2
- package/dist/runtime/src/cache/types.js.map +0 -1
- package/dist/runtime/src/embedding/index.d.ts +0 -39
- package/dist/runtime/src/embedding/index.d.ts.map +0 -1
- package/dist/runtime/src/embedding/index.js +0 -162
- package/dist/runtime/src/embedding/index.js.map +0 -1
- package/dist/runtime/src/embedding/types.d.ts +0 -28
- package/dist/runtime/src/embedding/types.d.ts.map +0 -1
- package/dist/runtime/src/embedding/types.js +0 -5
- package/dist/runtime/src/embedding/types.js.map +0 -1
- package/dist/runtime/src/embedding/utils.d.ts +0 -11
- package/dist/runtime/src/embedding/utils.d.ts.map +0 -1
- package/dist/runtime/src/embedding/utils.js +0 -30
- package/dist/runtime/src/embedding/utils.js.map +0 -1
- package/dist/runtime/src/embedding/vector-store.d.ts +0 -64
- package/dist/runtime/src/embedding/vector-store.d.ts.map +0 -1
- package/dist/runtime/src/embedding/vector-store.js +0 -142
- package/dist/runtime/src/embedding/vector-store.js.map +0 -1
- package/dist/runtime/src/index.d.ts +0 -18
- package/dist/runtime/src/index.d.ts.map +0 -1
- package/dist/runtime/src/index.js +0 -17
- package/dist/runtime/src/index.js.map +0 -1
- package/dist/runtime/src/llm/callback.d.ts +0 -13
- package/dist/runtime/src/llm/callback.d.ts.map +0 -1
- package/dist/runtime/src/llm/callback.js +0 -19
- package/dist/runtime/src/llm/callback.js.map +0 -1
- package/dist/runtime/src/llm/index.d.ts +0 -29
- package/dist/runtime/src/llm/index.d.ts.map +0 -1
- package/dist/runtime/src/llm/index.js +0 -118
- package/dist/runtime/src/llm/index.js.map +0 -1
- package/dist/runtime/src/llm/replay.d.ts +0 -122
- package/dist/runtime/src/llm/replay.d.ts.map +0 -1
- package/dist/runtime/src/llm/replay.js +0 -308
- package/dist/runtime/src/llm/replay.js.map +0 -1
- package/dist/runtime/src/llm/types.d.ts +0 -24
- package/dist/runtime/src/llm/types.d.ts.map +0 -1
- package/dist/runtime/src/llm/types.js +0 -2
- package/dist/runtime/src/llm/types.js.map +0 -1
- package/dist/runtime/src/log/index.d.ts +0 -12
- package/dist/runtime/src/log/index.d.ts.map +0 -1
- package/dist/runtime/src/log/index.js +0 -166
- package/dist/runtime/src/log/index.js.map +0 -1
- package/dist/runtime/src/log/types.d.ts +0 -19
- package/dist/runtime/src/log/types.d.ts.map +0 -1
- package/dist/runtime/src/log/types.js +0 -5
- package/dist/runtime/src/log/types.js.map +0 -1
- package/dist/runtime/src/metadata/decorators.d.ts +0 -27
- package/dist/runtime/src/metadata/decorators.d.ts.map +0 -1
- package/dist/runtime/src/metadata/decorators.js +0 -38
- package/dist/runtime/src/metadata/decorators.js.map +0 -1
- package/dist/runtime/src/metadata/generated.d.ts +0 -22
- package/dist/runtime/src/metadata/generated.d.ts.map +0 -1
- package/dist/runtime/src/metadata/generated.js +0 -290
- package/dist/runtime/src/metadata/generated.js.map +0 -1
- package/dist/runtime/src/metadata/index.d.ts +0 -24
- package/dist/runtime/src/metadata/index.d.ts.map +0 -1
- package/dist/runtime/src/metadata/index.js +0 -87
- package/dist/runtime/src/metadata/index.js.map +0 -1
- package/dist/runtime/src/metadata/types.d.ts +0 -23
- package/dist/runtime/src/metadata/types.d.ts.map +0 -1
- package/dist/runtime/src/metadata/types.js +0 -6
- package/dist/runtime/src/metadata/types.js.map +0 -1
- package/dist/runtime/src/pause/index.d.ts +0 -11
- package/dist/runtime/src/pause/index.d.ts.map +0 -1
- package/dist/runtime/src/pause/index.js +0 -15
- package/dist/runtime/src/pause/index.js.map +0 -1
- package/dist/runtime/src/pause/types.d.ts +0 -46
- package/dist/runtime/src/pause/types.d.ts.map +0 -1
- package/dist/runtime/src/pause/types.js +0 -57
- package/dist/runtime/src/pause/types.js.map +0 -1
- package/dist/runtime/src/progress/index.d.ts +0 -19
- package/dist/runtime/src/progress/index.d.ts.map +0 -1
- package/dist/runtime/src/progress/index.js +0 -61
- package/dist/runtime/src/progress/index.js.map +0 -1
- package/dist/runtime/src/progress/types.d.ts +0 -7
- package/dist/runtime/src/progress/types.d.ts.map +0 -1
- package/dist/runtime/src/progress/types.js +0 -2
- package/dist/runtime/src/progress/types.js.map +0 -1
- package/dist/runtime/src/registry.d.ts +0 -16
- package/dist/runtime/src/registry.d.ts.map +0 -1
- package/dist/runtime/src/registry.js +0 -16
- package/dist/runtime/src/registry.js.map +0 -1
- package/dist/runtime/src/utils.d.ts +0 -11
- package/dist/runtime/src/utils.d.ts.map +0 -1
- package/dist/runtime/src/utils.js +0 -31
- package/dist/runtime/src/utils.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
- /package/dist/{atp-compiler/src/index.d.ts → index.d.ts} +0 -0
- /package/dist/{atp-compiler/src/index.js → index.js} +0 -0
- /package/dist/{atp-compiler/src/plugin-system → plugin-system}/create-default-compiler.d.ts +0 -0
- /package/dist/{atp-compiler/src/plugin-system → plugin-system}/create-default-compiler.js +0 -0
- /package/dist/{atp-compiler/src/plugin-system → plugin-system}/default-plugins/array-transformer-plugin.d.ts +0 -0
- /package/dist/{atp-compiler/src/plugin-system → plugin-system}/default-plugins/array-transformer-plugin.js +0 -0
- /package/dist/{atp-compiler/src/plugin-system → plugin-system}/default-plugins/detection-plugin.d.ts +0 -0
- /package/dist/{atp-compiler/src/plugin-system → plugin-system}/default-plugins/detection-plugin.js +0 -0
- /package/dist/{atp-compiler/src/plugin-system → plugin-system}/default-plugins/index.d.ts +0 -0
- /package/dist/{atp-compiler/src/plugin-system → plugin-system}/default-plugins/index.js +0 -0
- /package/dist/{atp-compiler/src/plugin-system → plugin-system}/default-plugins/loop-transformer-plugin.d.ts +0 -0
- /package/dist/{atp-compiler/src/plugin-system → plugin-system}/default-plugins/loop-transformer-plugin.js +0 -0
- /package/dist/{atp-compiler/src/plugin-system → plugin-system}/default-plugins/promise-transformer-plugin.d.ts +0 -0
- /package/dist/{atp-compiler/src/plugin-system → plugin-system}/default-plugins/promise-transformer-plugin.js +0 -0
- /package/dist/{atp-compiler/src/plugin-system → plugin-system}/examples/loop-transformer-plugin.d.ts +0 -0
- /package/dist/{atp-compiler/src/plugin-system → plugin-system}/examples/loop-transformer-plugin.js +0 -0
- /package/dist/{atp-compiler/src/plugin-system → plugin-system}/examples/security-validator-plugin.d.ts +0 -0
- /package/dist/{atp-compiler/src/plugin-system → plugin-system}/examples/security-validator-plugin.js +0 -0
- /package/dist/{atp-compiler/src/plugin-system → plugin-system}/examples/timeout-plugin.d.ts +0 -0
- /package/dist/{atp-compiler/src/plugin-system → plugin-system}/examples/timeout-plugin.js +0 -0
- /package/dist/{atp-compiler/src/plugin-system → plugin-system}/index.d.ts +0 -0
- /package/dist/{atp-compiler/src/plugin-system → plugin-system}/index.js +0 -0
- /package/dist/{atp-compiler/src/plugin-system → plugin-system}/pluggable-compiler.d.ts +0 -0
- /package/dist/{atp-compiler/src/plugin-system → plugin-system}/pluggable-compiler.js +0 -0
- /package/dist/{atp-compiler/src/plugin-system → plugin-system}/plugin-api.d.ts +0 -0
- /package/dist/{atp-compiler/src/plugin-system → plugin-system}/plugin-api.js +0 -0
- /package/dist/{atp-compiler/src/runtime → runtime}/batch-parallel.d.ts +0 -0
- /package/dist/{atp-compiler/src/runtime → runtime}/batch-parallel.js +0 -0
- /package/dist/{atp-compiler/src/runtime → runtime}/checkpoint-manager.d.ts +0 -0
- /package/dist/{atp-compiler/src/runtime → runtime}/checkpoint-manager.js +0 -0
- /package/dist/{atp-compiler/src/runtime → runtime}/context.d.ts +0 -0
- /package/dist/{atp-compiler/src/runtime → runtime}/context.js +0 -0
- /package/dist/{atp-compiler/src/runtime → runtime}/errors.d.ts +0 -0
- /package/dist/{atp-compiler/src/runtime → runtime}/errors.js +0 -0
- /package/dist/{atp-compiler/src/runtime → runtime}/index.d.ts +0 -0
- /package/dist/{atp-compiler/src/runtime → runtime}/index.js +0 -0
- /package/dist/{atp-compiler/src/runtime → runtime}/resumable-arrays.d.ts +0 -0
- /package/dist/{atp-compiler/src/runtime → runtime}/resumable-arrays.js +0 -0
- /package/dist/{atp-compiler/src/runtime → runtime}/resumable-loops.d.ts +0 -0
- /package/dist/{atp-compiler/src/runtime → runtime}/resumable-loops.js +0 -0
- /package/dist/{atp-compiler/src/runtime → runtime}/resumable-parallel.d.ts +0 -0
- /package/dist/{atp-compiler/src/runtime → runtime}/resumable-parallel.js +0 -0
- /package/dist/{atp-compiler/src/transformer → transformer}/array-transformer-batch.d.ts +0 -0
- /package/dist/{atp-compiler/src/transformer → transformer}/array-transformer-batch.js +0 -0
- /package/dist/{atp-compiler/src/transformer → transformer}/array-transformer-sequential.d.ts +0 -0
- /package/dist/{atp-compiler/src/transformer → transformer}/array-transformer-sequential.js +0 -0
- /package/dist/{atp-compiler/src/transformer → transformer}/array-transformer-utils.d.ts +0 -0
- /package/dist/{atp-compiler/src/transformer → transformer}/array-transformer-utils.js +0 -0
- /package/dist/{atp-compiler/src/transformer → transformer}/array-transformer-wrappers.d.ts +0 -0
- /package/dist/{atp-compiler/src/transformer → transformer}/array-transformer-wrappers.js +0 -0
- /package/dist/{atp-compiler/src/transformer → transformer}/array-transformer.d.ts +0 -0
- /package/dist/{atp-compiler/src/transformer → transformer}/array-transformer.js +0 -0
- /package/dist/{atp-compiler/src/transformer → transformer}/batch-detector.d.ts +0 -0
- /package/dist/{atp-compiler/src/transformer → transformer}/batch-detector.js +0 -0
- /package/dist/{atp-compiler/src/transformer → transformer}/batch-optimizer.d.ts +0 -0
- /package/dist/{atp-compiler/src/transformer → transformer}/batch-optimizer.js +0 -0
- /package/dist/{atp-compiler/src/transformer → transformer}/detector.d.ts +0 -0
- /package/dist/{atp-compiler/src/transformer → transformer}/detector.js +0 -0
- /package/dist/{atp-compiler/src/transformer → transformer}/index.d.ts +0 -0
- /package/dist/{atp-compiler/src/transformer → transformer}/index.js +0 -0
- /package/dist/{atp-compiler/src/transformer → transformer}/loop-transformer.d.ts +0 -0
- /package/dist/{atp-compiler/src/transformer → transformer}/loop-transformer.js +0 -0
- /package/dist/{atp-compiler/src/transformer → transformer}/promise-transformer.d.ts +0 -0
- /package/dist/{atp-compiler/src/transformer → transformer}/promise-transformer.js +0 -0
- /package/dist/{atp-compiler/src/transformer → transformer}/utils.d.ts +0 -0
- /package/dist/{atp-compiler/src/transformer → transformer}/utils.js +0 -0
- /package/dist/{atp-compiler/src/types → types}/compiler-interface.d.ts +0 -0
- /package/dist/{atp-compiler/src/types → types}/compiler-interface.js +0 -0
- /package/dist/{atp-compiler/src/types.d.ts → types.d.ts} +0 -0
- /package/dist/{atp-compiler/src/types.js → types.js} +0 -0
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* LLM API - Clean refactored version with decorators and extracted modules
|
|
12
|
-
*
|
|
13
|
-
* Benefits:
|
|
14
|
-
* - No duplication between implementation and metadata
|
|
15
|
-
* - Types auto-detected from TypeScript signatures
|
|
16
|
-
* - Clean separation of concerns (replay, callback, API)
|
|
17
|
-
*/
|
|
18
|
-
import { pauseForCallback, CallbackType, LLMOperation } from '../pause/index.js';
|
|
19
|
-
import { RuntimeAPI, RuntimeMethod } from '../metadata/decorators.js';
|
|
20
|
-
import { nextSequenceNumber, getCachedResult } from './replay.js';
|
|
21
|
-
export { setClientLLMCallback, getClientLLMCallback } from './callback.js';
|
|
22
|
-
export { initializeExecutionState, setPauseForClient, shouldPauseForClient, setReplayMode, getCallSequenceNumber, nextSequenceNumber, getCachedResult, isReplayMode, runInExecutionContext, setCurrentExecutionId, clearCurrentExecutionId, storeAPICallResult, getAPICallResults, clearAPICallResults, setAPIResultCache, getAPIResultFromCache, storeAPIResultInCache, cleanupExecutionState, cleanupOldExecutionStates, resetAllExecutionState, getExecutionStateStats, } from './replay.js';
|
|
23
|
-
/**
|
|
24
|
-
* LLM Runtime API
|
|
25
|
-
*
|
|
26
|
-
* Provides client-side LLM operations with pause/resume support.
|
|
27
|
-
* All calls pause execution and route to client-provided LLM.
|
|
28
|
-
*/
|
|
29
|
-
let LLMAPI = class LLMAPI {
|
|
30
|
-
/**
|
|
31
|
-
* Makes a standard LLM call
|
|
32
|
-
* Always pauses execution and routes to client-provided LLM
|
|
33
|
-
*/
|
|
34
|
-
async call(options) {
|
|
35
|
-
const currentSequence = nextSequenceNumber();
|
|
36
|
-
const cachedResult = getCachedResult(currentSequence);
|
|
37
|
-
if (cachedResult !== undefined) {
|
|
38
|
-
return cachedResult;
|
|
39
|
-
}
|
|
40
|
-
pauseForCallback(CallbackType.LLM, LLMOperation.CALL, {
|
|
41
|
-
prompt: options.prompt,
|
|
42
|
-
options,
|
|
43
|
-
sequenceNumber: currentSequence,
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Extracts structured data using LLM
|
|
48
|
-
* Always pauses execution and routes to client-provided LLM
|
|
49
|
-
*/
|
|
50
|
-
async extract(options) {
|
|
51
|
-
const currentSequence = nextSequenceNumber();
|
|
52
|
-
const cachedResult = getCachedResult(currentSequence);
|
|
53
|
-
if (cachedResult !== undefined) {
|
|
54
|
-
return cachedResult;
|
|
55
|
-
}
|
|
56
|
-
pauseForCallback(CallbackType.LLM, LLMOperation.EXTRACT, {
|
|
57
|
-
prompt: options.prompt,
|
|
58
|
-
schema: options.schema,
|
|
59
|
-
options,
|
|
60
|
-
sequenceNumber: currentSequence,
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Classifies text into one of the provided categories
|
|
65
|
-
* Always pauses execution and routes to client-provided LLM
|
|
66
|
-
*/
|
|
67
|
-
async classify(options) {
|
|
68
|
-
const currentSequence = nextSequenceNumber();
|
|
69
|
-
const cachedResult = getCachedResult(currentSequence);
|
|
70
|
-
if (cachedResult !== undefined) {
|
|
71
|
-
return cachedResult;
|
|
72
|
-
}
|
|
73
|
-
pauseForCallback(CallbackType.LLM, LLMOperation.CLASSIFY, {
|
|
74
|
-
text: options.text,
|
|
75
|
-
categories: options.categories,
|
|
76
|
-
options,
|
|
77
|
-
sequenceNumber: currentSequence,
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
|
-
__decorate([
|
|
82
|
-
RuntimeMethod('Make an LLM call with a prompt', {
|
|
83
|
-
options: {
|
|
84
|
-
description: 'LLM call options including prompt',
|
|
85
|
-
type: 'LLMCallOptions',
|
|
86
|
-
},
|
|
87
|
-
}),
|
|
88
|
-
__metadata("design:type", Function),
|
|
89
|
-
__metadata("design:paramtypes", [Object]),
|
|
90
|
-
__metadata("design:returntype", Promise)
|
|
91
|
-
], LLMAPI.prototype, "call", null);
|
|
92
|
-
__decorate([
|
|
93
|
-
RuntimeMethod('Extract structured data from text using an LLM', {
|
|
94
|
-
options: {
|
|
95
|
-
description: 'Extraction options with JSON schema',
|
|
96
|
-
type: 'LLMExtractOptions',
|
|
97
|
-
},
|
|
98
|
-
}),
|
|
99
|
-
__metadata("design:type", Function),
|
|
100
|
-
__metadata("design:paramtypes", [Object]),
|
|
101
|
-
__metadata("design:returntype", Promise)
|
|
102
|
-
], LLMAPI.prototype, "extract", null);
|
|
103
|
-
__decorate([
|
|
104
|
-
RuntimeMethod('Classify text into one of the provided categories', {
|
|
105
|
-
options: {
|
|
106
|
-
description: 'Classification options with categories',
|
|
107
|
-
type: 'LLMClassifyOptions',
|
|
108
|
-
},
|
|
109
|
-
}),
|
|
110
|
-
__metadata("design:type", Function),
|
|
111
|
-
__metadata("design:paramtypes", [Object]),
|
|
112
|
-
__metadata("design:returntype", Promise)
|
|
113
|
-
], LLMAPI.prototype, "classify", null);
|
|
114
|
-
LLMAPI = __decorate([
|
|
115
|
-
RuntimeAPI('llm', 'LLM API - Large Language Model calls using client-provided LLM (requires client.provideLLM())')
|
|
116
|
-
], LLMAPI);
|
|
117
|
-
export const llm = new LLMAPI();
|
|
118
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../runtime/src/llm/index.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjF,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAgB,MAAM,aAAa,CAAC;AAShF,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAC3E,OAAO,EACN,wBAAwB,EACxB,iBAAiB,EACjB,oBAAoB,EACpB,aAAa,EACb,qBAAqB,EACrB,kBAAkB,EAClB,eAAe,EACf,YAAY,EACZ,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,EACvB,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,iBAAiB,EACjB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,yBAAyB,EACzB,sBAAsB,EACtB,sBAAsB,GACtB,MAAM,aAAa,CAAC;AAErB;;;;;GAKG;AAKH,IAAM,MAAM,GAAZ,MAAM,MAAM;IACX;;;OAGG;IAOG,AAAN,KAAK,CAAC,IAAI,CAAC,O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C;IACJ,CAAC;CACD,CAAA;AAlEM;IANL,aAAa,CAAC,gCAAgC,EAAE;QAChD,OAAO,EAAE;YACR,WAAW,EAAE,mCAAmC;YAChD,IAAI,EAAE,gBAAgB;SACtB;KACD,CAAC;;;;kCAcD;AAYK;IANL,aAAa,CAAC,gDAAgD,EAAE;QAChE,OAAO,EAAE;YACR,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,mBAAmB;SACzB;KACD,CAAC;;;;qCAeD;AAYK;IANL,aAAa,CAAC,mDAAmD,EAAE;QACnE,OAAO,EAAE;YACR,WAAW,EAAE,wCAAwC;YACrD,IAAI,EAAE,oBAAoB;SAC1B;KACD,CAAC;;;;sCAeD;AA5EI,MAAM;IAJX,UAAU,CACV,KAAK,EACL,+FAA+F,CAC/F;GACK,MAAM,CA6EX;AAED,MAAM,CAAC,MAAM,GAAG,GAAG,IAAI,MAAM,EAAE,CAAC"}
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Execution-scoped state
|
|
3
|
-
*/
|
|
4
|
-
interface APICallRecord {
|
|
5
|
-
type: string;
|
|
6
|
-
operation: string;
|
|
7
|
-
payload: unknown;
|
|
8
|
-
result: unknown;
|
|
9
|
-
timestamp: number;
|
|
10
|
-
sequenceNumber: number;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Sets the current execution ID for this call
|
|
14
|
-
* Called by executor before each runtime API invocation
|
|
15
|
-
*/
|
|
16
|
-
export declare function setCurrentExecutionId(executionId: string): void;
|
|
17
|
-
/**
|
|
18
|
-
* Clears the current execution ID after a call
|
|
19
|
-
* Called by executor after each runtime API invocation
|
|
20
|
-
*/
|
|
21
|
-
export declare function clearCurrentExecutionId(): void;
|
|
22
|
-
/**
|
|
23
|
-
* Initialize execution state with correct values at execution start
|
|
24
|
-
* This must be called before any state access to ensure correct pause mode
|
|
25
|
-
*/
|
|
26
|
-
export declare function initializeExecutionState(shouldPause: boolean): void;
|
|
27
|
-
/**
|
|
28
|
-
* Runs a function within an execution context
|
|
29
|
-
* @param executionId - Unique ID for this execution
|
|
30
|
-
* @param fn - Function to run within the context
|
|
31
|
-
*/
|
|
32
|
-
export declare function runInExecutionContext<T>(executionId: string, fn: () => T): T;
|
|
33
|
-
/**
|
|
34
|
-
* Configures whether to pause execution for client services
|
|
35
|
-
* @param pause - If true, throws PauseExecutionError instead of calling callback
|
|
36
|
-
*/
|
|
37
|
-
export declare function setPauseForClient(pause: boolean): void;
|
|
38
|
-
/**
|
|
39
|
-
* Checks if should pause for client
|
|
40
|
-
*/
|
|
41
|
-
export declare function shouldPauseForClient(): boolean;
|
|
42
|
-
/**
|
|
43
|
-
* Sets up replay mode for resumption
|
|
44
|
-
* @param results - Map of sequence number to result for replaying callbacks
|
|
45
|
-
*/
|
|
46
|
-
export declare function setReplayMode(results: Map<number, unknown> | undefined): void;
|
|
47
|
-
/**
|
|
48
|
-
* Gets current call sequence number
|
|
49
|
-
*/
|
|
50
|
-
export declare function getCallSequenceNumber(): number;
|
|
51
|
-
/**
|
|
52
|
-
* Increments and returns the next sequence number
|
|
53
|
-
*/
|
|
54
|
-
export declare function nextSequenceNumber(): number;
|
|
55
|
-
/**
|
|
56
|
-
* Check if we have a cached result for the current sequence
|
|
57
|
-
*/
|
|
58
|
-
export declare function getCachedResult(sequenceNumber: number): unknown | undefined;
|
|
59
|
-
/**
|
|
60
|
-
* Check if we're in replay mode
|
|
61
|
-
*/
|
|
62
|
-
export declare function isReplayMode(): boolean;
|
|
63
|
-
/**
|
|
64
|
-
* Store an API call result during execution
|
|
65
|
-
* This is used to track server-side API calls so they can be cached on resume
|
|
66
|
-
*/
|
|
67
|
-
export declare function storeAPICallResult(record: {
|
|
68
|
-
type: string;
|
|
69
|
-
operation: string;
|
|
70
|
-
payload: unknown;
|
|
71
|
-
result: unknown;
|
|
72
|
-
timestamp: number;
|
|
73
|
-
sequenceNumber: number;
|
|
74
|
-
}): void;
|
|
75
|
-
/**
|
|
76
|
-
* Get all API call results tracked during this execution
|
|
77
|
-
* Used when building callback history on pause
|
|
78
|
-
*/
|
|
79
|
-
export declare function getAPICallResults(): APICallRecord[];
|
|
80
|
-
/**
|
|
81
|
-
* Clear API call results (used when execution completes or fails)
|
|
82
|
-
*/
|
|
83
|
-
export declare function clearAPICallResults(): void;
|
|
84
|
-
/**
|
|
85
|
-
* Set up API result cache for resume (operation-based, not sequence-based)
|
|
86
|
-
* This allows API calls to find their cached results even if execution order changes
|
|
87
|
-
*/
|
|
88
|
-
export declare function setAPIResultCache(cache: Map<string, unknown> | undefined): void;
|
|
89
|
-
/**
|
|
90
|
-
* Get API result from cache by operation name
|
|
91
|
-
*/
|
|
92
|
-
export declare function getAPIResultFromCache(operation: string): unknown | undefined;
|
|
93
|
-
/**
|
|
94
|
-
* Store API result in cache by operation name (for initial execution)
|
|
95
|
-
*/
|
|
96
|
-
export declare function storeAPIResultInCache(operation: string, result: unknown): void;
|
|
97
|
-
/**
|
|
98
|
-
* Cleanup a specific execution's state
|
|
99
|
-
* This should be called when an execution completes, fails, or is no longer needed
|
|
100
|
-
*/
|
|
101
|
-
export declare function cleanupExecutionState(executionId: string): void;
|
|
102
|
-
/**
|
|
103
|
-
* Cleanup old execution states to prevent memory leaks
|
|
104
|
-
* Removes states older than the specified max age (default: 1 hour)
|
|
105
|
-
*/
|
|
106
|
-
export declare function cleanupOldExecutionStates(maxAgeMs?: number): number;
|
|
107
|
-
/**
|
|
108
|
-
* Reset ALL execution state - for testing purposes only
|
|
109
|
-
* WARNING: This will clear all execution states, breaking any in-flight executions
|
|
110
|
-
*/
|
|
111
|
-
export declare function resetAllExecutionState(): void;
|
|
112
|
-
/**
|
|
113
|
-
* Get execution state statistics - for monitoring/debugging
|
|
114
|
-
*/
|
|
115
|
-
export declare function getExecutionStateStats(): {
|
|
116
|
-
totalStates: number;
|
|
117
|
-
oldestStateAge: number | null;
|
|
118
|
-
newestStateAge: number | null;
|
|
119
|
-
executionIds: string[];
|
|
120
|
-
};
|
|
121
|
-
export {};
|
|
122
|
-
//# sourceMappingURL=replay.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"replay.d.ts","sourceRoot":"","sources":["../../../../../runtime/src/llm/replay.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,UAAU,aAAa;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;CACvB;AA2CD;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAE/D;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,IAAI,IAAI,CAE9C;AA8CD;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,WAAW,EAAE,OAAO,GAAG,IAAI,CA6BnE;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,GAAG,CAAC,CAE5E;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAatD;AAED;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,OAAO,CAG9C;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,GAAG,IAAI,CAU7E;AAED;;GAEG;AACH,wBAAgB,qBAAqB,IAAI,MAAM,CAG9C;AAED;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,CAK3C;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAM3E;AAED;;GAEG;AACH,wBAAgB,YAAY,IAAI,OAAO,CAEtC;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;CACvB,GAAG,IAAI,CAGP;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,IAAI,aAAa,EAAE,CAGnD;AAED;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,IAAI,CAG1C;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,GAAG,IAAI,CAG/E;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAG5E;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAG,IAAI,CAM9E;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAK/D;AAwBD;;;GAGG;AACH,wBAAgB,yBAAyB,CAAC,QAAQ,GAAE,MAAgB,GAAG,MAAM,CAa5E;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,IAAI,IAAI,CAG7C;AAED;;GAEG;AACH,wBAAgB,sBAAsB,IAAI;IACzC,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,YAAY,EAAE,MAAM,EAAE,CAAC;CACvB,CAsBA"}
|
|
@@ -1,308 +0,0 @@
|
|
|
1
|
-
import { AsyncLocalStorage } from 'async_hooks';
|
|
2
|
-
/**
|
|
3
|
-
* Map of executionId -> ExecutionState
|
|
4
|
-
* Each execution has its own isolated state
|
|
5
|
-
*/
|
|
6
|
-
const executionStates = new Map();
|
|
7
|
-
/**
|
|
8
|
-
* Maximum number of execution states to keep in memory
|
|
9
|
-
* After this limit, old states are automatically cleaned up
|
|
10
|
-
*/
|
|
11
|
-
const MAX_EXECUTION_STATES = 100;
|
|
12
|
-
/**
|
|
13
|
-
* Automatic cleanup check counter
|
|
14
|
-
* Every N operations, we check if cleanup is needed
|
|
15
|
-
*/
|
|
16
|
-
let operationCounter = 0;
|
|
17
|
-
const CLEANUP_CHECK_INTERVAL = 50;
|
|
18
|
-
/**
|
|
19
|
-
* AsyncLocalStorage for execution ID - provides proper async context isolation
|
|
20
|
-
* This ensures each async execution chain has its own isolated execution ID
|
|
21
|
-
*/
|
|
22
|
-
const executionContext = new AsyncLocalStorage();
|
|
23
|
-
/**
|
|
24
|
-
* Current execution ID - set by runtime API wrappers
|
|
25
|
-
* This is a thread-local variable that's set before each runtime API call
|
|
26
|
-
* and cleared after, providing isolation even when AsyncLocalStorage fails
|
|
27
|
-
*/
|
|
28
|
-
let currentExecutionId = null;
|
|
29
|
-
/**
|
|
30
|
-
* Sets the current execution ID for this call
|
|
31
|
-
* Called by executor before each runtime API invocation
|
|
32
|
-
*/
|
|
33
|
-
export function setCurrentExecutionId(executionId) {
|
|
34
|
-
currentExecutionId = executionId;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Clears the current execution ID after a call
|
|
38
|
-
* Called by executor after each runtime API invocation
|
|
39
|
-
*/
|
|
40
|
-
export function clearCurrentExecutionId() {
|
|
41
|
-
currentExecutionId = null;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Gets the current execution state
|
|
45
|
-
* Note: State must be initialized before calling this. Use initializeExecutionState() first.
|
|
46
|
-
*/
|
|
47
|
-
function getCurrentState() {
|
|
48
|
-
let executionId = currentExecutionId;
|
|
49
|
-
if (!executionId) {
|
|
50
|
-
executionId = executionContext.getStore() || null;
|
|
51
|
-
}
|
|
52
|
-
if (!executionId) {
|
|
53
|
-
throw new Error('No execution context set. Executor must call setCurrentExecutionId() before runtime API calls.');
|
|
54
|
-
}
|
|
55
|
-
// Automatic cleanup check (every N operations)
|
|
56
|
-
operationCounter++;
|
|
57
|
-
if (operationCounter >= CLEANUP_CHECK_INTERVAL) {
|
|
58
|
-
operationCounter = 0;
|
|
59
|
-
autoCleanup();
|
|
60
|
-
}
|
|
61
|
-
let state = executionStates.get(executionId);
|
|
62
|
-
if (!state) {
|
|
63
|
-
// State should have been initialized explicitly at execution start
|
|
64
|
-
// Create it now with a safe default to prevent crashes
|
|
65
|
-
console.warn('[STATE] State not initialized, creating with default. This should not happen.', {
|
|
66
|
-
executionId,
|
|
67
|
-
});
|
|
68
|
-
state = {
|
|
69
|
-
shouldPauseForClient: false,
|
|
70
|
-
replayResults: undefined,
|
|
71
|
-
callSequenceNumber: 0,
|
|
72
|
-
apiCallResults: [],
|
|
73
|
-
apiResultCache: undefined,
|
|
74
|
-
createdAt: Date.now(),
|
|
75
|
-
};
|
|
76
|
-
executionStates.set(executionId, state);
|
|
77
|
-
}
|
|
78
|
-
return state;
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* Initialize execution state with correct values at execution start
|
|
82
|
-
* This must be called before any state access to ensure correct pause mode
|
|
83
|
-
*/
|
|
84
|
-
export function initializeExecutionState(shouldPause) {
|
|
85
|
-
const executionId = currentExecutionId || executionContext.getStore();
|
|
86
|
-
if (!executionId) {
|
|
87
|
-
throw new Error('No execution context set. Executor must call setCurrentExecutionId() before initializeExecutionState().');
|
|
88
|
-
}
|
|
89
|
-
const existingState = executionStates.get(executionId);
|
|
90
|
-
if (existingState) {
|
|
91
|
-
existingState.shouldPauseForClient = shouldPause;
|
|
92
|
-
if (!existingState.apiCallResults) {
|
|
93
|
-
existingState.apiCallResults = [];
|
|
94
|
-
}
|
|
95
|
-
if (!existingState.apiResultCache) {
|
|
96
|
-
existingState.apiResultCache = undefined;
|
|
97
|
-
}
|
|
98
|
-
return;
|
|
99
|
-
}
|
|
100
|
-
const state = {
|
|
101
|
-
shouldPauseForClient: shouldPause,
|
|
102
|
-
replayResults: undefined,
|
|
103
|
-
callSequenceNumber: 0,
|
|
104
|
-
apiCallResults: [],
|
|
105
|
-
apiResultCache: undefined,
|
|
106
|
-
createdAt: Date.now(),
|
|
107
|
-
};
|
|
108
|
-
executionStates.set(executionId, state);
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* Runs a function within an execution context
|
|
112
|
-
* @param executionId - Unique ID for this execution
|
|
113
|
-
* @param fn - Function to run within the context
|
|
114
|
-
*/
|
|
115
|
-
export function runInExecutionContext(executionId, fn) {
|
|
116
|
-
return executionContext.run(executionId, fn);
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* Configures whether to pause execution for client services
|
|
120
|
-
* @param pause - If true, throws PauseExecutionError instead of calling callback
|
|
121
|
-
*/
|
|
122
|
-
export function setPauseForClient(pause) {
|
|
123
|
-
const executionId = currentExecutionId || executionContext.getStore();
|
|
124
|
-
if (!executionId) {
|
|
125
|
-
throw new Error('No execution context set. Executor must call setCurrentExecutionId() before setPauseForClient().');
|
|
126
|
-
}
|
|
127
|
-
const state = executionStates.get(executionId);
|
|
128
|
-
if (!state) {
|
|
129
|
-
throw new Error('Execution state not initialized. Call initializeExecutionState() first.');
|
|
130
|
-
}
|
|
131
|
-
state.shouldPauseForClient = pause;
|
|
132
|
-
}
|
|
133
|
-
/**
|
|
134
|
-
* Checks if should pause for client
|
|
135
|
-
*/
|
|
136
|
-
export function shouldPauseForClient() {
|
|
137
|
-
const state = getCurrentState();
|
|
138
|
-
return state.shouldPauseForClient;
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
* Sets up replay mode for resumption
|
|
142
|
-
* @param results - Map of sequence number to result for replaying callbacks
|
|
143
|
-
*/
|
|
144
|
-
export function setReplayMode(results) {
|
|
145
|
-
const state = getCurrentState();
|
|
146
|
-
// Store replay results
|
|
147
|
-
state.replayResults = results;
|
|
148
|
-
// Always reset counter when setting replay mode
|
|
149
|
-
// - When entering replay mode with cached results: start from 0 to match first call
|
|
150
|
-
// - When clearing replay mode (results=undefined): reset to 0 for clean state
|
|
151
|
-
state.callSequenceNumber = 0;
|
|
152
|
-
}
|
|
153
|
-
/**
|
|
154
|
-
* Gets current call sequence number
|
|
155
|
-
*/
|
|
156
|
-
export function getCallSequenceNumber() {
|
|
157
|
-
const state = getCurrentState();
|
|
158
|
-
return state.callSequenceNumber;
|
|
159
|
-
}
|
|
160
|
-
/**
|
|
161
|
-
* Increments and returns the next sequence number
|
|
162
|
-
*/
|
|
163
|
-
export function nextSequenceNumber() {
|
|
164
|
-
const state = getCurrentState();
|
|
165
|
-
const current = state.callSequenceNumber;
|
|
166
|
-
state.callSequenceNumber++;
|
|
167
|
-
return current;
|
|
168
|
-
}
|
|
169
|
-
/**
|
|
170
|
-
* Check if we have a cached result for the current sequence
|
|
171
|
-
*/
|
|
172
|
-
export function getCachedResult(sequenceNumber) {
|
|
173
|
-
const state = getCurrentState();
|
|
174
|
-
if (state.replayResults && state.replayResults.has(sequenceNumber)) {
|
|
175
|
-
return state.replayResults.get(sequenceNumber);
|
|
176
|
-
}
|
|
177
|
-
return undefined;
|
|
178
|
-
}
|
|
179
|
-
/**
|
|
180
|
-
* Check if we're in replay mode
|
|
181
|
-
*/
|
|
182
|
-
export function isReplayMode() {
|
|
183
|
-
return getCurrentState().replayResults !== undefined;
|
|
184
|
-
}
|
|
185
|
-
/**
|
|
186
|
-
* Store an API call result during execution
|
|
187
|
-
* This is used to track server-side API calls so they can be cached on resume
|
|
188
|
-
*/
|
|
189
|
-
export function storeAPICallResult(record) {
|
|
190
|
-
const state = getCurrentState();
|
|
191
|
-
state.apiCallResults.push(record);
|
|
192
|
-
}
|
|
193
|
-
/**
|
|
194
|
-
* Get all API call results tracked during this execution
|
|
195
|
-
* Used when building callback history on pause
|
|
196
|
-
*/
|
|
197
|
-
export function getAPICallResults() {
|
|
198
|
-
const state = getCurrentState();
|
|
199
|
-
return state.apiCallResults;
|
|
200
|
-
}
|
|
201
|
-
/**
|
|
202
|
-
* Clear API call results (used when execution completes or fails)
|
|
203
|
-
*/
|
|
204
|
-
export function clearAPICallResults() {
|
|
205
|
-
const state = getCurrentState();
|
|
206
|
-
state.apiCallResults = [];
|
|
207
|
-
}
|
|
208
|
-
/**
|
|
209
|
-
* Set up API result cache for resume (operation-based, not sequence-based)
|
|
210
|
-
* This allows API calls to find their cached results even if execution order changes
|
|
211
|
-
*/
|
|
212
|
-
export function setAPIResultCache(cache) {
|
|
213
|
-
const state = getCurrentState();
|
|
214
|
-
state.apiResultCache = cache;
|
|
215
|
-
}
|
|
216
|
-
/**
|
|
217
|
-
* Get API result from cache by operation name
|
|
218
|
-
*/
|
|
219
|
-
export function getAPIResultFromCache(operation) {
|
|
220
|
-
const state = getCurrentState();
|
|
221
|
-
return state.apiResultCache?.get(operation);
|
|
222
|
-
}
|
|
223
|
-
/**
|
|
224
|
-
* Store API result in cache by operation name (for initial execution)
|
|
225
|
-
*/
|
|
226
|
-
export function storeAPIResultInCache(operation, result) {
|
|
227
|
-
const state = getCurrentState();
|
|
228
|
-
if (!state.apiResultCache) {
|
|
229
|
-
state.apiResultCache = new Map();
|
|
230
|
-
}
|
|
231
|
-
state.apiResultCache.set(operation, result);
|
|
232
|
-
}
|
|
233
|
-
/**
|
|
234
|
-
* Cleanup a specific execution's state
|
|
235
|
-
* This should be called when an execution completes, fails, or is no longer needed
|
|
236
|
-
*/
|
|
237
|
-
export function cleanupExecutionState(executionId) {
|
|
238
|
-
executionStates.delete(executionId);
|
|
239
|
-
if (currentExecutionId === executionId) {
|
|
240
|
-
currentExecutionId = null;
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
/**
|
|
244
|
-
* Automatic cleanup when state count exceeds maximum
|
|
245
|
-
* Removes oldest states to keep memory usage bounded
|
|
246
|
-
*/
|
|
247
|
-
function autoCleanup() {
|
|
248
|
-
if (executionStates.size <= MAX_EXECUTION_STATES) {
|
|
249
|
-
return;
|
|
250
|
-
}
|
|
251
|
-
const entries = Array.from(executionStates.entries()).sort((a, b) => a[1].createdAt - b[1].createdAt);
|
|
252
|
-
const toRemove = executionStates.size - MAX_EXECUTION_STATES;
|
|
253
|
-
for (let i = 0; i < toRemove; i++) {
|
|
254
|
-
const entry = entries[i];
|
|
255
|
-
if (entry) {
|
|
256
|
-
executionStates.delete(entry[0]);
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
/**
|
|
261
|
-
* Cleanup old execution states to prevent memory leaks
|
|
262
|
-
* Removes states older than the specified max age (default: 1 hour)
|
|
263
|
-
*/
|
|
264
|
-
export function cleanupOldExecutionStates(maxAgeMs = 3600000) {
|
|
265
|
-
const now = Date.now();
|
|
266
|
-
let cleaned = 0;
|
|
267
|
-
for (const [executionId, state] of executionStates.entries()) {
|
|
268
|
-
const age = now - state.createdAt;
|
|
269
|
-
if (age > maxAgeMs) {
|
|
270
|
-
executionStates.delete(executionId);
|
|
271
|
-
cleaned++;
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
return cleaned;
|
|
275
|
-
}
|
|
276
|
-
/**
|
|
277
|
-
* Reset ALL execution state - for testing purposes only
|
|
278
|
-
* WARNING: This will clear all execution states, breaking any in-flight executions
|
|
279
|
-
*/
|
|
280
|
-
export function resetAllExecutionState() {
|
|
281
|
-
executionStates.clear();
|
|
282
|
-
currentExecutionId = null;
|
|
283
|
-
}
|
|
284
|
-
/**
|
|
285
|
-
* Get execution state statistics - for monitoring/debugging
|
|
286
|
-
*/
|
|
287
|
-
export function getExecutionStateStats() {
|
|
288
|
-
const now = Date.now();
|
|
289
|
-
const executionIds = Array.from(executionStates.keys());
|
|
290
|
-
let oldestAge = null;
|
|
291
|
-
let newestAge = null;
|
|
292
|
-
for (const state of executionStates.values()) {
|
|
293
|
-
const age = now - state.createdAt;
|
|
294
|
-
if (oldestAge === null || age > oldestAge) {
|
|
295
|
-
oldestAge = age;
|
|
296
|
-
}
|
|
297
|
-
if (newestAge === null || age < newestAge) {
|
|
298
|
-
newestAge = age;
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
return {
|
|
302
|
-
totalStates: executionStates.size,
|
|
303
|
-
oldestStateAge: oldestAge,
|
|
304
|
-
newestStateAge: newestAge,
|
|
305
|
-
executionIds,
|
|
306
|
-
};
|
|
307
|
-
}
|
|
308
|
-
//# sourceMappingURL=replay.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"replay.js","sourceRoot":"","sources":["../../../../../runtime/src/llm/replay.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAuBhD;;;GAGG;AACH,MAAM,eAAe,GAAG,IAAI,GAAG,EAA0B,CAAC;AAE1D;;;GAGG;AACH,MAAM,oBAAoB,GAAG,GAAG,CAAC;AAEjC;;;GAGG;AACH,IAAI,gBAAgB,GAAG,CAAC,CAAC;AACzB,MAAM,sBAAsB,GAAG,EAAE,CAAC;AAElC;;;GAGG;AACH,MAAM,gBAAgB,GAAG,IAAI,iBAAiB,EAAU,CAAC;AAEzD;;;;GAIG;AACH,IAAI,kBAAkB,GAAkB,IAAI,CAAC;AAE7C;;;GAGG;AACH,MAAM,UAAU,qBAAqB,CAAC,WAAmB;IACxD,kBAAkB,GAAG,WAAW,CAAC;AAClC,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,uBAAuB;IACtC,kBAAkB,GAAG,IAAI,CAAC;AAC3B,CAAC;AAED;;;GAGG;AACH,SAAS,eAAe;IACvB,IAAI,WAAW,GAAG,kBAAkB,CAAC;IAErC,IAAI,CAAC,WAAW,EAAE,CAAC;QAClB,WAAW,GAAG,gBAAgB,CAAC,QAAQ,EAAE,IAAI,IAAI,CAAC;IACnD,CAAC;IAED,IAAI,CAAC,WAAW,EAAE,CAAC;QAClB,MAAM,IAAI,KAAK,CACd,gGAAgG,CAChG,CAAC;IACH,CAAC;IAED,+CAA+C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I,GAAG,GAAG,SAAS,EAAE,CAAC;YAC3C,SAAS,GAAG,GAAG,CAAC;QACjB,CAAC;QACD,IAAI,SAAS,KAAK,IAAI,IAAI,GAAG,GAAG,SAAS,EAAE,CAAC;YAC3C,SAAS,GAAG,GAAG,CAAC;QACjB,CAAC;IACF,CAAC;IAED,OAAO;QACN,WAAW,EAAE,eAAe,CAAC,IAAI;QACjC,cAAc,EAAE,SAAS;QACzB,cAAc,EAAE,SAAS;QACzB,YAAY;KACZ,CAAC;AACH,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export interface LLMCallOptions {
|
|
2
|
-
prompt: string;
|
|
3
|
-
context?: Record<string, unknown>;
|
|
4
|
-
model?: string;
|
|
5
|
-
maxTokens?: number;
|
|
6
|
-
temperature?: number;
|
|
7
|
-
systemPrompt?: string;
|
|
8
|
-
}
|
|
9
|
-
export interface LLMExtractOptions {
|
|
10
|
-
prompt: string;
|
|
11
|
-
context?: Record<string, unknown>;
|
|
12
|
-
schema: unknown;
|
|
13
|
-
}
|
|
14
|
-
export interface LLMClassifyOptions {
|
|
15
|
-
text: string;
|
|
16
|
-
categories: string[];
|
|
17
|
-
context?: Record<string, unknown>;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Client callback handler for LLM operations
|
|
21
|
-
* Set when client provides their own LLM implementation
|
|
22
|
-
*/
|
|
23
|
-
export type ClientLLMCallback = (operation: string, payload: Record<string, unknown>) => Promise<unknown>;
|
|
24
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../runtime/src/llm/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,iBAAiB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,MAAM,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,kBAAkB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC;AAED;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,CAC/B,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC5B,OAAO,CAAC,OAAO,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../runtime/src/llm/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { LoggerConfig, Logger } from './types.js';
|
|
2
|
-
export type { LogLevel, LoggerConfig, Logger } from './types.js';
|
|
3
|
-
/**
|
|
4
|
-
* Initializes the logger with configuration
|
|
5
|
-
*/
|
|
6
|
-
export declare function initializeLogger(config?: LoggerConfig): void;
|
|
7
|
-
export declare const log: Logger;
|
|
8
|
-
/**
|
|
9
|
-
* Shuts down the logger (for cleanup in tests)
|
|
10
|
-
*/
|
|
11
|
-
export declare function shutdownLogger(): void;
|
|
12
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../runtime/src/log/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAY,YAAY,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAEjE,YAAY,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAIjE;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,CAAC,EAAE,YAAY,GAAG,IAAI,CAgC5D;AAYD,eAAO,MAAM,GAAG,EAAE,MAyGjB,CAAC;AAEF;;GAEG;AACH,wBAAgB,cAAc,IAAI,IAAI,CAErC"}
|