@zortexhq/indra-v2.5 0.4.0 → 0.4.2
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/README.md +5 -5
- package/bin/codex-postinstall.mjs +1 -1
- package/dist/action-effect.js +1 -0
- package/dist/action-read-progress.js +1 -1
- package/dist/actions-catalog.js +1 -0
- package/dist/auto-sync.js +1 -1
- package/dist/auto-update.js +1 -1
- package/dist/automatic-updates.js +1 -0
- package/dist/bundled-handbook.js +1 -1
- package/dist/cli-run.js +1 -1
- package/dist/cli.js +1 -1
- package/dist/codex-install.js +1 -1
- package/dist/codex-setup.js +1 -1
- package/dist/computer-use-setup.js +1 -0
- package/dist/default-root.js +1 -1
- package/dist/documentation-action.js +1 -0
- package/dist/gateway.js +1 -1
- package/dist/imessage-sync.js +1 -1
- package/dist/local-cloud-policy.js +1 -1
- package/dist/local-cloud.js +1 -1
- package/dist/mcp.js +1 -3
- package/dist/native-connect.js +1 -1
- package/dist/native-level1-setup.js +1 -1
- package/dist/native-ollama-discovery.js +1 -0
- package/dist/native-vault-discovery.js +1 -1
- package/dist/onboard-cli.js +1 -1
- package/dist/onboard.js +1 -1
- package/dist/onboarding.js +1 -1
- package/dist/profile.js +1 -1
- package/dist/public-tool.js +4 -1
- package/dist/read-route.js +1 -1
- package/dist/recovery-authorization-url.js +1 -1
- package/dist/recovery-progress.js +1 -1
- package/dist/recovery.js +1 -1
- package/dist/resident-autopilot.js +1 -0
- package/dist/resident-ensure-ready.js +1 -1
- package/dist/resident-host.js +2 -2
- package/dist/resident-jobs.js +1 -1
- package/dist/resident-platform.js +2 -2
- package/dist/resident-runtime-identity.js +1 -1
- package/dist/resident-startup-state.js +1 -0
- package/dist/resident-telemetry.js +1 -1
- package/dist/shared-action-schemas.js +1 -0
- package/dist/source-data.js +1 -1
- package/dist/storage-compatibility.js +1 -0
- package/dist/supervised-sync.js +1 -1
- package/dist/tools.js +1 -1
- package/dist/update-check.js +1 -1
- package/dist/update-cli.js +1 -1
- package/dist/update-command.js +1 -1
- package/dist/update-recovery.js +1 -1
- package/node_modules/@zortexhq/plugin-auto-connect/dist/api/durable-dispatcher.js +1 -1
- package/node_modules/@zortexhq/plugin-auto-connect/dist/api/job-contract.js +1 -1
- package/node_modules/@zortexhq/plugin-autopilot/dist/api.js +1 -0
- package/node_modules/@zortexhq/plugin-autopilot/dist/cua.js +1 -0
- package/node_modules/@zortexhq/plugin-autopilot/dist/feedback.js +1 -0
- package/node_modules/@zortexhq/plugin-autopilot/dist/index.js +1 -0
- package/node_modules/@zortexhq/plugin-autopilot/dist/python-runtime.js +1 -0
- package/node_modules/@zortexhq/plugin-autopilot/dist/service.js +1 -0
- package/node_modules/@zortexhq/plugin-autopilot/dist/worker.js +1 -0
- package/node_modules/@zortexhq/plugin-autopilot/package.json +23 -0
- package/node_modules/@zortexhq/plugin-autopilot/python/jev_ultrafast/LICENSE +21 -0
- package/node_modules/@zortexhq/plugin-autopilot/python/jev_ultrafast/PROVENANCE.json +38 -0
- package/node_modules/@zortexhq/plugin-autopilot/python/jev_ultrafast/__init__.py +1 -0
- package/node_modules/@zortexhq/plugin-autopilot/python/jev_ultrafast/agent.py +178 -0
- package/node_modules/@zortexhq/plugin-autopilot/python/jev_ultrafast/browser.py +13 -0
- package/node_modules/@zortexhq/plugin-autopilot/python/jev_ultrafast/indra.patch +57 -0
- package/node_modules/@zortexhq/plugin-autopilot/python/jev_ultrafast/model.py +180 -0
- package/node_modules/@zortexhq/plugin-autopilot/python/jev_ultrafast/questions.py +26 -0
- package/node_modules/@zortexhq/plugin-autopilot/python/jev_ultrafast/transport.py +70 -0
- package/node_modules/@zortexhq/plugin-autopilot/python/strategies.py +154 -0
- package/node_modules/@zortexhq/plugin-autopilot/python/worker.py +260 -0
- package/node_modules/@zortexhq/plugin-connector-activitywatch/dist/provider.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-calendar/dist/actions.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-computer-files/dist/catalog.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-core/dist/api/action-outcome.js +1 -0
- package/node_modules/@zortexhq/plugin-connector-core/dist/api/connectors.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-core/dist/api/content-acquisition.js +1 -0
- package/node_modules/@zortexhq/plugin-connector-core/dist/api/index.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-core/dist/authorization-metrics.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-core/dist/hub.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-core/dist/native-principal.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-drive/dist/actions.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-drive/package.json +2 -1
- package/node_modules/@zortexhq/plugin-connector-gmail/dist/actions.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-gmail/dist/connector.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-gmail/package.json +2 -1
- package/node_modules/@zortexhq/plugin-connector-google-tasks/dist/compounds.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-google-tasks/dist/provider.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-level1/dist/action-content.js +1 -0
- package/node_modules/@zortexhq/plugin-connector-level1/dist/apple-music-helper.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-level1/dist/apple-music-server.js +6 -6
- package/node_modules/@zortexhq/plugin-connector-level1/dist/apple-native-process.mjs +1 -0
- package/node_modules/@zortexhq/plugin-connector-level1/dist/apple-notes-helper.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-level1/dist/apple-notes-server.js +2 -2
- package/node_modules/@zortexhq/plugin-connector-level1/dist/apple-reminders-helper.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-level1/dist/apple-reminders-server.js +2 -2
- package/node_modules/@zortexhq/plugin-connector-level1/dist/cua-runtime.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-level1/dist/index.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-level1/dist/macos-contacts-server.js +1 -0
- package/node_modules/@zortexhq/plugin-connector-level1/dist/prepared-apple-native.js +1 -0
- package/node_modules/@zortexhq/plugin-connector-level1/dist/prepared-local.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-level1/dist/provisioning.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-level1/dist/public-data/content.js +1 -0
- package/node_modules/@zortexhq/plugin-connector-level1/dist/public-data/specs.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-level1/dist/shallow.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-netease/dist/provider.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-notion/dist/provider.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-outlook/dist/actions.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-outlook/dist/mail-sync.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-outlook/dist/provider.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-slack/dist/actions.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-slack/dist/provider.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-steam/dist/provider.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-teams/dist/actions.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-teams/dist/provider.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-whatsapp/dist/auth-state.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-whatsapp/dist/provider.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-youtube/dist/content.js +1 -0
- package/node_modules/@zortexhq/plugin-connector-youtube/dist/full-sync.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-youtube/dist/source.js +1 -1
- package/node_modules/@zortexhq/plugin-context-share/dist/api/action-schemas.js +1 -0
- package/node_modules/@zortexhq/plugin-context-share/dist/api/index.js +1 -1
- package/node_modules/@zortexhq/plugin-context-share/dist/index.js +1 -1
- package/node_modules/@zortexhq/plugin-context-share/dist/share.js +1 -1
- package/node_modules/@zortexhq/plugin-galaxy-ui/dist/file-catalog.js +1 -1
- package/node_modules/@zortexhq/plugin-galaxy-ui/dist/original-adapter.js +1 -1
- package/node_modules/@zortexhq/plugin-galaxy-ui/src/integration/account.js +1 -1
- package/node_modules/@zortexhq/plugin-galaxy-ui/src/integration/app-i18n-twin.js +1 -1
- package/node_modules/@zortexhq/plugin-galaxy-ui/src/integration/app-i18n.js +1 -1
- package/node_modules/@zortexhq/plugin-galaxy-ui/src/integration/app-model.js +1 -1
- package/node_modules/@zortexhq/plugin-galaxy-ui/src/integration/app-text.js +1 -1
- package/node_modules/@zortexhq/plugin-google-auth/dist/index.js +1 -1
- package/node_modules/@zortexhq/plugin-posthog/dist/operational.js +1 -1
- package/node_modules/@zortexhq/plugin-process-local/dist/api/execution-scope.js +1 -0
- package/node_modules/@zortexhq/plugin-process-local/dist/api/stdio-transport.js +1 -0
- package/node_modules/@zortexhq/plugin-process-local/dist/index.js +1 -1
- package/node_modules/@zortexhq/plugin-process-local/dist/runner.js +1 -1
- package/node_modules/@zortexhq/plugin-process-local/dist/windows-job.js +1 -1
- package/node_modules/@zortexhq/plugin-product-account/dist/index.js +4 -1
- package/node_modules/@zortexhq/plugin-product-account/dist/session-store.js +10 -0
- package/node_modules/@zortexhq/plugin-product-account/dist/storage.js +1 -0
- package/node_modules/@zortexhq/plugin-product-account/package.json +5 -1
- package/node_modules/@zortexhq/plugin-telemetry/dist/api/operational.js +1 -1
- package/node_modules/@zortexhq/plugin-vault-sqlite/dist/api/content-acquisition.js +1 -0
- package/node_modules/@zortexhq/plugin-vault-sqlite/dist/api/index.js +1 -1
- package/node_modules/@zortexhq/plugin-vault-sqlite/dist/api/public-result-visibility.js +1 -0
- package/node_modules/@zortexhq/plugin-vault-sqlite/dist/content-acquisition.js +1 -0
- package/node_modules/@zortexhq/plugin-vault-sqlite/dist/credentials.js +3 -3
- package/node_modules/@zortexhq/plugin-vault-sqlite/dist/index.js +1 -1
- package/node_modules/@zortexhq/plugin-vault-sqlite/dist/keychain.js +1 -1
- package/node_modules/@zortexhq/plugin-vault-sqlite/dist/public-visibility.js +7 -0
- package/node_modules/@zortexhq/plugin-vault-sqlite/dist/recovery-guard.js +1 -1
- package/node_modules/@zortexhq/plugin-vault-sqlite/dist/runtime.js +1 -0
- package/node_modules/@zortexhq/plugin-vault-sqlite/dist/schema.js +2 -0
- package/node_modules/@zortexhq/plugin-vault-sqlite/dist/search-records.js +1 -1
- package/node_modules/@zortexhq/plugin-vault-sqlite/dist/snapshot-tables.js +1 -1
- package/node_modules/@zortexhq/plugin-vault-sqlite/dist/snapshot-worker.js +1 -1
- package/node_modules/@zortexhq/plugin-vault-sqlite/dist/snapshot.js +1 -1
- package/node_modules/@zortexhq/plugin-vault-sqlite/dist/source-sync.js +1 -1
- package/node_modules/@zortexhq/plugin-vault-sqlite/dist/sql-worker.js +2 -1
- package/node_modules/@zortexhq/plugin-vault-sqlite/dist/sql.js +1 -1
- package/package.json +13 -7
- package/profiles/core.yml +2 -0
- package/release-provenance.json +48 -41
- package/update-manifest.json +573 -296
- package/dist/content-find.js +0 -2
- package/dist/find-snapshots.js +0 -1
- package/dist/match-excerpt.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{DatabaseSync}from"node:sqlite";import{createHash}from"node:crypto";import{isAbsolute}from"node:path";import{SNAPSHOT_TABLES as TABLES,SNAPSHOT_LOCAL_ONLY_TABLES as LOCAL_ONLY}from"./snapshot-tables.js";import{createSnapshotCodec}from"./snapshot-codec.js";const refuse=code=>{throw Error(code)};const send=message=>new Promise((resolve,reject)=>{process.send(message,error=>error?reject(error):resolve())});const encode=value=>JSON.stringify(value,(_key,v)=>typeof v==="bigint"?{$integer:v.toString()}:v);function connection(text,source){if(typeof text!=="string")return refuse("CONNECTION_METADATA_INVALID");let value;try{value=JSON.parse(text)}catch{return refuse("CONNECTION_METADATA_INVALID")}const fields=["source","provider","account","accountId","scopes","state","updatedAt"];if(!value||Array.isArray(value)||Object.keys(value).some(k=>!fields.includes(k))||value["source"]!==source||!["source","provider","account","updatedAt"].every(k=>typeof value[k]==="string"&&value[k].length>0&&value[k].length<=1e3)||value["accountId"]!==void 0&&(typeof value["accountId"]!=="string"||value["accountId"].length>1e3)||!["connected","disconnected"].includes(String(value["state"]))||!Array.isArray(value["scopes"])||value["scopes"].length>64||value["scopes"].some(s=>typeof s!=="string"||s.length>512)||Number.isNaN(Date.parse(String(value["updatedAt"]))))return refuse("CONNECTION_METADATA_INVALID");return text}async function run(input){const r=input;if(!r||typeof r.file!=="string"||!isAbsolute(r.file)||typeof r.identity!=="string"||!Number.isSafeInteger(r.maxBytes)||r.maxBytes<1024||r.maxBytes>67108864||!Array.isArray(r.privateNamespaces)||r.privateNamespaces.length>64||r.privateNamespaces.some(n=>typeof n!=="string"||!/^[a-z][a-z0-9.-]{0,63}$/.test(n)))refuse("SNAPSHOT_REQUEST_INVALID");const db=new DatabaseSync(r.file,{readOnly:true,allowExtension:false});let closed=false;let bytes=0,sequence=0,rows=0,blobs=0;const digest=createHash("sha256"),references=new Map;const emit=async value=>{const data=Buffer.from(encode(value)+"\n");try{if(data.length>1048576||bytes+data.length>r.maxBytes)refuse("SNAPSHOT_BUDGET");for(let offset=0;offset<data.length;offset+=65536){const part=data.subarray(offset,offset+65536),current=sequence++;const acknowledged=new Promise((resolve,reject)=>process.once("message",raw=>{const ack=raw;ack?.type==="ack"&&ack.sequence===current?resolve():reject(Error("SNAPSHOT_ACK_INVALID"))}));digest.update(part);bytes+=part.length;await send({type:"chunk",sequence:current,data:part});await acknowledged}}finally{data.fill(0)}};const each=async(table,columns,visit)=>{let after;const quoted=columns.map(c=>'"'+c+'"').join(","),size=columns.map(c=>`coalesce(length(CAST("${c}" AS BLOB)),0)`).join("+");const first=db.prepare(`SELECT rowid AS cursor,${size} AS bytes FROM "${table}" ORDER BY rowid LIMIT 1`);first.setReadBigInts(true);const probe=db.prepare(`SELECT rowid AS cursor,${size} AS bytes FROM "${table}" WHERE rowid>? ORDER BY rowid LIMIT 1`);probe.setReadBigInts(true);const read=db.prepare(`SELECT ${quoted} FROM "${table}" WHERE rowid=?`);read.setReadBigInts(true);for(;;){const next=after===void 0?first.get():probe.get(after);if(!next)break;if(Number(next["bytes"])>1048576)refuse("SNAPSHOT_BUDGET");after=next["cursor"];const row=read.get(after);if(!row)refuse("SNAPSHOT_ROW_MISSING");await visit(row)}};try{db.exec("PRAGMA query_only=ON; PRAGMA temp_store=MEMORY; BEGIN;");if(db.prepare("PRAGMA temp_store").get()?.["temp_store"]!==2)refuse("SNAPSHOT_TEMP_STORAGE");const meta=key=>db.prepare("SELECT value FROM meta WHERE key=?").get(key)?.["value"];if(meta("zortex-sqlite-vault-format")!=="1"||meta("vault-identity")!==r.identity)refuse("SNAPSHOT_VAULT_MISMATCH");const untilSeq=meta("watermark")??"00000000000000000000000000",epoch=Number(meta("projection-epoch"));if(typeof untilSeq!=="string"||!/^[0-7][0-9A-HJKMNP-TV-Z]{25}$/.test(untilSeq)||!Number.isSafeInteger(epoch)||epoch<0)refuse("SNAPSHOT_GENERATION_INVALID");const actual=db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name NOT LIKE 'sqlite_%'").all().map(row=>String(row["name"]));if(Object.keys(TABLES).some(table=>!["connections","records","connector_records"].includes(table)&&!actual.includes(table)))refuse("SNAPSHOT_SCHEMA_MISSING");for(const table of actual){const expected=Object.hasOwn(TABLES,table)?TABLES[table]:Object.hasOwn(LOCAL_ONLY,table)?LOCAL_ONLY[table]:void 0;if(!expected)refuse("SNAPSHOT_SCHEMA_UNKNOWN");const columns=db.prepare(`PRAGMA table_xinfo("${table}")`).all().map(row=>{if(row["hidden"]!==0)refuse("SNAPSHOT_SCHEMA_CHANGED");return String(row["name"])});if(columns.length!==expected.length||columns.some((c,i)=>c!==expected[i]))refuse("SNAPSHOT_SCHEMA_CHANGED")}if(actual.includes("binding_records")&&db.prepare("SELECT 1 FROM binding_records LIMIT 1").get())refuse("SNAPSHOT_BINDING_CACHE_UNSUPPORTED");const namespaces=db.prepare("SELECT DISTINCT namespace FROM private_state LIMIT 65").all();if(namespaces.length>64||namespaces.some(row=>!r.privateNamespaces.includes(String(row["namespace"]))))refuse("PRIVATE_NAMESPACE_UNCLASSIFIED");const portable=actual.includes("records")&&!!db.prepare("SELECT 1 FROM records LIMIT 1").get();if(actual.includes("connections"))await each("connections",["source","metadata"],async row=>{connection(row["metadata"],row["source"])});const header={format:portable?"zortex-sqlite-data/v2":"zortex-sqlite-data/v1",identity:r.identity,untilSeq,projectionEpoch:epoch};await emit({type:"header",...header,authorityRestorable:false});for(const table of actual){if(table==="user_blob_contents"||table==="records"||Object.hasOwn(LOCAL_ONLY,table))continue;const columns=table==="connections"?["source","metadata"]:TABLES[table];await each(table,columns,async row=>{if((table==="events"||table==="system_events")&&Number(row["erased"])===0&&row["blobs"]!==null){let refs;try{refs=JSON.parse(String(row["blobs"]))}catch{refuse("SNAPSHOT_BLOB_REFERENCE")}if(!Array.isArray(refs)||refs.length>4096)refuse("SNAPSHOT_BLOB_REFERENCE");for(const ref of refs){if(!ref||typeof ref.sha256!=="string"||!/^[a-f0-9]{64}$/.test(ref.sha256)||!Number.isSafeInteger(ref.bytes)||ref.bytes<0||ref.bytes>16777216||references.has(ref.sha256)&&references.get(ref.sha256)!==ref.bytes)refuse("SNAPSHOT_BLOB_REFERENCE");references.set(ref.sha256,ref.bytes);if(references.size>4096)refuse("SNAPSHOT_BUDGET")}}await emit({type:"row",table,value:row});rows++})}if(portable){const codec=createSnapshotCodec(r.identity);await each("records",TABLES["records"],async row=>{if(typeof row["source"]!=="string"||!/^[a-z][a-z0-9-]{0,63}$/.test(row["source"])||typeof row["id"]!=="string"||!row["id"]||row["id"].length>500||!(typeof row["ts"]==="bigint"||typeof row["ts"]==="number"&&Number.isFinite(row["ts"]))||typeof row["payload"]!=="string")refuse("SNAPSHOT_CACHE_INVALID");const payload=await codec.open(row["payload"]);if(Buffer.byteLength(payload)>512e3)refuse("SNAPSHOT_CACHE_INVALID");try{JSON.parse(payload)}catch{refuse("SNAPSHOT_CACHE_INVALID")}await emit({type:"portable-record",value:{source:row["source"],id:row["id"],ts:row["ts"],payload}});rows++})}for(const[sha,size]of references){const lengths=db.prepare("SELECT length(CAST(metadata AS BLOB)) AS metadataBytes,length(data) AS bytes FROM user_blob_contents WHERE sha256=?").get(sha);if(!lengths||lengths["bytes"]!==size||typeof lengths["metadataBytes"]!=="number"||lengths["metadataBytes"]>65536)refuse("SNAPSHOT_BLOB_MISSING");const info=db.prepare("SELECT metadata FROM user_blob_contents WHERE sha256=?").get(sha);if(!info||typeof info["metadata"]!=="string")refuse("SNAPSHOT_BLOB_INTEGRITY");let metadata;try{metadata=JSON.parse(String(info["metadata"]))}catch{return refuse("SNAPSHOT_BLOB_INTEGRITY")}if(!metadata||typeof metadata!=="object"||Array.isArray(metadata)||Object.keys(metadata).some(k=>!["sha256","bytes","mime","name"].includes(k))||metadata["sha256"]!==sha||metadata["bytes"]!==size||metadata["mime"]!==void 0&&(typeof metadata["mime"]!=="string"||metadata["mime"].length>512)||metadata["name"]!==void 0&&(typeof metadata["name"]!=="string"||metadata["name"].length>1e3))refuse("SNAPSHOT_BLOB_INTEGRITY");const blobHash=createHash("sha256");await emit({type:"blob-header",sha256:sha,metadata});for(let offset=0;offset<size;offset+=65536){const chunk=db.prepare("SELECT substr(data,?,?) AS bytes FROM user_blob_contents WHERE sha256=?").get(offset+1,Math.min(65536,size-offset),sha)?.["bytes"];if(!(chunk instanceof Uint8Array)||chunk.length!==Math.min(65536,size-offset))refuse("SNAPSHOT_BLOB_INTEGRITY");blobHash.update(chunk);await emit({type:"blob-chunk",sha256:sha,offset,data:Buffer.from(chunk).toString("base64")});chunk.fill(0)}if(blobHash.digest("hex")!==sha)refuse("SNAPSHOT_BLOB_INTEGRITY");blobs++}db.exec("ROLLBACK");db.close();closed=true;await send({type:"done",receipt:{...header,bytes,sha256:digest.digest("hex"),chunks:sequence,rows,blobs}})}finally{if(!closed)db.close()}process.disconnect()}process.once("message",input=>{void run(input).catch(async error=>{try{await send({type:"error",code:error instanceof Error&&/^[A-Z_]{1,64}$/.test(error.message)?error.message:"SNAPSHOT_READ_FAILED"})}finally{process.exitCode=1;process.disconnect()}})});
|
|
1
|
+
import{DatabaseSync}from"node:sqlite";import{assertVaultRuntime}from"./runtime.js";import{createHash}from"node:crypto";import{isAbsolute}from"node:path";import{SNAPSHOT_TABLES as TABLES,SNAPSHOT_LOCAL_ONLY_TABLES as LOCAL_ONLY}from"./snapshot-tables.js";import{createSnapshotCodec}from"./snapshot-codec.js";const refuse=code=>{throw Error(code)};const send=message=>new Promise((resolve,reject)=>{process.send(message,error=>error?reject(error):resolve())});const encode=value=>JSON.stringify(value,(_key,v)=>typeof v==="bigint"?{$integer:v.toString()}:v);function connection(text,source){if(typeof text!=="string")return refuse("CONNECTION_METADATA_INVALID");let value;try{value=JSON.parse(text)}catch{return refuse("CONNECTION_METADATA_INVALID")}const fields=["source","provider","account","accountId","scopes","state","updatedAt"];if(!value||Array.isArray(value)||Object.keys(value).some(k=>!fields.includes(k))||value["source"]!==source||!["source","provider","account","updatedAt"].every(k=>typeof value[k]==="string"&&value[k].length>0&&value[k].length<=1e3)||value["accountId"]!==void 0&&(typeof value["accountId"]!=="string"||value["accountId"].length>1e3)||!["connected","disconnected"].includes(String(value["state"]))||!Array.isArray(value["scopes"])||value["scopes"].length>64||value["scopes"].some(s=>typeof s!=="string"||s.length>512)||Number.isNaN(Date.parse(String(value["updatedAt"]))))return refuse("CONNECTION_METADATA_INVALID");return text}async function run(input){assertVaultRuntime();const r=input;if(!r||typeof r.file!=="string"||!isAbsolute(r.file)||typeof r.identity!=="string"||!Number.isSafeInteger(r.maxBytes)||r.maxBytes<1024||r.maxBytes>67108864||!Array.isArray(r.privateNamespaces)||r.privateNamespaces.length>64||r.privateNamespaces.some(n=>typeof n!=="string"||!/^[a-z][a-z0-9.-]{0,63}$/.test(n)))refuse("SNAPSHOT_REQUEST_INVALID");const db=new DatabaseSync(r.file,{readOnly:true,allowExtension:false});let closed=false;let bytes=0,sequence=0,rows=0,blobs=0;const digest=createHash("sha256"),references=new Map;const emit=async value=>{const data=Buffer.from(encode(value)+"\n");try{if(data.length>1048576||bytes+data.length>r.maxBytes)refuse("SNAPSHOT_BUDGET");for(let offset=0;offset<data.length;offset+=65536){const part=data.subarray(offset,offset+65536),current=sequence++;const acknowledged=new Promise((resolve,reject)=>process.once("message",raw=>{const ack=raw;ack?.type==="ack"&&ack.sequence===current?resolve():reject(Error("SNAPSHOT_ACK_INVALID"))}));digest.update(part);bytes+=part.length;await send({type:"chunk",sequence:current,data:part});await acknowledged}}finally{data.fill(0)}};const each=async(table,columns,visit)=>{let after;const quoted=columns.map(c=>'"'+c+'"').join(","),size=columns.map(c=>`coalesce(length(CAST("${c}" AS BLOB)),0)`).join("+");const first=db.prepare(`SELECT rowid AS cursor,${size} AS bytes FROM "${table}" ORDER BY rowid LIMIT 1`);first.setReadBigInts(true);const probe=db.prepare(`SELECT rowid AS cursor,${size} AS bytes FROM "${table}" WHERE rowid>? ORDER BY rowid LIMIT 1`);probe.setReadBigInts(true);const read=db.prepare(`SELECT ${quoted} FROM "${table}" WHERE rowid=?`);read.setReadBigInts(true);for(;;){const next=after===void 0?first.get():probe.get(after);if(!next)break;if(Number(next["bytes"])>1048576)refuse("SNAPSHOT_BUDGET");after=next["cursor"];const row=read.get(after);if(!row)refuse("SNAPSHOT_ROW_MISSING");await visit(row)}};try{db.exec("PRAGMA query_only=ON; PRAGMA temp_store=MEMORY; BEGIN;");if(db.prepare("PRAGMA temp_store").get()?.["temp_store"]!==2)refuse("SNAPSHOT_TEMP_STORAGE");const meta=key=>db.prepare("SELECT value FROM meta WHERE key=?").get(key)?.["value"];if(meta("zortex-sqlite-vault-format")!=="1"||meta("vault-identity")!==r.identity)refuse("SNAPSHOT_VAULT_MISMATCH");const untilSeq=meta("watermark")??"00000000000000000000000000",epoch=Number(meta("projection-epoch"));if(typeof untilSeq!=="string"||!/^[0-7][0-9A-HJKMNP-TV-Z]{25}$/.test(untilSeq)||!Number.isSafeInteger(epoch)||epoch<0)refuse("SNAPSHOT_GENERATION_INVALID");const actual=db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name NOT LIKE 'sqlite_%'").all().map(row=>String(row["name"]));if(Object.keys(TABLES).some(table=>!["connections","records","connector_records"].includes(table)&&!actual.includes(table)))refuse("SNAPSHOT_SCHEMA_MISSING");for(const table of actual){const expected=Object.hasOwn(TABLES,table)?TABLES[table]:Object.hasOwn(LOCAL_ONLY,table)?LOCAL_ONLY[table]:void 0;if(!expected)refuse("SNAPSHOT_SCHEMA_UNKNOWN");const columns=db.prepare(`PRAGMA table_xinfo("${table}")`).all().map(row=>{if(row["hidden"]!==0)refuse("SNAPSHOT_SCHEMA_CHANGED");return String(row["name"])});if(columns.length!==expected.length||columns.some((c,i)=>c!==expected[i]))refuse("SNAPSHOT_SCHEMA_CHANGED")}if(actual.includes("binding_records")&&db.prepare("SELECT 1 FROM binding_records LIMIT 1").get())refuse("SNAPSHOT_BINDING_CACHE_UNSUPPORTED");const namespaces=db.prepare("SELECT DISTINCT namespace FROM private_state LIMIT 65").all();if(namespaces.length>64||namespaces.some(row=>!r.privateNamespaces.includes(String(row["namespace"]))))refuse("PRIVATE_NAMESPACE_UNCLASSIFIED");const portable=actual.includes("records")&&!!db.prepare("SELECT 1 FROM records LIMIT 1").get();if(actual.includes("connections"))await each("connections",["source","metadata"],async row=>{connection(row["metadata"],row["source"])});const header={format:portable?"zortex-sqlite-data/v2":"zortex-sqlite-data/v1",identity:r.identity,untilSeq,projectionEpoch:epoch};await emit({type:"header",...header,authorityRestorable:false});for(const table of actual){if(table==="user_blob_contents"||table==="records"||Object.hasOwn(LOCAL_ONLY,table))continue;const columns=table==="connections"?["source","metadata"]:TABLES[table];await each(table,columns,async row=>{if((table==="events"||table==="system_events")&&Number(row["erased"])===0&&row["blobs"]!==null){let refs;try{refs=JSON.parse(String(row["blobs"]))}catch{refuse("SNAPSHOT_BLOB_REFERENCE")}if(!Array.isArray(refs)||refs.length>4096)refuse("SNAPSHOT_BLOB_REFERENCE");for(const ref of refs){if(!ref||typeof ref.sha256!=="string"||!/^[a-f0-9]{64}$/.test(ref.sha256)||!Number.isSafeInteger(ref.bytes)||ref.bytes<0||ref.bytes>16777216||references.has(ref.sha256)&&references.get(ref.sha256)!==ref.bytes)refuse("SNAPSHOT_BLOB_REFERENCE");references.set(ref.sha256,ref.bytes);if(references.size>4096)refuse("SNAPSHOT_BUDGET")}}await emit({type:"row",table,value:row});rows++})}if(portable){const codec=createSnapshotCodec(r.identity);await each("records",TABLES["records"],async row=>{if(typeof row["source"]!=="string"||!/^[a-z][a-z0-9-]{0,63}$/.test(row["source"])||typeof row["id"]!=="string"||!row["id"]||row["id"].length>500||!(typeof row["ts"]==="bigint"||typeof row["ts"]==="number"&&Number.isFinite(row["ts"]))||typeof row["payload"]!=="string")refuse("SNAPSHOT_CACHE_INVALID");const payload=await codec.open(row["payload"]);if(Buffer.byteLength(payload)>512e3)refuse("SNAPSHOT_CACHE_INVALID");try{JSON.parse(payload)}catch{refuse("SNAPSHOT_CACHE_INVALID")}await emit({type:"portable-record",value:{source:row["source"],id:row["id"],ts:row["ts"],payload}});rows++})}for(const[sha,size]of references){const lengths=db.prepare("SELECT length(CAST(metadata AS BLOB)) AS metadataBytes,length(data) AS bytes FROM user_blob_contents WHERE sha256=?").get(sha);if(!lengths||lengths["bytes"]!==size||typeof lengths["metadataBytes"]!=="number"||lengths["metadataBytes"]>65536)refuse("SNAPSHOT_BLOB_MISSING");const info=db.prepare("SELECT metadata FROM user_blob_contents WHERE sha256=?").get(sha);if(!info||typeof info["metadata"]!=="string")refuse("SNAPSHOT_BLOB_INTEGRITY");let metadata;try{metadata=JSON.parse(String(info["metadata"]))}catch{return refuse("SNAPSHOT_BLOB_INTEGRITY")}if(!metadata||typeof metadata!=="object"||Array.isArray(metadata)||Object.keys(metadata).some(k=>!["sha256","bytes","mime","name"].includes(k))||metadata["sha256"]!==sha||metadata["bytes"]!==size||metadata["mime"]!==void 0&&(typeof metadata["mime"]!=="string"||metadata["mime"].length>512)||metadata["name"]!==void 0&&(typeof metadata["name"]!=="string"||metadata["name"].length>1e3))refuse("SNAPSHOT_BLOB_INTEGRITY");const blobHash=createHash("sha256");await emit({type:"blob-header",sha256:sha,metadata});for(let offset=0;offset<size;offset+=65536){const chunk=db.prepare("SELECT substr(data,?,?) AS bytes FROM user_blob_contents WHERE sha256=?").get(offset+1,Math.min(65536,size-offset),sha)?.["bytes"];if(!(chunk instanceof Uint8Array)||chunk.length!==Math.min(65536,size-offset))refuse("SNAPSHOT_BLOB_INTEGRITY");blobHash.update(chunk);await emit({type:"blob-chunk",sha256:sha,offset,data:Buffer.from(chunk).toString("base64")});chunk.fill(0)}if(blobHash.digest("hex")!==sha)refuse("SNAPSHOT_BLOB_INTEGRITY");blobs++}db.exec("ROLLBACK");db.close();closed=true;await send({type:"done",receipt:{...header,bytes,sha256:digest.digest("hex"),chunks:sequence,rows,blobs}})}finally{if(!closed)db.close()}process.disconnect()}process.once("message",input=>{void run(input).catch(async error=>{try{await send({type:"error",code:error instanceof Error&&/^[A-Z_]{1,64}$/.test(error.message)?error.message:"SNAPSHOT_READ_FAILED"})}finally{process.exitCode=1;process.disconnect()}})});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{fork}from"node:child_process";import{fileURLToPath}from"node:url";import{createHash}from"node:crypto";import{businessError}from"@zortexhq/plugin-connector-framework/api";export function createSnapshotReader(file,identity,privateNamespaces){const stop=new AbortController,pending=new Set;const fail=(code,message)=>businessError(code,message,"storage");return{exportDataSnapshot(consume,options={}){if(!options||typeof options!=="object"||Array.isArray(options))return Promise.resolve(fail("invalid_argument","Invalid snapshot options."));const signal=options.signal;try{if(signal!==void 0)Object.getOwnPropertyDescriptor(AbortSignal.prototype,"aborted").get.call(signal)}catch{return Promise.resolve(fail("invalid_argument","Invalid snapshot cancellation signal."))}const maxBytes=options.maxBytes??64*1024*1024,timeout=options.timeoutMs??6e4;if(stop.signal.aborted)return Promise.resolve(fail("unavailable","Snapshot reader is closed."));if(pending.size)return Promise.resolve(fail("failed_precondition","Another snapshot is active."));if(typeof consume!=="function"||Object.keys(options).some(k=>!["signal","maxBytes","timeoutMs"].includes(k))||!Number.isSafeInteger(maxBytes)||maxBytes<1024||maxBytes>64*1024*1024||!Number.isSafeInteger(timeout)||timeout<50||timeout>6e4)return Promise.resolve(fail("invalid_argument","Invalid snapshot limits."));const task=Promise.resolve().then(async()=>{if(stop.signal.aborted||signal?.aborted)return fail("aborted","Snapshot cancelled.");const child=fork(fileURLToPath(new URL("./snapshot-worker.js",import.meta.url)),[],{execPath:process.execPath,execArgv:["--disable-warning=ExperimentalWarning"],env:{},windowsHide:true,serialization:"advanced",stdio:["ignore","ignore","ignore","ipc"]});let failure,done,processing,bytes=0,sequence=0;const digest=createHash("sha256");const abort=(code,message)=>{failure??=fail(code,message);child.kill("SIGKILL")};const cancel=()=>abort("aborted","Snapshot cancelled.");const closed=new Promise(resolve=>child.once("close",resolve));child.on("error",()=>abort("unavailable","Snapshot worker failed."));child.on("message",raw=>{const message=raw;if(failure){if(message?.data instanceof Uint8Array)message.data.fill(0);return}if(message?.type==="chunk"&&message.sequence===sequence&&!processing&&!done&&message.data instanceof Uint8Array&&message.data.length>0&&message.data.length<=65536){const chunk=message.data;bytes+=chunk.length;if(bytes>maxBytes){chunk.fill(0);abort("resource_exhausted","Snapshot exceeded its byte budget.");return}digest.update(chunk);sequence++;const work=Promise.resolve().then(async()=>{if(!failure)await consume(chunk)}).catch(()=>abort("aborted","Snapshot consumer failed.")).finally(()=>chunk.fill(0));processing=work;void work.then(()=>{processing=void 0;if(!failure&&child.connected)child.send({type:"ack",sequence:message.sequence},error=>{if(error)abort("unavailable","Snapshot acknowledgement failed.")})})}else if(message?.type==="done"&&!processing&&!done){done=message.receipt}else if(message?.type==="error")abort(message.code==="SNAPSHOT_BUDGET"?"resource_exhausted":"failed_precondition","Snapshot refused: "+(typeof message.code==="string"&&/^[A-Z_]{1,64}$/.test(message.code)?message.code:"READ_FAILED"));else abort("data_loss","Invalid snapshot protocol.")});stop.signal.addEventListener("abort",cancel,{once:true});if(signal)EventTarget.prototype.addEventListener.call(signal,"abort",cancel,{once:true});const timer=setTimeout(()=>abort("deadline_exceeded","Snapshot worker exceeded its time budget."),timeout);try{if(stop.signal.aborted||signal?.aborted)cancel();else child.send({file,identity,maxBytes,privateNamespaces},error=>{if(error)abort("unavailable","Snapshot request failed.")});const code=await closed;await processing;if(failure)return failure;if(code!==0||!done||Object.keys(done).some(k=>!["format","identity","untilSeq","projectionEpoch","bytes","sha256","chunks","rows","blobs"].includes(k))||!["zortex-sqlite-data/v1","zortex-sqlite-data/v2"].includes(done.format)||done.identity!==identity||typeof done.untilSeq!=="string"||!/^[0-7][0-9A-HJKMNP-TV-Z]{25}$/.test(done.untilSeq)||![done.projectionEpoch,done.rows,done.blobs].every(n=>Number.isSafeInteger(n)&&n>=0)||done.bytes!==bytes||done.chunks!==sequence||done.sha256!==digest.digest("hex"))return fail("data_loss","Snapshot did not complete with a verified receipt.");return{ok:done}}catch{abort("unavailable","Snapshot transport failed.");await closed;await processing;return failure}finally{clearTimeout(timer);stop.signal.removeEventListener("abort",cancel);if(signal)EventTarget.prototype.removeEventListener.call(signal,"abort",cancel)}}).catch(()=>fail("unavailable","Snapshot worker could not be created."));pending.add(task);void task.finally(()=>pending.delete(task));return task},async close(){stop.abort();await Promise.allSettled([...pending])}}}
|
|
1
|
+
import{assertVaultRuntime}from"./runtime.js";import{fork}from"node:child_process";import{fileURLToPath}from"node:url";import{createHash}from"node:crypto";import{businessError}from"@zortexhq/plugin-connector-framework/api";export function createSnapshotReader(file,identity,privateNamespaces){assertVaultRuntime();const stop=new AbortController,pending=new Set;const fail=(code,message)=>businessError(code,message,"storage");return{exportDataSnapshot(consume,options={}){if(!options||typeof options!=="object"||Array.isArray(options))return Promise.resolve(fail("invalid_argument","Invalid snapshot options."));const signal=options.signal;try{if(signal!==void 0)Object.getOwnPropertyDescriptor(AbortSignal.prototype,"aborted").get.call(signal)}catch{return Promise.resolve(fail("invalid_argument","Invalid snapshot cancellation signal."))}const maxBytes=options.maxBytes??64*1024*1024,timeout=options.timeoutMs??6e4;if(stop.signal.aborted)return Promise.resolve(fail("unavailable","Snapshot reader is closed."));if(pending.size)return Promise.resolve(fail("failed_precondition","Another snapshot is active."));if(typeof consume!=="function"||Object.keys(options).some(k=>!["signal","maxBytes","timeoutMs"].includes(k))||!Number.isSafeInteger(maxBytes)||maxBytes<1024||maxBytes>64*1024*1024||!Number.isSafeInteger(timeout)||timeout<50||timeout>6e4)return Promise.resolve(fail("invalid_argument","Invalid snapshot limits."));const task=Promise.resolve().then(async()=>{if(stop.signal.aborted||signal?.aborted)return fail("aborted","Snapshot cancelled.");const child=fork(fileURLToPath(new URL("./snapshot-worker.js",import.meta.url)),[],{execPath:process.execPath,execArgv:["--disable-warning=ExperimentalWarning"],env:{},windowsHide:true,serialization:"advanced",stdio:["ignore","ignore","ignore","ipc"]});let failure,done,processing,bytes=0,sequence=0;const digest=createHash("sha256");const abort=(code,message)=>{failure??=fail(code,message);child.kill("SIGKILL")};const cancel=()=>abort("aborted","Snapshot cancelled.");const closed=new Promise(resolve=>child.once("close",resolve));child.on("error",()=>abort("unavailable","Snapshot worker failed."));child.on("message",raw=>{const message=raw;if(failure){if(message?.data instanceof Uint8Array)message.data.fill(0);return}if(message?.type==="chunk"&&message.sequence===sequence&&!processing&&!done&&message.data instanceof Uint8Array&&message.data.length>0&&message.data.length<=65536){const chunk=message.data;bytes+=chunk.length;if(bytes>maxBytes){chunk.fill(0);abort("resource_exhausted","Snapshot exceeded its byte budget.");return}digest.update(chunk);sequence++;const work=Promise.resolve().then(async()=>{if(!failure)await consume(chunk)}).catch(()=>abort("aborted","Snapshot consumer failed.")).finally(()=>chunk.fill(0));processing=work;void work.then(()=>{processing=void 0;if(!failure&&child.connected)child.send({type:"ack",sequence:message.sequence},error=>{if(error)abort("unavailable","Snapshot acknowledgement failed.")})})}else if(message?.type==="done"&&!processing&&!done){done=message.receipt}else if(message?.type==="error")abort(message.code==="SNAPSHOT_BUDGET"?"resource_exhausted":"failed_precondition","Snapshot refused: "+(typeof message.code==="string"&&/^[A-Z_]{1,64}$/.test(message.code)?message.code:"READ_FAILED"));else abort("data_loss","Invalid snapshot protocol.")});stop.signal.addEventListener("abort",cancel,{once:true});if(signal)EventTarget.prototype.addEventListener.call(signal,"abort",cancel,{once:true});const timer=setTimeout(()=>abort("deadline_exceeded","Snapshot worker exceeded its time budget."),timeout);try{if(stop.signal.aborted||signal?.aborted)cancel();else child.send({file,identity,maxBytes,privateNamespaces},error=>{if(error)abort("unavailable","Snapshot request failed.")});const code=await closed;await processing;if(failure)return failure;if(code!==0||!done||Object.keys(done).some(k=>!["format","identity","untilSeq","projectionEpoch","bytes","sha256","chunks","rows","blobs"].includes(k))||!["zortex-sqlite-data/v1","zortex-sqlite-data/v2"].includes(done.format)||done.identity!==identity||typeof done.untilSeq!=="string"||!/^[0-7][0-9A-HJKMNP-TV-Z]{25}$/.test(done.untilSeq)||![done.projectionEpoch,done.rows,done.blobs].every(n=>Number.isSafeInteger(n)&&n>=0)||done.bytes!==bytes||done.chunks!==sequence||done.sha256!==digest.digest("hex"))return fail("data_loss","Snapshot did not complete with a verified receipt.");return{ok:done}}catch{abort("unavailable","Snapshot transport failed.");await closed;await processing;return failure}finally{clearTimeout(timer);stop.signal.removeEventListener("abort",cancel);if(signal)EventTarget.prototype.removeEventListener.call(signal,"abort",cancel)}}).catch(()=>fail("unavailable","Snapshot worker could not be created."));pending.add(task);void task.finally(()=>pending.delete(task));return task},async close(){stop.abort();await Promise.allSettled([...pending])}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createHash}from"node:crypto";import{businessError,ok}from"@zortexhq/plugin-connector-framework/api";const object=value=>!!value&&typeof value==="object"&&!Array.isArray(value);const bounded=value=>typeof value==="string"&&value.length>0&&value.length<=256;const instant=value=>typeof value==="string"&&Number.isFinite(Date.parse(value));function key(authority){if(!authority||!/^[a-z][a-z0-9-]{0,63}$/.test(authority.source)||!bounded(authority.account)||!bounded(authority.revision)||authority.bindingId!==void 0&&!bounded(authority.bindingId)||authority.scopeEpoch!==void 0&&(!Number.isSafeInteger(authority.scopeEpoch)||authority.scopeEpoch<0)||!Array.isArray(authority.scopes)||authority.scopes.length>100||authority.scopes.some(scope=>!bounded(scope)))return;return createHash("sha256").update(JSON.stringify({source:authority.source,account:authority.account,binding:authority.bindingId??null,revision:authority.revision,scopes:[...new Set(authority.scopes)].sort(),scopeEpoch:authority.scopeEpoch??null})).digest("hex")}function valid(state,source){if(!object(state)||state.source!==source||!["pending","syncing","ready","partial","paused","blocked"].includes(String(state.phase))||Object.keys(state).some(field=>!["source","phase","coverage","appended","initialCompletedAt","lastAttemptAt","lastSuccessAt","checkedAt","nextAt","errorCode"].includes(field))||!Number.isSafeInteger(state.appended)||Number(state.appended)<0||!object(state.coverage))return false;const coverage=state.coverage;if(Object.keys(coverage).some(field=>!["status","resources","since","until","limitations"].includes(field))||!["unknown","partial","complete"].includes(String(coverage.status))||!Array.isArray(coverage.resources)||coverage.resources.length>100||coverage.resources.some(item=>!bounded(item))||!Array.isArray(coverage.limitations)||coverage.limitations.length>100||coverage.limitations.some(item=>!bounded(item)))return false;for(const field of["initialCompletedAt","lastAttemptAt","lastSuccessAt","checkedAt","nextAt"])if(state[field]!==void 0&&!instant(state[field]))return false;for(const field of["since","until"])if(coverage[field]!==void 0&&!instant(coverage[field]))return false;if(coverage.since&&coverage.until&&Date.parse(String(coverage.since))>Date.parse(String(coverage.until)))return false;if(state.errorCode!==void 0&&(typeof state.errorCode!=="string"||!/^[a-z][a-z0-9_]{0,63}$/.test(state.errorCode)))return false;return state.phase!=="ready"||coverage.status==="complete"&&coverage.resources.length>0&&coverage.limitations.length===0&&instant(state.checkedAt)&&instant(state.initialCompletedAt)}export function createSourceSyncStore(store){const invalid=()=>businessError("invalid_argument","Invalid source data state or authority.","storage");return{read(authority){const id=key(authority);if(!id)return invalid();const found=store.get(id);if(!("ok"in found))return found;if(!found.ok)return ok(null);return valid(found.ok.value,authority.source)?ok({revision:found.ok.revision,state:found.ok.value}):businessError("data_loss","Source data state is invalid.","storage")},write(authority,state,expectedRevision){const id=key(authority);if(!id||!valid(state,authority.source))return invalid();const saved=store.put(id,state,expectedRevision);return"ok"in saved?ok({revision:saved.ok.revision,state:structuredClone(state)}):saved}}}
|
|
1
|
+
import{createHash}from"node:crypto";import{businessError,ok}from"@zortexhq/plugin-connector-framework/api";const object=value=>!!value&&typeof value==="object"&&!Array.isArray(value);const bounded=value=>typeof value==="string"&&value.length>0&&value.length<=256;const instant=value=>typeof value==="string"&&Number.isFinite(Date.parse(value));function key(authority){if(!authority||!/^[a-z][a-z0-9-]{0,63}$/.test(authority.source)||!bounded(authority.account)||!bounded(authority.revision)||authority.bindingId!==void 0&&!bounded(authority.bindingId)||authority.scopeEpoch!==void 0&&(!Number.isSafeInteger(authority.scopeEpoch)||authority.scopeEpoch<0)||!Array.isArray(authority.scopes)||authority.scopes.length>100||authority.scopes.some(scope=>!bounded(scope)))return;return createHash("sha256").update(JSON.stringify({source:authority.source,account:authority.account,binding:authority.bindingId??null,revision:authority.revision,scopes:[...new Set(authority.scopes)].sort(),scopeEpoch:authority.scopeEpoch??null})).digest("hex")}function valid(state,source){if(!object(state)||state.source!==source||!["pending","syncing","ready","partial","paused","blocked"].includes(String(state.phase))||Object.keys(state).some(field=>!["source","phase","coverage","appended","initialCompletedAt","lastAttemptAt","lastSuccessAt","checkedAt","nextAt","retryCount","errorCode"].includes(field))||state.retryCount!==void 0&&(!Number.isSafeInteger(state.retryCount)||Number(state.retryCount)<0||Number(state.retryCount)>20)||!Number.isSafeInteger(state.appended)||Number(state.appended)<0||!object(state.coverage))return false;const coverage=state.coverage;if(Object.keys(coverage).some(field=>!["status","resources","since","until","limitations"].includes(field))||!["unknown","partial","complete"].includes(String(coverage.status))||!Array.isArray(coverage.resources)||coverage.resources.length>100||coverage.resources.some(item=>!bounded(item))||!Array.isArray(coverage.limitations)||coverage.limitations.length>100||coverage.limitations.some(item=>!bounded(item)))return false;for(const field of["initialCompletedAt","lastAttemptAt","lastSuccessAt","checkedAt","nextAt"])if(state[field]!==void 0&&!instant(state[field]))return false;for(const field of["since","until"])if(coverage[field]!==void 0&&!instant(coverage[field]))return false;if(coverage.since&&coverage.until&&Date.parse(String(coverage.since))>Date.parse(String(coverage.until)))return false;if(state.errorCode!==void 0&&(typeof state.errorCode!=="string"||!/^[a-z][a-z0-9_]{0,63}$/.test(state.errorCode)))return false;return state.phase!=="ready"||coverage.status==="complete"&&coverage.resources.length>0&&coverage.limitations.length===0&&instant(state.checkedAt)&&instant(state.initialCompletedAt)}export function createSourceSyncStore(store){const invalid=()=>businessError("invalid_argument","Invalid source data state or authority.","storage");return{read(authority){const id=key(authority);if(!id)return invalid();const found=store.get(id);if(!("ok"in found))return found;if(!found.ok)return ok(null);return valid(found.ok.value,authority.source)?ok({revision:found.ok.revision,state:found.ok.value}):businessError("data_loss","Source data state is invalid.","storage")},write(authority,state,expectedRevision){const id=key(authority);if(!id||!valid(state,authority.source))return invalid();const saved=store.put(id,state,expectedRevision);return"ok"in saved?ok({revision:saved.ok.revision,state:structuredClone(state)}):saved}}}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import{DatabaseSync,constants}from"node:sqlite";import{assertRecoveryReadable}from"./recovery-guard.js";let input="";process.stdin.setEncoding("utf8");process.stdin.on("data",part=>{input+=part;if(Buffer.byteLength(input)>1048576)process.exit(1)});process.stdin.on("end",()=>{let db;const error=(code,message,retryability="non-retryable")=>({err:{code,message,layer:"storage",retryability}});try{const request=JSON.parse(input);const sql=request.sql.trim().replace(/;\s*$/,"");if(!/^(SELECT|WITH|VALUES|EXPLAIN)\b/i.test(sql)||sql.includes(";"))throw Error("invalid");assertRecoveryReadable(request.file);db=new DatabaseSync(request.file,{readOnly:true,allowExtension:false});db.exec("PRAGMA busy_timeout=500
|
|
1
|
+
import{DatabaseSync,constants}from"node:sqlite";import{assertRecoveryReadable}from"./recovery-guard.js";import{assertVaultRuntime,UnsupportedVaultRuntimeError}from"./runtime.js";let input="";process.stdin.setEncoding("utf8");process.stdin.on("data",part=>{input+=part;if(Buffer.byteLength(input)>1048576)process.exit(1)});process.stdin.on("end",()=>{let db;const error=(code,message,retryability="non-retryable")=>({err:{code,message,layer:"storage",retryability}});try{assertVaultRuntime();const request=JSON.parse(input);if(request.surface!=="public"&&request.surface!=="diagnostic"){process.stdout.write(JSON.stringify({err:{...error("failed_precondition","This loaded front predates the public read contract. Continue through the current installed CLI or the host's supported MCP reload capability.").err,reason:"front_contract_obsolete"},continuation:{kind:"front-transition",routes:[{kind:"host-mcp-reload",requires:"host-capability"},{kind:"current-installed-cli",command:"indra",operation:"search"}]}}));return}const sql=request.sql.trim().replace(/;\s*$/,"");if(!/^(SELECT|WITH|VALUES|EXPLAIN)\b/i.test(sql)||sql.includes(";"))throw Error("invalid");assertRecoveryReadable(request.file);db=new DatabaseSync(request.file,{readOnly:true,allowExtension:false});db.exec("PRAGMA busy_timeout=500");const version=db.prepare("PRAGMA user_version").get()?.user_version;if(version!==1||db.prepare("SELECT value FROM meta WHERE key='zortex-sqlite-vault-format'").get()?.value!=="1")throw Error("format");const isPublic=request.surface==="public";if(isPublic){const records="SELECT id,source AS app,source,stream,source_id,rev,title,original_body AS text,original_body AS body,body AS search_text,ts,payload FROM main.search_documents";db.exec(`CREATE TEMP VIEW z_records AS ${records}; CREATE TEMP VIEW z_current_records AS ${records};
|
|
2
|
+
CREATE TEMP VIEW z_search_records AS SELECT id,source AS app,source,stream,source_id,rev,title,body,ts,payload FROM main.search_documents`)}db.exec("PRAGMA query_only=ON");db.prepare("SELECT value FROM json_each('[]')").all();const tables=new Set(isPublic?["json_each","json_tree","search_documents"]:["json_each","json_tree","events","search_documents","z_search_records","z_current_records","current_record_heads","source_streams","z_events","z_records","connector_records","system_events","pending_refs","resolved_refs","claims","blob_refs","rebinds","unknown_kinds","tombstones","event_executions"]);db.prepare("SELECT value FROM json_tree('{}')").all();const functions=new Set(["count","sum","total","avg","min","max","like","glob","lower","upper","length","substr","substring","coalesce","ifnull","nullif","date","time","datetime","strftime","julianday","unixepoch","round","abs","json","json_extract","json_type","json_valid","json_array_length","json_each","json_tree","json_array","json_object","json_group_array","json_group_object","trim","ltrim","rtrim","replace","char","instr","printf","format","group_concat","row_number","rank","dense_rank","lag","lead","first_value","last_value","nth_value"]);db.exec("BEGIN");const epoch=isPublic?Number(db.prepare("SELECT epoch FROM public_visibility WHERE id=1").get()?.epoch):void 0;if(isPublic&&!Number.isSafeInteger(epoch))throw Error("visibility");db.setAuthorizer((action,a,b,database)=>{if(action===constants.SQLITE_SELECT||action===constants.SQLITE_RECURSIVE)return constants.SQLITE_OK;if(action===constants.SQLITE_READ)return(database==="main"||database===null)&&tables.has(String(a))||isPublic&&database==="temp"&&["z_records","z_current_records","z_search_records"].includes(String(a))?constants.SQLITE_OK:constants.SQLITE_DENY;if(action===constants.SQLITE_FUNCTION&&functions.has(String(b??a).toLowerCase()))return constants.SQLITE_OK;return constants.SQLITE_DENY});const statement=db.prepare(sql);statement.setReadBigInts(true);const rows=[];let bytes=64;for(const row of statement.iterate(...request.params)){const record=Object.fromEntries(Object.entries(row).map(([key,value])=>[key,typeof value==="bigint"?value<=BigInt(Number.MAX_SAFE_INTEGER)&&value>=BigInt(Number.MIN_SAFE_INTEGER)?Number(value):value.toString():value instanceof Uint8Array?Array.from(value):value]));bytes+=Buffer.byteLength(JSON.stringify(record))+1;if(rows.length>=request.maxRows||bytes>request.maxBytes){process.stdout.write(JSON.stringify(error("resource_exhausted","SQL result exceeded its row or byte budget.")));return}rows.push(record)}db.setAuthorizer(null);db.exec("ROLLBACK");if(isPublic&&Number(db.prepare("SELECT epoch FROM public_visibility WHERE id=1").get()?.epoch)!==epoch){process.stdout.write(JSON.stringify(error("aborted","Public record visibility changed during the read; retry the query.","transient")));return}process.stdout.write(JSON.stringify({ok:{rows,truncated:false},...isPublic?{visibilityEpoch:epoch}:{}}))}catch(cause){const native=cause;const primary=native?.code==="ERR_SQLITE_ERROR"&&Number.isInteger(native.errcode)?native.errcode&255:0;const result=cause instanceof UnsupportedVaultRuntimeError?error("failed_precondition",cause.message):primary===5||primary===6?error("unavailable","Vault is busy; retry the query shortly.","transient"):primary===11||primary===26?error("data_loss","Vault storage is corrupt or is not a SQLite database."):primary===7||primary===13||primary===18?error("resource_exhausted","Vault storage exceeded an available resource limit."):primary===10||primary===14?error("unavailable","Vault storage could not be opened or read."):error("invalid_argument","SQL is invalid or outside the read-only Vault surface.");process.stdout.write(JSON.stringify(result))}finally{db?.close()}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{spawn}from"node:child_process";import{fileURLToPath}from"node:url";import{Original}from"@zortexhq/plugin-connector-framework/api";export const DEFAULT_SQL_LIMITS={timeoutMs:3e3,maxRows:500,maxBytes:1048576};const error=(code,message)=>Original.errResult({code,layer:"storage",retryability:"non-retryable",message});export function sqlLimits(value){if(!value||!Number.isSafeInteger(value.timeoutMs)||value.timeoutMs<50||value.timeoutMs>6e4||!Number.isSafeInteger(value.maxRows)||value.maxRows<1||value.maxRows>1e4||!Number.isSafeInteger(value.maxBytes)||value.maxBytes<1024||value.maxBytes>16777216)throw Error("Invalid SQL limits.");return{...value}}export function createSqlReader(file,limits){const stop=new AbortController,pending=new Set;return{sql(request,signal){if(stop.signal.aborted)return Promise.resolve(error("failed_precondition","SQL reader is closed."));if(signal?.aborted)return Promise.resolve(error("aborted","SQL query was cancelled."));const timeout=request?.timeoutMs??limits.timeoutMs;if(!request||Object.keys(request).some(key=>!["sql","params","timeoutMs"].includes(key))||typeof request.sql!=="string"||!request.sql.trim()||Buffer.byteLength(request.sql)>65536||!Number.isSafeInteger(timeout)||timeout<50||timeout>limits.timeoutMs||request.params!==void 0&&(!Array.isArray(request.params)||request.params.length>100||request.params.some(value=>value!==null&&typeof value!=="boolean"&&(typeof value!=="number"||!Number.isFinite(value))&&(typeof value!=="string"||Buffer.byteLength(value)>16384))))return Promise.resolve(error("invalid_argument","Invalid bounded SQL request."));const task=new Promise(resolve=>{const child=spawn(process.execPath,["--disable-warning=ExperimentalWarning",fileURLToPath(new URL("./sql-worker.js",import.meta.url))],{windowsHide:true,stdio:["pipe","pipe","pipe"],env:{}});const chunks=[];let bytes=0,failure;const cancel=()=>{failure=error("aborted","SQL query was cancelled.");child.kill("SIGKILL")};stop.signal.addEventListener("abort",cancel,{once:true});signal?.addEventListener("abort",cancel,{once:true});if(stop.signal.aborted||signal?.aborted)cancel();const timer=setTimeout(()=>{failure=error("deadline_exceeded","SQL query exceeded its time budget.");child.kill("SIGKILL")},timeout);child.stdout.on("data",part=>{bytes+=part.length;if(bytes>limits.maxBytes+65536){failure=error("resource_exhausted","SQL worker exceeded its output bound.");child.kill("SIGKILL")}else chunks.push(part)});child.stderr.resume();child.stdin.on("error",()=>void 0);child.once("error",()=>{failure=error("unavailable","SQL worker could not start.")});child.once("close",code=>{clearTimeout(timer);stop.signal.removeEventListener("abort",cancel);signal?.removeEventListener("abort",cancel);if(failure){resolve(failure);return}try{if(code!==0)throw Error();
|
|
1
|
+
import{assertVaultRuntime}from"./runtime.js";import{spawn}from"node:child_process";import{fileURLToPath}from"node:url";import{Original}from"@zortexhq/plugin-connector-framework/api";import{withPublicReadValidation}from"./api/public-result-visibility.js";export const DEFAULT_SQL_LIMITS={timeoutMs:3e3,maxRows:500,maxBytes:1048576};const error=(code,message)=>Original.errResult({code,layer:"storage",retryability:"non-retryable",message});export function sqlLimits(value){if(!value||!Number.isSafeInteger(value.timeoutMs)||value.timeoutMs<50||value.timeoutMs>6e4||!Number.isSafeInteger(value.maxRows)||value.maxRows<1||value.maxRows>1e4||!Number.isSafeInteger(value.maxBytes)||value.maxBytes<1024||value.maxBytes>16777216)throw Error("Invalid SQL limits.");return{...value}}export function createSqlReader(file,limits,policy){assertVaultRuntime();const stop=new AbortController,pending=new Set;return{sql(request,signal){if(stop.signal.aborted)return Promise.resolve(error("failed_precondition","SQL reader is closed."));if(signal?.aborted)return Promise.resolve(error("aborted","SQL query was cancelled."));const timeout=request?.timeoutMs??limits.timeoutMs;if(!request||Object.keys(request).some(key=>!["sql","params","timeoutMs"].includes(key))||typeof request.sql!=="string"||!request.sql.trim()||Buffer.byteLength(request.sql)>65536||!Number.isSafeInteger(timeout)||timeout<50||timeout>limits.timeoutMs||request.params!==void 0&&(!Array.isArray(request.params)||request.params.length>100||request.params.some(value=>value!==null&&typeof value!=="boolean"&&(typeof value!=="number"||!Number.isFinite(value))&&(typeof value!=="string"||Buffer.byteLength(value)>16384))))return Promise.resolve(error("invalid_argument","Invalid bounded SQL request."));const task=new Promise(resolve=>{const child=spawn(process.execPath,["--disable-warning=ExperimentalWarning",fileURLToPath(new URL("./sql-worker.js",import.meta.url))],{windowsHide:true,stdio:["pipe","pipe","pipe"],env:{}});const chunks=[];let bytes=0,failure;const cancel=()=>{failure=error("aborted","SQL query was cancelled.");child.kill("SIGKILL")};stop.signal.addEventListener("abort",cancel,{once:true});signal?.addEventListener("abort",cancel,{once:true});if(stop.signal.aborted||signal?.aborted)cancel();const timer=setTimeout(()=>{failure=error("deadline_exceeded","SQL query exceeded its time budget.");child.kill("SIGKILL")},timeout);child.stdout.on("data",part=>{bytes+=part.length;if(bytes>limits.maxBytes+65536){failure=error("resource_exhausted","SQL worker exceeded its output bound.");child.kill("SIGKILL")}else chunks.push(part)});child.stderr.resume();child.stdin.on("error",()=>void 0);child.once("error",()=>{failure=error("unavailable","SQL worker could not start.")});child.once("close",code=>{clearTimeout(timer);stop.signal.removeEventListener("abort",cancel);signal?.removeEventListener("abort",cancel);if(failure){resolve(failure);return}try{if(code!==0)throw Error();const response=JSON.parse(Buffer.concat(chunks).toString());if(policy&&"ok"in response&&response.visibilityEpoch!==policy.visibilityEpoch()){resolve(error("aborted","Public record visibility changed during the read; retry the query."));return}const epoch=response.visibilityEpoch;delete response.visibilityEpoch;resolve(policy?withPublicReadValidation(response,()=>epoch===policy.visibilityEpoch()):response)}catch{resolve(error("data_loss","SQL worker returned an incomplete result."))}});child.stdin.end(JSON.stringify({file,sql:request.sql,params:(request.params??[]).map(value=>typeof value==="boolean"?Number(value):value),maxRows:limits.maxRows,maxBytes:limits.maxBytes,surface:policy?.surface??"diagnostic"}))});pending.add(task);void task.finally(()=>pending.delete(task));return task},async close(){stop.abort();await Promise.allSettled([...pending])}}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zortexhq/indra-v2.5",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"publishConfig": {
|
|
@@ -9,14 +9,18 @@
|
|
|
9
9
|
"tag": "next"
|
|
10
10
|
},
|
|
11
11
|
"type": "module",
|
|
12
|
-
"
|
|
12
|
+
"zortexStorage": {
|
|
13
|
+
"actionReceipts": 2,
|
|
14
|
+
"accountSession": 2
|
|
15
|
+
},
|
|
16
|
+
"description": "Zortex daily 2026-11-29 (source 0.4.0)",
|
|
13
17
|
"repository": {
|
|
14
18
|
"type": "git",
|
|
15
19
|
"url": "https://github.com/ZortexHQ/indra-v2.git",
|
|
16
20
|
"directory": "bundles/indra-v2"
|
|
17
21
|
},
|
|
18
22
|
"engines": {
|
|
19
|
-
"node": ">=24.
|
|
23
|
+
"node": ">=24.18.1"
|
|
20
24
|
},
|
|
21
25
|
"bin": {
|
|
22
26
|
"indra": "./dist/cli.js",
|
|
@@ -58,6 +62,7 @@
|
|
|
58
62
|
"@zortexhq/plugin-vault-sqlite": "0.1.0",
|
|
59
63
|
"@zortexhq/plugin-connector-fleet": "0.1.0",
|
|
60
64
|
"@zortexhq/plugin-connector-core": "0.1.0",
|
|
65
|
+
"@zortexhq/plugin-autopilot": "0.1.0",
|
|
61
66
|
"@zortexhq/plugin-connector-framework": "0.1.0",
|
|
62
67
|
"@zortexhq/plugin-connector-supervisor": "0.1.0",
|
|
63
68
|
"@zortexhq/plugin-local-source-access": "0.1.0",
|
|
@@ -936,6 +941,7 @@
|
|
|
936
941
|
"bundledDependencies": [
|
|
937
942
|
"@zortexhq/plugin-auth-core",
|
|
938
943
|
"@zortexhq/plugin-auto-connect",
|
|
944
|
+
"@zortexhq/plugin-autopilot",
|
|
939
945
|
"@zortexhq/plugin-connector-activitywatch",
|
|
940
946
|
"@zortexhq/plugin-connector-calendar",
|
|
941
947
|
"@zortexhq/plugin-connector-chrome-history",
|
|
@@ -1017,9 +1023,9 @@
|
|
|
1017
1023
|
"zortexRelease": {
|
|
1018
1024
|
"schemaVersion": 1,
|
|
1019
1025
|
"sourceVersion": "0.4.0",
|
|
1020
|
-
"sourceSha": "
|
|
1021
|
-
"sourceDate": "2026-11-
|
|
1022
|
-
"version": "0.4.
|
|
1026
|
+
"sourceSha": "9a82f6f2b3798122c4bd5936fa8f5f101fc2a70e",
|
|
1027
|
+
"sourceDate": "2026-11-29T13:32:57.000Z",
|
|
1028
|
+
"version": "0.4.2"
|
|
1023
1029
|
},
|
|
1024
1030
|
"zortex": {
|
|
1025
1031
|
"role": "app"
|
|
@@ -1030,6 +1036,6 @@
|
|
|
1030
1036
|
"zortexUpdate": {
|
|
1031
1037
|
"schemaVersion": 1,
|
|
1032
1038
|
"manifest": "update-manifest.json",
|
|
1033
|
-
"sha256": "
|
|
1039
|
+
"sha256": "a7220c25dac4e73be513ab62458e84a2fb1793e72736dbe29ea8268b3ea6a9a0"
|
|
1034
1040
|
}
|
|
1035
1041
|
}
|
package/profiles/core.yml
CHANGED
|
@@ -35,6 +35,8 @@
|
|
|
35
35
|
root: !!js process.env.ZORTEX_ENGINE_ROOT
|
|
36
36
|
- id: indra-connector-hub
|
|
37
37
|
name: '@zortexhq/plugin-connector-core'
|
|
38
|
+
- id: indra-autopilot
|
|
39
|
+
name: '@zortexhq/plugin-autopilot'
|
|
38
40
|
- id: indra-authoring
|
|
39
41
|
name: '@zortexhq/plugin-connector-framework/authoring'
|
|
40
42
|
- id: indra-google-auth
|
package/release-provenance.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 3,
|
|
3
3
|
"name": "@zortexhq/indra-v2.5",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.2",
|
|
5
5
|
"platforms": [
|
|
6
6
|
"win32-x64",
|
|
7
7
|
"win32-arm64",
|
|
@@ -15,16 +15,16 @@
|
|
|
15
15
|
"sharp"
|
|
16
16
|
]
|
|
17
17
|
},
|
|
18
|
-
"commit": "
|
|
19
|
-
"lockSha256": "
|
|
18
|
+
"commit": "9a82f6f2b3798122c4bd5936fa8f5f101fc2a70e",
|
|
19
|
+
"lockSha256": "6315c3e93b26465818438712940f83166a35b858872cb0159d1654834cead338",
|
|
20
20
|
"platform": "linux",
|
|
21
21
|
"arch": "x64",
|
|
22
22
|
"zortexRelease": {
|
|
23
23
|
"schemaVersion": 1,
|
|
24
24
|
"sourceVersion": "0.4.0",
|
|
25
|
-
"sourceSha": "
|
|
26
|
-
"sourceDate": "2026-11-
|
|
27
|
-
"version": "0.4.
|
|
25
|
+
"sourceSha": "9a82f6f2b3798122c4bd5936fa8f5f101fc2a70e",
|
|
26
|
+
"sourceDate": "2026-11-29T13:32:57.000Z",
|
|
27
|
+
"version": "0.4.2"
|
|
28
28
|
},
|
|
29
29
|
"npm": {
|
|
30
30
|
"externalDependencies": {
|
|
@@ -904,10 +904,10 @@
|
|
|
904
904
|
"packages": [
|
|
905
905
|
{
|
|
906
906
|
"name": "@zortexhq/indra-v2.5",
|
|
907
|
-
"version": "0.4.
|
|
907
|
+
"version": "0.4.2",
|
|
908
908
|
"target": "",
|
|
909
|
-
"fileCount":
|
|
910
|
-
"filesSha256": "
|
|
909
|
+
"fileCount": 148,
|
|
910
|
+
"filesSha256": "a937bf629b2feabaf2bb81cb8cab497fc2f2186edea593bfd70832c0006b8ab9"
|
|
911
911
|
},
|
|
912
912
|
{
|
|
913
913
|
"name": "@abd-enterprises/zendesk-mcp",
|
|
@@ -956,21 +956,28 @@
|
|
|
956
956
|
"version": "0.1.0",
|
|
957
957
|
"target": "node_modules/@zortexhq/plugin-auto-connect",
|
|
958
958
|
"fileCount": 4,
|
|
959
|
-
"filesSha256": "
|
|
959
|
+
"filesSha256": "dad6ae844f8f11713d4ebfc99c5fcd12184809598034dbc5b42caac93517cd35"
|
|
960
|
+
},
|
|
961
|
+
{
|
|
962
|
+
"name": "@zortexhq/plugin-autopilot",
|
|
963
|
+
"version": "0.1.0",
|
|
964
|
+
"target": "node_modules/@zortexhq/plugin-autopilot",
|
|
965
|
+
"fileCount": 19,
|
|
966
|
+
"filesSha256": "63e8a5a56f01f79f86b13c5812d581734461f82e79abc2a0d0ebee2eb7db8ca9"
|
|
960
967
|
},
|
|
961
968
|
{
|
|
962
969
|
"name": "@zortexhq/plugin-connector-activitywatch",
|
|
963
970
|
"version": "0.1.0",
|
|
964
971
|
"target": "node_modules/@zortexhq/plugin-connector-activitywatch",
|
|
965
972
|
"fileCount": 3,
|
|
966
|
-
"filesSha256": "
|
|
973
|
+
"filesSha256": "451d79fdbd220810341216a6fc612f8f5a63c62f4b511f33b1d9df2cf43a75d6"
|
|
967
974
|
},
|
|
968
975
|
{
|
|
969
976
|
"name": "@zortexhq/plugin-connector-calendar",
|
|
970
977
|
"version": "0.1.0",
|
|
971
978
|
"target": "node_modules/@zortexhq/plugin-connector-calendar",
|
|
972
979
|
"fileCount": 13,
|
|
973
|
-
"filesSha256": "
|
|
980
|
+
"filesSha256": "18261d65b5018581491d4327db8ed7776769a0a1f223823e825afdcca5bbf6f1"
|
|
974
981
|
},
|
|
975
982
|
{
|
|
976
983
|
"name": "@zortexhq/plugin-connector-chrome-history",
|
|
@@ -984,21 +991,21 @@
|
|
|
984
991
|
"version": "0.1.0",
|
|
985
992
|
"target": "node_modules/@zortexhq/plugin-connector-computer-files",
|
|
986
993
|
"fileCount": 5,
|
|
987
|
-
"filesSha256": "
|
|
994
|
+
"filesSha256": "32fdc84c2d23cdce592c0bad44d9a9bd0c6eab74b9581d78a13f5ab1f5d014b4"
|
|
988
995
|
},
|
|
989
996
|
{
|
|
990
997
|
"name": "@zortexhq/plugin-connector-core",
|
|
991
998
|
"version": "0.1.0",
|
|
992
999
|
"target": "node_modules/@zortexhq/plugin-connector-core",
|
|
993
|
-
"fileCount":
|
|
994
|
-
"filesSha256": "
|
|
1000
|
+
"fileCount": 29,
|
|
1001
|
+
"filesSha256": "c196d25d768ad242d1b6b3211b35b68c4fc5daaa2d8353bab7a168be47b0af0f"
|
|
995
1002
|
},
|
|
996
1003
|
{
|
|
997
1004
|
"name": "@zortexhq/plugin-connector-drive",
|
|
998
1005
|
"version": "0.1.0",
|
|
999
1006
|
"target": "node_modules/@zortexhq/plugin-connector-drive",
|
|
1000
1007
|
"fileCount": 15,
|
|
1001
|
-
"filesSha256": "
|
|
1008
|
+
"filesSha256": "c75d89aab05de5989402663994b4374b37f867ae57a1fd9203717dd0ced072a0"
|
|
1002
1009
|
},
|
|
1003
1010
|
{
|
|
1004
1011
|
"name": "@zortexhq/plugin-connector-fleet",
|
|
@@ -1019,14 +1026,14 @@
|
|
|
1019
1026
|
"version": "0.1.0",
|
|
1020
1027
|
"target": "node_modules/@zortexhq/plugin-connector-gmail",
|
|
1021
1028
|
"fileCount": 13,
|
|
1022
|
-
"filesSha256": "
|
|
1029
|
+
"filesSha256": "840112267066aa3c1d3ebdd35a041b51a2df1e3480a2bf8f036aed01709f8eb7"
|
|
1023
1030
|
},
|
|
1024
1031
|
{
|
|
1025
1032
|
"name": "@zortexhq/plugin-connector-google-tasks",
|
|
1026
1033
|
"version": "0.1.0",
|
|
1027
1034
|
"target": "node_modules/@zortexhq/plugin-connector-google-tasks",
|
|
1028
1035
|
"fileCount": 10,
|
|
1029
|
-
"filesSha256": "
|
|
1036
|
+
"filesSha256": "1ce0d58d650cf85072e41e10702bc164f3a143de3de94edf4ba22d87508a3c9b"
|
|
1030
1037
|
},
|
|
1031
1038
|
{
|
|
1032
1039
|
"name": "@zortexhq/plugin-connector-history",
|
|
@@ -1046,43 +1053,43 @@
|
|
|
1046
1053
|
"name": "@zortexhq/plugin-connector-level1",
|
|
1047
1054
|
"version": "0.1.0",
|
|
1048
1055
|
"target": "node_modules/@zortexhq/plugin-connector-level1",
|
|
1049
|
-
"fileCount":
|
|
1050
|
-
"filesSha256": "
|
|
1056
|
+
"fileCount": 149,
|
|
1057
|
+
"filesSha256": "a49215643f753ee7d968574d5377a790e04dd0f81c82935884ea7b93d1cb1999"
|
|
1051
1058
|
},
|
|
1052
1059
|
{
|
|
1053
1060
|
"name": "@zortexhq/plugin-connector-netease",
|
|
1054
1061
|
"version": "0.1.0",
|
|
1055
1062
|
"target": "node_modules/@zortexhq/plugin-connector-netease",
|
|
1056
1063
|
"fileCount": 3,
|
|
1057
|
-
"filesSha256": "
|
|
1064
|
+
"filesSha256": "3a54570e7a987ea816106fa11020ee452255c5106516776e7dd520c7d650b2ef"
|
|
1058
1065
|
},
|
|
1059
1066
|
{
|
|
1060
1067
|
"name": "@zortexhq/plugin-connector-notion",
|
|
1061
1068
|
"version": "0.1.0",
|
|
1062
1069
|
"target": "node_modules/@zortexhq/plugin-connector-notion",
|
|
1063
1070
|
"fileCount": 8,
|
|
1064
|
-
"filesSha256": "
|
|
1071
|
+
"filesSha256": "67f537a95a6d9408e21e484b50eb498b2459d7a5f99dd1929ef98a2eb434fd2e"
|
|
1065
1072
|
},
|
|
1066
1073
|
{
|
|
1067
1074
|
"name": "@zortexhq/plugin-connector-outlook",
|
|
1068
1075
|
"version": "0.1.0",
|
|
1069
1076
|
"target": "node_modules/@zortexhq/plugin-connector-outlook",
|
|
1070
1077
|
"fileCount": 8,
|
|
1071
|
-
"filesSha256": "
|
|
1078
|
+
"filesSha256": "dd06f44b006cefa89d761e4ef95cb22411b0a97bc3fad4f1d56f331f51d4480d"
|
|
1072
1079
|
},
|
|
1073
1080
|
{
|
|
1074
1081
|
"name": "@zortexhq/plugin-connector-slack",
|
|
1075
1082
|
"version": "0.1.0",
|
|
1076
1083
|
"target": "node_modules/@zortexhq/plugin-connector-slack",
|
|
1077
1084
|
"fileCount": 7,
|
|
1078
|
-
"filesSha256": "
|
|
1085
|
+
"filesSha256": "003666aa1dbfb3665ad93ecf761a8b617a71a166f41943f74ffb886aafbd1364"
|
|
1079
1086
|
},
|
|
1080
1087
|
{
|
|
1081
1088
|
"name": "@zortexhq/plugin-connector-steam",
|
|
1082
1089
|
"version": "0.1.0",
|
|
1083
1090
|
"target": "node_modules/@zortexhq/plugin-connector-steam",
|
|
1084
1091
|
"fileCount": 4,
|
|
1085
|
-
"filesSha256": "
|
|
1092
|
+
"filesSha256": "1b9de5b5ccdd9e1e9387c1e66df73fb29ea1e785142afc5ea49b0480c8d42122"
|
|
1086
1093
|
},
|
|
1087
1094
|
{
|
|
1088
1095
|
"name": "@zortexhq/plugin-connector-supervisor",
|
|
@@ -1096,28 +1103,28 @@
|
|
|
1096
1103
|
"version": "0.1.0",
|
|
1097
1104
|
"target": "node_modules/@zortexhq/plugin-connector-teams",
|
|
1098
1105
|
"fileCount": 5,
|
|
1099
|
-
"filesSha256": "
|
|
1106
|
+
"filesSha256": "030b03e49a7cba45ee318da092fcd1dad0e5ae821c23b6df583202e01b1785e4"
|
|
1100
1107
|
},
|
|
1101
1108
|
{
|
|
1102
1109
|
"name": "@zortexhq/plugin-connector-whatsapp",
|
|
1103
1110
|
"version": "0.1.0",
|
|
1104
1111
|
"target": "node_modules/@zortexhq/plugin-connector-whatsapp",
|
|
1105
1112
|
"fileCount": 7,
|
|
1106
|
-
"filesSha256": "
|
|
1113
|
+
"filesSha256": "30aec5701699d252728c6bca63f36654340d623b4bb66e5289153c0d12b4db63"
|
|
1107
1114
|
},
|
|
1108
1115
|
{
|
|
1109
1116
|
"name": "@zortexhq/plugin-connector-youtube",
|
|
1110
1117
|
"version": "0.1.0",
|
|
1111
1118
|
"target": "node_modules/@zortexhq/plugin-connector-youtube",
|
|
1112
|
-
"fileCount":
|
|
1113
|
-
"filesSha256": "
|
|
1119
|
+
"fileCount": 11,
|
|
1120
|
+
"filesSha256": "f27ea592b1adc32ff80a7908e9317850c55e22e599918770f9de8605c1f08dbb"
|
|
1114
1121
|
},
|
|
1115
1122
|
{
|
|
1116
1123
|
"name": "@zortexhq/plugin-context-share",
|
|
1117
1124
|
"version": "0.1.0",
|
|
1118
1125
|
"target": "node_modules/@zortexhq/plugin-context-share",
|
|
1119
|
-
"fileCount":
|
|
1120
|
-
"filesSha256": "
|
|
1126
|
+
"fileCount": 5,
|
|
1127
|
+
"filesSha256": "b5d59ca832b010859a1f33114dd9a2f3f84b08dfcabb81b2de7956f8c597f578"
|
|
1121
1128
|
},
|
|
1122
1129
|
{
|
|
1123
1130
|
"name": "@zortexhq/plugin-device-auth",
|
|
@@ -1138,14 +1145,14 @@
|
|
|
1138
1145
|
"version": "0.1.0",
|
|
1139
1146
|
"target": "node_modules/@zortexhq/plugin-galaxy-ui",
|
|
1140
1147
|
"fileCount": 201,
|
|
1141
|
-
"filesSha256": "
|
|
1148
|
+
"filesSha256": "b327bda31958ae23c14f4448da40fb71a1b2e10a73fe30dcdc73c7f4d0820f67"
|
|
1142
1149
|
},
|
|
1143
1150
|
{
|
|
1144
1151
|
"name": "@zortexhq/plugin-google-auth",
|
|
1145
1152
|
"version": "0.1.0",
|
|
1146
1153
|
"target": "node_modules/@zortexhq/plugin-google-auth",
|
|
1147
1154
|
"fileCount": 5,
|
|
1148
|
-
"filesSha256": "
|
|
1155
|
+
"filesSha256": "3e737915d435f247307becbaf792ca30c90f84d9120c97e383a076274cf490fc"
|
|
1149
1156
|
},
|
|
1150
1157
|
{
|
|
1151
1158
|
"name": "@zortexhq/plugin-local-source-access",
|
|
@@ -1159,28 +1166,28 @@
|
|
|
1159
1166
|
"version": "0.1.0",
|
|
1160
1167
|
"target": "node_modules/@zortexhq/plugin-posthog",
|
|
1161
1168
|
"fileCount": 18,
|
|
1162
|
-
"filesSha256": "
|
|
1169
|
+
"filesSha256": "c2475e3f8d309bba8d2334513612d90546abc7ac6c7785e83dba38c66346dfb9"
|
|
1163
1170
|
},
|
|
1164
1171
|
{
|
|
1165
1172
|
"name": "@zortexhq/plugin-process-local",
|
|
1166
1173
|
"version": "0.1.0",
|
|
1167
1174
|
"target": "node_modules/@zortexhq/plugin-process-local",
|
|
1168
|
-
"fileCount":
|
|
1169
|
-
"filesSha256": "
|
|
1175
|
+
"fileCount": 8,
|
|
1176
|
+
"filesSha256": "0d9d79e646a7ac7c7c87dda7e1157f0c41865dab1fe90d4ae8ae7eadc25b813f"
|
|
1170
1177
|
},
|
|
1171
1178
|
{
|
|
1172
1179
|
"name": "@zortexhq/plugin-product-account",
|
|
1173
1180
|
"version": "0.1.0",
|
|
1174
1181
|
"target": "node_modules/@zortexhq/plugin-product-account",
|
|
1175
|
-
"fileCount":
|
|
1176
|
-
"filesSha256": "
|
|
1182
|
+
"fileCount": 4,
|
|
1183
|
+
"filesSha256": "195864c43ae331e65fdf1af668e8cb744660a8ffb35f9a164f06421419231a63"
|
|
1177
1184
|
},
|
|
1178
1185
|
{
|
|
1179
1186
|
"name": "@zortexhq/plugin-telemetry",
|
|
1180
1187
|
"version": "0.1.0",
|
|
1181
1188
|
"target": "node_modules/@zortexhq/plugin-telemetry",
|
|
1182
1189
|
"fileCount": 17,
|
|
1183
|
-
"filesSha256": "
|
|
1190
|
+
"filesSha256": "10360c257dd84580ceace47adb95f607312c64df35214db711b77237bcff18a0"
|
|
1184
1191
|
},
|
|
1185
1192
|
{
|
|
1186
1193
|
"name": "@zortexhq/plugin-tunnel-frp",
|
|
@@ -1193,8 +1200,8 @@
|
|
|
1193
1200
|
"name": "@zortexhq/plugin-vault-sqlite",
|
|
1194
1201
|
"version": "0.1.0",
|
|
1195
1202
|
"target": "node_modules/@zortexhq/plugin-vault-sqlite",
|
|
1196
|
-
"fileCount":
|
|
1197
|
-
"filesSha256": "
|
|
1203
|
+
"fileCount": 52,
|
|
1204
|
+
"filesSha256": "fd06823ba1fc6428c9daaa21cabbc917e2febcf81c01051879fae48775882bd3"
|
|
1198
1205
|
},
|
|
1199
1206
|
{
|
|
1200
1207
|
"name": "@zortexhq/rooktrail",
|