@kedem/okdb 2.3.5 → 2.4.0
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/CHANGELOG.md +349 -0
- package/algorithm-worker-thread.js +1 -1
- package/bin/okdb.js +1 -1
- package/docs/auth-and-sync.md +28 -4
- package/docs/auth-permissions.md +19 -6
- package/docs/change-log.md +79 -59
- package/docs/data-model.md +20 -18
- package/docs/deployment.md +25 -0
- package/docs/diagnostics.md +59 -17
- package/docs/embeddings.md +57 -6
- package/docs/fts.md +50 -5
- package/docs/functions.md +21 -8
- package/docs/http-api.md +139 -98
- package/docs/http-cluster.md +30 -8
- package/docs/indexes.md +5 -4
- package/docs/logging.md +18 -0
- package/docs/migration.md +94 -2
- package/docs/pipelines.md +6 -1
- package/docs/plugins.md +12 -18
- package/docs/process-registry.md +50 -39
- package/docs/processors.md +40 -22
- package/docs/querying.md +50 -36
- package/docs/queue.md +110 -14
- package/docs/subscriptions.md +35 -24
- package/docs/sync.md +96 -37
- package/docs/time-machine.md +23 -17
- package/docs/transactions.md +11 -19
- package/docs/ttl.md +118 -67
- package/docs/upgrade-2.0.md +2 -2
- package/docs/views.md +71 -52
- package/okdb-functions-sandbox-worker.js +1 -1
- package/okdb-http-worker-child.js +1 -1
- package/okdb-views-bootstrap-worker.js +1 -1
- package/okdb.js +1 -1
- package/package.json +1 -1
- package/public/sections/db/parts/type-viewer.ok.js +1 -1
- package/public/sections/embeddings/parts/engines-overview.ok.js +1 -1
- package/public/sections/queue/parts/queue-jobs.ok.js +1 -1
- package/public/sections/system/modals/data-ops-modal.ok.js +1 -1
- package/types/environment.d.ts +320 -52
- package/types/features/admin.d.ts +8 -2
- package/types/features/api.d.ts +10 -16
- package/types/features/auth.d.ts +135 -16
- package/types/features/embeddings.d.ts +639 -31
- package/types/features/engines.d.ts +368 -14
- package/types/features/files.d.ts +0 -3
- package/types/features/fts.d.ts +98 -26
- package/types/features/functions.d.ts +175 -15
- package/types/features/mcp.d.ts +23 -10
- package/types/features/pipelines.d.ts +268 -9
- package/types/features/queue.d.ts +230 -34
- package/types/features/sync.d.ts +177 -14
- package/types/features/time-machine.d.ts +117 -16
- package/types/features/views.d.ts +230 -39
- package/types/index.d.ts +357 -254
- package/types/okdb.d.ts +377 -0
- package/types/options.d.ts +309 -48
- package/public/test-cron-input.html +0 -60
- package/public/test-json-input.html +0 -280
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3f18a5=_0x48f2;(function(_0x16eee9,_0x5831f4){const _0x3599e2=_0x48f2,_0x39fb45=_0x16eee9();while(!![]){try{const _0x4ba972=-parseInt(_0x3599e2(0xa3))/0x1*(-parseInt(_0x3599e2(0xb3))/0x2)+parseInt(_0x3599e2(0xcf))/0x3+-parseInt(_0x3599e2(0x86))/0x4+-parseInt(_0x3599e2(0xba))/0x5+parseInt(_0x3599e2(0xa6))/0x6+-parseInt(_0x3599e2(0xbf))/0x7+parseInt(_0x3599e2(0x91))/0x8*(parseInt(_0x3599e2(0x8d))/0x9);if(_0x4ba972===_0x5831f4)break;else _0x39fb45['push'](_0x39fb45['shift']());}catch(_0x5e30fd){_0x39fb45['push'](_0x39fb45['shift']());}}}(_0x1adb,0x977b3));var require$$0=require('worker_threads'),require$$1=require(_0x3f18a5(0xcd));function _0x1adb(){const _0xe73346=['./okdb','system:clock_change','3082008GTUocO','_bootstrapCancelRequested','created','type','exports','ready','views','type:registered','item:pending','unref','bus:proc','system:stopped','dropIndex','dropFts','unique:violation_resolved','code','field:resolver_registered','schema:drop','system:drain','index:progress','registerFts','fts:registered','3433140qoGUqV','race','registerType','bus:env_release','index:drop','license:invalid','system:proc','706059gRjKod','bus:type_drop','waiting','message','72JHnnPk','fts:reset','clearTtl','ref:violation','stopped','txn:end','cancelled','type:drop','index:ready','VIEW_PROGRESS','resetting','license:activated','system:ready','error','postMessage','creating','txn:start','dropping','2666JwNLqi','_prepareViewDict','item:update','1354602eukoFi','stopping','system:env_release','env','resetIndex','schema:set','open','resetFts','exit','index:reset','VIEW_BOOTSTRAP_CANCELLED','cancel','freeze','146ssWVkP','name','setTtl','put','index:registered','stack','fts:drop','455005pWBxlA','prototype','started','dropType','txn:rollback','4088189cVxNxv','dropSchema','item:remove','sync:apply','call','license:added','ref:violation_resolved','_runBootstrapScanPhases','default','_activateViewStorage','env:removed','system:type_drop','done','item:create'];_0x1adb=function(){return _0xe73346;};return _0x1adb();}function getDefaultExportFromCjs(_0x73c908){const _0x587d7a=_0x3f18a5;return _0x73c908&&_0x73c908['__esModule']&&Object[_0x587d7a(0xbb)]['hasOwnProperty'][_0x587d7a(0xc3)](_0x73c908,_0x587d7a(0xc7))?_0x73c908['default']:_0x73c908;}var okdbViewsBootstrapWorker$1={},okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0x27dd4a=_0x3f18a5;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0x3b65ae={'PUT':_0x27dd4a(0xb6),'REMOVE':'remove','INDEX_DROP':_0x27dd4a(0xdb),'INDEX_REGISTER':'registerIndex','INDEX_RESET':_0x27dd4a(0xaa),'TYPE_REGISTER':_0x27dd4a(0x88),'TYPE_DROP':_0x27dd4a(0xbd),'FTS_REGISTER':_0x27dd4a(0x84),'FTS_DROP':_0x27dd4a(0xdc),'FTS_RESET':_0x27dd4a(0xad),'SCHEMA_SET':'setSchema','SCHEMA_DROP':_0x27dd4a(0xc0),'TTL_SET':_0x27dd4a(0xb5),'TTL_CLEAR':_0x27dd4a(0x93)},_0x94f82={'SYSTEM_READY':_0x27dd4a(0x9d),'FIELD_RESOLVER_REGISTERED':_0x27dd4a(0xdf),'SYSTEM_STOPPED':_0x27dd4a(0xda),'SYSTEM_CLOCK_CHANGE':_0x27dd4a(0xce),'SYSTEM_POKE':'system:poke','SYSTEM_DRAIN':_0x27dd4a(0xe1),'SYSTEM_TYPE_DROP':_0x27dd4a(0xca),'SYSTEM_PROC':_0x27dd4a(0x8c),'SYSTEM_BUS_STATE_CHANGE':'system:bus_state_change','ITEM_CREATE':_0x27dd4a(0xcc),'ITEM_UPDATE':_0x27dd4a(0xa5),'ITEM_REMOVE':_0x27dd4a(0xc1),'ITEM_PENDING':_0x27dd4a(0xd7),'INDEX_RESET':_0x27dd4a(0xaf),'INDEX_READY':_0x27dd4a(0x99),'INDEX_PROGRESS':_0x27dd4a(0x83),'VIEW_PROGRESS':'view:progress','INDEX_DROP':_0x27dd4a(0x8a),'INDEX_REGISTERED':_0x27dd4a(0xb7),'FTS_REGISTERED':_0x27dd4a(0x85),'FTS_DROP':_0x27dd4a(0xb9),'FTS_RESET':_0x27dd4a(0x92),'SCHEMA_SET':_0x27dd4a(0xab),'SCHEMA_DROP':_0x27dd4a(0xe0),'UNIQUE_VIOLATION':'unique:violation','UNIQUE_VIOLATION_RESOLVED':_0x27dd4a(0xdd),'REF_VIOLATION':_0x27dd4a(0x94),'REF_VIOLATION_RESOLVED':_0x27dd4a(0xc5),'SYNC_APPLY':_0x27dd4a(0xc2),'TXN_START':_0x27dd4a(0xa1),'TXN_END':_0x27dd4a(0x96),'TXN_ROLLBACK':_0x27dd4a(0xbe),'TYPE_REGISTERED':_0x27dd4a(0xd6),'TYPE_DROP':_0x27dd4a(0x98),'ENV_OPENED':'env:opened','ENV_REMOVED':_0x27dd4a(0xc9),'SYSTEM_ENV_RELEASE':_0x27dd4a(0xa8),'TTL_EXPIRED':'ttl:expired','TTL_SET':'ttl:set','TTL_CLEAR':'ttl:clear','LICENSE_INVALID':_0x27dd4a(0x8b),'LICENSE_ADDED':_0x27dd4a(0xc4),'LICENSE_ACTIVATED':_0x27dd4a(0x9c),'LICENSE_REMOVED':'license:removed'},_0x111908={'CREATING':_0x27dd4a(0xa0),'RESETTING':_0x27dd4a(0x9b),'READY':_0x27dd4a(0xd4),'DROPPING':_0x27dd4a(0xa2),'WAITING':_0x27dd4a(0x8f),'ERROR':_0x27dd4a(0x9e)},_0x22b789={'CREATED':_0x27dd4a(0xd1),'STARTING':'starting','STARTED':_0x27dd4a(0xbc),'STOPPING':_0x27dd4a(0xa7),'STOPPED':_0x27dd4a(0x95)},_0x375b3c={'CREATING':_0x27dd4a(0xa0),'READY':_0x27dd4a(0xd4),'HALTED':'halted','STOPPED':'stopped','RESETTING':_0x27dd4a(0x9b)},_0x580b4d=Object[_0x27dd4a(0xb2)]({'POKE':'bus:poke','DRAIN':'bus:drain','TYPE_DROP':_0x27dd4a(0x8e),'PROC':_0x27dd4a(0xd9),'ENV_RELEASE':_0x27dd4a(0x89)});return okdbEnums={'BUS_EVENTS':_0x580b4d,'CHANGE_ACTIONS':_0x3b65ae,'EVENTS':_0x94f82,'INDEX_STATE':_0x111908,'OKDB_STATE':_0x22b789,'VIEW_STATE':_0x375b3c},okdbEnums;}var hasRequiredOkdbViewsBootstrapWorker;function _0x48f2(_0x1edb8b,_0x1d3358){_0x1edb8b=_0x1edb8b-0x83;const _0x1adb21=_0x1adb();let _0x48f2c6=_0x1adb21[_0x1edb8b];return _0x48f2c6;}function requireOkdbViewsBootstrapWorker(){const _0x486e5d=_0x3f18a5;if(hasRequiredOkdbViewsBootstrapWorker)return okdbViewsBootstrapWorker$1;hasRequiredOkdbViewsBootstrapWorker=0x1;const {parentPort:_0x36f530,workerData:_0x3ad1a8}=require$$0,_0x2f6046=require$$1,{EVENTS:_0xa001e}=requireOkdbEnums();let _0x3664c7=![];_0x36f530['on'](_0x486e5d(0x90),_0x1269a8=>{const _0x327f2d=_0x486e5d;if(_0x1269a8?.[_0x327f2d(0xd2)]===_0x327f2d(0xb1))_0x3664c7=!![];});let _0x31d6a7=null;async function _0x221b06(){const _0x16d189=_0x486e5d,_0x51993f=_0x31d6a7;_0x31d6a7=null;if(!_0x51993f)return;try{await Promise[_0x16d189(0x87)]([_0x51993f['close'](),new Promise(_0x29a2d0=>setTimeout(_0x29a2d0,0x1388)[_0x16d189(0xd8)]())]);}catch{}}async function _0x46047b(){const _0x2b2d59=_0x486e5d,{rootPath:_0x27711e,envName:_0x4fd600,viewName:_0x4d3a3f,definition:_0x257051,startClock:_0x552aeb}=_0x3ad1a8;_0x31d6a7=new _0x2f6046(_0x27711e,{'admin':![],'mcp':![],'timeMachine':![],'engines':![],'processors':![],'compaction':![],'_skipBootRuntime':!![],'processes':![]}),await _0x31d6a7[_0x2b2d59(0xac)]();if(_0x3664c7)return'cancelled';const _0x5cc10b=_0x31d6a7[_0x2b2d59(0xa9)](_0x4fd600);return _0x5cc10b[_0x2b2d59(0xd5)][_0x2b2d59(0xd0)]=()=>_0x3664c7,_0x5cc10b['events']['on'](_0xa001e[_0x2b2d59(0x9a)],_0x5b813a=>{const _0x255b7b=_0x2b2d59;if(_0x5b813a?.[_0x255b7b(0xb4)]!==_0x4d3a3f)return;try{_0x36f530[_0x255b7b(0x9f)]({'type':'progress','event':_0x5b813a});}catch{}}),await _0x5cc10b['views'][_0x2b2d59(0xa4)](_0x257051),await _0x5cc10b['views'][_0x2b2d59(0xc8)](_0x4d3a3f,_0x257051),await _0x5cc10b[_0x2b2d59(0xd5)][_0x2b2d59(0xc6)](_0x4d3a3f,_0x257051,{'startClock':_0x552aeb}),_0x2b2d59(0xcb);}return _0x46047b()['then'](async _0x1e94c5=>{const _0x194e5f=_0x486e5d;await _0x221b06();try{_0x36f530[_0x194e5f(0x9f)]({'type':_0x1e94c5});}catch{}process['exit'](0x0);},async _0x2e278b=>{const _0x21e247=_0x486e5d;await _0x221b06();const _0x9a8d9a=_0x2e278b?.[_0x21e247(0xde)]===_0x21e247(0xb0);try{_0x36f530[_0x21e247(0x9f)](_0x9a8d9a?{'type':_0x21e247(0x97)}:{'type':_0x21e247(0x9e),'error':_0x2e278b?.[_0x21e247(0x90)]??String(_0x2e278b),'stack':_0x2e278b?.[_0x21e247(0xb8)]});}catch{}process[_0x21e247(0xae)](_0x9a8d9a?0x0:0x1);}),okdbViewsBootstrapWorker$1;}var okdbViewsBootstrapWorkerExports=requireOkdbViewsBootstrapWorker(),okdbViewsBootstrapWorker=getDefaultExportFromCjs(okdbViewsBootstrapWorkerExports);module[_0x3f18a5(0xd3)]=okdbViewsBootstrapWorker;
|