TypeScript plugin that bridges OpenClaw to ZhiYi MemoryWeave: - ZhiYiClient: REST API wrapper (commit/recall/searchNotes/navigate) - Plugin hooks: memory:recall, memory:commit, memory:graphNavigate, memory:searchNotes - CLI: LanceDB migration tool (placeholder — needs OpenClaw LanceDB reader) - package.json with axios + TypeScript deps - README with install instructions Namespace: openclaw-main (isolated from hermes-main) TODO: implement LanceDB reader for migration
17 lines
410 B
JavaScript
17 lines
410 B
JavaScript
'use strict';
|
|
|
|
var $abs = require('./abs');
|
|
var $floor = require('./floor');
|
|
|
|
var $isNaN = require('./isNaN');
|
|
var $isFinite = require('./isFinite');
|
|
|
|
/** @type {import('./isInteger')} */
|
|
module.exports = function isInteger(argument) {
|
|
if (typeof argument !== 'number' || $isNaN(argument) || !$isFinite(argument)) {
|
|
return false;
|
|
}
|
|
var absValue = $abs(argument);
|
|
return $floor(absValue) === absValue;
|
|
};
|