@base44/functions-compiler 0.1.0 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +103 -37
- package/lib/src/assembly.d.ts +43 -0
- package/lib/src/assembly.js +167 -0
- package/lib/src/assembly.js.map +1 -0
- package/lib/src/deno-bundle.js +3 -0
- package/lib/src/deno-bundle.js.map +1 -1
- package/lib/src/esbuild/private-data-sources-virtual.js +1 -0
- package/lib/src/esbuild/private-data-sources-virtual.js.map +1 -1
- package/lib/src/index.d.ts +8 -0
- package/lib/src/index.js +4 -0
- package/lib/src/index.js.map +1 -1
- package/lib/src/invocation-logs.d.ts +6 -0
- package/lib/src/invocation-logs.js +51 -0
- package/lib/src/invocation-logs.js.map +1 -0
- package/lib/src/private-data-sources/node-net-adapter.ts +24 -21
- package/lib/src/private-data-sources/oracle.ts +34 -0
- package/lib/src/shards/build.d.ts +55 -0
- package/lib/src/shards/build.js +156 -0
- package/lib/src/shards/build.js.map +1 -0
- package/lib/src/shards/plan.d.ts +50 -0
- package/lib/src/shards/plan.js +78 -0
- package/lib/src/shards/plan.js.map +1 -0
- package/lib/src/shards/size.d.ts +45 -0
- package/lib/src/shards/size.js +64 -0
- package/lib/src/shards/size.js.map +1 -0
- package/lib/src/version.d.ts +15 -0
- package/lib/src/version.js +16 -0
- package/lib/src/version.js.map +1 -0
- package/lib/src/worker-entry.d.ts +2 -3
- package/lib/src/worker-entry.js +46 -10
- package/lib/src/worker-entry.js.map +1 -1
- package/package.json +6 -1
|
@@ -10,6 +10,8 @@ export declare const ACTIVATION_FILENAME = "__base44_activation.mjs";
|
|
|
10
10
|
export interface PreparedWorker {
|
|
11
11
|
entry: string;
|
|
12
12
|
files: Record<string, string>;
|
|
13
|
+
/** Prepended verbatim to the compiled module. Only the app path sets it. */
|
|
14
|
+
banner?: string;
|
|
13
15
|
}
|
|
14
16
|
export declare function workerRuntimeFiles(): Record<string, string>;
|
|
15
17
|
/** Shared console-patching prelude injected into every generated Worker entry.
|
|
@@ -17,9 +19,6 @@ export declare function workerRuntimeFiles(): Record<string, string>;
|
|
|
17
19
|
export declare const CONSOLE_PATCH: string;
|
|
18
20
|
/** Assemble a single Deno function into a bundle-ready Worker. */
|
|
19
21
|
export declare function prepareFunction(entry: string, files: Record<string, string>, postResponseTelemetry?: boolean, runtimeSecrets?: boolean): Promise<PreparedWorker>;
|
|
20
|
-
/** One app function paired with the stable key its files and diagnostics are
|
|
21
|
-
* namespaced under (`fn_<index>`). The index is the function's original
|
|
22
|
-
* position so attribution stays correct across an exclude-and-rebuild. */
|
|
23
22
|
export interface AppFunctionEntry {
|
|
24
23
|
index: number;
|
|
25
24
|
fn: AppFunctionInput;
|
package/lib/src/worker-entry.js
CHANGED
|
@@ -7,7 +7,9 @@
|
|
|
7
7
|
import { readFileSync } from "node:fs";
|
|
8
8
|
import { DenoCompatError } from "./errors.js";
|
|
9
9
|
import { RUNTIME_CONTEXT_SPECIFIER } from "./esbuild/runtime-context-virtual.js";
|
|
10
|
+
import { ASCII_ESCAPE, CAPTURE_PATCH, INVOCATION_LOGS_PATCH, } from "./invocation-logs.js";
|
|
10
11
|
import { TELEMETRY_PATCH, TELEMETRY_STORE_FIELDS } from "./telemetry.js";
|
|
12
|
+
import { COMPILER_VERSION } from "./version.js";
|
|
11
13
|
// Pre-built by scripts/build-shim.ts; regenerate it after changing the shim.
|
|
12
14
|
// Read LAZILY, not at module load: build-shim.ts transitively imports this
|
|
13
15
|
// module through the esbuild plugins, and on a fresh checkout dist/ doesn't
|
|
@@ -58,7 +60,9 @@ export const CONSOLE_PATCH = [
|
|
|
58
60
|
// by per-app bundles, where one script serves every function and log queries
|
|
59
61
|
// need per-function attribution. `secrets` and `workerEnv` reference the
|
|
60
62
|
// request's authoritative Worker env binding.
|
|
61
|
-
|
|
63
|
+
ASCII_ESCAPE,
|
|
64
|
+
CAPTURE_PATCH,
|
|
65
|
+
"const _b44Wrap = (lvl, a) => { const _c = _b44Context() ?? {}; const _m = _b44Fmt(a); _b44Capture(_c, lvl, _m); _b44Orig({ _b44_env: _c.env ?? 'preview', ...(_c.fn ? { _b44_function: _c.fn } : {}), level: lvl, message: _m }); };",
|
|
62
66
|
"console.log = (...a) => _b44Wrap('info', a);",
|
|
63
67
|
"console.info = (...a) => _b44Wrap('info', a);",
|
|
64
68
|
"console.warn = (...a) => _b44Wrap('warn', a);",
|
|
@@ -102,6 +106,30 @@ export async function prepareFunction(entry, files, postResponseTelemetry = fals
|
|
|
102
106
|
},
|
|
103
107
|
};
|
|
104
108
|
}
|
|
109
|
+
/** One app function paired with the stable key its files and diagnostics are
|
|
110
|
+
* namespaced under (`fn_<index>`). The index is the function's original
|
|
111
|
+
* position so attribution stays correct across an exclude-and-rebuild. */
|
|
112
|
+
/** Bumped only when the payload's shape changes, never for a new field. */
|
|
113
|
+
const BANNER_FORMAT = 1;
|
|
114
|
+
/** The bundle's self-description, as its first line: `//!b44:<format> <json>`.
|
|
115
|
+
* A fixed sentinel so `head -1` finds it and a reader can version the format,
|
|
116
|
+
* and JSON so it parses in one call. Before this, a compiled module named its
|
|
117
|
+
* functions only as scattered `registerLazy` literals in minified output.
|
|
118
|
+
*
|
|
119
|
+
* Nothing volatile belongs in here. A version's identity is the hash of these
|
|
120
|
+
* bytes, so a timestamp, a build id or anything else that moves on its own
|
|
121
|
+
* would re-mint a version for code that did not change; the app id would make
|
|
122
|
+
* the same functions compile differently per app; the shard's position would
|
|
123
|
+
* make two identical shards differ. Names are sorted for the same reason — the
|
|
124
|
+
* module below is assembled in caller order, this line is not. */
|
|
125
|
+
function buildBanner(entries, telemetry, runtimeSecrets) {
|
|
126
|
+
return `//!b44:${BANNER_FORMAT} ${JSON.stringify({
|
|
127
|
+
functions: entries.map(({ fn }) => fn.name).sort(),
|
|
128
|
+
telemetry,
|
|
129
|
+
runtimeSecrets,
|
|
130
|
+
compiler: COMPILER_VERSION,
|
|
131
|
+
})}`;
|
|
132
|
+
}
|
|
105
133
|
/** Assemble the whole app into ONE bundle-ready Worker: every function's files
|
|
106
134
|
* namespaced under `fn_<index>/`, one shared shim, and a router that routes by
|
|
107
135
|
* function name. A single compile resolves and DEDUPES npm deps across all
|
|
@@ -128,7 +156,11 @@ export function prepareApp(entries, postResponseTelemetry = false, runtimeSecret
|
|
|
128
156
|
return wrapper;
|
|
129
157
|
});
|
|
130
158
|
files[ENTRY_FILENAME] = buildAppEntrySource(moduleFiles, postResponseTelemetry, runtimeSecrets);
|
|
131
|
-
return {
|
|
159
|
+
return {
|
|
160
|
+
entry: ENTRY_FILENAME,
|
|
161
|
+
files,
|
|
162
|
+
banner: buildBanner(entries, postResponseTelemetry, runtimeSecrets),
|
|
163
|
+
};
|
|
132
164
|
}
|
|
133
165
|
// Activation prelude for runtime-secrets bundles: gate on the encrypted
|
|
134
166
|
// handshake BEFORE any user module is imported (so a needs-activation response
|
|
@@ -208,9 +240,9 @@ function buildAppEntrySource(functionModules, telemetry, runtimeSecrets = false)
|
|
|
208
240
|
const moduleImports = functionModules
|
|
209
241
|
.map((file) => `import "./${file}";`)
|
|
210
242
|
.join("\n");
|
|
211
|
-
const handlerExpr = telemetry
|
|
243
|
+
const handlerExpr = `_b44AttachInvocationLogs(${telemetry
|
|
212
244
|
? "_b44AttachTelemetry(await handler(request, info))"
|
|
213
|
-
: "await handler(request, info)"
|
|
245
|
+
: "await handler(request, info)"})`;
|
|
214
246
|
const returnExpr = runtimeSecrets
|
|
215
247
|
? `withoutActivationSignal(${handlerExpr})`
|
|
216
248
|
: handlerExpr;
|
|
@@ -221,6 +253,7 @@ import { installStaticEgressFetch, resolveHandler } from "./${SHIM_FILENAME}";${
|
|
|
221
253
|
${moduleImports}
|
|
222
254
|
|
|
223
255
|
${CONSOLE_PATCH}
|
|
256
|
+
${INVOCATION_LOGS_PATCH}
|
|
224
257
|
// Static egress reads workerEnv from the active request store. Install it
|
|
225
258
|
// before telemetry so telemetry remains the outermost fetch wrapper.
|
|
226
259
|
installStaticEgressFetch();
|
|
@@ -230,7 +263,7 @@ export default {
|
|
|
230
263
|
async fetch(request, env, ctx) {
|
|
231
264
|
const _b44Env = (request.headers.get('base44-functions-version') ?? '') === 'prod' ? 'prod' : 'preview';
|
|
232
265
|
const functionName = request.headers.get("Base44-Function-Name");
|
|
233
|
-
return _b44Run({ env: _b44Env, fn: functionName ?? '', secrets: ${runtimeSecrets ? "process.env" : "env"}, workerEnv: env, waitUntil: (p) => ctx.waitUntil(p)${telemetry ? `, ${TELEMETRY_STORE_FIELDS}` : ""} }, async () => {
|
|
266
|
+
return _b44Run({ env: _b44Env, fn: functionName ?? '', secrets: ${runtimeSecrets ? "process.env" : "env"}, workerEnv: env, waitUntil: (p) => ctx.waitUntil(p), ..._b44CaptureStore(request)${telemetry ? `, ${TELEMETRY_STORE_FIELDS}` : ""} }, async () => {
|
|
234
267
|
${runtimeSecrets ? ACTIVATION_GATE : ""} // Each early return below logs through the patch first: per-function log
|
|
235
268
|
// queries on per-app scripts keep only stamped lines, so a bare return
|
|
236
269
|
// would leave the failing invocation with no trace in its own logs.
|
|
@@ -238,22 +271,22 @@ ${runtimeSecrets ? ACTIVATION_GATE : ""} // Each early return below logs th
|
|
|
238
271
|
if (pendingHandler === undefined) {
|
|
239
272
|
const message = \`No function registered for "\${functionName ?? ""}"\`;
|
|
240
273
|
console.error(message);
|
|
241
|
-
return new Response(message, { status: 404 });
|
|
274
|
+
return _b44AttachInvocationLogs(new Response(message, { status: 404 }));
|
|
242
275
|
}
|
|
243
276
|
let handler;
|
|
244
277
|
try {
|
|
245
278
|
handler = await pendingHandler;
|
|
246
279
|
} catch (e) {
|
|
247
280
|
console.error(\`Function "\${functionName}" failed to initialize:\`, e);
|
|
248
|
-
return new Response(
|
|
281
|
+
return _b44AttachInvocationLogs(new Response(
|
|
249
282
|
\`Function "\${functionName}" failed to initialize: \${e instanceof Error ? e.message : String(e)}\`,
|
|
250
283
|
{ status: 500 },
|
|
251
|
-
);
|
|
284
|
+
));
|
|
252
285
|
}
|
|
253
286
|
if (handler === null) {
|
|
254
287
|
const message = \`Function "\${functionName}" must export default a request handler or call Deno.serve()\`;
|
|
255
288
|
console.error(message);
|
|
256
|
-
return new Response(message, { status: 503 });
|
|
289
|
+
return _b44AttachInvocationLogs(new Response(message, { status: 503 }));
|
|
257
290
|
}
|
|
258
291
|
// Real client IP is in the "cf-connecting-ip" header, not this placeholder.
|
|
259
292
|
const info = {
|
|
@@ -266,11 +299,14 @@ ${runtimeSecrets ? ACTIVATION_GATE : ""} // Each early return below logs th
|
|
|
266
299
|
// stamped lines (see log_query.event_matches_function). Known gap:
|
|
267
300
|
// exceptions thrown while a response body streams happen after this
|
|
268
301
|
// frame returns and cannot be stamped — those crash events are
|
|
269
|
-
// dropped from per-function views
|
|
302
|
+
// dropped from per-function views, and lines logged after the response
|
|
303
|
+
// starts streaming are past the invocation-logs header too.
|
|
270
304
|
try {
|
|
271
305
|
return ${returnExpr};
|
|
272
306
|
} catch (e) {
|
|
273
307
|
console.error(e);
|
|
308
|
+
const crash = _b44CrashResponse(e);
|
|
309
|
+
if (crash) return crash;
|
|
274
310
|
throw e;
|
|
275
311
|
}
|
|
276
312
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worker-entry.js","sourceRoot":"","sources":["../../src/worker-entry.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"worker-entry.js","sourceRoot":"","sources":["../../src/worker-entry.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,OAAO,EAAE,eAAe,EAAE,MAAM,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C;IACD,OAAO,GAAG,CAAC;AACb,CAAC;AAED,SAAS,aAAa,CAAC,QAAgB;IACrC,OAAO,CACL,QAAQ,KAAK,cAAc;QAC3B,QAAQ,CAAC,QAAQ,CAAC,eAAe,CAAC;QAClC,QAAQ,KAAK,WAAW;QACxB,QAAQ,CAAC,QAAQ,CAAC,YAAY,CAAC,CAChC,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@base44/functions-compiler",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Production compiler for Base44 backend functions — turns function sources into a single Cloudflare Workers module.",
|
|
5
5
|
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/base44/cli",
|
|
9
|
+
"directory": "packages/functions-compiler"
|
|
10
|
+
},
|
|
6
11
|
"publishConfig": {
|
|
7
12
|
"access": "public"
|
|
8
13
|
},
|