Files
Maven/vendor/modernc.org/sqlite/lib/sqlite_g_0000000000023eab.go
T
kami 6c92f85d10 feat(ecosystem): compliant Praxis/Hexis integration + vendored build
Bring the Nexus/Praxis/Hexis integration in line with
MAVEN_ECOSYSTEM_ARCHITECTURE.md:

- Praxis over HTTP: drop the in-process praxis.db open (praxisstore/
  praxistools) and call praxisd's /api/v1/tools/* API via a new praxisClient.
  Honors the "no component reads another's DB" invariant (AC#12).
  PraxisConfig.DBPath -> URL.
- Hexis confirmation gate: mutating capabilities (ReadOnly=false) now park a
  bound pendingHexis confirmation and require a spoken "да" before executing;
  read-only run immediately (AC#7, no auto attention->action).
- Capability safety: >1 verb match is ambiguous -> ask instead of firing the
  first; ambiguous Nexus resolution asks for clarification (AC#2).
- Correlation IDs on Hexis execute, recorded in the cross-service trace.
- Bug: importance arrives as JSON float64 over HTTP, not int.
- Tests: confirm-gate, decline, read-only, and ambiguity paths.

Build: vendor/ bakes in the hexis client (replace-directed at a sibling repo
outside the Docker context); Dockerfile builds from vendor and no longer
`go mod download`s the unreachable replace paths.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-19 20:24:33 +04:00

41 lines
1.7 KiB
Go

// Code generated by modernc.org/undup from the per-target sqlite_*.go files; DO NOT EDIT.
//go:build (darwin && amd64) || (darwin && arm64) || (freebsd && amd64) || (freebsd && arm64) || (linux && amd64) || (linux && arm64) || (linux && loong64) || (linux && ppc64le) || (linux && riscv64) || (linux && s390x) || (windows && (amd64 || arm64))
package sqlite3
import (
"unsafe"
"modernc.org/libc"
)
// C documentation
//
// /*
// ** The first argument is a file-handle open on a temporary file. The file
// ** is guaranteed to be nByte bytes or smaller in size. This function
// ** attempts to extend the file to nByte bytes in size and to ensure that
// ** the VFS has memory mapped it.
// **
// ** Whether or not the file does end up memory mapped of course depends on
// ** the specific VFS implementation.
// */
func _vdbeSorterExtendFile(tls *libc.TLS, db uintptr, pFd uintptr, _nByte Ti64) {
bp := tls.Alloc(32)
defer tls.Free(32)
*(*Ti64)(unsafe.Pointer(bp)) = _nByte
var _ /* chunksize at bp+16 */ int32
var _ /* p at bp+8 */ uintptr
if **(**Ti64)(__ccgo_up(bp)) <= int64((*Tsqlite3)(unsafe.Pointer(db)).FnMaxSorterMmap) && (*Tsqlite3_io_methods)(unsafe.Pointer((*Tsqlite3_file)(unsafe.Pointer(pFd)).FpMethods)).FiVersion >= int32(3) {
**(**uintptr)(__ccgo_up(bp + 8)) = uintptr(0)
**(**int32)(__ccgo_up(bp + 16)) = libc.Int32FromInt32(4) * libc.Int32FromInt32(1024)
_sqlite3OsFileControlHint(tls, pFd, int32(SQLITE_FCNTL_CHUNK_SIZE), bp+16)
_sqlite3OsFileControlHint(tls, pFd, int32(SQLITE_FCNTL_SIZE_HINT), bp)
_sqlite3OsFetch(tls, pFd, 0, int32(**(**Ti64)(__ccgo_up(bp))), bp+8)
if **(**uintptr)(__ccgo_up(bp + 8)) != 0 {
_sqlite3OsUnfetch(tls, pFd, 0, **(**uintptr)(__ccgo_up(bp + 8)))
}
}
}