spaxel/dashboard/node_modules/call-bind-apply-helpers
jedarden c817e96802 feat: implement repeated-setting change detection with guided calibration
Detects when user changes same config setting 3+ times within 24 hours.
Shows non-intrusive prompt offering help with guided calibration flow.

Guided calibration features:
- Test for false positives (walk around room)
- Test for missed motion (sit still)
- Suggest optimal value based on diurnal baseline SNR and link health
- Apply suggested value button

Files:
- dashboard/js/proactive.js: Complete implementation with localStorage tracking

Acceptance:
- Help prompt fires after 3+ changes in 24h
- Calibration flow tests both directions
- Suggests value based on system data
- Apply button works
2026-04-11 00:18:19 -04:00
..
.github feat: implement repeated-setting change detection with guided calibration 2026-04-11 00:18:19 -04:00
test feat: implement repeated-setting change detection with guided calibration 2026-04-11 00:18:19 -04:00
.eslintrc feat: implement repeated-setting change detection with guided calibration 2026-04-11 00:18:19 -04:00
.nycrc feat: implement repeated-setting change detection with guided calibration 2026-04-11 00:18:19 -04:00
actualApply.d.ts feat: implement repeated-setting change detection with guided calibration 2026-04-11 00:18:19 -04:00
actualApply.js feat: implement repeated-setting change detection with guided calibration 2026-04-11 00:18:19 -04:00
applyBind.d.ts feat: implement repeated-setting change detection with guided calibration 2026-04-11 00:18:19 -04:00
applyBind.js feat: implement repeated-setting change detection with guided calibration 2026-04-11 00:18:19 -04:00
CHANGELOG.md feat: implement repeated-setting change detection with guided calibration 2026-04-11 00:18:19 -04:00
functionApply.d.ts feat: implement repeated-setting change detection with guided calibration 2026-04-11 00:18:19 -04:00
functionApply.js feat: implement repeated-setting change detection with guided calibration 2026-04-11 00:18:19 -04:00
functionCall.d.ts feat: implement repeated-setting change detection with guided calibration 2026-04-11 00:18:19 -04:00
functionCall.js feat: implement repeated-setting change detection with guided calibration 2026-04-11 00:18:19 -04:00
index.d.ts feat: implement repeated-setting change detection with guided calibration 2026-04-11 00:18:19 -04:00
index.js feat: implement repeated-setting change detection with guided calibration 2026-04-11 00:18:19 -04:00
LICENSE feat: implement repeated-setting change detection with guided calibration 2026-04-11 00:18:19 -04:00
package.json feat: implement repeated-setting change detection with guided calibration 2026-04-11 00:18:19 -04:00
README.md feat: implement repeated-setting change detection with guided calibration 2026-04-11 00:18:19 -04:00
reflectApply.d.ts feat: implement repeated-setting change detection with guided calibration 2026-04-11 00:18:19 -04:00
reflectApply.js feat: implement repeated-setting change detection with guided calibration 2026-04-11 00:18:19 -04:00
tsconfig.json feat: implement repeated-setting change detection with guided calibration 2026-04-11 00:18:19 -04:00

call-bind-apply-helpers Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Helper functions around Function call/apply/bind, for use in call-bind.

The only packages that should likely ever use this package directly are call-bind and get-intrinsic. Please use call-bind unless you have a very good reason not to.

Getting started

npm install --save call-bind-apply-helpers

Usage/Examples

const assert = require('assert');
const callBindBasic = require('call-bind-apply-helpers');

function f(a, b) {
	assert.equal(this, 1);
	assert.equal(a, 2);
	assert.equal(b, 3);
	assert.equal(arguments.length, 2);
}

const fBound = callBindBasic([f, 1]);

delete Function.prototype.call;
delete Function.prototype.bind;

fBound(2, 3);

Tests

Clone the repo, npm install, and run npm test