Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update kernel and add missing functions #8

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 57 additions & 6 deletions dist/index.sql
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,7 @@ AS $function$
var src_exports = {};
__export(src_exports, {
CurrentPlugin: () => CurrentPlugin,
LogLevel: () => LogLevel,
Plugin: () => Plugin,
PluginOutput: () => PluginOutput,
PluginWasi: () => PluginWasi,
Expand Down Expand Up @@ -698,6 +699,14 @@ AS $function$
return this.#output.buffer;
}
};
var LogLevel = /* @__PURE__ */ ((LogLevel2) => {
LogLevel2["trace"] = "trace";
LogLevel2["debug"] = "debug";
LogLevel2["info"] = "info";
LogLevel2["warn"] = "warn";
LogLevel2["error"] = "error";
return LogLevel2;
})(LogLevel || {});
var Plugin = class {
moduleData;
currentPlugin;
Expand All @@ -708,6 +717,7 @@ AS $function$
options;
lastStatusCode = 0;
guestRuntime;
logLevel = "info" /* info */;
constructor(extism, moduleData, options) {
this.moduleData = moduleData;
this.currentPlugin = new CurrentPlugin(this, extism);
Expand All @@ -730,6 +740,12 @@ AS $function$
const module2 = this.instantiateModule();
return module2.instance;
}
setLogLevel(level) {
this.logLevel = level;
}
getLogLevel() {
return this.logLevel;
}
functionExists(name) {
const module2 = this.instantiateModule();
return module2.instance.exports[name] ? true : false;
Expand Down Expand Up @@ -794,6 +810,16 @@ AS $function$
this.guestRuntime = detectGuestRuntime(this.module.instance);
return this.module;
}
logLevelToNumber(level) {
const levels = {
["trace" /* trace */]: 0,
["debug" /* debug */]: 1,
["info" /* info */]: 2,
["warn" /* warn */]: 3,
["error" /* error */]: 4
};
return levels[level];
}
makeEnv() {
let plugin = this;
var env = {
Expand Down Expand Up @@ -821,6 +847,9 @@ AS $function$
const tmp = new DataView(cp.getMemory().buffer, Number(offset));
tmp.setBigUint64(0, n, true);
},
input_offset(cp) {
return cp.inputOffset();
},
input_length() {
return BigInt(plugin.input.length);
},
Expand Down Expand Up @@ -884,21 +913,40 @@ AS $function$
length(cp, i) {
return cp.length(i);
},
log_warn(cp, i) {
log_trace(cp, i) {
if (this.logLevelToNumber(plugin.logLevel) > this.logLevelToNumber("trace" /* trace */)) {
mhmd-azeez marked this conversation as resolved.
Show resolved Hide resolved
return;
}
const s = cp.read(i)?.text();
plv8.elog(WARNING, s);
plv8.elog(DEBUG5, s);
},
log_debug(cp, i) {
if (this.logLevelToNumber(plugin.logLevel) > this.logLevelToNumber("debug" /* debug */)) {
mhmd-azeez marked this conversation as resolved.
Show resolved Hide resolved
return;
}
const s = cp.read(i)?.text();
plv8.elog(DEBUG1, s);
},
log_info(cp, i) {
if (this.logLevelToNumber(plugin.logLevel) > this.logLevelToNumber("info" /* info */)) {
mhmd-azeez marked this conversation as resolved.
Show resolved Hide resolved
return;
}
const s = cp.read(i)?.text();
plv8.elog(INFO, s);
},
log_debug(cp, i) {
log_warn(cp, i) {
if (this.logLevelToNumber(plugin.logLevel) > this.logLevelToNumber("warn" /* warn */)) {
mhmd-azeez marked this conversation as resolved.
Show resolved Hide resolved
return;
}
const s = cp.read(i)?.text();
plv8.elog(DEBUG1, s);
plv8.elog(WARNING, s);
},
log_error(cp, i) {
const s = cp.read(i)?.text();
plv8.elog(ERROR, s);
},
get_log_level: () => {
return this.logLevelToNumber(plugin.logLevel);
mhmd-azeez marked this conversation as resolved.
Show resolved Hide resolved
}
};
return env;
Expand Down Expand Up @@ -1138,8 +1186,8 @@ AS $function$
const extismInstance = new WebAssembly.Instance(extismModule, {});
return extismInstance;
}
var embeddedRuntime = "AGFzbQEAAAABJwhgAAF+YAF+AX5gAn5+AGADf39/AX9gA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JAAkAgAA0AAkA/AA0AQQFAAEF/Rg0CC0EAQgA3AyFBAEIANwMpQQBCADcDMUEAQgA3AzlBAEIANwMZQQBCwP8DNwMRQQBCADcDCUHBAEEAQZABEAEaC0EAKQMRDwsACw==";
var embeddedRuntimeHash = "6ec37743f991dfee8c7a2a454a4a5a3df22e6bd4459aa4357380e9be8911654f";
var embeddedRuntime = "AGFzbQEAAAABLQlgAAF+YAF+AX5gAn5+AGADf39/AX9gAX4AYAF+AX9gAn9+AX9gAn5/AGAAAAMYFwMDBgEEAQEFAQUBBwICAgAAAAAIBAAABQMBABAGFgNvAdBvC38AQYCAwAALfwBBgIDAAAsHsQIYBm1lbW9yeQIABWFsbG9jAAMEZnJlZQAEDWxlbmd0aF91bnNhZmUABQZsZW5ndGgABgdsb2FkX3U4AAcIbG9hZF91NjQACA1pbnB1dF9sb2FkX3U4AAkOaW5wdXRfbG9hZF91NjQACghzdG9yZV91OAALCXN0b3JlX3U2NAAMCWlucHV0X3NldAANCm91dHB1dF9zZXQADgxpbnB1dF9sZW5ndGgADwxpbnB1dF9vZmZzZXQAEA1vdXRwdXRfbGVuZ3RoABENb3V0cHV0X29mZnNldAASBXJlc2V0ABMJZXJyb3Jfc2V0ABQJZXJyb3JfZ2V0ABUMbWVtb3J5X2J5dGVzABYKX19kYXRhX2VuZAMCC19faGVhcF9iYXNlAwEOZXh0aXNtX2NvbnRleHQDAArtFxe1AQEDfwJAAkAgAkEQTw0AIAAhAwwBCyAAQQAgAGtBA3EiBGohBQJAIARFDQAgACEDA0AgAyABOgAAIANBAWoiAyAFSQ0ACwsgBSACIARrIgRBfHEiAmohAwJAIAJBAUgNACABQf8BcUGBgoQIbCECA0AgBSACNgIAIAVBBGoiBSADSQ0ACwsgBEEDcSECCwJAIAJFDQAgAyACaiEFA0AgAyABOgAAIANBAWoiAyAFSQ0ACwsgAAsKACAAIAEgAhAAC8ACAgR/BX4gAEHAAGohAgJAIAFCDHwiBiAAKQMQIAApAwgiB31CQHwiCFQ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QQBCADcDMUEAQgA3AzlBAEIANwMZQQBCwP8DNwMRQQBCADcDCUHBAEEAQZABEAEaCwJAAkAgAFANACAAQsAAWA0BQQApAxFCwQB8IABYDQELQQAgADcDGQsPCwALdAEBf0EAQQAtAAEiAEEBIAAbOgABAkACQCAADQACQD8ADQBBAUAAQX9GDQILQQBCADcDIUEAQgA3AylBAEIANwMxQQBCADcDOUEAQgA3AxlBAELA/wM3AxFBAEIANwMJQcEAQQBBkAEQARoLQQApAxkPCwALdAEBf0EAQQAtAAEiAEEBIAAbOgABAkACQCAADQACQD8ADQBBAUAAQX9GDQILQQBCADcDIUEAQgA3AylBAEIANwMxQQBCADcDOUEAQgA3AxlBAELA/wM3AxFBAEIANwMJQcEAQQBBkAEQARoLQQApAxEPCwAL";
var embeddedRuntimeHash = "d1389b31abecf23eec65b4430d86f99f736aeb05c40948dbbe2f88cb17815803";
var CurrentPlugin = class {
vars;
plugin;
Expand Down Expand Up @@ -1212,6 +1260,9 @@ AS $function$
inputLength() {
return this.#extism.exports.input_length();
}
inputOffset() {
return this.#extism.exports.input_offset();
}
free(offset) {
if (offset == BigInt(0)) {
return;
Expand Down
Loading
Loading