intellibrix v1.0.0
    Preparing search index...

    Remembers what the model last saw of each file, so a write can be refused when the file has changed since (another process, a formatter, the user) or was never read. Share one tracker between workspaceTools and agentTools so read_file, edit_file, write_file and apply_patch agree. Files are keyed by their real path; create one per session.

    Index
    • Throws unless the model has seen the file's current content. Pass undefined for a file that does not exist yet: creating a file needs no prior read.

      Parameters

      • file: string
      • content: string | undefined
      • label: string

      Returns void

    • Notes that the model has just read content from file.

      Parameters

      • file: string
      • content: string

      Returns void

    • Notes that file now holds content, because the model wrote it.

      Parameters

      • file: string
      • content: string

      Returns void