4ce4204b6c
CI / Lint (push) Failing after 2s
CI / Build (push) Has been skipped
SDK CI / PHP SDK (push) Failing after 1s
Split PHP SDK / PHP SDK tests (push) Failing after 1s
CI / Test (push) Failing after 1s
CI / Dashboard (push) Failing after 0s
SDK CI / JavaScript SDK (push) Failing after 0s
SDK CI / Python SDK (push) Failing after 2s
SDK CI / Java SDK (push) Failing after 1s
Split PHP SDK / Mirror sdk/php -> rmyndharis/openwa-php (push) Has been skipped
CI / Test (PostgreSQL migrations) (push) Failing after 7m47s
CI / Docker Build (push) Has been skipped
8 lines
342 B
JavaScript
8 lines
342 B
JavaScript
// Sandbox fixture: uses ctx.logger and ctx.config (and ctx.pluginId) to prove the bridged context
|
|
// is complete — the log surfaces on the host via onLog, carrying the static config.
|
|
module.exports = class CtxAwarePlugin {
|
|
async onEnable(ctx) {
|
|
ctx.logger.log('hello from ' + ctx.pluginId, { greeting: ctx.config.greeting });
|
|
}
|
|
};
|