import './dual-scope-db-ATrwq0LH.js';
import { b as getLogger } from './paths-2M_UxD_H.js';
import './tasks-CnwUAUXf.js';
import './sqlite-Dsbe0wec.js';
import './agent-registry-BtE5uhMO.js';
import 'node:fs';
import 'node:path';
import 'node:crypto';
import './index-IVoIz4D5.js';
import 'node:fs/promises';
import './index-Ca4C2M45.js';
import './branch-lock-qP1EkZ7p.js';
import { createRequire } from 'node:module';
import 'node:child_process';
import 'node:os';
import 'node:events';
import 'node:net';
import 'node:url';

//#endregion
//#region ../core/dist/store/agent-registry-accessor.js
/**
* Agent Registry Accessor — cross-DB CRUD for agent data.
*
* Post-T11622 cutover (folds T11578 AC2), agent identity lives in the GLOBAL
* PREFIXED `agent_registry_agents` table (+ `agent_registry_capabilities` /
* `agent_registry_skills` / `agent_registry_agent_capabilities` /
* `agent_registry_agent_skills`); per-project visibility and overrides live in the
* PROJECT `conduit_project_agent_refs` table (T11578 · AC4 — conduit namespace
* cutover). The bare legacy `agents` shape is no longer read or written.
*
* Post-E6-L5 (T11525) / E6-L6 (T11526), both tables are hosted inside the
* CONSOLIDATED dual-scope `cleo.db` files (global `$XDG_DATA_HOME/cleo/cleo.db`
* and project `.cleo/cleo.db`) — the standalone `signaldock.db` / `conduit.db`
* files are gone. The global `agent_registry_*` tables are owned by the
* consolidated cleo-global migration (T11622 rename of `signaldock_*`);
* `ensureGlobalAgentRegistryDb()` opens the shared consolidated handle. The
* prefixed conduit `conduit_project_agent_refs` table is created by the
* consolidated cleo-project migration (T11578 · AC4) and `ensureConduitDb()`
* ensures the project `cleo.db` is open. The read path MUST therefore go through
* those `ensure*` calls so it shares the same handle as the write path (T11562 —
* agents read/write path divergence regression).
*
* The consolidated `agent_registry_agents` table carries TEXT ISO-8601 timestamps
* (`created_at` / `updated_at` / `last_used_at`, each with a GLOB CHECK) — every
* write path below stamps ISO strings, not the legacy epoch integers (T11622
* write-path constraint reconciliation).
*
* This module provides three module-level functions that perform the in-memory
* cross-DB join, plus the backward-compatible `AgentRegistryAccessor` class that
* wraps them.
*
* Architecture:
*   global  cleo.db — canonical identity `agent_registry_agents` (openGlobalDb → ensureGlobalAgentRegistryDb)
*   project cleo.db — `conduit_project_agent_refs` (openConduitDb)
*   Join performed in Node (SQLite cannot cross-file-handle JOIN).
*
* @see .cleo/rcasd/T310/specification/T310-specification.md §3.5
* @see .cleo/adrs/ADR-037-conduit-signaldock-separation.md
* @task T355
* @task T11562
* @task T11622
* @epic T310
* @epic T11249
*/
var { DatabaseSync } = createRequire(import.meta.url)("node:sqlite");
getLogger("worktree:sentinel-index");
var { DatabaseSync: _DatabaseSync } = createRequire(import.meta.url)("node:sqlite");
//#endregion
//#region ../core/dist/orchestration/validate-spawn.js
/**
* Spawn readiness validation.
*
* @task T4784
* @task T894 Atomic task enforcement (worker role rejects >3 files or no file scope)
* @task T1933 Universal-tier wired into spawn validator pre-flight (ADR-068 Decision 6)
*/
var { DatabaseSync: _DatabaseSyncCtor } = createRequire(import.meta.url)("node:sqlite");
//# sourceMappingURL=query-ops-BDMaTdYw.js.map
