tensorlake 0.5.142 → 0.5.145

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 (77) hide show
  1. package/README.md +11 -159
  2. package/applications.cjs +3 -0
  3. package/applications.d.cts +1 -0
  4. package/applications.d.ts +1 -0
  5. package/applications.js +1 -0
  6. package/index.cjs +3 -0
  7. package/index.d.cts +1 -0
  8. package/index.d.ts +1 -0
  9. package/index.js +1 -0
  10. package/package.json +25 -68
  11. package/bin/function-executor.js +0 -8
  12. package/bin/tensorlake-create-sandbox-image.js +0 -9
  13. package/bin/tensorlake-deploy.cjs +0 -8
  14. package/bin/tensorlake-import-sandbox-image.js +0 -9
  15. package/bin/tensorlake-typescript-function-runner.js +0 -8
  16. package/dist/applications/index.cjs +0 -4812
  17. package/dist/applications/index.cjs.map +0 -1
  18. package/dist/applications/index.d.cts +0 -130
  19. package/dist/applications/index.d.ts +0 -130
  20. package/dist/applications/index.js +0 -4773
  21. package/dist/applications/index.js.map +0 -1
  22. package/dist/function-agent/main.cjs +0 -1838
  23. package/dist/function-agent/main.cjs.map +0 -1
  24. package/dist/function-agent/main.d.cts +0 -3
  25. package/dist/function-agent/main.d.ts +0 -3
  26. package/dist/function-agent/main.js +0 -1825
  27. package/dist/function-agent/main.js.map +0 -1
  28. package/dist/function-executor/main.cjs +0 -4944
  29. package/dist/function-executor/main.cjs.map +0 -1
  30. package/dist/function-executor/main.d.cts +0 -4
  31. package/dist/function-executor/main.d.ts +0 -4
  32. package/dist/function-executor/main.js +0 -4902
  33. package/dist/function-executor/main.js.map +0 -1
  34. package/dist/index.cjs +0 -10175
  35. package/dist/index.cjs.map +0 -1
  36. package/dist/index.d.cts +0 -2427
  37. package/dist/index.d.ts +0 -2427
  38. package/dist/index.js +0 -10099
  39. package/dist/index.js.map +0 -1
  40. package/dist/native-worker.cjs +0 -278
  41. package/dist/native-worker.cjs.map +0 -1
  42. package/dist/native-worker.d.cts +0 -2
  43. package/dist/native-worker.d.ts +0 -2
  44. package/dist/native-worker.js +0 -276
  45. package/dist/native-worker.js.map +0 -1
  46. package/dist/remote-D95Y6Czr.d.cts +0 -282
  47. package/dist/remote-omwTzbfj.d.ts +0 -282
  48. package/dist/sandbox-image-ChzWDeZy.d.cts +0 -357
  49. package/dist/sandbox-image-ChzWDeZy.d.ts +0 -357
  50. package/dist/sandbox-image.cjs +0 -1992
  51. package/dist/sandbox-image.cjs.map +0 -1
  52. package/dist/sandbox-image.d.cts +0 -1
  53. package/dist/sandbox-image.d.ts +0 -1
  54. package/dist/sandbox-image.js +0 -1987
  55. package/dist/sandbox-image.js.map +0 -1
  56. package/lib/libc.cjs +0 -61
  57. package/lib/libc.d.cts +0 -1
  58. package/lib/runtime.cjs +0 -155
  59. package/runtime/function-executor/manifest.json +0 -59
  60. package/runtime/function-executor/package/bin/function-executor.js +0 -8
  61. package/runtime/function-executor/package/dist/function-executor/main.js +0 -4902
  62. package/runtime/function-executor/package/dist/function-executor/main.js.map +0 -1
  63. package/runtime/function-executor/package/dist/native-worker.cjs +0 -278
  64. package/runtime/function-executor/package/dist/native-worker.cjs.map +0 -1
  65. package/runtime/function-executor/package/npm-shrinkwrap.json +0 -475
  66. package/runtime/function-executor/package/package.json +0 -22
  67. package/runtime/function-executor/package/proto/README.md +0 -18
  68. package/runtime/function-executor/package/proto/tensorlake/function_executor/proto/function_executor.proto +0 -613
  69. package/runtime/function-executor/package/proto/tensorlake/function_executor/proto/status.proto +0 -42
  70. package/runtime/typescript-function-runner/manifest.json +0 -44
  71. package/runtime/typescript-function-runner/package/bin/tensorlake-typescript-function-runner.js +0 -8
  72. package/runtime/typescript-function-runner/package/dist/function-agent/main.js +0 -1825
  73. package/runtime/typescript-function-runner/package/dist/function-agent/main.js.map +0 -1
  74. package/runtime/typescript-function-runner/package/dist/native-worker.cjs +0 -278
  75. package/runtime/typescript-function-runner/package/dist/native-worker.cjs.map +0 -1
  76. package/runtime/typescript-function-runner/package/npm-shrinkwrap.json +0 -580
  77. package/runtime/typescript-function-runner/package/package.json +0 -25
@@ -1,130 +0,0 @@
1
- import { A as ApplicationCapability, J as JSONSchema, R as RegisteredDefinition } from '../remote-D95Y6Czr.cjs';
2
- export { a as ApplicationOptions, F as File, b as FunctionOptions, c as Future, H as Headers, d as HeadersInit, e as HttpBody, I as Infer, L as LocalRequest, P as Parameter, f as ParameterValues, g as RegisteredFunction, h as RemoteOptions, i as RemoteRequest, j as RequestContext, k as RequestContextValue, S as Schema, l as SimpleApplicationOptions, m as SimpleFunctionOptions, T as TailCall, W as WaitOptions, n as WaitResult, r as registerApplication, o as registerFunction, p as remoteOptions, q as retries, s as runLocal, t as runRemote, u as schema } from '../remote-D95Y6Czr.cjs';
3
- export { I as Image } from '../sandbox-image-ChzWDeZy.cjs';
4
-
5
- declare const SDK_VERSION: string;
6
-
7
- declare const SDK_USAGE_ERROR_BRAND: unique symbol;
8
- declare const REQUEST_ERROR_BRAND: unique symbol;
9
- declare const FUNCTION_ERROR_BRAND: unique symbol;
10
- declare const TIMEOUT_ERROR_BRAND: unique symbol;
11
- declare class TensorlakeApplicationError extends Error {
12
- constructor(message: string, options?: {
13
- cause?: unknown;
14
- });
15
- }
16
- declare class SDKUsageError extends TensorlakeApplicationError {
17
- readonly [SDK_USAGE_ERROR_BRAND] = true;
18
- static [Symbol.hasInstance](value: unknown): boolean;
19
- constructor(message: string);
20
- }
21
- declare class SerializationError extends TensorlakeApplicationError {
22
- constructor(message: string, options?: {
23
- cause?: unknown;
24
- });
25
- }
26
- declare class DeserializationError extends TensorlakeApplicationError {
27
- constructor(message: string, options?: {
28
- cause?: unknown;
29
- });
30
- }
31
- declare class FunctionError extends TensorlakeApplicationError {
32
- readonly [FUNCTION_ERROR_BRAND] = true;
33
- static [Symbol.hasInstance](value: unknown): boolean;
34
- constructor(message: string, options?: {
35
- cause?: unknown;
36
- });
37
- }
38
- declare class TimeoutError extends TensorlakeApplicationError {
39
- readonly [TIMEOUT_ERROR_BRAND] = true;
40
- static [Symbol.hasInstance](value: unknown): boolean;
41
- constructor();
42
- }
43
- declare class RequestError extends TensorlakeApplicationError {
44
- readonly [REQUEST_ERROR_BRAND] = true;
45
- static [Symbol.hasInstance](value: unknown): boolean;
46
- constructor(message: string, options?: {
47
- cause?: unknown;
48
- });
49
- }
50
- declare class ReplayMismatchError extends TensorlakeApplicationError {
51
- constructor(message?: string);
52
- }
53
-
54
- interface ParameterManifest {
55
- name: string;
56
- data_type: JSONSchema;
57
- description?: string;
58
- required: boolean;
59
- }
60
- interface FunctionManifest {
61
- name: string;
62
- description: string;
63
- docstring: string;
64
- secret_names: string[];
65
- initialization_timeout_sec: number;
66
- timeout_sec: number;
67
- resources: {
68
- cpus: number;
69
- memory_mb: number;
70
- ephemeral_disk_mb: number;
71
- gpus: {
72
- count: number;
73
- model: string;
74
- }[];
75
- };
76
- retry_policy: {
77
- max_retries: number;
78
- initial_delay_sec: number;
79
- max_delay_sec: number;
80
- delay_multiplier: number;
81
- };
82
- cache_key: null;
83
- parameters: ParameterManifest[];
84
- return_type: JSONSchema | null;
85
- placement_constraints: {
86
- filter_expressions: string[];
87
- };
88
- max_concurrency: number;
89
- warm_containers?: number;
90
- min_containers?: number;
91
- max_containers?: number;
92
- image?: string;
93
- }
94
- interface ApplicationManifest {
95
- [key: string]: unknown;
96
- name: string;
97
- description: string;
98
- tags: Record<string, string>;
99
- allow: ApplicationCapability[];
100
- public_endpoint_id?: string;
101
- version: string;
102
- runtime: "typescript";
103
- functions: Record<string, FunctionManifest>;
104
- entrypoint: {
105
- function_name: string;
106
- input_serializer: "json";
107
- inputs_base64: string;
108
- output_serializer: "json";
109
- output_type_hints_base64: string;
110
- };
111
- }
112
- declare function decodeDescriptor<T>(encoded: string): T;
113
- declare function createApplicationManifest(application: RegisteredDefinition): ApplicationManifest;
114
- declare function createApplicationManifests(): ApplicationManifest[];
115
- interface CodeManifest {
116
- format_version: 2;
117
- runtime: "typescript";
118
- minimum_node_major: 24;
119
- module: string;
120
- functions: Record<string, {
121
- name: string;
122
- }>;
123
- }
124
- declare function createCodeManifest(module?: string): CodeManifest;
125
-
126
- declare function getFunction(name: string): RegisteredDefinition;
127
- declare function getFunctions(): RegisteredDefinition[];
128
- declare function getApplications(): RegisteredDefinition[];
129
-
130
- export { ApplicationCapability, type ApplicationManifest, type CodeManifest, DeserializationError, FunctionError, type FunctionManifest, ReplayMismatchError, RequestError, SDKUsageError, SDK_VERSION, SerializationError, TensorlakeApplicationError, TimeoutError, createApplicationManifest, createApplicationManifests, createCodeManifest, decodeDescriptor, getApplications, getFunction, getFunctions };
@@ -1,130 +0,0 @@
1
- import { A as ApplicationCapability, J as JSONSchema, R as RegisteredDefinition } from '../remote-omwTzbfj.js';
2
- export { a as ApplicationOptions, F as File, b as FunctionOptions, c as Future, H as Headers, d as HeadersInit, e as HttpBody, I as Infer, L as LocalRequest, P as Parameter, f as ParameterValues, g as RegisteredFunction, h as RemoteOptions, i as RemoteRequest, j as RequestContext, k as RequestContextValue, S as Schema, l as SimpleApplicationOptions, m as SimpleFunctionOptions, T as TailCall, W as WaitOptions, n as WaitResult, r as registerApplication, o as registerFunction, p as remoteOptions, q as retries, s as runLocal, t as runRemote, u as schema } from '../remote-omwTzbfj.js';
3
- export { I as Image } from '../sandbox-image-ChzWDeZy.js';
4
-
5
- declare const SDK_VERSION: string;
6
-
7
- declare const SDK_USAGE_ERROR_BRAND: unique symbol;
8
- declare const REQUEST_ERROR_BRAND: unique symbol;
9
- declare const FUNCTION_ERROR_BRAND: unique symbol;
10
- declare const TIMEOUT_ERROR_BRAND: unique symbol;
11
- declare class TensorlakeApplicationError extends Error {
12
- constructor(message: string, options?: {
13
- cause?: unknown;
14
- });
15
- }
16
- declare class SDKUsageError extends TensorlakeApplicationError {
17
- readonly [SDK_USAGE_ERROR_BRAND] = true;
18
- static [Symbol.hasInstance](value: unknown): boolean;
19
- constructor(message: string);
20
- }
21
- declare class SerializationError extends TensorlakeApplicationError {
22
- constructor(message: string, options?: {
23
- cause?: unknown;
24
- });
25
- }
26
- declare class DeserializationError extends TensorlakeApplicationError {
27
- constructor(message: string, options?: {
28
- cause?: unknown;
29
- });
30
- }
31
- declare class FunctionError extends TensorlakeApplicationError {
32
- readonly [FUNCTION_ERROR_BRAND] = true;
33
- static [Symbol.hasInstance](value: unknown): boolean;
34
- constructor(message: string, options?: {
35
- cause?: unknown;
36
- });
37
- }
38
- declare class TimeoutError extends TensorlakeApplicationError {
39
- readonly [TIMEOUT_ERROR_BRAND] = true;
40
- static [Symbol.hasInstance](value: unknown): boolean;
41
- constructor();
42
- }
43
- declare class RequestError extends TensorlakeApplicationError {
44
- readonly [REQUEST_ERROR_BRAND] = true;
45
- static [Symbol.hasInstance](value: unknown): boolean;
46
- constructor(message: string, options?: {
47
- cause?: unknown;
48
- });
49
- }
50
- declare class ReplayMismatchError extends TensorlakeApplicationError {
51
- constructor(message?: string);
52
- }
53
-
54
- interface ParameterManifest {
55
- name: string;
56
- data_type: JSONSchema;
57
- description?: string;
58
- required: boolean;
59
- }
60
- interface FunctionManifest {
61
- name: string;
62
- description: string;
63
- docstring: string;
64
- secret_names: string[];
65
- initialization_timeout_sec: number;
66
- timeout_sec: number;
67
- resources: {
68
- cpus: number;
69
- memory_mb: number;
70
- ephemeral_disk_mb: number;
71
- gpus: {
72
- count: number;
73
- model: string;
74
- }[];
75
- };
76
- retry_policy: {
77
- max_retries: number;
78
- initial_delay_sec: number;
79
- max_delay_sec: number;
80
- delay_multiplier: number;
81
- };
82
- cache_key: null;
83
- parameters: ParameterManifest[];
84
- return_type: JSONSchema | null;
85
- placement_constraints: {
86
- filter_expressions: string[];
87
- };
88
- max_concurrency: number;
89
- warm_containers?: number;
90
- min_containers?: number;
91
- max_containers?: number;
92
- image?: string;
93
- }
94
- interface ApplicationManifest {
95
- [key: string]: unknown;
96
- name: string;
97
- description: string;
98
- tags: Record<string, string>;
99
- allow: ApplicationCapability[];
100
- public_endpoint_id?: string;
101
- version: string;
102
- runtime: "typescript";
103
- functions: Record<string, FunctionManifest>;
104
- entrypoint: {
105
- function_name: string;
106
- input_serializer: "json";
107
- inputs_base64: string;
108
- output_serializer: "json";
109
- output_type_hints_base64: string;
110
- };
111
- }
112
- declare function decodeDescriptor<T>(encoded: string): T;
113
- declare function createApplicationManifest(application: RegisteredDefinition): ApplicationManifest;
114
- declare function createApplicationManifests(): ApplicationManifest[];
115
- interface CodeManifest {
116
- format_version: 2;
117
- runtime: "typescript";
118
- minimum_node_major: 24;
119
- module: string;
120
- functions: Record<string, {
121
- name: string;
122
- }>;
123
- }
124
- declare function createCodeManifest(module?: string): CodeManifest;
125
-
126
- declare function getFunction(name: string): RegisteredDefinition;
127
- declare function getFunctions(): RegisteredDefinition[];
128
- declare function getApplications(): RegisteredDefinition[];
129
-
130
- export { ApplicationCapability, type ApplicationManifest, type CodeManifest, DeserializationError, FunctionError, type FunctionManifest, ReplayMismatchError, RequestError, SDKUsageError, SDK_VERSION, SerializationError, TensorlakeApplicationError, TimeoutError, createApplicationManifest, createApplicationManifests, createCodeManifest, decodeDescriptor, getApplications, getFunction, getFunctions };