mirror of
https://github.com/kennethnym/aris.git
synced 2026-06-16 04:21:17 +01:00
Compare commits
1 Commits
feat/query
...
feat/agent
| Author | SHA1 | Date | |
|---|---|---|---|
|
49b537b4cc
|
@@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "@freya/agent-test-cli",
|
|
||||||
"version": "0.0.0",
|
|
||||||
"private": true,
|
|
||||||
"type": "module",
|
|
||||||
"scripts": {
|
|
||||||
"format": "oxfmt --write .",
|
|
||||||
"start": "bun run src/agent-test-cli.ts",
|
|
||||||
"typecheck": "bun tsc --noEmit"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,601 +0,0 @@
|
|||||||
type JsonObject = Record<string, unknown>
|
|
||||||
|
|
||||||
interface AuthUser {
|
|
||||||
id: string
|
|
||||||
name: string
|
|
||||||
email: string
|
|
||||||
image: string | null
|
|
||||||
}
|
|
||||||
|
|
||||||
interface AuthSession {
|
|
||||||
user: AuthUser
|
|
||||||
session: {
|
|
||||||
id: string
|
|
||||||
token: string
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
interface QueryResponse {
|
|
||||||
message: string
|
|
||||||
}
|
|
||||||
|
|
||||||
interface QueryToolDefinition {
|
|
||||||
name: string
|
|
||||||
label: string
|
|
||||||
description: string
|
|
||||||
parameters: unknown
|
|
||||||
}
|
|
||||||
|
|
||||||
interface QueryToolsResponse {
|
|
||||||
tools: QueryToolDefinition[]
|
|
||||||
}
|
|
||||||
|
|
||||||
interface ResultResponse {
|
|
||||||
result: unknown
|
|
||||||
}
|
|
||||||
|
|
||||||
interface SourceActionsResponse {
|
|
||||||
actions: Record<string, { id: string; description?: string }>
|
|
||||||
}
|
|
||||||
|
|
||||||
interface RequestOptions {
|
|
||||||
method?: "GET" | "POST"
|
|
||||||
body?: unknown
|
|
||||||
}
|
|
||||||
|
|
||||||
class CookieJar {
|
|
||||||
private readonly cookies = new Map<string, string>()
|
|
||||||
|
|
||||||
apply(response: Response): void {
|
|
||||||
for (const header of readSetCookieHeaders(response.headers)) {
|
|
||||||
const cookie = parseCookie(header)
|
|
||||||
if (!cookie) continue
|
|
||||||
this.cookies.set(cookie.name, cookie.value)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
header(): string | undefined {
|
|
||||||
if (this.cookies.size === 0) return undefined
|
|
||||||
return [...this.cookies.entries()].map(([name, value]) => `${name}=${value}`).join("; ")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async function main(): Promise<void> {
|
|
||||||
if (wantsHelp()) {
|
|
||||||
printUsage()
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
printIntro()
|
|
||||||
|
|
||||||
const backendUrl = askRequired(
|
|
||||||
"Backend URL",
|
|
||||||
Bun.env.FREYA_BACKEND_URL ?? "http://localhost:3000",
|
|
||||||
normalizeBackendUrl,
|
|
||||||
)
|
|
||||||
const email = askRequired("Email", Bun.env.FREYA_EMAIL)
|
|
||||||
const password = askRequired("Password", Bun.env.FREYA_PASSWORD, undefined, true)
|
|
||||||
|
|
||||||
const cookies = new CookieJar()
|
|
||||||
|
|
||||||
try {
|
|
||||||
const session = await signIn(backendUrl, cookies, email, password)
|
|
||||||
console.log(`\nSigned in as ${session.user.email}`)
|
|
||||||
await runChatLoop(backendUrl, cookies, session)
|
|
||||||
} catch (err) {
|
|
||||||
console.error(`\n${formatError(err)}`)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async function signIn(
|
|
||||||
backendUrl: string,
|
|
||||||
cookies: CookieJar,
|
|
||||||
email: string,
|
|
||||||
password: string,
|
|
||||||
): Promise<AuthSession> {
|
|
||||||
await requestJson(backendUrl, cookies, "/api/auth/sign-in/email", {
|
|
||||||
method: "POST",
|
|
||||||
body: { email, password },
|
|
||||||
})
|
|
||||||
|
|
||||||
const data = await requestJson(backendUrl, cookies, "/api/auth/get-session")
|
|
||||||
if (!isAuthSession(data)) {
|
|
||||||
throw new Error("Sign-in succeeded, but no session was returned")
|
|
||||||
}
|
|
||||||
|
|
||||||
return data
|
|
||||||
}
|
|
||||||
|
|
||||||
async function runChatLoop(
|
|
||||||
backendUrl: string,
|
|
||||||
cookies: CookieJar,
|
|
||||||
session: AuthSession,
|
|
||||||
): Promise<void> {
|
|
||||||
printHelp()
|
|
||||||
|
|
||||||
for (;;) {
|
|
||||||
const input = askOptional("you> ")?.trim()
|
|
||||||
if (!input) continue
|
|
||||||
|
|
||||||
if (input === "/quit" || input === "/exit") {
|
|
||||||
console.log("Bye.")
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
if (input === "/help") {
|
|
||||||
printHelp()
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
|
|
||||||
if (input === "/session") {
|
|
||||||
console.log(`${session.user.name || session.user.email} (${session.user.id})`)
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
|
|
||||||
if (input === "/tools") {
|
|
||||||
await runCliCommand(() => listQueryTools(backendUrl, cookies))
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
|
|
||||||
if (input.startsWith("/tool ")) {
|
|
||||||
await runCliCommand(() => executeQueryTool(backendUrl, cookies, input.slice("/tool ".length)))
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
|
|
||||||
if (input.startsWith("/actions ")) {
|
|
||||||
await runCliCommand(() =>
|
|
||||||
listSourceActions(backendUrl, cookies, input.slice("/actions ".length)),
|
|
||||||
)
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
|
|
||||||
if (input.startsWith("/action ")) {
|
|
||||||
await runCliCommand(() =>
|
|
||||||
executeSourceAction(backendUrl, cookies, input.slice("/action ".length)),
|
|
||||||
)
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
|
||||||
await askAgent(backendUrl, cookies, input)
|
|
||||||
} catch (err) {
|
|
||||||
console.error(`\n${formatError(err)}\n`)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async function askAgent(backendUrl: string, cookies: CookieJar, message: string): Promise<void> {
|
|
||||||
const data = await requestJson(backendUrl, cookies, "/api/agent", {
|
|
||||||
method: "POST",
|
|
||||||
body: { message },
|
|
||||||
})
|
|
||||||
|
|
||||||
if (!isQueryResponse(data)) {
|
|
||||||
throw new Error("Query returned an unexpected response shape")
|
|
||||||
}
|
|
||||||
|
|
||||||
console.log(`\nagent> ${data.message || "(no message)"}`)
|
|
||||||
console.log("")
|
|
||||||
}
|
|
||||||
|
|
||||||
async function runCliCommand(command: () => Promise<void>): Promise<void> {
|
|
||||||
try {
|
|
||||||
await command()
|
|
||||||
} catch (err) {
|
|
||||||
console.error(`\n${formatError(err)}\n`)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async function listQueryTools(backendUrl: string, cookies: CookieJar): Promise<void> {
|
|
||||||
const data = await requestJson(backendUrl, cookies, "/api/agent/tools")
|
|
||||||
if (!isQueryToolsResponse(data)) {
|
|
||||||
throw new Error("Agent tools returned an unexpected response shape")
|
|
||||||
}
|
|
||||||
|
|
||||||
console.log("")
|
|
||||||
for (const tool of data.tools) {
|
|
||||||
console.log(`${tool.name} - ${tool.label}`)
|
|
||||||
console.log(` ${tool.description}`)
|
|
||||||
console.log(` params=${formatJson(tool.parameters)}`)
|
|
||||||
}
|
|
||||||
console.log("")
|
|
||||||
}
|
|
||||||
|
|
||||||
async function executeQueryTool(
|
|
||||||
backendUrl: string,
|
|
||||||
cookies: CookieJar,
|
|
||||||
command: string,
|
|
||||||
): Promise<void> {
|
|
||||||
const parsed = splitFirst(command.trim())
|
|
||||||
if (!parsed) {
|
|
||||||
throw new Error("Usage: /tool <name> <json-params>; example: /tool freya_list_context {}")
|
|
||||||
}
|
|
||||||
|
|
||||||
const params = parseJsonArgument(parsed.rest, {})
|
|
||||||
const data = await requestJson(backendUrl, cookies, `/api/agent/tools/${urlPart(parsed.head)}`, {
|
|
||||||
method: "POST",
|
|
||||||
body: params,
|
|
||||||
})
|
|
||||||
if (!isResultResponse(data)) {
|
|
||||||
throw new Error("Tool execution returned an unexpected response shape")
|
|
||||||
}
|
|
||||||
|
|
||||||
console.log(`\ntool ${parsed.head}>`)
|
|
||||||
console.log(formatJson(data.result))
|
|
||||||
console.log("")
|
|
||||||
}
|
|
||||||
|
|
||||||
async function listSourceActions(
|
|
||||||
backendUrl: string,
|
|
||||||
cookies: CookieJar,
|
|
||||||
command: string,
|
|
||||||
): Promise<void> {
|
|
||||||
const sourceId = command.trim()
|
|
||||||
if (!sourceId) {
|
|
||||||
throw new Error("Usage: /actions <source-id>")
|
|
||||||
}
|
|
||||||
|
|
||||||
const data = await requestJson(backendUrl, cookies, `/api/sources/${urlPart(sourceId)}/actions`)
|
|
||||||
if (!isSourceActionsResponse(data)) {
|
|
||||||
throw new Error("Source actions returned an unexpected response shape")
|
|
||||||
}
|
|
||||||
|
|
||||||
const actions = Object.entries(data.actions)
|
|
||||||
console.log("")
|
|
||||||
if (actions.length === 0) {
|
|
||||||
console.log(`No actions for ${sourceId}.`)
|
|
||||||
} else {
|
|
||||||
for (const [key, action] of actions) {
|
|
||||||
console.log(`${sourceId}/${key}`)
|
|
||||||
console.log(` id=${action.id}`)
|
|
||||||
if (action.description) console.log(` ${action.description}`)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
console.log("")
|
|
||||||
}
|
|
||||||
|
|
||||||
async function executeSourceAction(
|
|
||||||
backendUrl: string,
|
|
||||||
cookies: CookieJar,
|
|
||||||
command: string,
|
|
||||||
): Promise<void> {
|
|
||||||
const source = splitFirst(command.trim())
|
|
||||||
if (!source) {
|
|
||||||
throw new Error(
|
|
||||||
'Usage: /action <source-id> <action-id> <json-params>; example: /action freya.location update-location {"lat":51.5,"lng":-0.1}',
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
const action = splitFirst(source.rest)
|
|
||||||
if (!action) {
|
|
||||||
throw new Error(
|
|
||||||
'Usage: /action <source-id> <action-id> <json-params>; example: /action freya.location update-location {"lat":51.5,"lng":-0.1}',
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
const params = parseJsonArgument(action.rest, {})
|
|
||||||
const data = await requestJson(
|
|
||||||
backendUrl,
|
|
||||||
cookies,
|
|
||||||
`/api/sources/${urlPart(source.head)}/actions/${urlPart(action.head)}`,
|
|
||||||
{
|
|
||||||
method: "POST",
|
|
||||||
body: params,
|
|
||||||
},
|
|
||||||
)
|
|
||||||
if (!isResultResponse(data)) {
|
|
||||||
throw new Error("Source action returned an unexpected response shape")
|
|
||||||
}
|
|
||||||
|
|
||||||
console.log(`\naction ${source.head}/${action.head}>`)
|
|
||||||
console.log(formatJson(data.result))
|
|
||||||
console.log("")
|
|
||||||
}
|
|
||||||
|
|
||||||
async function requestJson(
|
|
||||||
backendUrl: string,
|
|
||||||
cookies: CookieJar,
|
|
||||||
path: string,
|
|
||||||
options: RequestOptions = {},
|
|
||||||
): Promise<unknown> {
|
|
||||||
const headers = new Headers()
|
|
||||||
headers.set("Accept", "application/json")
|
|
||||||
|
|
||||||
const cookieHeader = cookies.header()
|
|
||||||
if (cookieHeader) headers.set("Cookie", cookieHeader)
|
|
||||||
|
|
||||||
let body: string | undefined
|
|
||||||
if (options.body !== undefined) {
|
|
||||||
headers.set("Content-Type", "application/json")
|
|
||||||
body = JSON.stringify(options.body)
|
|
||||||
}
|
|
||||||
|
|
||||||
const response = await fetch(`${backendUrl}${path}`, {
|
|
||||||
method: options.method ?? "GET",
|
|
||||||
headers,
|
|
||||||
body,
|
|
||||||
})
|
|
||||||
|
|
||||||
cookies.apply(response)
|
|
||||||
|
|
||||||
if (!response.ok) {
|
|
||||||
throw new Error(await readResponseError(response, path))
|
|
||||||
}
|
|
||||||
|
|
||||||
return response.json()
|
|
||||||
}
|
|
||||||
|
|
||||||
function printIntro(): void {
|
|
||||||
console.log("FREYA agent test CLI")
|
|
||||||
console.log("Connect to a backend, sign in, then send test messages to /api/agent.\n")
|
|
||||||
}
|
|
||||||
|
|
||||||
function printUsage(): void {
|
|
||||||
console.log("FREYA agent test CLI")
|
|
||||||
console.log("")
|
|
||||||
console.log("Usage:")
|
|
||||||
console.log(" bun run agent-test-cli")
|
|
||||||
console.log(
|
|
||||||
" FREYA_BACKEND_URL=http://localhost:3000 FREYA_EMAIL=user@example.com FREYA_PASSWORD=secret bun run agent-test-cli",
|
|
||||||
)
|
|
||||||
console.log("")
|
|
||||||
printHelp()
|
|
||||||
}
|
|
||||||
|
|
||||||
function printHelp(): void {
|
|
||||||
console.log("\nCommands:")
|
|
||||||
console.log(" /tools List agent debug tools")
|
|
||||||
console.log(" /tool Execute an agent debug tool with JSON params")
|
|
||||||
console.log(" /actions List source actions: /actions <source-id>")
|
|
||||||
console.log(" /action Execute source action: /action <source-id> <action-id> <json-params>")
|
|
||||||
console.log(" /session Show the signed-in user")
|
|
||||||
console.log(" /help Show commands")
|
|
||||||
console.log(" /quit Exit\n")
|
|
||||||
}
|
|
||||||
|
|
||||||
function askRequired(
|
|
||||||
label: string,
|
|
||||||
defaultValue?: string,
|
|
||||||
transform?: (value: string) => string,
|
|
||||||
hidden = false,
|
|
||||||
): string {
|
|
||||||
if (hidden && defaultValue) {
|
|
||||||
const value = defaultValue.trim()
|
|
||||||
if (value) return transform ? transform(value) : value
|
|
||||||
}
|
|
||||||
|
|
||||||
const canRetry = canRunStty()
|
|
||||||
|
|
||||||
for (;;) {
|
|
||||||
const answer = hidden
|
|
||||||
? askHidden(label, defaultValue)
|
|
||||||
: askOptional(formatPromptLabel(label, defaultValue))
|
|
||||||
const value = (answer || defaultValue || "").trim()
|
|
||||||
if (!value) {
|
|
||||||
if (!canRetry) {
|
|
||||||
throw new Error(`${label} is required`)
|
|
||||||
}
|
|
||||||
console.log(`${label} is required.`)
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
return transform ? transform(value) : value
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function askOptional(label: string): string | null {
|
|
||||||
return prompt(label)
|
|
||||||
}
|
|
||||||
|
|
||||||
function askHidden(label: string, defaultValue?: string): string | null {
|
|
||||||
const shouldHide = !defaultValue && canRunStty()
|
|
||||||
if (!shouldHide) return askOptional(formatPromptLabel(label, defaultValue))
|
|
||||||
|
|
||||||
try {
|
|
||||||
Bun.spawnSync(["stty", "-echo"], { stdin: "inherit", stdout: "inherit", stderr: "inherit" })
|
|
||||||
return askOptional(`${label}: `)
|
|
||||||
} finally {
|
|
||||||
Bun.spawnSync(["stty", "echo"], { stdin: "inherit", stdout: "inherit", stderr: "inherit" })
|
|
||||||
console.log("")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function wantsHelp(): boolean {
|
|
||||||
return Bun.argv.some((arg) => arg === "--help" || arg === "-h")
|
|
||||||
}
|
|
||||||
|
|
||||||
function normalizeBackendUrl(value: string): string {
|
|
||||||
const withProtocol = /^[a-z]+:\/\//i.test(value) ? value : `http://${value}`
|
|
||||||
|
|
||||||
try {
|
|
||||||
const url = new URL(withProtocol)
|
|
||||||
if (url.protocol !== "http:" && url.protocol !== "https:") {
|
|
||||||
throw new Error("Backend URL must use http or https")
|
|
||||||
}
|
|
||||||
return url.toString().replace(/\/+$/, "")
|
|
||||||
} catch {
|
|
||||||
throw new Error(`Invalid backend URL: ${value}`)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function formatPromptLabel(label: string, defaultValue?: string): string {
|
|
||||||
return defaultValue ? `${label} (${defaultValue}): ` : `${label}: `
|
|
||||||
}
|
|
||||||
|
|
||||||
function splitFirst(value: string): { head: string; rest: string } | null {
|
|
||||||
const trimmed = value.trim()
|
|
||||||
if (!trimmed) return null
|
|
||||||
|
|
||||||
const match = /\s/.exec(trimmed)
|
|
||||||
if (!match) {
|
|
||||||
return { head: trimmed, rest: "" }
|
|
||||||
}
|
|
||||||
|
|
||||||
const head = trimmed.slice(0, match.index)
|
|
||||||
const rest = trimmed.slice(match.index).trim()
|
|
||||||
return { head, rest }
|
|
||||||
}
|
|
||||||
|
|
||||||
function parseJsonArgument(value: string, fallback: unknown): unknown {
|
|
||||||
if (!value.trim()) return fallback
|
|
||||||
|
|
||||||
try {
|
|
||||||
return JSON.parse(value)
|
|
||||||
} catch (err) {
|
|
||||||
throw new Error(`Invalid JSON params: ${formatError(err)}`)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function formatJson(value: unknown): string {
|
|
||||||
const serialized = JSON.stringify(value, null, 2)
|
|
||||||
return serialized ?? "undefined"
|
|
||||||
}
|
|
||||||
|
|
||||||
function urlPart(value: string): string {
|
|
||||||
return encodeURIComponent(value)
|
|
||||||
}
|
|
||||||
|
|
||||||
function canRunStty(): boolean {
|
|
||||||
const result = Bun.spawnSync(["stty", "-g"], { stdin: "inherit", stdout: "pipe", stderr: "pipe" })
|
|
||||||
return result.exitCode === 0
|
|
||||||
}
|
|
||||||
|
|
||||||
function readSetCookieHeaders(headers: Headers): string[] {
|
|
||||||
const setCookies = headers.getSetCookie()
|
|
||||||
if (setCookies && setCookies.length > 0) return setCookies
|
|
||||||
|
|
||||||
const header = headers.get("set-cookie")
|
|
||||||
if (!header) return []
|
|
||||||
|
|
||||||
return splitSetCookieHeader(header)
|
|
||||||
}
|
|
||||||
|
|
||||||
function parseCookie(header: string): { name: string; value: string } | null {
|
|
||||||
const [cookiePair] = header.split(";")
|
|
||||||
if (!cookiePair) return null
|
|
||||||
|
|
||||||
const index = cookiePair.indexOf("=")
|
|
||||||
if (index <= 0) return null
|
|
||||||
|
|
||||||
return {
|
|
||||||
name: cookiePair.slice(0, index).trim(),
|
|
||||||
value: cookiePair.slice(index + 1).trim(),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function splitSetCookieHeader(header: string): string[] {
|
|
||||||
const parts: string[] = []
|
|
||||||
let start = 0
|
|
||||||
let inExpires = false
|
|
||||||
|
|
||||||
for (let index = 0; index < header.length; index += 1) {
|
|
||||||
const char = header[index]
|
|
||||||
const remainder = header.slice(index).toLowerCase()
|
|
||||||
|
|
||||||
if (remainder.startsWith("expires=")) {
|
|
||||||
inExpires = true
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
|
|
||||||
if (inExpires && char === ";") {
|
|
||||||
inExpires = false
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
|
|
||||||
if (char === "," && !inExpires) {
|
|
||||||
parts.push(header.slice(start, index).trim())
|
|
||||||
start = index + 1
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
parts.push(header.slice(start).trim())
|
|
||||||
return parts.filter(Boolean)
|
|
||||||
}
|
|
||||||
|
|
||||||
async function readResponseError(response: Response, path: string): Promise<string> {
|
|
||||||
const text = await response.text()
|
|
||||||
if (response.status === 404 && path === "/api/agent") {
|
|
||||||
return "Backend does not expose /api/agent. Restart the WIP backend on port 3000 or check FREYA_BACKEND_URL."
|
|
||||||
}
|
|
||||||
if (!text) return `Request failed: ${response.status} ${response.statusText}`
|
|
||||||
|
|
||||||
try {
|
|
||||||
const data: unknown = JSON.parse(text)
|
|
||||||
if (isJsonObject(data)) {
|
|
||||||
const message = readString(data, "message") ?? readString(data, "error")
|
|
||||||
if (message) return message
|
|
||||||
}
|
|
||||||
} catch {
|
|
||||||
return `Request failed: ${response.status} ${response.statusText}: ${text}`
|
|
||||||
}
|
|
||||||
|
|
||||||
return `Request failed: ${response.status} ${response.statusText}: ${text}`
|
|
||||||
}
|
|
||||||
|
|
||||||
function isAuthSession(value: unknown): value is AuthSession {
|
|
||||||
if (!isJsonObject(value)) return false
|
|
||||||
const user = value.user
|
|
||||||
const session = value.session
|
|
||||||
|
|
||||||
return (
|
|
||||||
isJsonObject(user) &&
|
|
||||||
isJsonObject(session) &&
|
|
||||||
typeof user.id === "string" &&
|
|
||||||
typeof user.name === "string" &&
|
|
||||||
typeof user.email === "string" &&
|
|
||||||
(user.image === null || typeof user.image === "string") &&
|
|
||||||
typeof session.id === "string" &&
|
|
||||||
typeof session.token === "string"
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
function isQueryResponse(value: unknown): value is QueryResponse {
|
|
||||||
if (!isJsonObject(value)) return false
|
|
||||||
return typeof value.message === "string"
|
|
||||||
}
|
|
||||||
|
|
||||||
function isQueryToolsResponse(value: unknown): value is QueryToolsResponse {
|
|
||||||
if (!isJsonObject(value) || !Array.isArray(value.tools)) return false
|
|
||||||
return value.tools.every(isQueryToolDefinition)
|
|
||||||
}
|
|
||||||
|
|
||||||
function isQueryToolDefinition(value: unknown): value is QueryToolDefinition {
|
|
||||||
return (
|
|
||||||
isJsonObject(value) &&
|
|
||||||
typeof value.name === "string" &&
|
|
||||||
typeof value.label === "string" &&
|
|
||||||
typeof value.description === "string" &&
|
|
||||||
"parameters" in value
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
function isResultResponse(value: unknown): value is ResultResponse {
|
|
||||||
return isJsonObject(value) && "result" in value
|
|
||||||
}
|
|
||||||
|
|
||||||
function isSourceActionsResponse(value: unknown): value is SourceActionsResponse {
|
|
||||||
if (!isJsonObject(value) || !isJsonObject(value.actions)) return false
|
|
||||||
return Object.values(value.actions).every(isSourceActionDefinition)
|
|
||||||
}
|
|
||||||
|
|
||||||
function isSourceActionDefinition(value: unknown): value is { id: string; description?: string } {
|
|
||||||
return (
|
|
||||||
isJsonObject(value) &&
|
|
||||||
typeof value.id === "string" &&
|
|
||||||
(value.description === undefined || typeof value.description === "string")
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
function isJsonObject(value: unknown): value is JsonObject {
|
|
||||||
return typeof value === "object" && value !== null && !Array.isArray(value)
|
|
||||||
}
|
|
||||||
|
|
||||||
function readString(object: JsonObject, key: string): string | undefined {
|
|
||||||
const value = object[key]
|
|
||||||
return typeof value === "string" ? value : undefined
|
|
||||||
}
|
|
||||||
|
|
||||||
function formatError(error: unknown): string {
|
|
||||||
return error instanceof Error ? error.message : String(error)
|
|
||||||
}
|
|
||||||
|
|
||||||
await main()
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": "../../tsconfig.json",
|
|
||||||
"include": ["src/**/*.ts"]
|
|
||||||
}
|
|
||||||
@@ -12,6 +12,8 @@ BETTER_AUTH_URL=http://localhost:3000
|
|||||||
|
|
||||||
# OpenRouter (LLM feed enhancement)
|
# OpenRouter (LLM feed enhancement)
|
||||||
OPENROUTER_API_KEY=
|
OPENROUTER_API_KEY=
|
||||||
|
# Optional: override the default model (default: openai/gpt-4.1-mini)
|
||||||
|
# OPENROUTER_MODEL=openai/gpt-4.1-mini
|
||||||
|
|
||||||
# Apple WeatherKit credentials
|
# Apple WeatherKit credentials
|
||||||
WEATHERKIT_PRIVATE_KEY=
|
WEATHERKIT_PRIVATE_KEY=
|
||||||
|
|||||||
@@ -57,28 +57,6 @@ describe("query debug tools", () => {
|
|||||||
},
|
},
|
||||||
])
|
])
|
||||||
})
|
})
|
||||||
|
|
||||||
test("executes source action directly", async () => {
|
|
||||||
const tools = createTestDebugTools()
|
|
||||||
const params = { title: "Buy tea" }
|
|
||||||
|
|
||||||
const result = await tools.execute("user-1", "freya_execute_action", {
|
|
||||||
sourceId: "freya.reminders",
|
|
||||||
actionId: "create-reminder",
|
|
||||||
params,
|
|
||||||
})
|
|
||||||
|
|
||||||
expect(result).toEqual({
|
|
||||||
ok: true,
|
|
||||||
sourceId: "freya.reminders",
|
|
||||||
actionId: "create-reminder",
|
|
||||||
result: {
|
|
||||||
sourceId: "freya.reminders",
|
|
||||||
actionId: "create-reminder",
|
|
||||||
params,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
|
|
||||||
function createTestDebugTools() {
|
function createTestDebugTools() {
|
||||||
@@ -131,16 +109,6 @@ function createTestDebugTools() {
|
|||||||
async listActions(sourceId: string) {
|
async listActions(sourceId: string) {
|
||||||
return actions[sourceId] ?? {}
|
return actions[sourceId] ?? {}
|
||||||
},
|
},
|
||||||
async executeAction(sourceId: string, actionId: string, params: unknown) {
|
|
||||||
const sourceActions = actions[sourceId]
|
|
||||||
if (!sourceActions) {
|
|
||||||
throw new Error(`Source not found: ${sourceId}`)
|
|
||||||
}
|
|
||||||
if (!(actionId in sourceActions)) {
|
|
||||||
throw new Error(`Action "${actionId}" not found on source "${sourceId}"`)
|
|
||||||
}
|
|
||||||
return { sourceId, actionId, params }
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
hasSource(sourceId: string) {
|
hasSource(sourceId: string) {
|
||||||
return sourceId in actions
|
return sourceId in actions
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import { contextKey, type ContextKeyPart } from "@freya/core"
|
import { contextKey, type ContextKeyPart } from "@freya/core"
|
||||||
|
|
||||||
import type { UserSessionManager } from "../session/index.ts"
|
import type { UserSessionManager } from "../session/index.ts"
|
||||||
|
import type { ProposedAction } from "./query-agent.ts"
|
||||||
|
|
||||||
type ToolParams = Record<string, unknown>
|
type ToolParams = Record<string, unknown>
|
||||||
|
|
||||||
@@ -22,7 +23,7 @@ const FreyaGetContextTool = "freya_get_context"
|
|||||||
const FreyaListContextTool = "freya_list_context"
|
const FreyaListContextTool = "freya_list_context"
|
||||||
const FreyaGetSourceDataTool = "freya_get_source_data"
|
const FreyaGetSourceDataTool = "freya_get_source_data"
|
||||||
const FreyaGetFeedItemTool = "freya_get_feed_item"
|
const FreyaGetFeedItemTool = "freya_get_feed_item"
|
||||||
const FreyaExecuteActionTool = "freya_execute_action"
|
const FreyaProposeActionTool = "freya_propose_action"
|
||||||
|
|
||||||
export function createQueryDebugTools(sessionManager: UserSessionManager): QueryDebugTools {
|
export function createQueryDebugTools(sessionManager: UserSessionManager): QueryDebugTools {
|
||||||
return new DefaultQueryDebugTools(sessionManager)
|
return new DefaultQueryDebugTools(sessionManager)
|
||||||
@@ -85,12 +86,14 @@ class DefaultQueryDebugTools implements QueryDebugTools {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: FreyaExecuteActionTool,
|
name: FreyaProposeActionTool,
|
||||||
label: "Execute FREYA Action",
|
label: "Propose FREYA Action",
|
||||||
description: "Execute an available source action immediately.",
|
description: "Create a proposed action object without executing it.",
|
||||||
parameters: {
|
parameters: {
|
||||||
sourceId: "string",
|
title: "string",
|
||||||
actionId: "string",
|
description: "string",
|
||||||
|
sourceId: "string?",
|
||||||
|
actionId: "string?",
|
||||||
params: "unknown?",
|
params: "unknown?",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -111,8 +114,8 @@ class DefaultQueryDebugTools implements QueryDebugTools {
|
|||||||
return this.listContext(userId)
|
return this.listContext(userId)
|
||||||
case FreyaGetSourceDataTool:
|
case FreyaGetSourceDataTool:
|
||||||
return this.getSourceData(userId, expectToolParams(params, ["sourceId"]))
|
return this.getSourceData(userId, expectToolParams(params, ["sourceId"]))
|
||||||
case FreyaExecuteActionTool:
|
case FreyaProposeActionTool:
|
||||||
return this.executeAction(userId, expectToolParams(params, ["sourceId", "actionId"]))
|
return proposeAction(expectToolParams(params, ["title", "description"]))
|
||||||
default:
|
default:
|
||||||
throw new Error(`Unknown debug tool: ${toolName}`)
|
throw new Error(`Unknown debug tool: ${toolName}`)
|
||||||
}
|
}
|
||||||
@@ -319,20 +322,27 @@ class DefaultQueryDebugTools implements QueryDebugTools {
|
|||||||
errors,
|
errors,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private async executeAction(userId: string, params: ToolParams): Promise<unknown> {
|
function proposeAction(params: ToolParams): unknown {
|
||||||
const sourceId = expectString(params, "sourceId")
|
const sourceId = optionalString(params, "sourceId")
|
||||||
const actionId = expectString(params, "actionId")
|
const actionId = optionalString(params, "actionId")
|
||||||
const actionParams = "params" in params ? params.params : undefined
|
const action: ProposedAction = {
|
||||||
const userSession = await this.sessionManager.getOrCreate(userId)
|
id: crypto.randomUUID(),
|
||||||
const result = await userSession.engine.executeAction(sourceId, actionId, actionParams)
|
title: expectString(params, "title"),
|
||||||
|
description: expectString(params, "description"),
|
||||||
|
requiresConfirmation: true,
|
||||||
|
createdAt: new Date().toISOString(),
|
||||||
|
...(sourceId ? { sourceId } : {}),
|
||||||
|
...(actionId ? { actionId } : {}),
|
||||||
|
...("params" in params ? { params: params.params } : {}),
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
ok: true,
|
ok: true,
|
||||||
sourceId,
|
proposedActionId: action.id,
|
||||||
actionId,
|
requiresConfirmation: true,
|
||||||
result: result ?? null,
|
proposedAction: action,
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
import { describe, expect, test } from "bun:test"
|
import { describe, expect, test } from "bun:test"
|
||||||
import { Hono } from "hono"
|
import { Hono } from "hono"
|
||||||
|
|
||||||
import type { UserSessionManager } from "../session/index.ts"
|
|
||||||
import type { QueryDebugTools, QueryDebugToolDefinition } from "./debug-tools.ts"
|
import type { QueryDebugTools, QueryDebugToolDefinition } from "./debug-tools.ts"
|
||||||
import type { QueryAgent, QueryAgentAsk, QueryAgentEvent } from "./query-agent.ts"
|
import type { ProposedAction, QueryAgent, QueryAgentAsk, QueryAgentEvent } from "./query-agent.ts"
|
||||||
|
|
||||||
import { mockAuthSessionMiddleware } from "../auth/session-middleware.ts"
|
import { mockAuthSessionMiddleware } from "../auth/session-middleware.ts"
|
||||||
import { registerAgentHttpHandlers, registerDebugAgentHttpHandlers } from "./http.ts"
|
import { registerAgentHttpHandlers, registerDebugAgentHttpHandlers } from "./http.ts"
|
||||||
@@ -25,6 +24,8 @@ class FakeQueryAgent implements QueryAgent {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
disposeUser(): void {}
|
||||||
|
|
||||||
dispose(): void {}
|
dispose(): void {}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -51,14 +52,8 @@ class FakeDebugTools implements QueryDebugTools {
|
|||||||
|
|
||||||
function buildTestApp(queryAgent: QueryAgent, userId?: string) {
|
function buildTestApp(queryAgent: QueryAgent, userId?: string) {
|
||||||
const app = new Hono()
|
const app = new Hono()
|
||||||
const sessionManager = {
|
|
||||||
async getOrCreate() {
|
|
||||||
return { agent: queryAgent }
|
|
||||||
},
|
|
||||||
} as unknown as UserSessionManager
|
|
||||||
|
|
||||||
registerAgentHttpHandlers(app, {
|
registerAgentHttpHandlers(app, {
|
||||||
sessionManager,
|
queryAgent,
|
||||||
authSessionMiddleware: mockAuthSessionMiddleware(userId),
|
authSessionMiddleware: mockAuthSessionMiddleware(userId),
|
||||||
})
|
})
|
||||||
return app
|
return app
|
||||||
@@ -85,10 +80,21 @@ describe("POST /api/agent", () => {
|
|||||||
expect(res.status).toBe(401)
|
expect(res.status).toBe(401)
|
||||||
})
|
})
|
||||||
|
|
||||||
test("collects text deltas", async () => {
|
test("collects text deltas and proposed actions", async () => {
|
||||||
|
const action: ProposedAction = {
|
||||||
|
id: "proposal-1",
|
||||||
|
title: "Update commute line",
|
||||||
|
description: "Set the user's commute line to Victoria.",
|
||||||
|
sourceId: "freya.tfl",
|
||||||
|
actionId: "set-lines-of-interest",
|
||||||
|
params: ["victoria"],
|
||||||
|
requiresConfirmation: true,
|
||||||
|
createdAt: "2026-06-12T12:00:00.000Z",
|
||||||
|
}
|
||||||
const agent = new FakeQueryAgent([
|
const agent = new FakeQueryAgent([
|
||||||
{ type: "text_delta", text: "You should " },
|
{ type: "text_delta", text: "You should " },
|
||||||
{ type: "text_delta", text: "leave at 8:30." },
|
{ type: "text_delta", text: "leave at 8:30." },
|
||||||
|
{ type: "action_proposed", action },
|
||||||
{ type: "done" },
|
{ type: "done" },
|
||||||
])
|
])
|
||||||
const app = buildTestApp(agent, "user-1")
|
const app = buildTestApp(agent, "user-1")
|
||||||
@@ -106,8 +112,10 @@ describe("POST /api/agent", () => {
|
|||||||
|
|
||||||
const body = (await res.json()) as {
|
const body = (await res.json()) as {
|
||||||
message: string
|
message: string
|
||||||
|
proposedActions: ProposedAction[]
|
||||||
}
|
}
|
||||||
expect(body.message).toBe("You should leave at 8:30.")
|
expect(body.message).toBe("You should leave at 8:30.")
|
||||||
|
expect(body.proposedActions).toEqual([action])
|
||||||
})
|
})
|
||||||
|
|
||||||
test("returns 400 for invalid body", async () => {
|
test("returns 400 for invalid body", async () => {
|
||||||
|
|||||||
@@ -4,14 +4,14 @@ import { type } from "arktype"
|
|||||||
import { createMiddleware } from "hono/factory"
|
import { createMiddleware } from "hono/factory"
|
||||||
|
|
||||||
import type { AuthSessionMiddleware } from "../auth/session-middleware.ts"
|
import type { AuthSessionMiddleware } from "../auth/session-middleware.ts"
|
||||||
import type { UserSessionManager } from "../session/index.ts"
|
|
||||||
import type { QueryDebugTools } from "./debug-tools.ts"
|
import type { QueryDebugTools } from "./debug-tools.ts"
|
||||||
|
import type { QueryAgent } from "./query-agent.ts"
|
||||||
|
|
||||||
import { collectQueryAgentResponse, QueryAgentError } from "./query-agent.ts"
|
import { collectQueryAgentResponse, QueryAgentError } from "./query-agent.ts"
|
||||||
|
|
||||||
type Env = {
|
type Env = {
|
||||||
Variables: {
|
Variables: {
|
||||||
sessionManager: UserSessionManager
|
queryAgent: QueryAgent
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -22,7 +22,7 @@ type DebugEnv = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
interface AgentHttpHandlersDeps {
|
interface AgentHttpHandlersDeps {
|
||||||
sessionManager: UserSessionManager
|
queryAgent: QueryAgent
|
||||||
authSessionMiddleware: AuthSessionMiddleware
|
authSessionMiddleware: AuthSessionMiddleware
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -39,10 +39,10 @@ const AgentAskRequestBody = type({
|
|||||||
|
|
||||||
export function registerAgentHttpHandlers(
|
export function registerAgentHttpHandlers(
|
||||||
app: Hono,
|
app: Hono,
|
||||||
{ sessionManager, authSessionMiddleware }: AgentHttpHandlersDeps,
|
{ queryAgent, authSessionMiddleware }: AgentHttpHandlersDeps,
|
||||||
) {
|
) {
|
||||||
const inject = createMiddleware<Env>(async (c, next) => {
|
const inject = createMiddleware<Env>(async (c, next) => {
|
||||||
c.set("sessionManager", sessionManager)
|
c.set("queryAgent", queryAgent)
|
||||||
await next()
|
await next()
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -76,11 +76,11 @@ async function handleAgentAsk(c: Context<Env>) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const user = c.get("user")!
|
const user = c.get("user")!
|
||||||
const sessionManager = c.get("sessionManager")
|
const queryAgent = c.get("queryAgent")
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const session = await sessionManager.getOrCreate(user.id)
|
const response = await collectQueryAgentResponse(queryAgent, {
|
||||||
const response = await collectQueryAgentResponse(session.agent, {
|
userId: user.id,
|
||||||
message: parsed.message,
|
message: parsed.message,
|
||||||
})
|
})
|
||||||
return c.json(response)
|
return c.json(response)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { beforeEach, describe, expect, mock, test } from "bun:test"
|
import { beforeEach, describe, expect, mock, test } from "bun:test"
|
||||||
|
|
||||||
import type { QueryAgentToolbox } from "./query-agent-toolbox.ts"
|
import type { UserSessionManager } from "../session/index.ts"
|
||||||
import type { QueryAgentEvent } from "./query-agent.ts"
|
import type { QueryAgentEvent } from "./query-agent.ts"
|
||||||
|
|
||||||
interface FakePiSession {
|
interface FakePiSession {
|
||||||
@@ -11,8 +11,6 @@ interface FakePiSession {
|
|||||||
|
|
||||||
let createAgentSessionCalls = 0
|
let createAgentSessionCalls = 0
|
||||||
let createAgentSessionOptions: unknown
|
let createAgentSessionOptions: unknown
|
||||||
let runtimeApiKeyCalls: Array<{ provider: string; apiKey: string }> = []
|
|
||||||
let modelFindCalls: Array<{ provider: string; modelId: string }> = []
|
|
||||||
let promptCalls = 0
|
let promptCalls = 0
|
||||||
let unsubscribeCalls = 0
|
let unsubscribeCalls = 0
|
||||||
let sessionListeners: Array<(event: unknown) => void> = []
|
let sessionListeners: Array<(event: unknown) => void> = []
|
||||||
@@ -55,9 +53,7 @@ mock.module("@earendil-works/pi-coding-agent", () => ({
|
|||||||
AuthStorage: {
|
AuthStorage: {
|
||||||
inMemory() {
|
inMemory() {
|
||||||
return {
|
return {
|
||||||
setRuntimeApiKey(provider: string, apiKey: string): void {
|
setRuntimeApiKey(_provider: string, _apiKey: string): void {},
|
||||||
runtimeApiKeyCalls.push({ provider, apiKey })
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -77,8 +73,7 @@ mock.module("@earendil-works/pi-coding-agent", () => ({
|
|||||||
ModelRegistry: {
|
ModelRegistry: {
|
||||||
inMemory(_authStorage: unknown) {
|
inMemory(_authStorage: unknown) {
|
||||||
return {
|
return {
|
||||||
find(provider: string, modelId: string): unknown {
|
find(_provider: string, _modelId: string): unknown {
|
||||||
modelFindCalls.push({ provider, modelId })
|
|
||||||
return { id: "mock-model" }
|
return { id: "mock-model" }
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@@ -99,8 +94,6 @@ mock.module("@earendil-works/pi-coding-agent", () => ({
|
|||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
createAgentSessionCalls = 0
|
createAgentSessionCalls = 0
|
||||||
createAgentSessionOptions = undefined
|
createAgentSessionOptions = undefined
|
||||||
runtimeApiKeyCalls = []
|
|
||||||
modelFindCalls = []
|
|
||||||
promptCalls = 0
|
promptCalls = 0
|
||||||
unsubscribeCalls = 0
|
unsubscribeCalls = 0
|
||||||
sessionListeners = []
|
sessionListeners = []
|
||||||
@@ -131,15 +124,16 @@ describe("PiQueryAgent", () => {
|
|||||||
test("rejects a concurrent first query while the Pi session is being created", async () => {
|
test("rejects a concurrent first query while the Pi session is being created", async () => {
|
||||||
const { PiQueryAgent } = await import("./pi-query-agent.ts")
|
const { PiQueryAgent } = await import("./pi-query-agent.ts")
|
||||||
const agent = new PiQueryAgent({
|
const agent = new PiQueryAgent({
|
||||||
userId: "user-1",
|
sessionManager: createStubSessionManager(),
|
||||||
toolbox: createStubToolbox(),
|
modelProvider: "mock",
|
||||||
apiKey: "test-api-key",
|
modelId: "mock-model",
|
||||||
cwd: "/tmp/freya-pi-query-agent-test",
|
cwd: "/tmp/freya-pi-query-agent-test",
|
||||||
systemPrompt: "test",
|
systemPrompt: "test",
|
||||||
})
|
})
|
||||||
|
|
||||||
const firstEvents = collectEvents(
|
const firstEvents = collectEvents(
|
||||||
agent.ask({
|
agent.ask({
|
||||||
|
userId: "user-1",
|
||||||
message: "first",
|
message: "first",
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
@@ -148,6 +142,7 @@ describe("PiQueryAgent", () => {
|
|||||||
|
|
||||||
const secondEvents = await collectEvents(
|
const secondEvents = await collectEvents(
|
||||||
agent.ask({
|
agent.ask({
|
||||||
|
userId: "user-1",
|
||||||
message: "second",
|
message: "second",
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
@@ -159,8 +154,6 @@ describe("PiQueryAgent", () => {
|
|||||||
},
|
},
|
||||||
])
|
])
|
||||||
expect(createAgentSessionCalls).toBe(1)
|
expect(createAgentSessionCalls).toBe(1)
|
||||||
expect(runtimeApiKeyCalls).toEqual([{ provider: "openrouter", apiKey: "test-api-key" }])
|
|
||||||
expect(modelFindCalls).toEqual([{ provider: "openrouter", modelId: "z-ai/glm-4.7-flash" }])
|
|
||||||
expect(promptCalls).toBe(0)
|
expect(promptCalls).toBe(0)
|
||||||
|
|
||||||
releaseSessionCreation()
|
releaseSessionCreation()
|
||||||
@@ -182,8 +175,9 @@ describe("PiQueryAgent", () => {
|
|||||||
test("surfaces Pi message_end provider errors instead of done", async () => {
|
test("surfaces Pi message_end provider errors instead of done", async () => {
|
||||||
const { PiQueryAgent } = await import("./pi-query-agent.ts")
|
const { PiQueryAgent } = await import("./pi-query-agent.ts")
|
||||||
const agent = new PiQueryAgent({
|
const agent = new PiQueryAgent({
|
||||||
userId: "user-1",
|
sessionManager: createStubSessionManager(),
|
||||||
toolbox: createStubToolbox(),
|
modelProvider: "mock",
|
||||||
|
modelId: "mock-model",
|
||||||
cwd: "/tmp/freya-pi-query-agent-test",
|
cwd: "/tmp/freya-pi-query-agent-test",
|
||||||
systemPrompt: "test",
|
systemPrompt: "test",
|
||||||
})
|
})
|
||||||
@@ -201,6 +195,7 @@ describe("PiQueryAgent", () => {
|
|||||||
|
|
||||||
const events = collectEvents(
|
const events = collectEvents(
|
||||||
agent.ask({
|
agent.ask({
|
||||||
|
userId: "user-1",
|
||||||
message: "hello",
|
message: "hello",
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
@@ -219,8 +214,9 @@ describe("PiQueryAgent", () => {
|
|||||||
test("surfaces Pi agent_end provider errors instead of done", async () => {
|
test("surfaces Pi agent_end provider errors instead of done", async () => {
|
||||||
const { PiQueryAgent } = await import("./pi-query-agent.ts")
|
const { PiQueryAgent } = await import("./pi-query-agent.ts")
|
||||||
const agent = new PiQueryAgent({
|
const agent = new PiQueryAgent({
|
||||||
userId: "user-1",
|
sessionManager: createStubSessionManager(),
|
||||||
toolbox: createStubToolbox(),
|
modelProvider: "mock",
|
||||||
|
modelId: "mock-model",
|
||||||
cwd: "/tmp/freya-pi-query-agent-test",
|
cwd: "/tmp/freya-pi-query-agent-test",
|
||||||
systemPrompt: "test",
|
systemPrompt: "test",
|
||||||
})
|
})
|
||||||
@@ -240,6 +236,7 @@ describe("PiQueryAgent", () => {
|
|||||||
|
|
||||||
const events = collectEvents(
|
const events = collectEvents(
|
||||||
agent.ask({
|
agent.ask({
|
||||||
|
userId: "user-1",
|
||||||
message: "hello",
|
message: "hello",
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
@@ -264,30 +261,12 @@ async function collectEvents(events: AsyncIterable<QueryAgentEvent>): Promise<Qu
|
|||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
||||||
function createStubToolbox(): QueryAgentToolbox {
|
function createStubSessionManager(): UserSessionManager {
|
||||||
return {
|
return {
|
||||||
async listSources(): Promise<never> {
|
async getOrCreate(): Promise<never> {
|
||||||
throw new Error("not used")
|
throw new Error("not used")
|
||||||
},
|
},
|
||||||
async getContext(): Promise<never> {
|
} as unknown as UserSessionManager
|
||||||
throw new Error("not used")
|
|
||||||
},
|
|
||||||
async getFeedItem(): Promise<never> {
|
|
||||||
throw new Error("not used")
|
|
||||||
},
|
|
||||||
async queryContext(): Promise<never> {
|
|
||||||
throw new Error("not used")
|
|
||||||
},
|
|
||||||
async listContext(): Promise<never> {
|
|
||||||
throw new Error("not used")
|
|
||||||
},
|
|
||||||
async getSourceData(): Promise<never> {
|
|
||||||
throw new Error("not used")
|
|
||||||
},
|
|
||||||
async executeAction(): Promise<never> {
|
|
||||||
throw new Error("not used")
|
|
||||||
},
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function isRecord(value: unknown): value is Record<string, unknown> {
|
function isRecord(value: unknown): value is Record<string, unknown> {
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ import {
|
|||||||
} from "@earendil-works/pi-coding-agent"
|
} from "@earendil-works/pi-coding-agent"
|
||||||
import { tmpdir } from "node:os"
|
import { tmpdir } from "node:os"
|
||||||
|
|
||||||
import type { QueryAgentToolbox } from "./query-agent-toolbox.ts"
|
import type { UserSessionManager } from "../session/index.ts"
|
||||||
import type { QueryAgent, QueryAgentAsk, QueryAgentEvent } from "./query-agent.ts"
|
import type { ProposedAction, QueryAgent, QueryAgentAsk, QueryAgentEvent } from "./query-agent.ts"
|
||||||
|
|
||||||
import { InMemoryResourceLoader } from "./in-memory-resource-loader.ts"
|
import { InMemoryResourceLoader } from "./in-memory-resource-loader.ts"
|
||||||
import defaultSystemPrompt from "./prompts/system.txt"
|
import defaultSystemPrompt from "./prompts/system.txt"
|
||||||
@@ -22,37 +22,43 @@ type PiAgentMessage = PiMessageEndEvent["message"]
|
|||||||
type PiAgentEndEvent = Extract<AgentSessionEvent, { type: "agent_end" }>
|
type PiAgentEndEvent = Extract<AgentSessionEvent, { type: "agent_end" }>
|
||||||
|
|
||||||
export interface PiQueryAgentConfig {
|
export interface PiQueryAgentConfig {
|
||||||
userId: string
|
sessionManager: UserSessionManager
|
||||||
toolbox: QueryAgentToolbox
|
modelProvider: string
|
||||||
|
modelId: string
|
||||||
apiKey?: string
|
apiKey?: string
|
||||||
cwd?: string
|
cwd?: string
|
||||||
systemPrompt?: string
|
systemPrompt?: string
|
||||||
|
clock?: () => Date
|
||||||
}
|
}
|
||||||
|
|
||||||
const MODEL_PROVIDER = "openrouter"
|
interface ActiveRun {
|
||||||
const MODEL_ID = "z-ai/glm-4.7-flash"
|
proposedActions: ProposedAction[]
|
||||||
|
}
|
||||||
|
|
||||||
export class PiQueryAgent implements QueryAgent {
|
export class PiQueryAgent implements QueryAgent {
|
||||||
private readonly userId: string
|
private readonly sessionManager: UserSessionManager
|
||||||
private readonly toolbox: QueryAgentToolbox
|
|
||||||
private readonly cwd: string
|
private readonly cwd: string
|
||||||
private readonly systemPrompt: string
|
private readonly systemPrompt: string
|
||||||
|
private readonly clock: () => Date
|
||||||
|
private readonly modelProvider: string
|
||||||
|
private readonly modelId: string
|
||||||
private readonly apiKey: string | undefined
|
private readonly apiKey: string | undefined
|
||||||
private session: PiSession | null = null
|
private readonly sessions = new Map<string, PiSession>()
|
||||||
private pendingSession: Promise<PiSession> | null = null
|
private readonly pendingSessions = new Map<string, Promise<PiSession>>()
|
||||||
private activeRun: symbol | null = null
|
private readonly activeRuns = new Map<string, ActiveRun>()
|
||||||
private disposed = false
|
|
||||||
|
|
||||||
constructor(config: PiQueryAgentConfig) {
|
constructor(config: PiQueryAgentConfig) {
|
||||||
this.userId = config.userId
|
this.sessionManager = config.sessionManager
|
||||||
this.toolbox = config.toolbox
|
this.modelProvider = config.modelProvider
|
||||||
|
this.modelId = config.modelId
|
||||||
this.apiKey = config.apiKey
|
this.apiKey = config.apiKey
|
||||||
this.cwd = config.cwd ?? tmpdir()
|
this.cwd = config.cwd ?? tmpdir()
|
||||||
this.systemPrompt = config.systemPrompt ?? defaultSystemPrompt
|
this.systemPrompt = config.systemPrompt ?? defaultSystemPrompt
|
||||||
|
this.clock = config.clock ?? (() => new Date())
|
||||||
}
|
}
|
||||||
|
|
||||||
async *ask(input: QueryAgentAsk): AsyncIterable<QueryAgentEvent> {
|
async *ask(input: QueryAgentAsk): AsyncIterable<QueryAgentEvent> {
|
||||||
if (this.activeRun) {
|
if (this.activeRuns.has(input.userId)) {
|
||||||
yield {
|
yield {
|
||||||
type: "error",
|
type: "error",
|
||||||
message: "A query is already running for this user",
|
message: "A query is already running for this user",
|
||||||
@@ -60,14 +66,14 @@ export class PiQueryAgent implements QueryAgent {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const run = Symbol(this.userId)
|
const run: ActiveRun = { proposedActions: [] }
|
||||||
this.activeRun = run
|
this.activeRuns.set(input.userId, run)
|
||||||
|
|
||||||
let session: PiSession
|
let session: PiSession
|
||||||
try {
|
try {
|
||||||
session = await this.getOrCreateSession()
|
session = await this.getOrCreateSession(input.userId)
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
this.clearActiveRun(run)
|
this.clearActiveRun(input.userId, run)
|
||||||
yield {
|
yield {
|
||||||
type: "error",
|
type: "error",
|
||||||
message: `Failed to create query session: ${errorMessage(err)}`,
|
message: `Failed to create query session: ${errorMessage(err)}`,
|
||||||
@@ -111,6 +117,9 @@ export class PiQueryAgent implements QueryAgent {
|
|||||||
void this.runPrompt(session, input)
|
void this.runPrompt(session, input)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
if (runFailed) return
|
if (runFailed) return
|
||||||
|
for (const action of run.proposedActions) {
|
||||||
|
pushRunEvent({ type: "action_proposed", action })
|
||||||
|
}
|
||||||
pushRunEvent({ type: "done" })
|
pushRunEvent({ type: "done" })
|
||||||
})
|
})
|
||||||
.catch((err: unknown) => {
|
.catch((err: unknown) => {
|
||||||
@@ -118,7 +127,7 @@ export class PiQueryAgent implements QueryAgent {
|
|||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
unsubscribe()
|
unsubscribe()
|
||||||
this.clearActiveRun(run)
|
this.clearActiveRun(input.userId, run)
|
||||||
close()
|
close()
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -135,62 +144,62 @@ export class PiQueryAgent implements QueryAgent {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
disposeUser(userId: string): void {
|
||||||
|
const session = this.sessions.get(userId)
|
||||||
|
session?.dispose()
|
||||||
|
this.sessions.delete(userId)
|
||||||
|
this.pendingSessions.delete(userId)
|
||||||
|
this.activeRuns.delete(userId)
|
||||||
|
}
|
||||||
|
|
||||||
dispose(): void {
|
dispose(): void {
|
||||||
this.disposed = true
|
for (const session of this.sessions.values()) {
|
||||||
this.session?.dispose()
|
session.dispose()
|
||||||
this.session = null
|
}
|
||||||
this.pendingSession = null
|
this.sessions.clear()
|
||||||
this.activeRun = null
|
this.pendingSessions.clear()
|
||||||
|
this.activeRuns.clear()
|
||||||
}
|
}
|
||||||
|
|
||||||
private clearActiveRun(run: symbol): void {
|
private clearActiveRun(userId: string, run: ActiveRun): void {
|
||||||
if (this.activeRun === run) {
|
if (this.activeRuns.get(userId) === run) {
|
||||||
this.activeRun = null
|
this.activeRuns.delete(userId)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private async getOrCreateSession(): Promise<PiSession> {
|
private async getOrCreateSession(userId: string): Promise<PiSession> {
|
||||||
if (this.disposed) {
|
const existing = this.sessions.get(userId)
|
||||||
throw new Error("Query agent is disposed")
|
if (existing) return existing
|
||||||
}
|
|
||||||
|
|
||||||
if (this.session) return this.session
|
const pending = this.pendingSessions.get(userId)
|
||||||
|
|
||||||
const pending = this.pendingSession
|
|
||||||
if (pending) return pending
|
if (pending) return pending
|
||||||
|
|
||||||
const promise = this.createSession()
|
const promise = this.createSession(userId)
|
||||||
this.pendingSession = promise
|
this.pendingSessions.set(userId, promise)
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const session = await promise
|
const session = await promise
|
||||||
if (this.disposed) {
|
this.sessions.set(userId, session)
|
||||||
session.dispose()
|
|
||||||
throw new Error("Query agent is disposed")
|
|
||||||
}
|
|
||||||
this.session = session
|
|
||||||
return session
|
return session
|
||||||
} finally {
|
} finally {
|
||||||
if (this.pendingSession === promise) {
|
this.pendingSessions.delete(userId)
|
||||||
this.pendingSession = null
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private async createSession(): Promise<PiSession> {
|
private async createSession(userId: string): Promise<PiSession> {
|
||||||
const settingsManager = SettingsManager.inMemory({
|
const settingsManager = SettingsManager.inMemory({
|
||||||
compaction: { enabled: true },
|
compaction: { enabled: true },
|
||||||
retry: { enabled: true, maxRetries: 2 },
|
retry: { enabled: true, maxRetries: 2 },
|
||||||
})
|
})
|
||||||
const authStorage = AuthStorage.inMemory()
|
const authStorage = AuthStorage.inMemory()
|
||||||
if (this.apiKey) {
|
if (this.apiKey) {
|
||||||
authStorage.setRuntimeApiKey(MODEL_PROVIDER, this.apiKey)
|
authStorage.setRuntimeApiKey(this.modelProvider, this.apiKey)
|
||||||
}
|
}
|
||||||
|
|
||||||
const modelRegistry = ModelRegistry.inMemory(authStorage)
|
const modelRegistry = ModelRegistry.inMemory(authStorage)
|
||||||
const model = modelRegistry.find(MODEL_PROVIDER, MODEL_ID)
|
const model = modelRegistry.find(this.modelProvider, this.modelId)
|
||||||
if (!model) {
|
if (!model) {
|
||||||
throw new Error(`Pi model not found: ${MODEL_PROVIDER}/${MODEL_ID}`)
|
throw new Error(`Pi model not found: ${this.modelProvider}/${this.modelId}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
const { session } = await createAgentSession({
|
const { session } = await createAgentSession({
|
||||||
@@ -203,7 +212,12 @@ export class PiQueryAgent implements QueryAgent {
|
|||||||
sessionManager: SessionManager.inMemory(this.cwd),
|
sessionManager: SessionManager.inMemory(this.cwd),
|
||||||
noTools: "builtin",
|
noTools: "builtin",
|
||||||
customTools: createFreyaAgentTools({
|
customTools: createFreyaAgentTools({
|
||||||
toolbox: this.toolbox,
|
userId,
|
||||||
|
sessionManager: this.sessionManager,
|
||||||
|
clock: this.clock,
|
||||||
|
proposeAction: (action) => {
|
||||||
|
this.activeRuns.get(userId)?.proposedActions.push(action)
|
||||||
|
},
|
||||||
}),
|
}),
|
||||||
tools: [...FREYA_AGENT_TOOL_NAMES],
|
tools: [...FREYA_AGENT_TOOL_NAMES],
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
<identity>
|
<identity>
|
||||||
You are Freya. You are a digital companion created by Kenneth. His twitter is @kennethnym.
|
You are Freya. You are a digital companion created by Kenneth. His twitter is @kennethnym.
|
||||||
You have access to user data via the context graph. It stores the latest snapshot of all user data and context.
|
|
||||||
It reactively updates based on external events, such as, but not exclusively, when the user moves, when a new email arrives, when weather updates are available, and when transit alerts are issued.
|
|
||||||
</identity>
|
</identity>
|
||||||
|
|
||||||
<action>
|
<action>
|
||||||
@@ -17,9 +15,9 @@ freya_list_context: when you need to inspect all current context graph entries.
|
|||||||
|
|
||||||
freya_get_source_data: when you need current feed items, context entries, actions, or errors for a specific source ID.
|
freya_get_source_data: when you need current feed items, context entries, actions, or errors for a specific source ID.
|
||||||
|
|
||||||
freya_execute_action: when the user asks you to perform an available source action, or when the source action is non-mutating and tool-like. This executes immediately.
|
freya_propose_action: when the user asks to change state or when you recommend a concrete action that should be confirmed first. This tool only proposes an action. It does not execute the action.
|
||||||
|
|
||||||
If you need more information to answer user's query, call freya_execute_action with sourceId "freya.web-search", actionId "search", and params containing query and numResults, for example {"query":"latest relevant information","numResults":5}.
|
if you need more information to answer user's query, call freya_propose_action with freya.web-search source id.
|
||||||
</action>
|
</action>
|
||||||
|
|
||||||
<behavior>
|
<behavior>
|
||||||
|
|||||||
@@ -1,93 +0,0 @@
|
|||||||
import type { ContextKeyPart } from "@freya/core"
|
|
||||||
|
|
||||||
export interface QueryAgentToolResult {
|
|
||||||
content: Array<{ type: "text"; text: string }>
|
|
||||||
details: Record<string, unknown>
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Implementation boundary for FREYA query-agent tools.
|
|
||||||
*
|
|
||||||
* The Pi-facing tool definitions in `tools.ts` should stay thin: they declare
|
|
||||||
* schemas, validate and narrow raw model-provided parameters, then delegate to
|
|
||||||
* this toolbox. Concrete implementations own the actual data gathering,
|
|
||||||
* source/action lookups, result shaping, and any session-specific behavior.
|
|
||||||
*/
|
|
||||||
export interface QueryAgentToolbox {
|
|
||||||
/**
|
|
||||||
* Summarizes every source currently visible to the user's session.
|
|
||||||
*
|
|
||||||
* Implementations should refresh or read the current feed as needed, then
|
|
||||||
* return a compact source inventory including feed item counts, context
|
|
||||||
* entry counts, available action IDs/descriptions, and source errors. This
|
|
||||||
* is the broad discovery tool an agent can use before deciding which more
|
|
||||||
* targeted tool call to make.
|
|
||||||
*/
|
|
||||||
listSources(): Promise<QueryAgentToolResult>
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Reads context entries from the current FREYA context graph.
|
|
||||||
*
|
|
||||||
* `key` is a tuple-style context key. With `match: "exact"`, the implementation
|
|
||||||
* should return only the value at that exact key and indicate whether it was
|
|
||||||
* found. With `match: "prefix"`, it should return all entries whose keys
|
|
||||||
* begin with the provided key parts, plus a count. Implementations may refresh
|
|
||||||
* the feed first so the context reflects the latest source data.
|
|
||||||
*/
|
|
||||||
getContext(key: ContextKeyPart[], match: "exact" | "prefix"): Promise<QueryAgentToolResult>
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Reads one feed item by ID and includes source-local diagnostics.
|
|
||||||
*
|
|
||||||
* Implementations should search the current feed for `feedItemId`. When found,
|
|
||||||
* the result should include the item plus related context entries, source
|
|
||||||
* action summaries, and source errors. When missing, the result should clearly
|
|
||||||
* report `found: false` and return `item: null`.
|
|
||||||
*/
|
|
||||||
getFeedItem(feedItemId: string): Promise<QueryAgentToolResult>
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the broad context bundle needed to answer a natural-language query.
|
|
||||||
*
|
|
||||||
* `question` is included in the result for traceability. If `feedItemId` is
|
|
||||||
* provided, implementations should also include the matching selected item
|
|
||||||
* when present. The result should expose the current feed items, context graph
|
|
||||||
* entries, available source actions, and source errors so the agent can
|
|
||||||
* synthesize an answer from the user's personal data.
|
|
||||||
*/
|
|
||||||
queryContext(question: string, feedItemId?: string): Promise<QueryAgentToolResult>
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Lists every current context graph entry.
|
|
||||||
*
|
|
||||||
* This is a lower-level inspection tool than `queryContext`: it should return
|
|
||||||
* all context entries and a count, without feed items or action summaries.
|
|
||||||
* Implementations may refresh the feed first to ensure source-provided
|
|
||||||
* context has been materialized.
|
|
||||||
*/
|
|
||||||
listContext(): Promise<QueryAgentToolResult>
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns all currently available data for one source.
|
|
||||||
*
|
|
||||||
* Implementations should include whether the source is enabled, all feed
|
|
||||||
* items from `sourceId`, context entries owned by that source, available
|
|
||||||
* action summaries, and errors from that source. If `feedItemId` is provided,
|
|
||||||
* the result should also include the matching selected item from that source
|
|
||||||
* when present.
|
|
||||||
*/
|
|
||||||
getSourceData(sourceId: string, feedItemId?: string): Promise<QueryAgentToolResult>
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Executes a source action and returns a serializable execution result.
|
|
||||||
*
|
|
||||||
* `sourceId` identifies the source, `actionId` identifies the action within
|
|
||||||
* that source, and `params` is the source-specific action payload. Tool
|
|
||||||
* wrappers validate the action envelope, while the source action schema owns
|
|
||||||
* payload validation. Implementations should let source/action validation
|
|
||||||
* errors propagate, and on success should return an `ok: true` result plus
|
|
||||||
* `details.actionExecution` for callers that need a structured record of
|
|
||||||
* what ran.
|
|
||||||
*/
|
|
||||||
executeAction(sourceId: string, actionId: string, params?: unknown): Promise<QueryAgentToolResult>
|
|
||||||
}
|
|
||||||
@@ -1,21 +1,36 @@
|
|||||||
export interface QueryAgentAsk {
|
export interface QueryAgentAsk {
|
||||||
|
userId: string
|
||||||
message: string
|
message: string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface ProposedAction {
|
||||||
|
id: string
|
||||||
|
title: string
|
||||||
|
description: string
|
||||||
|
sourceId?: string
|
||||||
|
actionId?: string
|
||||||
|
params?: unknown
|
||||||
|
requiresConfirmation: true
|
||||||
|
createdAt: string
|
||||||
|
}
|
||||||
|
|
||||||
export type QueryAgentEvent =
|
export type QueryAgentEvent =
|
||||||
| { type: "text_delta"; text: string }
|
| { type: "text_delta"; text: string }
|
||||||
| { type: "tool_start"; toolName: string }
|
| { type: "tool_start"; toolName: string }
|
||||||
| { type: "tool_end"; toolName: string; ok: boolean }
|
| { type: "tool_end"; toolName: string; ok: boolean }
|
||||||
|
| { type: "action_proposed"; action: ProposedAction }
|
||||||
| { type: "done" }
|
| { type: "done" }
|
||||||
| { type: "error"; message: string }
|
| { type: "error"; message: string }
|
||||||
|
|
||||||
export interface QueryAgent {
|
export interface QueryAgent {
|
||||||
ask(input: QueryAgentAsk): AsyncIterable<QueryAgentEvent>
|
ask(input: QueryAgentAsk): AsyncIterable<QueryAgentEvent>
|
||||||
|
disposeUser(userId: string): void
|
||||||
dispose(): void
|
dispose(): void
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface QueryAgentResponse {
|
export interface QueryAgentResponse {
|
||||||
message: string
|
message: string
|
||||||
|
proposedActions: ProposedAction[]
|
||||||
}
|
}
|
||||||
|
|
||||||
export class QueryAgentError extends Error {
|
export class QueryAgentError extends Error {
|
||||||
@@ -30,12 +45,16 @@ export async function collectQueryAgentResponse(
|
|||||||
input: QueryAgentAsk,
|
input: QueryAgentAsk,
|
||||||
): Promise<QueryAgentResponse> {
|
): Promise<QueryAgentResponse> {
|
||||||
let message = ""
|
let message = ""
|
||||||
|
const proposedActions: ProposedAction[] = []
|
||||||
|
|
||||||
for await (const event of agent.ask(input)) {
|
for await (const event of agent.ask(input)) {
|
||||||
switch (event.type) {
|
switch (event.type) {
|
||||||
case "text_delta":
|
case "text_delta":
|
||||||
message += event.text
|
message += event.text
|
||||||
break
|
break
|
||||||
|
case "action_proposed":
|
||||||
|
proposedActions.push(event.action)
|
||||||
|
break
|
||||||
case "error":
|
case "error":
|
||||||
throw new QueryAgentError(event.message)
|
throw new QueryAgentError(event.message)
|
||||||
case "tool_start":
|
case "tool_start":
|
||||||
@@ -45,5 +64,5 @@ export async function collectQueryAgentResponse(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return { message }
|
return { message, proposedActions }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,116 +0,0 @@
|
|||||||
import { describe, expect, mock, test } from "bun:test"
|
|
||||||
|
|
||||||
import type { QueryAgentToolResult, QueryAgentToolbox } from "./query-agent-toolbox.ts"
|
|
||||||
|
|
||||||
mock.module("@earendil-works/pi-coding-agent", () => ({
|
|
||||||
defineTool(tool: unknown): unknown {
|
|
||||||
return tool
|
|
||||||
},
|
|
||||||
}))
|
|
||||||
|
|
||||||
interface TestTool {
|
|
||||||
name: string
|
|
||||||
parameters: unknown
|
|
||||||
execute(toolCallId: string, params: unknown): Promise<unknown>
|
|
||||||
}
|
|
||||||
|
|
||||||
describe("FREYA agent tools", () => {
|
|
||||||
test("rejects unknown top-level params", async () => {
|
|
||||||
const { createFreyaAgentTools, FREYA_GET_CONTEXT_TOOL } = await import("./tools.ts")
|
|
||||||
const tool = expectTool(
|
|
||||||
createFreyaAgentTools({ toolbox: createStubToolbox() }),
|
|
||||||
FREYA_GET_CONTEXT_TOOL,
|
|
||||||
)
|
|
||||||
|
|
||||||
await expect(
|
|
||||||
tool.execute("tool-call-1", {
|
|
||||||
key: ["freya.location"],
|
|
||||||
extra: true,
|
|
||||||
}),
|
|
||||||
).rejects.toThrow("extra")
|
|
||||||
})
|
|
||||||
|
|
||||||
test("rejects invalid context keys", async () => {
|
|
||||||
const { createFreyaAgentTools, FREYA_GET_CONTEXT_TOOL } = await import("./tools.ts")
|
|
||||||
const tool = expectTool(
|
|
||||||
createFreyaAgentTools({ toolbox: createStubToolbox() }),
|
|
||||||
FREYA_GET_CONTEXT_TOOL,
|
|
||||||
)
|
|
||||||
|
|
||||||
await expect(tool.execute("tool-call-1", { key: [] })).rejects.toThrow("key")
|
|
||||||
await expect(tool.execute("tool-call-1", { key: [["freya.location"]] })).rejects.toThrow("key")
|
|
||||||
await expect(
|
|
||||||
tool.execute("tool-call-1", { key: [{ nested: { invalid: true } }] }),
|
|
||||||
).rejects.toThrow("nested")
|
|
||||||
})
|
|
||||||
|
|
||||||
test("marks tool schemas as closed objects", async () => {
|
|
||||||
const { createFreyaAgentTools } = await import("./tools.ts")
|
|
||||||
const tools = createFreyaAgentTools({ toolbox: createStubToolbox() })
|
|
||||||
|
|
||||||
for (const tool of tools.map(expectTestTool)) {
|
|
||||||
expect(expectRecord(tool.parameters).additionalProperties).toBe(false)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
})
|
|
||||||
|
|
||||||
function createStubToolbox(): QueryAgentToolbox {
|
|
||||||
return {
|
|
||||||
async listSources() {
|
|
||||||
return toolResult({ sources: [] })
|
|
||||||
},
|
|
||||||
async getContext(key, match) {
|
|
||||||
return toolResult({ key, match })
|
|
||||||
},
|
|
||||||
async getFeedItem(feedItemId) {
|
|
||||||
return toolResult({ feedItemId })
|
|
||||||
},
|
|
||||||
async queryContext(question, feedItemId) {
|
|
||||||
return toolResult({ question, feedItemId })
|
|
||||||
},
|
|
||||||
async listContext() {
|
|
||||||
return toolResult({ entries: [] })
|
|
||||||
},
|
|
||||||
async getSourceData(sourceId, feedItemId) {
|
|
||||||
return toolResult({ sourceId, feedItemId })
|
|
||||||
},
|
|
||||||
async executeAction(sourceId, actionId, params) {
|
|
||||||
return toolResult({ sourceId, actionId, params })
|
|
||||||
},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function toolResult(result: unknown): QueryAgentToolResult {
|
|
||||||
return {
|
|
||||||
content: [{ type: "text", text: JSON.stringify(result) }],
|
|
||||||
details: {},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function expectTool(tools: unknown[], name: string): TestTool {
|
|
||||||
const tool = tools.map(expectTestTool).find((candidate) => candidate.name === name)
|
|
||||||
if (!tool) {
|
|
||||||
throw new Error(`Missing test tool: ${name}`)
|
|
||||||
}
|
|
||||||
return tool
|
|
||||||
}
|
|
||||||
|
|
||||||
function expectTestTool(value: unknown): TestTool {
|
|
||||||
const record = expectRecord(value)
|
|
||||||
const execute = record.execute
|
|
||||||
if (typeof record.name !== "string" || typeof execute !== "function") {
|
|
||||||
throw new Error("Expected test tool")
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
name: record.name,
|
|
||||||
parameters: record.parameters,
|
|
||||||
execute: execute as TestTool["execute"],
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function expectRecord(value: unknown): Record<string, unknown> {
|
|
||||||
expect(typeof value).toBe("object")
|
|
||||||
expect(value).not.toBeNull()
|
|
||||||
expect(Array.isArray(value)).toBe(false)
|
|
||||||
return value as Record<string, unknown>
|
|
||||||
}
|
|
||||||
@@ -1,11 +1,17 @@
|
|||||||
import { defineTool } from "@earendil-works/pi-coding-agent"
|
import { defineTool } from "@earendil-works/pi-coding-agent"
|
||||||
import { type } from "arktype"
|
|
||||||
import { Type } from "typebox"
|
import { Type } from "typebox"
|
||||||
|
|
||||||
import type { QueryAgentToolbox } from "./query-agent-toolbox.ts"
|
import type { UserSessionManager } from "../session/index.ts"
|
||||||
|
import type { QueryDebugTools } from "./debug-tools.ts"
|
||||||
|
import type { ProposedAction } from "./query-agent.ts"
|
||||||
|
|
||||||
|
import { createQueryDebugTools } from "./debug-tools.ts"
|
||||||
|
|
||||||
interface CreateFreyaAgentToolsConfig {
|
interface CreateFreyaAgentToolsConfig {
|
||||||
toolbox: QueryAgentToolbox
|
userId: string
|
||||||
|
sessionManager: UserSessionManager
|
||||||
|
clock: () => Date
|
||||||
|
proposeAction(action: ProposedAction): void
|
||||||
}
|
}
|
||||||
|
|
||||||
export const FREYA_QUERY_CONTEXT_TOOL = "freya_query_context"
|
export const FREYA_QUERY_CONTEXT_TOOL = "freya_query_context"
|
||||||
@@ -14,42 +20,7 @@ export const FREYA_GET_CONTEXT_TOOL = "freya_get_context"
|
|||||||
export const FREYA_LIST_CONTEXT_TOOL = "freya_list_context"
|
export const FREYA_LIST_CONTEXT_TOOL = "freya_list_context"
|
||||||
export const FREYA_GET_SOURCE_DATA_TOOL = "freya_get_source_data"
|
export const FREYA_GET_SOURCE_DATA_TOOL = "freya_get_source_data"
|
||||||
export const FREYA_GET_FEED_ITEM_TOOL = "freya_get_feed_item"
|
export const FREYA_GET_FEED_ITEM_TOOL = "freya_get_feed_item"
|
||||||
export const FREYA_EXECUTE_ACTION_TOOL = "freya_execute_action"
|
export const FREYA_PROPOSE_ACTION_TOOL = "freya_propose_action"
|
||||||
|
|
||||||
const ContextKeyObjectPart = type("Record<string, string | number | boolean>").narrow(
|
|
||||||
(value) => !Array.isArray(value),
|
|
||||||
)
|
|
||||||
const ContextKeyPart = type("string | number").or(ContextKeyObjectPart)
|
|
||||||
|
|
||||||
const GetContextToolParams = type({
|
|
||||||
"+": "reject",
|
|
||||||
key: ContextKeyPart.array().atLeastLength(1),
|
|
||||||
"match?": "'exact' | 'prefix'",
|
|
||||||
})
|
|
||||||
|
|
||||||
const GetFeedItemToolParams = type({
|
|
||||||
"+": "reject",
|
|
||||||
feedItemId: type.string.atLeastLength(1),
|
|
||||||
})
|
|
||||||
|
|
||||||
const QueryContextToolParams = type({
|
|
||||||
"+": "reject",
|
|
||||||
question: type.string.atLeastLength(1),
|
|
||||||
"feedItemId?": "string",
|
|
||||||
})
|
|
||||||
|
|
||||||
const GetSourceDataToolParams = type({
|
|
||||||
"+": "reject",
|
|
||||||
sourceId: type.string.atLeastLength(1),
|
|
||||||
"feedItemId?": "string",
|
|
||||||
})
|
|
||||||
|
|
||||||
const ExecuteActionToolParams = type({
|
|
||||||
"+": "reject",
|
|
||||||
sourceId: type.string.atLeastLength(1),
|
|
||||||
actionId: type.string.atLeastLength(1),
|
|
||||||
"params?": "unknown",
|
|
||||||
})
|
|
||||||
|
|
||||||
export const FREYA_AGENT_TOOL_NAMES = [
|
export const FREYA_AGENT_TOOL_NAMES = [
|
||||||
FREYA_LIST_SOURCES_TOOL,
|
FREYA_LIST_SOURCES_TOOL,
|
||||||
@@ -58,17 +29,20 @@ export const FREYA_AGENT_TOOL_NAMES = [
|
|||||||
FREYA_QUERY_CONTEXT_TOOL,
|
FREYA_QUERY_CONTEXT_TOOL,
|
||||||
FREYA_LIST_CONTEXT_TOOL,
|
FREYA_LIST_CONTEXT_TOOL,
|
||||||
FREYA_GET_SOURCE_DATA_TOOL,
|
FREYA_GET_SOURCE_DATA_TOOL,
|
||||||
FREYA_EXECUTE_ACTION_TOOL,
|
FREYA_PROPOSE_ACTION_TOOL,
|
||||||
]
|
]
|
||||||
|
|
||||||
export function createFreyaAgentTools(config: CreateFreyaAgentToolsConfig) {
|
export function createFreyaAgentTools(config: CreateFreyaAgentToolsConfig) {
|
||||||
|
const { userId } = config
|
||||||
|
const debugTools = createQueryDebugTools(config.sessionManager)
|
||||||
|
|
||||||
const listSourcesTool = defineTool({
|
const listSourcesTool = defineTool({
|
||||||
name: FREYA_LIST_SOURCES_TOOL,
|
name: FREYA_LIST_SOURCES_TOOL,
|
||||||
label: "List FREYA Sources",
|
label: "List FREYA Sources",
|
||||||
description:
|
description:
|
||||||
"List enabled FREYA source IDs and summarize available feed items, context entries, actions, and errors.",
|
"List enabled FREYA source IDs and summarize available feed items, context entries, actions, and errors.",
|
||||||
parameters: Type.Object({}, { additionalProperties: false }),
|
parameters: Type.Object({}),
|
||||||
execute: async () => executeListSourcesTool(config.toolbox),
|
execute: async () => executeDebugTool(debugTools, userId, FREYA_LIST_SOURCES_TOOL, {}),
|
||||||
})
|
})
|
||||||
|
|
||||||
const getContextTool = defineTool({
|
const getContextTool = defineTool({
|
||||||
@@ -76,34 +50,30 @@ export function createFreyaAgentTools(config: CreateFreyaAgentToolsConfig) {
|
|||||||
label: "Get FREYA Context",
|
label: "Get FREYA Context",
|
||||||
description:
|
description:
|
||||||
"Read specific FREYA context entries by key. Use prefix matching to discover entries under a source ID, or exact matching when you know the full key.",
|
"Read specific FREYA context entries by key. Use prefix matching to discover entries under a source ID, or exact matching when you know the full key.",
|
||||||
parameters: Type.Object(
|
parameters: Type.Object({
|
||||||
{
|
key: Type.Array(Type.Unknown(), {
|
||||||
key: Type.Array(Type.Unknown(), {
|
description:
|
||||||
description:
|
'Context key array, for example ["freya.location"] or ["freya.location", "location"].',
|
||||||
'Context key array, for example ["freya.location"] or ["freya.location", "location"].',
|
}),
|
||||||
|
match: Type.Optional(
|
||||||
|
Type.Union([Type.Literal("exact"), Type.Literal("prefix")], {
|
||||||
|
description: "Match mode. Defaults to prefix.",
|
||||||
}),
|
}),
|
||||||
match: Type.Optional(
|
),
|
||||||
Type.Union([Type.Literal("exact"), Type.Literal("prefix")], {
|
}),
|
||||||
description: "Match mode. Defaults to prefix.",
|
execute: async (_toolCallId, params) =>
|
||||||
}),
|
executeDebugTool(debugTools, userId, FREYA_GET_CONTEXT_TOOL, params),
|
||||||
),
|
|
||||||
},
|
|
||||||
{ additionalProperties: false },
|
|
||||||
),
|
|
||||||
execute: async (_toolCallId, params) => executeGetContextTool(config.toolbox, params),
|
|
||||||
})
|
})
|
||||||
|
|
||||||
const getFeedItemTool = defineTool({
|
const getFeedItemTool = defineTool({
|
||||||
name: FREYA_GET_FEED_ITEM_TOOL,
|
name: FREYA_GET_FEED_ITEM_TOOL,
|
||||||
label: "Get FREYA Feed Item",
|
label: "Get FREYA Feed Item",
|
||||||
description: "Read one feed item by ID, including related source context, actions, and errors.",
|
description: "Read one feed item by ID, including related source context, actions, and errors.",
|
||||||
parameters: Type.Object(
|
parameters: Type.Object({
|
||||||
{
|
feedItemId: Type.String({ description: "Feed item ID to inspect." }),
|
||||||
feedItemId: Type.String({ description: "Feed item ID to inspect." }),
|
}),
|
||||||
},
|
execute: async (_toolCallId, params) =>
|
||||||
{ additionalProperties: false },
|
executeDebugTool(debugTools, userId, FREYA_GET_FEED_ITEM_TOOL, params),
|
||||||
),
|
|
||||||
execute: async (_toolCallId, params) => executeGetFeedItemTool(config.toolbox, params),
|
|
||||||
})
|
})
|
||||||
|
|
||||||
const queryContextTool = defineTool({
|
const queryContextTool = defineTool({
|
||||||
@@ -111,20 +81,17 @@ export function createFreyaAgentTools(config: CreateFreyaAgentToolsConfig) {
|
|||||||
label: "Query FREYA Context",
|
label: "Query FREYA Context",
|
||||||
description:
|
description:
|
||||||
"Read the user's current FREYA feed, source graph context, source errors, and available actions.",
|
"Read the user's current FREYA feed, source graph context, source errors, and available actions.",
|
||||||
parameters: Type.Object(
|
parameters: Type.Object({
|
||||||
{
|
question: Type.String({
|
||||||
question: Type.String({
|
description: "The specific personal-context question to answer.",
|
||||||
description: "The specific personal-context question to answer.",
|
}),
|
||||||
|
feedItemId: Type.Optional(
|
||||||
|
Type.String({
|
||||||
|
description: "Optional feed item ID when the user is asking about a specific card.",
|
||||||
}),
|
}),
|
||||||
feedItemId: Type.Optional(
|
),
|
||||||
Type.String({
|
}),
|
||||||
description: "Optional feed item ID when the user is asking about a specific card.",
|
execute: async (_toolCallId, params) => executeQueryContextTool(config, params),
|
||||||
}),
|
|
||||||
),
|
|
||||||
},
|
|
||||||
{ additionalProperties: false },
|
|
||||||
),
|
|
||||||
execute: async (_toolCallId, params) => executeQueryContextTool(config.toolbox, params),
|
|
||||||
})
|
})
|
||||||
|
|
||||||
const listContextTool = defineTool({
|
const listContextTool = defineTool({
|
||||||
@@ -132,8 +99,8 @@ export function createFreyaAgentTools(config: CreateFreyaAgentToolsConfig) {
|
|||||||
label: "List FREYA Context",
|
label: "List FREYA Context",
|
||||||
description:
|
description:
|
||||||
"List all current FREYA context graph entries for the user. Use this to inspect what personal context is available.",
|
"List all current FREYA context graph entries for the user. Use this to inspect what personal context is available.",
|
||||||
parameters: Type.Object({}, { additionalProperties: false }),
|
parameters: Type.Object({}),
|
||||||
execute: async () => executeListContextTool(config.toolbox),
|
execute: async () => executeListContextTool(config),
|
||||||
})
|
})
|
||||||
|
|
||||||
const getSourceDataTool = defineTool({
|
const getSourceDataTool = defineTool({
|
||||||
@@ -141,40 +108,41 @@ export function createFreyaAgentTools(config: CreateFreyaAgentToolsConfig) {
|
|||||||
label: "Get FREYA Source Data",
|
label: "Get FREYA Source Data",
|
||||||
description:
|
description:
|
||||||
"Get current feed items, context entries, actions, and errors for a specific FREYA source ID.",
|
"Get current feed items, context entries, actions, and errors for a specific FREYA source ID.",
|
||||||
parameters: Type.Object(
|
parameters: Type.Object({
|
||||||
{
|
sourceId: Type.String({
|
||||||
sourceId: Type.String({
|
description: "Source ID, for example freya.location, freya.tfl, or freya.weather.",
|
||||||
description: "Source ID, for example freya.location, freya.tfl, or freya.weather.",
|
}),
|
||||||
|
feedItemId: Type.Optional(
|
||||||
|
Type.String({
|
||||||
|
description: "Optional feed item ID to select one item from the source.",
|
||||||
}),
|
}),
|
||||||
feedItemId: Type.Optional(
|
),
|
||||||
Type.String({
|
}),
|
||||||
description: "Optional feed item ID to select one item from the source.",
|
execute: async (_toolCallId, params) => executeGetSourceDataTool(config, params),
|
||||||
}),
|
|
||||||
),
|
|
||||||
},
|
|
||||||
{ additionalProperties: false },
|
|
||||||
),
|
|
||||||
execute: async (_toolCallId, params) => executeGetSourceDataTool(config.toolbox, params),
|
|
||||||
})
|
})
|
||||||
|
|
||||||
const executeActionTool = defineTool({
|
const proposeActionTool = defineTool({
|
||||||
name: FREYA_EXECUTE_ACTION_TOOL,
|
name: FREYA_PROPOSE_ACTION_TOOL,
|
||||||
label: "Execute FREYA Action",
|
label: "Propose FREYA Action",
|
||||||
description:
|
description: "Create a proposed action for the user to review. This never executes the action.",
|
||||||
"Execute an available FREYA source action immediately without creating a proposal.",
|
parameters: Type.Object({
|
||||||
parameters: Type.Object(
|
title: Type.String({ description: "Short user-facing action title." }),
|
||||||
{
|
description: Type.String({
|
||||||
sourceId: Type.String({ description: "Source ID that should execute the action." }),
|
description: "What will happen if the user confirms this action.",
|
||||||
actionId: Type.String({ description: "Source action ID to execute." }),
|
}),
|
||||||
params: Type.Optional(
|
sourceId: Type.Optional(
|
||||||
Type.Unknown({
|
Type.String({ description: "Source ID that should execute the action, if known." }),
|
||||||
description: "Parameters to pass to the source action.",
|
),
|
||||||
}),
|
actionId: Type.Optional(
|
||||||
),
|
Type.String({ description: "Source action ID to execute after confirmation, if known." }),
|
||||||
},
|
),
|
||||||
{ additionalProperties: false },
|
params: Type.Optional(
|
||||||
),
|
Type.Unknown({
|
||||||
execute: async (_toolCallId, params) => executeActionToolCall(config.toolbox, params),
|
description: "Parameters to pass to the source action after confirmation.",
|
||||||
|
}),
|
||||||
|
),
|
||||||
|
}),
|
||||||
|
execute: async (_toolCallId, params) => executeProposeActionTool(config, params),
|
||||||
})
|
})
|
||||||
|
|
||||||
return [
|
return [
|
||||||
@@ -184,61 +152,173 @@ export function createFreyaAgentTools(config: CreateFreyaAgentToolsConfig) {
|
|||||||
queryContextTool,
|
queryContextTool,
|
||||||
listContextTool,
|
listContextTool,
|
||||||
getSourceDataTool,
|
getSourceDataTool,
|
||||||
executeActionTool,
|
proposeActionTool,
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
async function executeListSourcesTool(toolbox: QueryAgentToolbox) {
|
async function executeDebugTool(
|
||||||
return toolbox.listSources()
|
debugTools: QueryDebugTools,
|
||||||
|
userId: string,
|
||||||
|
toolName: string,
|
||||||
|
params: unknown,
|
||||||
|
) {
|
||||||
|
const result = await debugTools.execute(userId, toolName, params)
|
||||||
|
|
||||||
|
return {
|
||||||
|
content: [
|
||||||
|
{
|
||||||
|
type: "text" as const,
|
||||||
|
text: JSON.stringify(result),
|
||||||
|
},
|
||||||
|
],
|
||||||
|
details: {},
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function executeGetContextTool(toolbox: QueryAgentToolbox, rawParams: unknown) {
|
async function executeQueryContextTool(
|
||||||
const params = GetContextToolParams(rawParams)
|
config: CreateFreyaAgentToolsConfig,
|
||||||
if (params instanceof type.errors) {
|
params: { question: string; feedItemId?: string },
|
||||||
throw new Error(params.summary)
|
) {
|
||||||
|
const userSession = await config.sessionManager.getOrCreate(config.userId)
|
||||||
|
const feed = await userSession.feed()
|
||||||
|
const context = userSession.engine.currentContext()
|
||||||
|
const feedItemId = params.feedItemId
|
||||||
|
const selectedItem =
|
||||||
|
typeof feedItemId === "string" ? feed.items.find((item) => item.id === feedItemId) : undefined
|
||||||
|
const actions = await userSession.listActions()
|
||||||
|
|
||||||
|
return {
|
||||||
|
content: [
|
||||||
|
{
|
||||||
|
type: "text" as const,
|
||||||
|
text: JSON.stringify({
|
||||||
|
time: context.time.toISOString(),
|
||||||
|
question: params.question,
|
||||||
|
feedItemId: feedItemId ?? null,
|
||||||
|
selectedItem: selectedItem ?? null,
|
||||||
|
items: feed.items,
|
||||||
|
context: context.entries(),
|
||||||
|
availableActions: actions.map((entry) => ({
|
||||||
|
sourceId: entry.sourceId,
|
||||||
|
actions: Object.values(entry.actions).map((action) => ({
|
||||||
|
id: action.id,
|
||||||
|
description: action.description ?? null,
|
||||||
|
})),
|
||||||
|
})),
|
||||||
|
errors: feed.errors.map((error) => ({
|
||||||
|
sourceId: error.sourceId,
|
||||||
|
message: error.error.message,
|
||||||
|
})),
|
||||||
|
}),
|
||||||
|
},
|
||||||
|
],
|
||||||
|
details: {},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
async function executeListContextTool(config: CreateFreyaAgentToolsConfig) {
|
||||||
|
const userSession = await config.sessionManager.getOrCreate(config.userId)
|
||||||
|
await userSession.feed()
|
||||||
|
const context = userSession.engine.currentContext()
|
||||||
|
const entries = context.entries()
|
||||||
|
|
||||||
|
return {
|
||||||
|
content: [
|
||||||
|
{
|
||||||
|
type: "text" as const,
|
||||||
|
text: JSON.stringify({
|
||||||
|
time: context.time.toISOString(),
|
||||||
|
count: entries.length,
|
||||||
|
entries,
|
||||||
|
}),
|
||||||
|
},
|
||||||
|
],
|
||||||
|
details: {},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
async function executeGetSourceDataTool(
|
||||||
|
config: CreateFreyaAgentToolsConfig,
|
||||||
|
params: { sourceId: string; feedItemId?: string },
|
||||||
|
) {
|
||||||
|
const userSession = await config.sessionManager.getOrCreate(config.userId)
|
||||||
|
const feed = await userSession.feed()
|
||||||
|
const context = userSession.engine.currentContext()
|
||||||
|
const sourceActions = userSession.hasSource(params.sourceId)
|
||||||
|
? await userSession.engine.listActions(params.sourceId)
|
||||||
|
: {}
|
||||||
|
|
||||||
|
const items = feed.items.filter((item) => item.sourceId === params.sourceId)
|
||||||
|
const selectedItem =
|
||||||
|
params.feedItemId !== undefined
|
||||||
|
? items.find((item) => item.id === params.feedItemId)
|
||||||
|
: undefined
|
||||||
|
const contextEntries = context.entries().filter((entry) => entry.key[0] === params.sourceId)
|
||||||
|
const errors = feed.errors
|
||||||
|
.filter((error) => error.sourceId === params.sourceId)
|
||||||
|
.map((error) => ({
|
||||||
|
sourceId: error.sourceId,
|
||||||
|
message: error.error.message,
|
||||||
|
}))
|
||||||
|
|
||||||
|
return {
|
||||||
|
content: [
|
||||||
|
{
|
||||||
|
type: "text" as const,
|
||||||
|
text: JSON.stringify({
|
||||||
|
time: context.time.toISOString(),
|
||||||
|
sourceId: params.sourceId,
|
||||||
|
hasSource: userSession.hasSource(params.sourceId),
|
||||||
|
feedItemId: params.feedItemId ?? null,
|
||||||
|
selectedItem: selectedItem ?? null,
|
||||||
|
items,
|
||||||
|
context: contextEntries,
|
||||||
|
actions: Object.values(sourceActions).map((action) => ({
|
||||||
|
id: action.id,
|
||||||
|
description: action.description ?? null,
|
||||||
|
})),
|
||||||
|
errors,
|
||||||
|
}),
|
||||||
|
},
|
||||||
|
],
|
||||||
|
details: {},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function executeProposeActionTool(
|
||||||
|
config: CreateFreyaAgentToolsConfig,
|
||||||
|
params: {
|
||||||
|
title: string
|
||||||
|
description: string
|
||||||
|
sourceId?: string
|
||||||
|
actionId?: string
|
||||||
|
params?: unknown
|
||||||
|
},
|
||||||
|
) {
|
||||||
|
const action: ProposedAction = {
|
||||||
|
id: crypto.randomUUID(),
|
||||||
|
title: params.title,
|
||||||
|
description: params.description,
|
||||||
|
requiresConfirmation: true,
|
||||||
|
createdAt: config.clock().toISOString(),
|
||||||
|
...(params.sourceId ? { sourceId: params.sourceId } : {}),
|
||||||
|
...(params.actionId ? { actionId: params.actionId } : {}),
|
||||||
|
...(params.params !== undefined ? { params: params.params } : {}),
|
||||||
}
|
}
|
||||||
|
|
||||||
const match = params.match ?? "prefix"
|
config.proposeAction(action)
|
||||||
|
|
||||||
return toolbox.getContext(params.key, match)
|
return {
|
||||||
}
|
content: [
|
||||||
|
{
|
||||||
async function executeGetFeedItemTool(toolbox: QueryAgentToolbox, rawParams: unknown) {
|
type: "text" as const,
|
||||||
const params = GetFeedItemToolParams(rawParams)
|
text: JSON.stringify({
|
||||||
if (params instanceof type.errors) {
|
ok: true,
|
||||||
throw new Error(params.summary)
|
proposedActionId: action.id,
|
||||||
|
requiresConfirmation: true,
|
||||||
|
}),
|
||||||
|
},
|
||||||
|
],
|
||||||
|
details: { proposedAction: action },
|
||||||
}
|
}
|
||||||
|
|
||||||
return toolbox.getFeedItem(params.feedItemId)
|
|
||||||
}
|
|
||||||
|
|
||||||
async function executeQueryContextTool(toolbox: QueryAgentToolbox, rawParams: unknown) {
|
|
||||||
const params = QueryContextToolParams(rawParams)
|
|
||||||
if (params instanceof type.errors) {
|
|
||||||
throw new Error(params.summary)
|
|
||||||
}
|
|
||||||
|
|
||||||
return toolbox.queryContext(params.question, params.feedItemId)
|
|
||||||
}
|
|
||||||
|
|
||||||
async function executeListContextTool(toolbox: QueryAgentToolbox) {
|
|
||||||
return toolbox.listContext()
|
|
||||||
}
|
|
||||||
|
|
||||||
async function executeGetSourceDataTool(toolbox: QueryAgentToolbox, rawParams: unknown) {
|
|
||||||
const params = GetSourceDataToolParams(rawParams)
|
|
||||||
if (params instanceof type.errors) {
|
|
||||||
throw new Error(params.summary)
|
|
||||||
}
|
|
||||||
|
|
||||||
return toolbox.getSourceData(params.sourceId, params.feedItemId)
|
|
||||||
}
|
|
||||||
|
|
||||||
async function executeActionToolCall(toolbox: QueryAgentToolbox, rawParams: unknown) {
|
|
||||||
const params = ExecuteActionToolParams(rawParams)
|
|
||||||
if (params instanceof type.errors) {
|
|
||||||
throw new Error(params.summary)
|
|
||||||
}
|
|
||||||
|
|
||||||
return toolbox.executeAction(params.sourceId, params.actionId, params.params)
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,253 +0,0 @@
|
|||||||
import { contextKey, type ContextKeyPart } from "@freya/core"
|
|
||||||
|
|
||||||
import type { UserSession } from "../session/user-session.ts"
|
|
||||||
import type { QueryAgentToolResult, QueryAgentToolbox } from "./query-agent-toolbox.ts"
|
|
||||||
|
|
||||||
export class UserSessionQueryAgentToolbox implements QueryAgentToolbox {
|
|
||||||
constructor(private readonly session: UserSession) {}
|
|
||||||
|
|
||||||
async listSources(): Promise<QueryAgentToolResult> {
|
|
||||||
const feed = await this.session.feed()
|
|
||||||
const context = this.session.engine.currentContext()
|
|
||||||
const contextEntries = context.entries()
|
|
||||||
const actions = await this.session.listActions()
|
|
||||||
|
|
||||||
const feedCounts = countBy(feed.items.map((item) => item.sourceId))
|
|
||||||
const contextCounts = countBy(
|
|
||||||
contextEntries
|
|
||||||
.map((entry) => entry.key[0])
|
|
||||||
.filter((part): part is string => typeof part === "string"),
|
|
||||||
)
|
|
||||||
const errors = groupErrorsBySource(
|
|
||||||
feed.errors.map((error) => ({
|
|
||||||
sourceId: error.sourceId,
|
|
||||||
message: error.error.message,
|
|
||||||
})),
|
|
||||||
)
|
|
||||||
const actionEntries = new Map(actions.map((entry) => [entry.sourceId, entry.actions]))
|
|
||||||
const sourceIds = new Set<string>([
|
|
||||||
...actionEntries.keys(),
|
|
||||||
...feedCounts.keys(),
|
|
||||||
...contextCounts.keys(),
|
|
||||||
...errors.keys(),
|
|
||||||
])
|
|
||||||
|
|
||||||
return toolResult({
|
|
||||||
time: context.time.toISOString(),
|
|
||||||
sources: [...sourceIds].sort().map((sourceId) => {
|
|
||||||
const sourceActions = actionEntries.get(sourceId) ?? {}
|
|
||||||
const feedItemCount = feedCounts.get(sourceId) ?? 0
|
|
||||||
const contextEntryCount = contextCounts.get(sourceId) ?? 0
|
|
||||||
|
|
||||||
return {
|
|
||||||
sourceId,
|
|
||||||
hasFeedItems: feedItemCount > 0,
|
|
||||||
feedItemCount,
|
|
||||||
hasContext: contextEntryCount > 0,
|
|
||||||
contextEntryCount,
|
|
||||||
actions: Object.values(sourceActions).map((action) => ({
|
|
||||||
id: action.id,
|
|
||||||
description: action.description ?? null,
|
|
||||||
})),
|
|
||||||
errors: errors.get(sourceId) ?? [],
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
async getContext(
|
|
||||||
key: ContextKeyPart[],
|
|
||||||
match: "exact" | "prefix",
|
|
||||||
): Promise<QueryAgentToolResult> {
|
|
||||||
await this.session.feed()
|
|
||||||
const context = this.session.engine.currentContext()
|
|
||||||
const keyObject = contextKey(...key)
|
|
||||||
|
|
||||||
if (match === "exact") {
|
|
||||||
const value = context.get(keyObject)
|
|
||||||
return toolResult({
|
|
||||||
time: context.time.toISOString(),
|
|
||||||
match,
|
|
||||||
key,
|
|
||||||
found: value !== undefined,
|
|
||||||
value: value ?? null,
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
const entries = context.find(keyObject)
|
|
||||||
return toolResult({
|
|
||||||
time: context.time.toISOString(),
|
|
||||||
match,
|
|
||||||
key,
|
|
||||||
count: entries.length,
|
|
||||||
entries,
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
async getFeedItem(feedItemId: string): Promise<QueryAgentToolResult> {
|
|
||||||
const feed = await this.session.feed()
|
|
||||||
const context = this.session.engine.currentContext()
|
|
||||||
const item = feed.items.find((candidate) => candidate.id === feedItemId)
|
|
||||||
|
|
||||||
if (!item) {
|
|
||||||
return toolResult({
|
|
||||||
time: context.time.toISOString(),
|
|
||||||
feedItemId,
|
|
||||||
found: false,
|
|
||||||
item: null,
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
const sourceActions = this.session.hasSource(item.sourceId)
|
|
||||||
? await this.session.engine.listActions(item.sourceId)
|
|
||||||
: {}
|
|
||||||
const errors = feed.errors
|
|
||||||
.filter((error) => error.sourceId === item.sourceId)
|
|
||||||
.map((error) => ({
|
|
||||||
sourceId: error.sourceId,
|
|
||||||
message: error.error.message,
|
|
||||||
}))
|
|
||||||
|
|
||||||
return toolResult({
|
|
||||||
time: context.time.toISOString(),
|
|
||||||
feedItemId,
|
|
||||||
found: true,
|
|
||||||
item,
|
|
||||||
source: {
|
|
||||||
sourceId: item.sourceId,
|
|
||||||
hasSource: this.session.hasSource(item.sourceId),
|
|
||||||
context: context.entries().filter((entry) => entry.key[0] === item.sourceId),
|
|
||||||
actions: Object.values(sourceActions).map((action) => ({
|
|
||||||
id: action.id,
|
|
||||||
description: action.description ?? null,
|
|
||||||
})),
|
|
||||||
errors,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
async queryContext(question: string, feedItemId?: string): Promise<QueryAgentToolResult> {
|
|
||||||
const feed = await this.session.feed()
|
|
||||||
const context = this.session.engine.currentContext()
|
|
||||||
const selectedItem = feedItemId ? feed.items.find((item) => item.id === feedItemId) : undefined
|
|
||||||
const actions = await this.session.listActions()
|
|
||||||
|
|
||||||
return toolResult({
|
|
||||||
time: context.time.toISOString(),
|
|
||||||
question,
|
|
||||||
feedItemId: feedItemId ?? null,
|
|
||||||
selectedItem: selectedItem ?? null,
|
|
||||||
items: feed.items,
|
|
||||||
context: context.entries(),
|
|
||||||
availableActions: actions.map((entry) => ({
|
|
||||||
sourceId: entry.sourceId,
|
|
||||||
actions: Object.values(entry.actions).map((action) => ({
|
|
||||||
id: action.id,
|
|
||||||
description: action.description ?? null,
|
|
||||||
})),
|
|
||||||
})),
|
|
||||||
errors: feed.errors.map((error) => ({
|
|
||||||
sourceId: error.sourceId,
|
|
||||||
message: error.error.message,
|
|
||||||
})),
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
async listContext(): Promise<QueryAgentToolResult> {
|
|
||||||
await this.session.feed()
|
|
||||||
const context = this.session.engine.currentContext()
|
|
||||||
const entries = context.entries()
|
|
||||||
|
|
||||||
return toolResult({
|
|
||||||
time: context.time.toISOString(),
|
|
||||||
count: entries.length,
|
|
||||||
entries,
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
async getSourceData(sourceId: string, feedItemId?: string): Promise<QueryAgentToolResult> {
|
|
||||||
const feed = await this.session.feed()
|
|
||||||
const context = this.session.engine.currentContext()
|
|
||||||
const sourceActions = this.session.hasSource(sourceId)
|
|
||||||
? await this.session.engine.listActions(sourceId)
|
|
||||||
: {}
|
|
||||||
|
|
||||||
const items = feed.items.filter((item) => item.sourceId === sourceId)
|
|
||||||
const selectedItem = feedItemId ? items.find((item) => item.id === feedItemId) : undefined
|
|
||||||
const contextEntries = context.entries().filter((entry) => entry.key[0] === sourceId)
|
|
||||||
const errors = feed.errors
|
|
||||||
.filter((error) => error.sourceId === sourceId)
|
|
||||||
.map((error) => ({
|
|
||||||
sourceId: error.sourceId,
|
|
||||||
message: error.error.message,
|
|
||||||
}))
|
|
||||||
|
|
||||||
return toolResult({
|
|
||||||
time: context.time.toISOString(),
|
|
||||||
sourceId,
|
|
||||||
hasSource: this.session.hasSource(sourceId),
|
|
||||||
feedItemId: feedItemId ?? null,
|
|
||||||
selectedItem: selectedItem ?? null,
|
|
||||||
items,
|
|
||||||
context: contextEntries,
|
|
||||||
actions: Object.values(sourceActions).map((action) => ({
|
|
||||||
id: action.id,
|
|
||||||
description: action.description ?? null,
|
|
||||||
})),
|
|
||||||
errors,
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
async executeAction(
|
|
||||||
sourceId: string,
|
|
||||||
actionId: string,
|
|
||||||
params?: unknown,
|
|
||||||
): Promise<QueryAgentToolResult> {
|
|
||||||
const result = await this.session.engine.executeAction(sourceId, actionId, params)
|
|
||||||
const actionExecution = {
|
|
||||||
sourceId,
|
|
||||||
actionId,
|
|
||||||
result: result ?? null,
|
|
||||||
}
|
|
||||||
|
|
||||||
return toolResult(
|
|
||||||
{
|
|
||||||
ok: true,
|
|
||||||
...actionExecution,
|
|
||||||
},
|
|
||||||
{ actionExecution },
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function toolResult(result: unknown, details: Record<string, unknown> = {}): QueryAgentToolResult {
|
|
||||||
return {
|
|
||||||
content: [
|
|
||||||
{
|
|
||||||
type: "text" as const,
|
|
||||||
text: JSON.stringify(result),
|
|
||||||
},
|
|
||||||
],
|
|
||||||
details,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function countBy(values: string[]): Map<string, number> {
|
|
||||||
const result = new Map<string, number>()
|
|
||||||
for (const value of values) {
|
|
||||||
result.set(value, (result.get(value) ?? 0) + 1)
|
|
||||||
}
|
|
||||||
return result
|
|
||||||
}
|
|
||||||
|
|
||||||
function groupErrorsBySource(
|
|
||||||
errors: Array<{ sourceId: string; message: string }>,
|
|
||||||
): Map<string, Array<{ sourceId: string; message: string }>> {
|
|
||||||
const result = new Map<string, Array<{ sourceId: string; message: string }>>()
|
|
||||||
for (const error of errors) {
|
|
||||||
const group = result.get(error.sourceId) ?? []
|
|
||||||
group.push(error)
|
|
||||||
result.set(error.sourceId, group)
|
|
||||||
}
|
|
||||||
return result
|
|
||||||
}
|
|
||||||
@@ -11,6 +11,7 @@ describe("ensureEnv", () => {
|
|||||||
EXA_API_KEY: " exa-key ",
|
EXA_API_KEY: " exa-key ",
|
||||||
GOOGLE_MAPS_API_KEY: " google-maps-key ",
|
GOOGLE_MAPS_API_KEY: " google-maps-key ",
|
||||||
OPENROUTER_API_KEY: " openrouter-key ",
|
OPENROUTER_API_KEY: " openrouter-key ",
|
||||||
|
OPENROUTER_MODEL: " model-name ",
|
||||||
TFL_API_KEY: " tfl-key ",
|
TFL_API_KEY: " tfl-key ",
|
||||||
WEATHERKIT_KEY_ID: " weather-key-id ",
|
WEATHERKIT_KEY_ID: " weather-key-id ",
|
||||||
WEATHERKIT_PRIVATE_KEY: " weather-private-key ",
|
WEATHERKIT_PRIVATE_KEY: " weather-private-key ",
|
||||||
@@ -25,6 +26,7 @@ describe("ensureEnv", () => {
|
|||||||
exaApiKey: "exa-key",
|
exaApiKey: "exa-key",
|
||||||
googleMapsApiKey: "google-maps-key",
|
googleMapsApiKey: "google-maps-key",
|
||||||
openrouterApiKey: "openrouter-key",
|
openrouterApiKey: "openrouter-key",
|
||||||
|
openrouterModel: "model-name",
|
||||||
tflApiKey: "tfl-key",
|
tflApiKey: "tfl-key",
|
||||||
weatherkitKeyId: "weather-key-id",
|
weatherkitKeyId: "weather-key-id",
|
||||||
weatherkitPrivateKey: "weather-private-key",
|
weatherkitPrivateKey: "weather-private-key",
|
||||||
@@ -51,6 +53,25 @@ describe("ensureEnv", () => {
|
|||||||
).toThrow("Missing required environment variables: GOOGLE_MAPS_API_KEY")
|
).toThrow("Missing required environment variables: GOOGLE_MAPS_API_KEY")
|
||||||
})
|
})
|
||||||
|
|
||||||
|
test("allows openrouter model to be omitted", () => {
|
||||||
|
const env = ensureEnv({
|
||||||
|
BETTER_AUTH_SECRET: "auth-secret",
|
||||||
|
CREDENTIAL_ENCRYPTION_KEY: "credential-key",
|
||||||
|
DATABASE_URL: "postgres://example",
|
||||||
|
EXA_API_KEY: "exa-key",
|
||||||
|
GOOGLE_MAPS_API_KEY: "google-maps-key",
|
||||||
|
OPENROUTER_API_KEY: "openrouter-key",
|
||||||
|
TFL_API_KEY: "tfl-key",
|
||||||
|
WEATHERKIT_KEY_ID: "weather-key-id",
|
||||||
|
WEATHERKIT_PRIVATE_KEY: "weather-private-key",
|
||||||
|
WEATHERKIT_SERVICE_ID: "weather-service-id",
|
||||||
|
WEATHERKIT_TEAM_ID: "weather-team-id",
|
||||||
|
})
|
||||||
|
|
||||||
|
expect(env.googleMapsApiKey).toBe("google-maps-key")
|
||||||
|
expect(env.openrouterModel).toBeUndefined()
|
||||||
|
})
|
||||||
|
|
||||||
test("throws with all missing required env names", () => {
|
test("throws with all missing required env names", () => {
|
||||||
expect(() => ensureEnv({})).toThrow(
|
expect(() => ensureEnv({})).toThrow(
|
||||||
"Missing required environment variables: BETTER_AUTH_SECRET, CREDENTIAL_ENCRYPTION_KEY, DATABASE_URL, EXA_API_KEY, OPENROUTER_API_KEY, TFL_API_KEY, WEATHERKIT_PRIVATE_KEY, WEATHERKIT_KEY_ID, WEATHERKIT_TEAM_ID, WEATHERKIT_SERVICE_ID, GOOGLE_MAPS_API_KEY",
|
"Missing required environment variables: BETTER_AUTH_SECRET, CREDENTIAL_ENCRYPTION_KEY, DATABASE_URL, EXA_API_KEY, OPENROUTER_API_KEY, TFL_API_KEY, WEATHERKIT_PRIVATE_KEY, WEATHERKIT_KEY_ID, WEATHERKIT_TEAM_ID, WEATHERKIT_SERVICE_ID, GOOGLE_MAPS_API_KEY",
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ export interface ServerEnv {
|
|||||||
exaApiKey: string
|
exaApiKey: string
|
||||||
googleMapsApiKey: string
|
googleMapsApiKey: string
|
||||||
openrouterApiKey: string
|
openrouterApiKey: string
|
||||||
|
openrouterModel: string | undefined
|
||||||
tflApiKey: string
|
tflApiKey: string
|
||||||
weatherkitKeyId: string
|
weatherkitKeyId: string
|
||||||
weatherkitPrivateKey: string
|
weatherkitPrivateKey: string
|
||||||
@@ -38,6 +39,7 @@ export function ensureEnv(env: Record<string, string | undefined>): ServerEnv {
|
|||||||
exaApiKey,
|
exaApiKey,
|
||||||
googleMapsApiKey,
|
googleMapsApiKey,
|
||||||
openrouterApiKey,
|
openrouterApiKey,
|
||||||
|
openrouterModel: readOptionalEnv(env, "OPENROUTER_MODEL"),
|
||||||
tflApiKey,
|
tflApiKey,
|
||||||
weatherkitKeyId,
|
weatherkitKeyId,
|
||||||
weatherkitPrivateKey,
|
weatherkitPrivateKey,
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import { cors } from "hono/cors"
|
|||||||
import { registerAdminHttpHandlers } from "./admin/http.ts"
|
import { registerAdminHttpHandlers } from "./admin/http.ts"
|
||||||
import { createQueryDebugTools } from "./agent/debug-tools.ts"
|
import { createQueryDebugTools } from "./agent/debug-tools.ts"
|
||||||
import { registerAgentHttpHandlers, registerDebugAgentHttpHandlers } from "./agent/http.ts"
|
import { registerAgentHttpHandlers, registerDebugAgentHttpHandlers } from "./agent/http.ts"
|
||||||
|
import { PiQueryAgent } from "./agent/pi-query-agent.ts"
|
||||||
import { createRequireAdmin } from "./auth/admin-middleware.ts"
|
import { createRequireAdmin } from "./auth/admin-middleware.ts"
|
||||||
import { registerAuthHandlers } from "./auth/http.ts"
|
import { registerAuthHandlers } from "./auth/http.ts"
|
||||||
import { createAuth } from "./auth/index.ts"
|
import { createAuth } from "./auth/index.ts"
|
||||||
@@ -34,11 +35,11 @@ function main() {
|
|||||||
const feedEnhancer = createFeedEnhancer({
|
const feedEnhancer = createFeedEnhancer({
|
||||||
client: createLlmClient({
|
client: createLlmClient({
|
||||||
apiKey: env.openrouterApiKey,
|
apiKey: env.openrouterApiKey,
|
||||||
|
model: env.openrouterModel,
|
||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
|
|
||||||
const credentialEncryptor = new CredentialEncryptor(env.credentialEncryptionKey)
|
const credentialEncryptor = new CredentialEncryptor(env.credentialEncryptionKey)
|
||||||
const piApiKey = process.env.PI_API_KEY ?? env.openrouterApiKey
|
|
||||||
|
|
||||||
const sessionManager = new UserSessionManager({
|
const sessionManager = new UserSessionManager({
|
||||||
db,
|
db,
|
||||||
@@ -62,9 +63,13 @@ function main() {
|
|||||||
],
|
],
|
||||||
feedEnhancer,
|
feedEnhancer,
|
||||||
credentialEncryptor,
|
credentialEncryptor,
|
||||||
queryAgent: {
|
})
|
||||||
apiKey: piApiKey,
|
const piApiKey = process.env.PI_API_KEY ?? env.openrouterApiKey
|
||||||
},
|
const queryAgent = new PiQueryAgent({
|
||||||
|
sessionManager,
|
||||||
|
modelProvider: process.env.PI_MODEL_PROVIDER ?? "openrouter",
|
||||||
|
modelId: process.env.PI_MODEL ?? env.openrouterModel ?? "z-ai/glm-4.7-flash",
|
||||||
|
apiKey: piApiKey,
|
||||||
})
|
})
|
||||||
if (!piApiKey) {
|
if (!piApiKey) {
|
||||||
console.warn("[query] PI_API_KEY or OPENROUTER_API_KEY not set — query agent unavailable")
|
console.warn("[query] PI_API_KEY or OPENROUTER_API_KEY not set — query agent unavailable")
|
||||||
@@ -115,7 +120,7 @@ function main() {
|
|||||||
registerLocationHttpHandlers(app, { sessionManager, authSessionMiddleware })
|
registerLocationHttpHandlers(app, { sessionManager, authSessionMiddleware })
|
||||||
registerSourcesHttpHandlers(app, { sessionManager, authSessionMiddleware })
|
registerSourcesHttpHandlers(app, { sessionManager, authSessionMiddleware })
|
||||||
registerAgentHttpHandlers(app, {
|
registerAgentHttpHandlers(app, {
|
||||||
sessionManager,
|
queryAgent,
|
||||||
authSessionMiddleware,
|
authSessionMiddleware,
|
||||||
})
|
})
|
||||||
if (isDebugMode) {
|
if (isDebugMode) {
|
||||||
@@ -128,7 +133,7 @@ function main() {
|
|||||||
registerAdminHttpHandlers(app, { sessionManager, adminMiddleware, db })
|
registerAdminHttpHandlers(app, { sessionManager, adminMiddleware, db })
|
||||||
|
|
||||||
process.on("SIGTERM", async () => {
|
process.on("SIGTERM", async () => {
|
||||||
sessionManager.dispose()
|
queryAgent.dispose()
|
||||||
await closeDb()
|
await closeDb()
|
||||||
process.exit(0)
|
process.exit(0)
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import type { FeedSource } from "@freya/core"
|
import type { FeedSource } from "@freya/core"
|
||||||
|
import type { type } from "arktype"
|
||||||
|
|
||||||
export type ConfigSchema = (value: unknown) => unknown
|
export type ConfigSchema = ReturnType<typeof type>
|
||||||
|
|
||||||
export interface FeedSourceProvider {
|
export interface FeedSourceProvider {
|
||||||
/** The source ID this provider is responsible for (e.g., "freya.location"). */
|
/** The source ID this provider is responsible for (e.g., "freya.location"). */
|
||||||
|
|||||||
@@ -14,14 +14,13 @@ import {
|
|||||||
SourceNotFoundError,
|
SourceNotFoundError,
|
||||||
} from "../sources/errors.ts"
|
} from "../sources/errors.ts"
|
||||||
import { sources } from "../sources/user-sources.ts"
|
import { sources } from "../sources/user-sources.ts"
|
||||||
import { UserSession, type UserSessionAgentConfig } from "./user-session.ts"
|
import { UserSession } from "./user-session.ts"
|
||||||
|
|
||||||
export interface UserSessionManagerConfig {
|
export interface UserSessionManagerConfig {
|
||||||
db: Database
|
db: Database
|
||||||
providers: FeedSourceProvider[]
|
providers: FeedSourceProvider[]
|
||||||
feedEnhancer?: FeedEnhancer | null
|
feedEnhancer?: FeedEnhancer | null
|
||||||
credentialEncryptor?: CredentialEncryptor | null
|
credentialEncryptor?: CredentialEncryptor | null
|
||||||
queryAgent?: UserSessionAgentConfig
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export class UserSessionManager {
|
export class UserSessionManager {
|
||||||
@@ -31,7 +30,6 @@ export class UserSessionManager {
|
|||||||
private readonly providers = new Map<string, FeedSourceProvider>()
|
private readonly providers = new Map<string, FeedSourceProvider>()
|
||||||
private readonly feedEnhancer: FeedEnhancer | null
|
private readonly feedEnhancer: FeedEnhancer | null
|
||||||
private readonly encryptor: CredentialEncryptor | null
|
private readonly encryptor: CredentialEncryptor | null
|
||||||
private readonly queryAgentConfig: UserSessionAgentConfig | undefined
|
|
||||||
|
|
||||||
constructor(config: UserSessionManagerConfig) {
|
constructor(config: UserSessionManagerConfig) {
|
||||||
this.db = config.db
|
this.db = config.db
|
||||||
@@ -40,7 +38,6 @@ export class UserSessionManager {
|
|||||||
}
|
}
|
||||||
this.feedEnhancer = config.feedEnhancer ?? null
|
this.feedEnhancer = config.feedEnhancer ?? null
|
||||||
this.encryptor = config.credentialEncryptor ?? null
|
this.encryptor = config.credentialEncryptor ?? null
|
||||||
this.queryAgentConfig = config.queryAgent
|
|
||||||
}
|
}
|
||||||
|
|
||||||
getProvider(sourceId: string): FeedSourceProvider | undefined {
|
getProvider(sourceId: string): FeedSourceProvider | undefined {
|
||||||
@@ -102,14 +99,6 @@ export class UserSessionManager {
|
|||||||
this.pending.delete(userId)
|
this.pending.delete(userId)
|
||||||
}
|
}
|
||||||
|
|
||||||
dispose(): void {
|
|
||||||
for (const session of this.sessions.values()) {
|
|
||||||
session.destroy()
|
|
||||||
}
|
|
||||||
this.sessions.clear()
|
|
||||||
this.pending.clear()
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Merges, validates, and persists a user's source config and/or enabled
|
* Merges, validates, and persists a user's source config and/or enabled
|
||||||
* state, then invalidates the cached session.
|
* state, then invalidates the cached session.
|
||||||
@@ -373,7 +362,7 @@ export class UserSessionManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (promises.length === 0) {
|
if (promises.length === 0) {
|
||||||
return new UserSession(userId, [], this.feedEnhancer, this.queryAgentConfig)
|
return new UserSession(userId, [], this.feedEnhancer)
|
||||||
}
|
}
|
||||||
|
|
||||||
const results = await Promise.allSettled(promises)
|
const results = await Promise.allSettled(promises)
|
||||||
@@ -397,7 +386,7 @@ export class UserSessionManager {
|
|||||||
console.error("[UserSessionManager] Feed source provider failed:", error)
|
console.error("[UserSessionManager] Feed source provider failed:", error)
|
||||||
}
|
}
|
||||||
|
|
||||||
return new UserSession(userId, feedSources, this.feedEnhancer, this.queryAgentConfig)
|
return new UserSession(userId, feedSources, this.feedEnhancer)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -58,15 +58,6 @@ describe("UserSession", () => {
|
|||||||
expect(session.getSource("test")).toBeUndefined()
|
expect(session.getSource("test")).toBeUndefined()
|
||||||
})
|
})
|
||||||
|
|
||||||
test("destroy disposes query agent", () => {
|
|
||||||
const session = new UserSession("test-user", [createStubSource("test")])
|
|
||||||
const disposeSpy = spyOn(session.agent, "dispose")
|
|
||||||
|
|
||||||
session.destroy()
|
|
||||||
|
|
||||||
expect(disposeSpy).toHaveBeenCalled()
|
|
||||||
})
|
|
||||||
|
|
||||||
test("engine.executeAction routes to correct source", async () => {
|
test("engine.executeAction routes to correct source", async () => {
|
||||||
const location = new LocationSource()
|
const location = new LocationSource()
|
||||||
const session = new UserSession("test-user", [location])
|
const session = new UserSession("test-user", [location])
|
||||||
|
|||||||
@@ -6,24 +6,11 @@ import {
|
|||||||
type FeedSource,
|
type FeedSource,
|
||||||
} from "@freya/core"
|
} from "@freya/core"
|
||||||
|
|
||||||
import type { QueryAgentToolbox } from "../agent/query-agent-toolbox.ts"
|
|
||||||
import type { QueryAgent } from "../agent/query-agent.ts"
|
|
||||||
import type { FeedEnhancer } from "../enhancement/enhance-feed.ts"
|
import type { FeedEnhancer } from "../enhancement/enhance-feed.ts"
|
||||||
|
|
||||||
import { PiQueryAgent } from "../agent/pi-query-agent.ts"
|
|
||||||
import { UserSessionQueryAgentToolbox } from "../agent/user-session-query-agent-toolbox.ts"
|
|
||||||
|
|
||||||
export interface UserSessionAgentConfig {
|
|
||||||
apiKey?: string
|
|
||||||
cwd?: string
|
|
||||||
systemPrompt?: string
|
|
||||||
}
|
|
||||||
|
|
||||||
export class UserSession {
|
export class UserSession {
|
||||||
readonly userId: string
|
readonly userId: string
|
||||||
readonly engine: FeedEngine
|
readonly engine: FeedEngine
|
||||||
readonly toolbox: QueryAgentToolbox
|
|
||||||
readonly agent: QueryAgent
|
|
||||||
private sources = new Map<string, FeedSource>()
|
private sources = new Map<string, FeedSource>()
|
||||||
private readonly enhancer: FeedEnhancer | null
|
private readonly enhancer: FeedEnhancer | null
|
||||||
private enhancedItems: FeedItem[] | null = null
|
private enhancedItems: FeedItem[] | null = null
|
||||||
@@ -32,12 +19,7 @@ export class UserSession {
|
|||||||
private enhancingPromise: Promise<void> | null = null
|
private enhancingPromise: Promise<void> | null = null
|
||||||
private unsubscribe: (() => void) | null = null
|
private unsubscribe: (() => void) | null = null
|
||||||
|
|
||||||
constructor(
|
constructor(userId: string, sources: FeedSource[], enhancer?: FeedEnhancer | null) {
|
||||||
userId: string,
|
|
||||||
sources: FeedSource[],
|
|
||||||
enhancer?: FeedEnhancer | null,
|
|
||||||
agentConfig?: UserSessionAgentConfig,
|
|
||||||
) {
|
|
||||||
this.userId = userId
|
this.userId = userId
|
||||||
this.engine = new FeedEngine()
|
this.engine = new FeedEngine()
|
||||||
this.enhancer = enhancer ?? null
|
this.enhancer = enhancer ?? null
|
||||||
@@ -53,15 +35,6 @@ export class UserSession {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
this.toolbox = new UserSessionQueryAgentToolbox(this)
|
|
||||||
this.agent = new PiQueryAgent({
|
|
||||||
userId: this.userId,
|
|
||||||
toolbox: this.toolbox,
|
|
||||||
apiKey: agentConfig?.apiKey,
|
|
||||||
cwd: agentConfig?.cwd,
|
|
||||||
systemPrompt: agentConfig?.systemPrompt,
|
|
||||||
})
|
|
||||||
|
|
||||||
this.engine.start()
|
this.engine.start()
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -201,7 +174,6 @@ export class UserSession {
|
|||||||
}
|
}
|
||||||
|
|
||||||
destroy(): void {
|
destroy(): void {
|
||||||
this.agent.dispose()
|
|
||||||
this.unsubscribe?.()
|
this.unsubscribe?.()
|
||||||
this.unsubscribe = null
|
this.unsubscribe = null
|
||||||
this.engine.stop()
|
this.engine.stop()
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import { LocationSource } from "@freya/source-location"
|
import { LocationSource } from "@freya/source-location"
|
||||||
import { ReminderSource } from "@freya/source-reminders"
|
|
||||||
import { WebSearchSource } from "@freya/source-web-search"
|
import { WebSearchSource } from "@freya/source-web-search"
|
||||||
import { describe, expect, test } from "bun:test"
|
import { describe, expect, test } from "bun:test"
|
||||||
|
|
||||||
@@ -56,12 +55,8 @@ function createRecordingDb(): RecordingDb {
|
|||||||
}
|
}
|
||||||
|
|
||||||
describe("default user sources", () => {
|
describe("default user sources", () => {
|
||||||
test("defines default enabled sources", () => {
|
test("defines location and web search as default enabled sources", () => {
|
||||||
expect(DEFAULT_ENABLED_SOURCE_IDS).toEqual([
|
expect(DEFAULT_ENABLED_SOURCE_IDS).toEqual([LocationSource.id, WebSearchSource.id])
|
||||||
LocationSource.id,
|
|
||||||
ReminderSource.id,
|
|
||||||
WebSearchSource.id,
|
|
||||||
])
|
|
||||||
})
|
})
|
||||||
|
|
||||||
test("inserts default enabled source rows for a user", async () => {
|
test("inserts default enabled source rows for a user", async () => {
|
||||||
@@ -75,7 +70,7 @@ describe("default user sources", () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
expect(recording.table()).toBe(userSources)
|
expect(recording.table()).toBe(userSources)
|
||||||
expect(rows).toHaveLength(3)
|
expect(rows).toHaveLength(2)
|
||||||
expect(rows.map((row) => row.sourceId)).toEqual([...DEFAULT_ENABLED_SOURCE_IDS])
|
expect(rows.map((row) => row.sourceId)).toEqual([...DEFAULT_ENABLED_SOURCE_IDS])
|
||||||
expect(recording.conflictTarget()).toEqual([userSources.userId, userSources.sourceId])
|
expect(recording.conflictTarget()).toEqual([userSources.userId, userSources.sourceId])
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,11 @@
|
|||||||
import { LocationSource } from "@freya/source-location"
|
import { LocationSource } from "@freya/source-location"
|
||||||
import { ReminderSource } from "@freya/source-reminders"
|
|
||||||
import { WebSearchSource } from "@freya/source-web-search"
|
import { WebSearchSource } from "@freya/source-web-search"
|
||||||
|
|
||||||
import type { Database } from "../db/index.ts"
|
import type { Database } from "../db/index.ts"
|
||||||
|
|
||||||
import { userSources } from "../db/schema.ts"
|
import { userSources } from "../db/schema.ts"
|
||||||
|
|
||||||
export const DEFAULT_ENABLED_SOURCE_IDS = [
|
export const DEFAULT_ENABLED_SOURCE_IDS = [LocationSource.id, WebSearchSource.id] as const
|
||||||
LocationSource.id,
|
|
||||||
ReminderSource.id,
|
|
||||||
WebSearchSource.id,
|
|
||||||
] as const
|
|
||||||
|
|
||||||
export type DefaultEnabledSourceId = (typeof DEFAULT_ENABLED_SOURCE_IDS)[number]
|
export type DefaultEnabledSourceId = (typeof DEFAULT_ENABLED_SOURCE_IDS)[number]
|
||||||
|
|
||||||
|
|||||||
198
bun.lock
198
bun.lock
@@ -46,10 +46,6 @@
|
|||||||
"vite": "^7.2.4",
|
"vite": "^7.2.4",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"apps/agent-test-cli": {
|
|
||||||
"name": "@freya/agent-test-cli",
|
|
||||||
"version": "0.0.0",
|
|
||||||
},
|
|
||||||
"apps/freya-backend": {
|
"apps/freya-backend": {
|
||||||
"name": "@freya/backend",
|
"name": "@freya/backend",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
@@ -749,8 +745,6 @@
|
|||||||
|
|
||||||
"@formatjs/intl-localematcher": ["@formatjs/intl-localematcher@0.6.2", "", { "dependencies": { "tslib": "^2.8.0" } }, "sha512-XOMO2Hupl0wdd172Y06h6kLpBz6Dv+J4okPLl4LPtzbr8f66WbIoy4ev98EBuZ6ZK4h5ydTN6XneT4QVpD7cdA=="],
|
"@formatjs/intl-localematcher": ["@formatjs/intl-localematcher@0.6.2", "", { "dependencies": { "tslib": "^2.8.0" } }, "sha512-XOMO2Hupl0wdd172Y06h6kLpBz6Dv+J4okPLl4LPtzbr8f66WbIoy4ev98EBuZ6ZK4h5ydTN6XneT4QVpD7cdA=="],
|
||||||
|
|
||||||
"@freya/agent-test-cli": ["@freya/agent-test-cli@workspace:apps/agent-test-cli"],
|
|
||||||
|
|
||||||
"@freya/backend": ["@freya/backend@workspace:apps/freya-backend"],
|
"@freya/backend": ["@freya/backend@workspace:apps/freya-backend"],
|
||||||
|
|
||||||
"@freya/components": ["@freya/components@workspace:packages/freya-components"],
|
"@freya/components": ["@freya/components@workspace:packages/freya-components"],
|
||||||
@@ -767,8 +761,6 @@
|
|||||||
|
|
||||||
"@freya/source-location": ["@freya/source-location@workspace:packages/freya-source-location"],
|
"@freya/source-location": ["@freya/source-location@workspace:packages/freya-source-location"],
|
||||||
|
|
||||||
"@freya/source-mcp": ["@freya/source-mcp@workspace:packages/freya-source-mcp"],
|
|
||||||
|
|
||||||
"@freya/source-reminders": ["@freya/source-reminders@workspace:packages/freya-source-reminders"],
|
"@freya/source-reminders": ["@freya/source-reminders@workspace:packages/freya-source-reminders"],
|
||||||
|
|
||||||
"@freya/source-tfl": ["@freya/source-tfl@workspace:packages/freya-source-tfl"],
|
"@freya/source-tfl": ["@freya/source-tfl@workspace:packages/freya-source-tfl"],
|
||||||
@@ -1703,7 +1695,7 @@
|
|||||||
|
|
||||||
"abort-controller": ["abort-controller@3.0.0", "", { "dependencies": { "event-target-shim": "^5.0.0" } }, "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg=="],
|
"abort-controller": ["abort-controller@3.0.0", "", { "dependencies": { "event-target-shim": "^5.0.0" } }, "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg=="],
|
||||||
|
|
||||||
"accepts": ["accepts@2.0.0", "", { "dependencies": { "mime-types": "^3.0.0", "negotiator": "^1.0.0" } }, "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng=="],
|
"accepts": ["accepts@1.3.8", "", { "dependencies": { "mime-types": "~2.1.34", "negotiator": "0.6.3" } }, "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw=="],
|
||||||
|
|
||||||
"acorn": ["acorn@8.16.0", "", { "bin": { "acorn": "bin/acorn" } }, "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw=="],
|
"acorn": ["acorn@8.16.0", "", { "bin": { "acorn": "bin/acorn" } }, "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw=="],
|
||||||
|
|
||||||
@@ -1715,9 +1707,9 @@
|
|||||||
|
|
||||||
"agent-base": ["agent-base@7.1.4", "", {}, "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ=="],
|
"agent-base": ["agent-base@7.1.4", "", {}, "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ=="],
|
||||||
|
|
||||||
"ajv": ["ajv@8.18.0", "", { "dependencies": { "fast-deep-equal": "^3.1.3", "fast-uri": "^3.0.1", "json-schema-traverse": "^1.0.0", "require-from-string": "^2.0.2" } }, "sha512-PlXPeEWMXMZ7sPYOHqmDyCJzcfNrUr3fGNKtezX14ykXOEIvyK81d+qydx89KY5O71FKMPaQ2vBfBFI5NHR63A=="],
|
"ajv": ["ajv@8.11.0", "", { "dependencies": { "fast-deep-equal": "^3.1.1", "json-schema-traverse": "^1.0.0", "require-from-string": "^2.0.2", "uri-js": "^4.2.2" } }, "sha512-wGgprdCvMalC0BztXvitD2hC04YffAvtsUn93JbGXYLAtCUO4xd17mCCZQxUOItiBwZvJScWo8NIvQMQ71rdpg=="],
|
||||||
|
|
||||||
"ajv-formats": ["ajv-formats@3.0.1", "", { "dependencies": { "ajv": "^8.0.0" } }, "sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ=="],
|
"ajv-formats": ["ajv-formats@2.1.1", "", { "dependencies": { "ajv": "^8.0.0" } }, "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA=="],
|
||||||
|
|
||||||
"anser": ["anser@1.4.10", "", {}, "sha512-hCv9AqTQ8ycjpSd3upOJd7vFwW1JaoYQ7tpham03GJ1ca8/65rqn0RpaWpItOAd6ylW9wAw6luXYPJIyPFVOww=="],
|
"anser": ["anser@1.4.10", "", {}, "sha512-hCv9AqTQ8ycjpSd3upOJd7vFwW1JaoYQ7tpham03GJ1ca8/65rqn0RpaWpItOAd6ylW9wAw6luXYPJIyPFVOww=="],
|
||||||
|
|
||||||
@@ -1845,7 +1837,7 @@
|
|||||||
|
|
||||||
"binary-extensions": ["binary-extensions@2.3.0", "", {}, "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw=="],
|
"binary-extensions": ["binary-extensions@2.3.0", "", {}, "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw=="],
|
||||||
|
|
||||||
"body-parser": ["body-parser@2.2.2", "", { "dependencies": { "bytes": "^3.1.2", "content-type": "^1.0.5", "debug": "^4.4.3", "http-errors": "^2.0.0", "iconv-lite": "^0.7.0", "on-finished": "^2.4.1", "qs": "^6.14.1", "raw-body": "^3.0.1", "type-is": "^2.0.1" } }, "sha512-oP5VkATKlNwcgvxi0vM0p/D3n2C3EReYVX+DNYs5TjZFn/oQt2j+4sVJtSMr18pdRr8wjTcBl6LoV+FUwzPmNA=="],
|
"body-parser": ["body-parser@1.20.4", "", { "dependencies": { "bytes": "~3.1.2", "content-type": "~1.0.5", "debug": "2.6.9", "depd": "2.0.0", "destroy": "~1.2.0", "http-errors": "~2.0.1", "iconv-lite": "~0.4.24", "on-finished": "~2.4.1", "qs": "~6.14.0", "raw-body": "~2.5.3", "type-is": "~1.6.18", "unpipe": "~1.0.0" } }, "sha512-ZTgYYLMOXY9qKU/57FAo8F+HA2dGX7bqGc71txDRC1rS4frdFI5R7NhluHxH6M0YItAP0sHB4uqAOcYKxO6uGA=="],
|
||||||
|
|
||||||
"boolbase": ["boolbase@1.0.0", "", {}, "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww=="],
|
"boolbase": ["boolbase@1.0.0", "", {}, "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww=="],
|
||||||
|
|
||||||
@@ -1977,7 +1969,7 @@
|
|||||||
|
|
||||||
"consola": ["consola@3.4.2", "", {}, "sha512-5IKcdX0nnYavi6G7TtOhwkYzyjfJlatbjMjuLSfE2kYT5pMDOilZ4OvMhi637CcDICTmz3wARPoyhqyX1Y+XvA=="],
|
"consola": ["consola@3.4.2", "", {}, "sha512-5IKcdX0nnYavi6G7TtOhwkYzyjfJlatbjMjuLSfE2kYT5pMDOilZ4OvMhi637CcDICTmz3wARPoyhqyX1Y+XvA=="],
|
||||||
|
|
||||||
"content-disposition": ["content-disposition@1.0.1", "", {}, "sha512-oIXISMynqSqm241k6kcQ5UwttDILMK4BiurCfGEREw6+X9jkkpEe5T9FZaApyLGGOnFuyMWZpdolTXMtvEJ08Q=="],
|
"content-disposition": ["content-disposition@0.5.4", "", { "dependencies": { "safe-buffer": "5.2.1" } }, "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ=="],
|
||||||
|
|
||||||
"content-type": ["content-type@1.0.5", "", {}, "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA=="],
|
"content-type": ["content-type@1.0.5", "", {}, "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA=="],
|
||||||
|
|
||||||
@@ -1987,7 +1979,7 @@
|
|||||||
|
|
||||||
"cookie-es": ["cookie-es@2.0.0", "", {}, "sha512-RAj4E421UYRgqokKUmotqAwuplYw15qtdXfY+hGzgCJ/MBjCVZcSoHK/kH9kocfjRjcDME7IiDWR/1WX1TM2Pg=="],
|
"cookie-es": ["cookie-es@2.0.0", "", {}, "sha512-RAj4E421UYRgqokKUmotqAwuplYw15qtdXfY+hGzgCJ/MBjCVZcSoHK/kH9kocfjRjcDME7IiDWR/1WX1TM2Pg=="],
|
||||||
|
|
||||||
"cookie-signature": ["cookie-signature@1.2.2", "", {}, "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg=="],
|
"cookie-signature": ["cookie-signature@1.0.7", "", {}, "sha512-NXdYc3dLr47pBkpUCHtKSwIOQXLVn8dZEuywboCOJY/osA0wFSLlSawr3KN8qXJEyX66FcONTH8EIlVuK0yyFA=="],
|
||||||
|
|
||||||
"core-js-compat": ["core-js-compat@3.48.0", "", { "dependencies": { "browserslist": "^4.28.1" } }, "sha512-OM4cAF3D6VtH/WkLtWvyNC56EZVXsZdU3iqaMG2B4WvYrlqU831pc4UtG5yp0sE9z8Y02wVN7PjW5Zf9Gt0f1Q=="],
|
"core-js-compat": ["core-js-compat@3.48.0", "", { "dependencies": { "browserslist": "^4.28.1" } }, "sha512-OM4cAF3D6VtH/WkLtWvyNC56EZVXsZdU3iqaMG2B4WvYrlqU831pc4UtG5yp0sE9z8Y02wVN7PjW5Zf9Gt0f1Q=="],
|
||||||
|
|
||||||
@@ -2283,7 +2275,7 @@
|
|||||||
|
|
||||||
"exponential-backoff": ["exponential-backoff@3.1.3", "", {}, "sha512-ZgEeZXj30q+I0EN+CbSSpIyPaJ5HVQD18Z1m+u1FXbAeT94mr1zw50q4q6jiiC447Nl/YTcIYSAftiGqetwXCA=="],
|
"exponential-backoff": ["exponential-backoff@3.1.3", "", {}, "sha512-ZgEeZXj30q+I0EN+CbSSpIyPaJ5HVQD18Z1m+u1FXbAeT94mr1zw50q4q6jiiC447Nl/YTcIYSAftiGqetwXCA=="],
|
||||||
|
|
||||||
"express": ["express@5.2.1", "", { "dependencies": { "accepts": "^2.0.0", "body-parser": "^2.2.1", "content-disposition": "^1.0.0", "content-type": "^1.0.5", "cookie": "^0.7.1", "cookie-signature": "^1.2.1", "debug": "^4.4.0", "depd": "^2.0.0", "encodeurl": "^2.0.0", "escape-html": "^1.0.3", "etag": "^1.8.1", "finalhandler": "^2.1.0", "fresh": "^2.0.0", "http-errors": "^2.0.0", "merge-descriptors": "^2.0.0", "mime-types": "^3.0.0", "on-finished": "^2.4.1", "once": "^1.4.0", "parseurl": "^1.3.3", "proxy-addr": "^2.0.7", "qs": "^6.14.0", "range-parser": "^1.2.1", "router": "^2.2.0", "send": "^1.1.0", "serve-static": "^2.2.0", "statuses": "^2.0.1", "type-is": "^2.0.1", "vary": "^1.1.2" } }, "sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw=="],
|
"express": ["express@4.22.1", "", { "dependencies": { "accepts": "~1.3.8", "array-flatten": "1.1.1", "body-parser": "~1.20.3", "content-disposition": "~0.5.4", "content-type": "~1.0.4", "cookie": "~0.7.1", "cookie-signature": "~1.0.6", "debug": "2.6.9", "depd": "2.0.0", "encodeurl": "~2.0.0", "escape-html": "~1.0.3", "etag": "~1.8.1", "finalhandler": "~1.3.1", "fresh": "~0.5.2", "http-errors": "~2.0.0", "merge-descriptors": "1.0.3", "methods": "~1.1.2", "on-finished": "~2.4.1", "parseurl": "~1.3.3", "path-to-regexp": "~0.1.12", "proxy-addr": "~2.0.7", "qs": "~6.14.0", "range-parser": "~1.2.1", "safe-buffer": "5.2.1", "send": "~0.19.0", "serve-static": "~1.16.2", "setprototypeof": "1.2.0", "statuses": "~2.0.1", "type-is": "~1.6.18", "utils-merge": "1.0.1", "vary": "~1.1.2" } }, "sha512-F2X8g9P1X7uCPZMA3MVf9wcTqlyNp7IhH5qPCI0izhaOIYXaW9L535tGA3qmjRzpH+bZczqq7hVKxTR4NWnu+g=="],
|
||||||
|
|
||||||
"express-rate-limit": ["express-rate-limit@8.3.1", "", { "dependencies": { "ip-address": "10.1.0" }, "peerDependencies": { "express": ">= 4.11" } }, "sha512-D1dKN+cmyPWuvB+G2SREQDzPY1agpBIcTa9sJxOPMCNeH3gwzhqJRDWCXW3gg0y//+LQ/8j52JbMROWyrKdMdw=="],
|
"express-rate-limit": ["express-rate-limit@8.3.1", "", { "dependencies": { "ip-address": "10.1.0" }, "peerDependencies": { "express": ">= 4.11" } }, "sha512-D1dKN+cmyPWuvB+G2SREQDzPY1agpBIcTa9sJxOPMCNeH3gwzhqJRDWCXW3gg0y//+LQ/8j52JbMROWyrKdMdw=="],
|
||||||
|
|
||||||
@@ -2335,7 +2327,7 @@
|
|||||||
|
|
||||||
"filter-obj": ["filter-obj@1.1.0", "", {}, "sha512-8rXg1ZnX7xzy2NGDVkBVaAy+lSlPNwad13BtgSlLuxfIslyt5Vg64U7tFcCt4WS1R0hvtnQybT/IyCkGZ3DpXQ=="],
|
"filter-obj": ["filter-obj@1.1.0", "", {}, "sha512-8rXg1ZnX7xzy2NGDVkBVaAy+lSlPNwad13BtgSlLuxfIslyt5Vg64U7tFcCt4WS1R0hvtnQybT/IyCkGZ3DpXQ=="],
|
||||||
|
|
||||||
"finalhandler": ["finalhandler@2.1.1", "", { "dependencies": { "debug": "^4.4.0", "encodeurl": "^2.0.0", "escape-html": "^1.0.3", "on-finished": "^2.4.1", "parseurl": "^1.3.3", "statuses": "^2.0.1" } }, "sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA=="],
|
"finalhandler": ["finalhandler@1.3.2", "", { "dependencies": { "debug": "2.6.9", "encodeurl": "~2.0.0", "escape-html": "~1.0.3", "on-finished": "~2.4.1", "parseurl": "~1.3.3", "statuses": "~2.0.2", "unpipe": "~1.0.0" } }, "sha512-aA4RyPcd3badbdABGDuTXCMTtOneUCAYH/gxoYRTZlIJdF0YPWuGqiAsIrhNnnqdXGswYk6dGujem4w80UJFhg=="],
|
||||||
|
|
||||||
"find-up": ["find-up@5.0.0", "", { "dependencies": { "locate-path": "^6.0.0", "path-exists": "^4.0.0" } }, "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng=="],
|
"find-up": ["find-up@5.0.0", "", { "dependencies": { "locate-path": "^6.0.0", "path-exists": "^4.0.0" } }, "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng=="],
|
||||||
|
|
||||||
@@ -2361,7 +2353,7 @@
|
|||||||
|
|
||||||
"freeport-async": ["freeport-async@2.0.0", "", {}, "sha512-K7od3Uw45AJg00XUmy15+Hae2hOcgKcmN3/EF6Y7i01O0gaqiRx8sUSpsb9+BRNL8RPBrhzPsVfy8q9ADlJuWQ=="],
|
"freeport-async": ["freeport-async@2.0.0", "", {}, "sha512-K7od3Uw45AJg00XUmy15+Hae2hOcgKcmN3/EF6Y7i01O0gaqiRx8sUSpsb9+BRNL8RPBrhzPsVfy8q9ADlJuWQ=="],
|
||||||
|
|
||||||
"fresh": ["fresh@2.0.0", "", {}, "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A=="],
|
"fresh": ["fresh@0.5.2", "", {}, "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q=="],
|
||||||
|
|
||||||
"freya-client": ["freya-client@workspace:apps/freya-client"],
|
"freya-client": ["freya-client@workspace:apps/freya-client"],
|
||||||
|
|
||||||
@@ -2851,13 +2843,13 @@
|
|||||||
|
|
||||||
"mdn-data": ["mdn-data@2.0.14", "", {}, "sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow=="],
|
"mdn-data": ["mdn-data@2.0.14", "", {}, "sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow=="],
|
||||||
|
|
||||||
"media-typer": ["media-typer@1.1.0", "", {}, "sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw=="],
|
"media-typer": ["media-typer@0.3.0", "", {}, "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ=="],
|
||||||
|
|
||||||
"memoize-one": ["memoize-one@5.2.1", "", {}, "sha512-zYiwtZUcYyXKo/np96AGZAckk+FWWsUdJ3cHGGmld7+AhvcWmQyGCYUh1hc4Q/pkOhb65dQR/pqCyK0cOaHz4Q=="],
|
"memoize-one": ["memoize-one@5.2.1", "", {}, "sha512-zYiwtZUcYyXKo/np96AGZAckk+FWWsUdJ3cHGGmld7+AhvcWmQyGCYUh1hc4Q/pkOhb65dQR/pqCyK0cOaHz4Q=="],
|
||||||
|
|
||||||
"memory-pager": ["memory-pager@1.5.0", "", {}, "sha512-ZS4Bp4r/Zoeq6+NLJpP+0Zzm0pR8whtGPf1XExKLJBAczGMnSi3It14OiNCStjQjM6NU1okjQGSxgEZN8eBYKg=="],
|
"memory-pager": ["memory-pager@1.5.0", "", {}, "sha512-ZS4Bp4r/Zoeq6+NLJpP+0Zzm0pR8whtGPf1XExKLJBAczGMnSi3It14OiNCStjQjM6NU1okjQGSxgEZN8eBYKg=="],
|
||||||
|
|
||||||
"merge-descriptors": ["merge-descriptors@2.0.0", "", {}, "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g=="],
|
"merge-descriptors": ["merge-descriptors@1.0.3", "", {}, "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ=="],
|
||||||
|
|
||||||
"merge-stream": ["merge-stream@2.0.0", "", {}, "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w=="],
|
"merge-stream": ["merge-stream@2.0.0", "", {}, "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w=="],
|
||||||
|
|
||||||
@@ -2953,9 +2945,9 @@
|
|||||||
|
|
||||||
"mime": ["mime@3.0.0", "", { "bin": { "mime": "cli.js" } }, "sha512-jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A=="],
|
"mime": ["mime@3.0.0", "", { "bin": { "mime": "cli.js" } }, "sha512-jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A=="],
|
||||||
|
|
||||||
"mime-db": ["mime-db@1.54.0", "", {}, "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ=="],
|
"mime-db": ["mime-db@1.52.0", "", {}, "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg=="],
|
||||||
|
|
||||||
"mime-types": ["mime-types@3.0.2", "", { "dependencies": { "mime-db": "^1.54.0" } }, "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A=="],
|
"mime-types": ["mime-types@2.1.35", "", { "dependencies": { "mime-db": "1.52.0" } }, "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw=="],
|
||||||
|
|
||||||
"mimic-fn": ["mimic-fn@2.1.0", "", {}, "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg=="],
|
"mimic-fn": ["mimic-fn@2.1.0", "", {}, "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg=="],
|
||||||
|
|
||||||
@@ -3421,7 +3413,7 @@
|
|||||||
|
|
||||||
"semver": ["semver@7.5.4", "", { "dependencies": { "lru-cache": "^6.0.0" }, "bin": { "semver": "bin/semver.js" } }, "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA=="],
|
"semver": ["semver@7.5.4", "", { "dependencies": { "lru-cache": "^6.0.0" }, "bin": { "semver": "bin/semver.js" } }, "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA=="],
|
||||||
|
|
||||||
"send": ["send@1.2.1", "", { "dependencies": { "debug": "^4.4.3", "encodeurl": "^2.0.0", "escape-html": "^1.0.3", "etag": "^1.8.1", "fresh": "^2.0.0", "http-errors": "^2.0.1", "mime-types": "^3.0.2", "ms": "^2.1.3", "on-finished": "^2.4.1", "range-parser": "^1.2.1", "statuses": "^2.0.2" } }, "sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ=="],
|
"send": ["send@0.19.2", "", { "dependencies": { "debug": "2.6.9", "depd": "2.0.0", "destroy": "1.2.0", "encodeurl": "~2.0.0", "escape-html": "~1.0.3", "etag": "~1.8.1", "fresh": "~0.5.2", "http-errors": "~2.0.1", "mime": "1.6.0", "ms": "2.1.3", "on-finished": "~2.4.1", "range-parser": "~1.2.1", "statuses": "~2.0.2" } }, "sha512-VMbMxbDeehAxpOtWJXlcUS5E8iXh6QmN+BkRX1GARS3wRaXEEgzCcB10gTQazO42tpNIya8xIyNx8fll1OFPrg=="],
|
||||||
|
|
||||||
"seq-queue": ["seq-queue@0.0.5", "", {}, "sha512-hr3Wtp/GZIc/6DAGPDcV4/9WoZhjrkXsi5B/07QgX8tsdc6ilr7BFM6PM6rbdAX1kFSDYeZGLipIZZKyQP0O5Q=="],
|
"seq-queue": ["seq-queue@0.0.5", "", {}, "sha512-hr3Wtp/GZIc/6DAGPDcV4/9WoZhjrkXsi5B/07QgX8tsdc6ilr7BFM6PM6rbdAX1kFSDYeZGLipIZZKyQP0O5Q=="],
|
||||||
|
|
||||||
@@ -3431,7 +3423,7 @@
|
|||||||
|
|
||||||
"seroval-plugins": ["seroval-plugins@1.5.1", "", { "peerDependencies": { "seroval": "^1.0" } }, "sha512-4FbuZ/TMl02sqv0RTFexu0SP6V+ywaIe5bAWCCEik0fk17BhALgwvUDVF7e3Uvf9pxmwCEJsRPmlkUE6HdzLAw=="],
|
"seroval-plugins": ["seroval-plugins@1.5.1", "", { "peerDependencies": { "seroval": "^1.0" } }, "sha512-4FbuZ/TMl02sqv0RTFexu0SP6V+ywaIe5bAWCCEik0fk17BhALgwvUDVF7e3Uvf9pxmwCEJsRPmlkUE6HdzLAw=="],
|
||||||
|
|
||||||
"serve-static": ["serve-static@2.2.1", "", { "dependencies": { "encodeurl": "^2.0.0", "escape-html": "^1.0.3", "parseurl": "^1.3.3", "send": "^1.2.0" } }, "sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw=="],
|
"serve-static": ["serve-static@1.16.3", "", { "dependencies": { "encodeurl": "~2.0.0", "escape-html": "~1.0.3", "parseurl": "~1.3.3", "send": "~0.19.1" } }, "sha512-x0RTqQel6g5SY7Lg6ZreMmsOzncHFU7nhnRWkKgWuMTu5NN0DR5oruckMqRvacAN9d5w6ARnRBXl9xhDCgfMeA=="],
|
||||||
|
|
||||||
"server-only": ["server-only@0.0.1", "", {}, "sha512-qepMx2JxAa5jjfzxG79yPPq+8BuFToHd1hm7kI+Z4zAq1ftQiP7HcxMhDDItrbtwVeLg/cY2JnKnrcFkmiswNA=="],
|
"server-only": ["server-only@0.0.1", "", {}, "sha512-qepMx2JxAa5jjfzxG79yPPq+8BuFToHd1hm7kI+Z4zAq1ftQiP7HcxMhDDItrbtwVeLg/cY2JnKnrcFkmiswNA=="],
|
||||||
|
|
||||||
@@ -3667,7 +3659,7 @@
|
|||||||
|
|
||||||
"type-fest": ["type-fest@5.5.0", "", { "dependencies": { "tagged-tag": "^1.0.0" } }, "sha512-PlBfpQwiUvGViBNX84Yxwjsdhd1TUlXr6zjX7eoirtCPIr08NAmxwa+fcYBTeRQxHo9YC9wwF3m9i700sHma8g=="],
|
"type-fest": ["type-fest@5.5.0", "", { "dependencies": { "tagged-tag": "^1.0.0" } }, "sha512-PlBfpQwiUvGViBNX84Yxwjsdhd1TUlXr6zjX7eoirtCPIr08NAmxwa+fcYBTeRQxHo9YC9wwF3m9i700sHma8g=="],
|
||||||
|
|
||||||
"type-is": ["type-is@2.0.1", "", { "dependencies": { "content-type": "^1.0.5", "media-typer": "^1.1.0", "mime-types": "^3.0.0" } }, "sha512-OZs6gsjF4vMp32qrCbiVSkrFmXtG/AZhY3t0iAMrMBiAZyV9oALtXO8hsrHbMXF9x6L3grlFuwW2oAz7cav+Gw=="],
|
"type-is": ["type-is@1.6.18", "", { "dependencies": { "media-typer": "0.3.0", "mime-types": "~2.1.24" } }, "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g=="],
|
||||||
|
|
||||||
"typebox": ["typebox@1.2.8", "", {}, "sha512-rlsKhsd7L3082m9nxhFIB4Gl8jizLd/6YlFAWaz96hdV8+VJRjwYaYmDlT0jlTRwkb48SxCSSirqUtrg/HilNw=="],
|
"typebox": ["typebox@1.2.8", "", {}, "sha512-rlsKhsd7L3082m9nxhFIB4Gl8jizLd/6YlFAWaz96hdV8+VJRjwYaYmDlT0jlTRwkb48SxCSSirqUtrg/HilNw=="],
|
||||||
|
|
||||||
@@ -3989,8 +3981,6 @@
|
|||||||
|
|
||||||
"@expo/cli/@urql/exchange-retry": ["@urql/exchange-retry@1.3.2", "", { "dependencies": { "@urql/core": "^5.1.2", "wonka": "^6.3.2" } }, "sha512-TQMCz2pFJMfpNxmSfX1VSfTjwUIFx/mL+p1bnfM1xjjdla7Z+KnGMW/EhFbpckp3LyWAH4PgOsMwOMnIN+MBFg=="],
|
"@expo/cli/@urql/exchange-retry": ["@urql/exchange-retry@1.3.2", "", { "dependencies": { "@urql/core": "^5.1.2", "wonka": "^6.3.2" } }, "sha512-TQMCz2pFJMfpNxmSfX1VSfTjwUIFx/mL+p1bnfM1xjjdla7Z+KnGMW/EhFbpckp3LyWAH4PgOsMwOMnIN+MBFg=="],
|
||||||
|
|
||||||
"@expo/cli/accepts": ["accepts@1.3.8", "", { "dependencies": { "mime-types": "~2.1.34", "negotiator": "0.6.3" } }, "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw=="],
|
|
||||||
|
|
||||||
"@expo/cli/chalk": ["chalk@4.1.2", "", { "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" } }, "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA=="],
|
"@expo/cli/chalk": ["chalk@4.1.2", "", { "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" } }, "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA=="],
|
||||||
|
|
||||||
"@expo/cli/getenv": ["getenv@2.0.0", "", {}, "sha512-VilgtJj/ALgGY77fiLam5iD336eSWi96Q15JSAG1zi8NRBysm3LXKdGnHb4m5cuyxvOLQQKWpBZAT6ni4FI2iQ=="],
|
"@expo/cli/getenv": ["getenv@2.0.0", "", {}, "sha512-VilgtJj/ALgGY77fiLam5iD336eSWi96Q15JSAG1zi8NRBysm3LXKdGnHb4m5cuyxvOLQQKWpBZAT6ni4FI2iQ=="],
|
||||||
@@ -4009,8 +3999,6 @@
|
|||||||
|
|
||||||
"@expo/cli/semver": ["semver@7.7.4", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA=="],
|
"@expo/cli/semver": ["semver@7.7.4", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA=="],
|
||||||
|
|
||||||
"@expo/cli/send": ["send@0.19.2", "", { "dependencies": { "debug": "2.6.9", "depd": "2.0.0", "destroy": "1.2.0", "encodeurl": "~2.0.0", "escape-html": "~1.0.3", "etag": "~1.8.1", "fresh": "~0.5.2", "http-errors": "~2.0.1", "mime": "1.6.0", "ms": "2.1.3", "on-finished": "~2.4.1", "range-parser": "~1.2.1", "statuses": "~2.0.2" } }, "sha512-VMbMxbDeehAxpOtWJXlcUS5E8iXh6QmN+BkRX1GARS3wRaXEEgzCcB10gTQazO42tpNIya8xIyNx8fll1OFPrg=="],
|
|
||||||
|
|
||||||
"@expo/cli/undici": ["undici@6.23.0", "", {}, "sha512-VfQPToRA5FZs/qJxLIinmU59u0r7LXqoJkCzinq3ckNJp3vKEh7jTWN589YQ5+aoAC/TGRLyJLCPKcLQbM8r9g=="],
|
"@expo/cli/undici": ["undici@6.23.0", "", {}, "sha512-VfQPToRA5FZs/qJxLIinmU59u0r7LXqoJkCzinq3ckNJp3vKEh7jTWN589YQ5+aoAC/TGRLyJLCPKcLQbM8r9g=="],
|
||||||
|
|
||||||
"@expo/cli/ws": ["ws@8.19.0", "", { "peerDependencies": { "bufferutil": "^4.0.1", "utf-8-validate": ">=5.0.2" }, "optionalPeers": ["bufferutil", "utf-8-validate"] }, "sha512-blAT2mjOEIi0ZzruJfIhb3nps74PRWTCz1IjglWEEpQl5XS/UNama6u2/rjFkDDouqr4L67ry+1aGIALViWjDg=="],
|
"@expo/cli/ws": ["ws@8.19.0", "", { "peerDependencies": { "bufferutil": "^4.0.1", "utf-8-validate": ">=5.0.2" }, "optionalPeers": ["bufferutil", "utf-8-validate"] }, "sha512-blAT2mjOEIi0ZzruJfIhb3nps74PRWTCz1IjglWEEpQl5XS/UNama6u2/rjFkDDouqr4L67ry+1aGIALViWjDg=="],
|
||||||
@@ -4177,6 +4165,12 @@
|
|||||||
|
|
||||||
"@mistralai/mistralai/ws": ["ws@8.19.0", "", { "peerDependencies": { "bufferutil": "^4.0.1", "utf-8-validate": ">=5.0.2" }, "optionalPeers": ["bufferutil", "utf-8-validate"] }, "sha512-blAT2mjOEIi0ZzruJfIhb3nps74PRWTCz1IjglWEEpQl5XS/UNama6u2/rjFkDDouqr4L67ry+1aGIALViWjDg=="],
|
"@mistralai/mistralai/ws": ["ws@8.19.0", "", { "peerDependencies": { "bufferutil": "^4.0.1", "utf-8-validate": ">=5.0.2" }, "optionalPeers": ["bufferutil", "utf-8-validate"] }, "sha512-blAT2mjOEIi0ZzruJfIhb3nps74PRWTCz1IjglWEEpQl5XS/UNama6u2/rjFkDDouqr4L67ry+1aGIALViWjDg=="],
|
||||||
|
|
||||||
|
"@modelcontextprotocol/sdk/ajv": ["ajv@8.18.0", "", { "dependencies": { "fast-deep-equal": "^3.1.3", "fast-uri": "^3.0.1", "json-schema-traverse": "^1.0.0", "require-from-string": "^2.0.2" } }, "sha512-PlXPeEWMXMZ7sPYOHqmDyCJzcfNrUr3fGNKtezX14ykXOEIvyK81d+qydx89KY5O71FKMPaQ2vBfBFI5NHR63A=="],
|
||||||
|
|
||||||
|
"@modelcontextprotocol/sdk/ajv-formats": ["ajv-formats@3.0.1", "", { "dependencies": { "ajv": "^8.0.0" } }, "sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ=="],
|
||||||
|
|
||||||
|
"@modelcontextprotocol/sdk/express": ["express@5.2.1", "", { "dependencies": { "accepts": "^2.0.0", "body-parser": "^2.2.1", "content-disposition": "^1.0.0", "content-type": "^1.0.5", "cookie": "^0.7.1", "cookie-signature": "^1.2.1", "debug": "^4.4.0", "depd": "^2.0.0", "encodeurl": "^2.0.0", "escape-html": "^1.0.3", "etag": "^1.8.1", "finalhandler": "^2.1.0", "fresh": "^2.0.0", "http-errors": "^2.0.0", "merge-descriptors": "^2.0.0", "mime-types": "^3.0.0", "on-finished": "^2.4.1", "once": "^1.4.0", "parseurl": "^1.3.3", "proxy-addr": "^2.0.7", "qs": "^6.14.0", "range-parser": "^1.2.1", "router": "^2.2.0", "send": "^1.1.0", "serve-static": "^2.2.0", "statuses": "^2.0.1", "type-is": "^2.0.1", "vary": "^1.1.2" } }, "sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw=="],
|
||||||
|
|
||||||
"@mrleebo/prisma-ast/lilconfig": ["lilconfig@2.1.0", "", {}, "sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ=="],
|
"@mrleebo/prisma-ast/lilconfig": ["lilconfig@2.1.0", "", {}, "sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ=="],
|
||||||
|
|
||||||
"@noble/curves/@noble/hashes": ["@noble/hashes@1.8.0", "", {}, "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A=="],
|
"@noble/curves/@noble/hashes": ["@noble/hashes@1.8.0", "", {}, "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A=="],
|
||||||
@@ -4205,8 +4199,6 @@
|
|||||||
|
|
||||||
"@react-native/dev-middleware/open": ["open@7.4.2", "", { "dependencies": { "is-docker": "^2.0.0", "is-wsl": "^2.1.1" } }, "sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q=="],
|
"@react-native/dev-middleware/open": ["open@7.4.2", "", { "dependencies": { "is-docker": "^2.0.0", "is-wsl": "^2.1.1" } }, "sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q=="],
|
||||||
|
|
||||||
"@react-native/dev-middleware/serve-static": ["serve-static@1.16.3", "", { "dependencies": { "encodeurl": "~2.0.0", "escape-html": "~1.0.3", "parseurl": "~1.3.3", "send": "~0.19.1" } }, "sha512-x0RTqQel6g5SY7Lg6ZreMmsOzncHFU7nhnRWkKgWuMTu5NN0DR5oruckMqRvacAN9d5w6ARnRBXl9xhDCgfMeA=="],
|
|
||||||
|
|
||||||
"@react-navigation/core/nanoid": ["nanoid@3.3.11", "", { "bin": { "nanoid": "bin/nanoid.cjs" } }, "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w=="],
|
"@react-navigation/core/nanoid": ["nanoid@3.3.11", "", { "bin": { "nanoid": "bin/nanoid.cjs" } }, "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w=="],
|
||||||
|
|
||||||
"@react-navigation/native/nanoid": ["nanoid@3.3.11", "", { "bin": { "nanoid": "bin/nanoid.cjs" } }, "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w=="],
|
"@react-navigation/native/nanoid": ["nanoid@3.3.11", "", { "bin": { "nanoid": "bin/nanoid.cjs" } }, "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w=="],
|
||||||
@@ -4217,8 +4209,6 @@
|
|||||||
|
|
||||||
"@react-router/dev/semver": ["semver@7.7.4", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA=="],
|
"@react-router/dev/semver": ["semver@7.7.4", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA=="],
|
||||||
|
|
||||||
"@react-router/serve/express": ["express@4.22.1", "", { "dependencies": { "accepts": "~1.3.8", "array-flatten": "1.1.1", "body-parser": "~1.20.3", "content-disposition": "~0.5.4", "content-type": "~1.0.4", "cookie": "~0.7.1", "cookie-signature": "~1.0.6", "debug": "2.6.9", "depd": "2.0.0", "encodeurl": "~2.0.0", "escape-html": "~1.0.3", "etag": "~1.8.1", "finalhandler": "~1.3.1", "fresh": "~0.5.2", "http-errors": "~2.0.0", "merge-descriptors": "1.0.3", "methods": "~1.1.2", "on-finished": "~2.4.1", "parseurl": "~1.3.3", "path-to-regexp": "~0.1.12", "proxy-addr": "~2.0.7", "qs": "~6.14.0", "range-parser": "~1.2.1", "safe-buffer": "5.2.1", "send": "~0.19.0", "serve-static": "~1.16.2", "setprototypeof": "1.2.0", "statuses": "~2.0.1", "type-is": "~1.6.18", "utils-merge": "1.0.1", "vary": "~1.1.2" } }, "sha512-F2X8g9P1X7uCPZMA3MVf9wcTqlyNp7IhH5qPCI0izhaOIYXaW9L535tGA3qmjRzpH+bZczqq7hVKxTR4NWnu+g=="],
|
|
||||||
|
|
||||||
"@smithy/core/tslib": ["tslib@2.8.1", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],
|
"@smithy/core/tslib": ["tslib@2.8.1", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],
|
||||||
|
|
||||||
"@smithy/credential-provider-imds/tslib": ["tslib@2.8.1", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],
|
"@smithy/credential-provider-imds/tslib": ["tslib@2.8.1", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],
|
||||||
@@ -4271,7 +4261,7 @@
|
|||||||
|
|
||||||
"@typescript-eslint/visitor-keys/eslint-visitor-keys": ["eslint-visitor-keys@5.0.1", "", {}, "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA=="],
|
"@typescript-eslint/visitor-keys/eslint-visitor-keys": ["eslint-visitor-keys@5.0.1", "", {}, "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA=="],
|
||||||
|
|
||||||
"accepts/negotiator": ["negotiator@1.0.0", "", {}, "sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg=="],
|
"accepts/negotiator": ["negotiator@0.6.3", "", {}, "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg=="],
|
||||||
|
|
||||||
"ansi-escapes/type-fest": ["type-fest@0.21.3", "", {}, "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w=="],
|
"ansi-escapes/type-fest": ["type-fest@0.21.3", "", {}, "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w=="],
|
||||||
|
|
||||||
@@ -4289,6 +4279,12 @@
|
|||||||
|
|
||||||
"better-opn/open": ["open@8.4.2", "", { "dependencies": { "define-lazy-prop": "^2.0.0", "is-docker": "^2.1.1", "is-wsl": "^2.2.0" } }, "sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ=="],
|
"better-opn/open": ["open@8.4.2", "", { "dependencies": { "define-lazy-prop": "^2.0.0", "is-docker": "^2.1.1", "is-wsl": "^2.2.0" } }, "sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ=="],
|
||||||
|
|
||||||
|
"body-parser/debug": ["debug@2.6.9", "", { "dependencies": { "ms": "2.0.0" } }, "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA=="],
|
||||||
|
|
||||||
|
"body-parser/iconv-lite": ["iconv-lite@0.4.24", "", { "dependencies": { "safer-buffer": ">= 2.1.2 < 3" } }, "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA=="],
|
||||||
|
|
||||||
|
"body-parser/raw-body": ["raw-body@2.5.3", "", { "dependencies": { "bytes": "~3.1.2", "http-errors": "~2.0.1", "iconv-lite": "~0.4.24", "unpipe": "~1.0.0" } }, "sha512-s4VSOf6yN0rvbRZGxs8Om5CWj6seneMwK3oDb4lWDH0UPhWcxwOWw5+qk24bxq87szX1ydrwylIOp2uG1ojUpA=="],
|
||||||
|
|
||||||
"bun-types/@types/node": ["@types/node@22.19.15", "", { "dependencies": { "undici-types": "~6.21.0" } }, "sha512-F0R/h2+dsy5wJAUe3tAU6oqa2qbWY5TpNfL/RGmo1y38hiyO1w3x2jPtt76wmuaJI4DQnOBu21cNXQ2STIUUWg=="],
|
"bun-types/@types/node": ["@types/node@22.19.15", "", { "dependencies": { "undici-types": "~6.21.0" } }, "sha512-F0R/h2+dsy5wJAUe3tAU6oqa2qbWY5TpNfL/RGmo1y38hiyO1w3x2jPtt76wmuaJI4DQnOBu21cNXQ2STIUUWg=="],
|
||||||
|
|
||||||
"c12/dotenv": ["dotenv@16.6.1", "", {}, "sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow=="],
|
"c12/dotenv": ["dotenv@16.6.1", "", {}, "sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow=="],
|
||||||
@@ -4313,8 +4309,6 @@
|
|||||||
|
|
||||||
"cliui/strip-ansi": ["strip-ansi@6.0.1", "", { "dependencies": { "ansi-regex": "^5.0.1" } }, "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A=="],
|
"cliui/strip-ansi": ["strip-ansi@6.0.1", "", { "dependencies": { "ansi-regex": "^5.0.1" } }, "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A=="],
|
||||||
|
|
||||||
"compressible/mime-db": ["mime-db@1.52.0", "", {}, "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg=="],
|
|
||||||
|
|
||||||
"compression/debug": ["debug@2.6.9", "", { "dependencies": { "ms": "2.0.0" } }, "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA=="],
|
"compression/debug": ["debug@2.6.9", "", { "dependencies": { "ms": "2.0.0" } }, "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA=="],
|
||||||
|
|
||||||
"connect/debug": ["debug@2.6.9", "", { "dependencies": { "ms": "2.0.0" } }, "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA=="],
|
"connect/debug": ["debug@2.6.9", "", { "dependencies": { "ms": "2.0.0" } }, "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA=="],
|
||||||
@@ -4327,10 +4321,6 @@
|
|||||||
|
|
||||||
"dotenv-expand/dotenv": ["dotenv@16.4.7", "", {}, "sha512-47qPchRCykZC03FhkYAhrvwU4xDBFIj1QPqaarj6mdM/hgUzfPHcpkHJOn3mJAufFeeAxAzeGsr5X0M4k6fLZQ=="],
|
"dotenv-expand/dotenv": ["dotenv@16.4.7", "", {}, "sha512-47qPchRCykZC03FhkYAhrvwU4xDBFIj1QPqaarj6mdM/hgUzfPHcpkHJOn3mJAufFeeAxAzeGsr5X0M4k6fLZQ=="],
|
||||||
|
|
||||||
"eas-cli/ajv": ["ajv@8.11.0", "", { "dependencies": { "fast-deep-equal": "^3.1.1", "json-schema-traverse": "^1.0.0", "require-from-string": "^2.0.2", "uri-js": "^4.2.2" } }, "sha512-wGgprdCvMalC0BztXvitD2hC04YffAvtsUn93JbGXYLAtCUO4xd17mCCZQxUOItiBwZvJScWo8NIvQMQ71rdpg=="],
|
|
||||||
|
|
||||||
"eas-cli/ajv-formats": ["ajv-formats@2.1.1", "", { "dependencies": { "ajv": "^8.0.0" } }, "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA=="],
|
|
||||||
|
|
||||||
"eas-cli/chalk": ["chalk@4.1.2", "", { "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" } }, "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA=="],
|
"eas-cli/chalk": ["chalk@4.1.2", "", { "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" } }, "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA=="],
|
||||||
|
|
||||||
"eas-cli/diff": ["diff@7.0.0", "", {}, "sha512-PJWHUb1RFevKCwaFA9RlG5tCd+FO5iRh9A8HEtkmBH2Li03iJriB6m6JIN4rGz3K3JLawI7/veA1xzRKP6ISBw=="],
|
"eas-cli/diff": ["diff@7.0.0", "", {}, "sha512-PJWHUb1RFevKCwaFA9RlG5tCd+FO5iRh9A8HEtkmBH2Li03iJriB6m6JIN4rGz3K3JLawI7/veA1xzRKP6ISBw=="],
|
||||||
@@ -4397,8 +4387,6 @@
|
|||||||
|
|
||||||
"expo-constants/@expo/env": ["@expo/env@2.0.11", "", { "dependencies": { "chalk": "^4.0.0", "debug": "^4.3.4", "dotenv": "~16.4.5", "dotenv-expand": "~11.0.6", "getenv": "^2.0.0" } }, "sha512-xV+ps6YCW7XIPVUwFVCRN2nox09dnRwy8uIjwHWTODu0zFw4kp4omnVkl0OOjuu2XOe7tdgAHxikrkJt9xB/7Q=="],
|
"expo-constants/@expo/env": ["@expo/env@2.0.11", "", { "dependencies": { "chalk": "^4.0.0", "debug": "^4.3.4", "dotenv": "~16.4.5", "dotenv-expand": "~11.0.6", "getenv": "^2.0.0" } }, "sha512-xV+ps6YCW7XIPVUwFVCRN2nox09dnRwy8uIjwHWTODu0zFw4kp4omnVkl0OOjuu2XOe7tdgAHxikrkJt9xB/7Q=="],
|
||||||
|
|
||||||
"expo-dev-launcher/ajv": ["ajv@8.11.0", "", { "dependencies": { "fast-deep-equal": "^3.1.1", "json-schema-traverse": "^1.0.0", "require-from-string": "^2.0.2", "uri-js": "^4.2.2" } }, "sha512-wGgprdCvMalC0BztXvitD2hC04YffAvtsUn93JbGXYLAtCUO4xd17mCCZQxUOItiBwZvJScWo8NIvQMQ71rdpg=="],
|
|
||||||
|
|
||||||
"expo-manifests/@expo/config": ["@expo/config@12.0.13", "", { "dependencies": { "@babel/code-frame": "~7.10.4", "@expo/config-plugins": "~54.0.4", "@expo/config-types": "^54.0.10", "@expo/json-file": "^10.0.8", "deepmerge": "^4.3.1", "getenv": "^2.0.0", "glob": "^13.0.0", "require-from-string": "^2.0.2", "resolve-from": "^5.0.0", "resolve-workspace-root": "^2.0.0", "semver": "^7.6.0", "slugify": "^1.3.4", "sucrase": "~3.35.1" } }, "sha512-Cu52arBa4vSaupIWsF0h7F/Cg//N374nYb7HAxV0I4KceKA7x2UXpYaHOL7EEYYvp7tZdThBjvGpVmr8ScIvaQ=="],
|
"expo-manifests/@expo/config": ["@expo/config@12.0.13", "", { "dependencies": { "@babel/code-frame": "~7.10.4", "@expo/config-plugins": "~54.0.4", "@expo/config-types": "^54.0.10", "@expo/json-file": "^10.0.8", "deepmerge": "^4.3.1", "getenv": "^2.0.0", "glob": "^13.0.0", "require-from-string": "^2.0.2", "resolve-from": "^5.0.0", "resolve-workspace-root": "^2.0.0", "semver": "^7.6.0", "slugify": "^1.3.4", "sucrase": "~3.35.1" } }, "sha512-Cu52arBa4vSaupIWsF0h7F/Cg//N374nYb7HAxV0I4KceKA7x2UXpYaHOL7EEYYvp7tZdThBjvGpVmr8ScIvaQ=="],
|
||||||
|
|
||||||
"expo-modules-autolinking/chalk": ["chalk@4.1.2", "", { "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" } }, "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA=="],
|
"expo-modules-autolinking/chalk": ["chalk@4.1.2", "", { "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" } }, "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA=="],
|
||||||
@@ -4415,6 +4403,10 @@
|
|||||||
|
|
||||||
"express/cookie": ["cookie@0.7.2", "", {}, "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w=="],
|
"express/cookie": ["cookie@0.7.2", "", {}, "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w=="],
|
||||||
|
|
||||||
|
"express/debug": ["debug@2.6.9", "", { "dependencies": { "ms": "2.0.0" } }, "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA=="],
|
||||||
|
|
||||||
|
"express/path-to-regexp": ["path-to-regexp@0.1.12", "", {}, "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ=="],
|
||||||
|
|
||||||
"fast-glob/glob-parent": ["glob-parent@5.1.2", "", { "dependencies": { "is-glob": "^4.0.1" } }, "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow=="],
|
"fast-glob/glob-parent": ["glob-parent@5.1.2", "", { "dependencies": { "is-glob": "^4.0.1" } }, "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow=="],
|
||||||
|
|
||||||
"fbjs/cross-fetch": ["cross-fetch@3.2.0", "", { "dependencies": { "node-fetch": "^2.7.0" } }, "sha512-Q+xVJLoGOeIMXZmbUK4HYk+69cQH6LudR0Vu/pRm2YlU/hDV9CiS0gKUMaWY5f2NeUH9C1nV3bsTlCo0FsTV1Q=="],
|
"fbjs/cross-fetch": ["cross-fetch@3.2.0", "", { "dependencies": { "node-fetch": "^2.7.0" } }, "sha512-Q+xVJLoGOeIMXZmbUK4HYk+69cQH6LudR0Vu/pRm2YlU/hDV9CiS0gKUMaWY5f2NeUH9C1nV3bsTlCo0FsTV1Q=="],
|
||||||
@@ -4425,9 +4417,9 @@
|
|||||||
|
|
||||||
"filelist/minimatch": ["minimatch@5.1.2", "", { "dependencies": { "brace-expansion": "^2.0.1" } }, "sha512-bNH9mmM9qsJ2X4r2Nat1B//1dJVcn3+iBLa3IgqJ7EbGaDNepL9QSHOxN4ng33s52VMMhhIfgCYDk3C4ZmlDAg=="],
|
"filelist/minimatch": ["minimatch@5.1.2", "", { "dependencies": { "brace-expansion": "^2.0.1" } }, "sha512-bNH9mmM9qsJ2X4r2Nat1B//1dJVcn3+iBLa3IgqJ7EbGaDNepL9QSHOxN4ng33s52VMMhhIfgCYDk3C4ZmlDAg=="],
|
||||||
|
|
||||||
"foreground-child/signal-exit": ["signal-exit@4.1.0", "", {}, "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw=="],
|
"finalhandler/debug": ["debug@2.6.9", "", { "dependencies": { "ms": "2.0.0" } }, "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA=="],
|
||||||
|
|
||||||
"form-data/mime-types": ["mime-types@2.1.35", "", { "dependencies": { "mime-db": "1.52.0" } }, "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw=="],
|
"foreground-child/signal-exit": ["signal-exit@4.1.0", "", {}, "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw=="],
|
||||||
|
|
||||||
"framer-motion/tslib": ["tslib@2.8.1", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],
|
"framer-motion/tslib": ["tslib@2.8.1", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],
|
||||||
|
|
||||||
@@ -4487,8 +4479,6 @@
|
|||||||
|
|
||||||
"mdast-util-find-and-replace/escape-string-regexp": ["escape-string-regexp@5.0.0", "", {}, "sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw=="],
|
"mdast-util-find-and-replace/escape-string-regexp": ["escape-string-regexp@5.0.0", "", {}, "sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw=="],
|
||||||
|
|
||||||
"metro/accepts": ["accepts@1.3.8", "", { "dependencies": { "mime-types": "~2.1.34", "negotiator": "0.6.3" } }, "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw=="],
|
|
||||||
|
|
||||||
"metro/chalk": ["chalk@4.1.2", "", { "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" } }, "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA=="],
|
"metro/chalk": ["chalk@4.1.2", "", { "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" } }, "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA=="],
|
||||||
|
|
||||||
"metro/ci-info": ["ci-info@2.0.0", "", {}, "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ=="],
|
"metro/ci-info": ["ci-info@2.0.0", "", {}, "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ=="],
|
||||||
@@ -4499,8 +4489,6 @@
|
|||||||
|
|
||||||
"metro/metro-source-map": ["metro-source-map@0.83.3", "", { "dependencies": { "@babel/traverse": "^7.25.3", "@babel/traverse--for-generate-function-map": "npm:@babel/traverse@^7.25.3", "@babel/types": "^7.25.2", "flow-enums-runtime": "^0.0.6", "invariant": "^2.2.4", "metro-symbolicate": "0.83.3", "nullthrows": "^1.1.1", "ob1": "0.83.3", "source-map": "^0.5.6", "vlq": "^1.0.0" } }, "sha512-xkC3qwUBh2psVZgVavo8+r2C9Igkk3DibiOXSAht1aYRRcztEZNFtAMtfSB7sdO2iFMx2Mlyu++cBxz/fhdzQg=="],
|
"metro/metro-source-map": ["metro-source-map@0.83.3", "", { "dependencies": { "@babel/traverse": "^7.25.3", "@babel/traverse--for-generate-function-map": "npm:@babel/traverse@^7.25.3", "@babel/types": "^7.25.2", "flow-enums-runtime": "^0.0.6", "invariant": "^2.2.4", "metro-symbolicate": "0.83.3", "nullthrows": "^1.1.1", "ob1": "0.83.3", "source-map": "^0.5.6", "vlq": "^1.0.0" } }, "sha512-xkC3qwUBh2psVZgVavo8+r2C9Igkk3DibiOXSAht1aYRRcztEZNFtAMtfSB7sdO2iFMx2Mlyu++cBxz/fhdzQg=="],
|
||||||
|
|
||||||
"metro/mime-types": ["mime-types@2.1.35", "", { "dependencies": { "mime-db": "1.52.0" } }, "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw=="],
|
|
||||||
|
|
||||||
"metro/source-map": ["source-map@0.5.7", "", {}, "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ=="],
|
"metro/source-map": ["source-map@0.5.7", "", {}, "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ=="],
|
||||||
|
|
||||||
"metro/ws": ["ws@7.5.10", "", { "peerDependencies": { "bufferutil": "^4.0.1", "utf-8-validate": "^5.0.2" }, "optionalPeers": ["bufferutil", "utf-8-validate"] }, "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ=="],
|
"metro/ws": ["ws@7.5.10", "", { "peerDependencies": { "bufferutil": "^4.0.1", "utf-8-validate": "^5.0.2" }, "optionalPeers": ["bufferutil", "utf-8-validate"] }, "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ=="],
|
||||||
@@ -4617,6 +4605,10 @@
|
|||||||
|
|
||||||
"semver/lru-cache": ["lru-cache@6.0.0", "", { "dependencies": { "yallist": "^4.0.0" } }, "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA=="],
|
"semver/lru-cache": ["lru-cache@6.0.0", "", { "dependencies": { "yallist": "^4.0.0" } }, "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA=="],
|
||||||
|
|
||||||
|
"send/debug": ["debug@2.6.9", "", { "dependencies": { "ms": "2.0.0" } }, "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA=="],
|
||||||
|
|
||||||
|
"send/mime": ["mime@1.6.0", "", { "bin": { "mime": "cli.js" } }, "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg=="],
|
||||||
|
|
||||||
"shadcn/diff": ["diff@8.0.3", "", {}, "sha512-qejHi7bcSD4hQAZE0tNAawRK1ZtafHDmMTMkrrIGgSLl7hTnQHmKCeB45xAcbfTqK2zowkM3j3bHt/4b/ARbYQ=="],
|
"shadcn/diff": ["diff@8.0.3", "", {}, "sha512-qejHi7bcSD4hQAZE0tNAawRK1ZtafHDmMTMkrrIGgSLl7hTnQHmKCeB45xAcbfTqK2zowkM3j3bHt/4b/ARbYQ=="],
|
||||||
|
|
||||||
"shadcn/zod": ["zod@3.25.76", "", {}, "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ=="],
|
"shadcn/zod": ["zod@3.25.76", "", {}, "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ=="],
|
||||||
@@ -4773,10 +4765,6 @@
|
|||||||
|
|
||||||
"@expo/cli/@expo/prebuild-config/@expo/config-types": ["@expo/config-types@54.0.10", "", {}, "sha512-/J16SC2an1LdtCZ67xhSkGXpALYUVUNyZws7v+PVsFZxClYehDSoKLqyRaGkpHlYrCc08bS0RF5E0JV6g50psA=="],
|
"@expo/cli/@expo/prebuild-config/@expo/config-types": ["@expo/config-types@54.0.10", "", {}, "sha512-/J16SC2an1LdtCZ67xhSkGXpALYUVUNyZws7v+PVsFZxClYehDSoKLqyRaGkpHlYrCc08bS0RF5E0JV6g50psA=="],
|
||||||
|
|
||||||
"@expo/cli/accepts/mime-types": ["mime-types@2.1.35", "", { "dependencies": { "mime-db": "1.52.0" } }, "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw=="],
|
|
||||||
|
|
||||||
"@expo/cli/accepts/negotiator": ["negotiator@0.6.3", "", {}, "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg=="],
|
|
||||||
|
|
||||||
"@expo/cli/chalk/supports-color": ["supports-color@7.2.0", "", { "dependencies": { "has-flag": "^4.0.0" } }, "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw=="],
|
"@expo/cli/chalk/supports-color": ["supports-color@7.2.0", "", { "dependencies": { "has-flag": "^4.0.0" } }, "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw=="],
|
||||||
|
|
||||||
"@expo/cli/minimatch/brace-expansion": ["brace-expansion@2.0.2", "", { "dependencies": { "balanced-match": "^1.0.0" } }, "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ=="],
|
"@expo/cli/minimatch/brace-expansion": ["brace-expansion@2.0.2", "", { "dependencies": { "balanced-match": "^1.0.0" } }, "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ=="],
|
||||||
@@ -4789,12 +4777,6 @@
|
|||||||
|
|
||||||
"@expo/cli/ora/strip-ansi": ["strip-ansi@5.2.0", "", { "dependencies": { "ansi-regex": "^4.1.0" } }, "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA=="],
|
"@expo/cli/ora/strip-ansi": ["strip-ansi@5.2.0", "", { "dependencies": { "ansi-regex": "^4.1.0" } }, "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA=="],
|
||||||
|
|
||||||
"@expo/cli/send/debug": ["debug@2.6.9", "", { "dependencies": { "ms": "2.0.0" } }, "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA=="],
|
|
||||||
|
|
||||||
"@expo/cli/send/fresh": ["fresh@0.5.2", "", {}, "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q=="],
|
|
||||||
|
|
||||||
"@expo/cli/send/mime": ["mime@1.6.0", "", { "bin": { "mime": "cli.js" } }, "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg=="],
|
|
||||||
|
|
||||||
"@expo/config-plugins/@expo/json-file/@babel/code-frame": ["@babel/code-frame@7.10.4", "", { "dependencies": { "@babel/highlight": "^7.10.4" } }, "sha512-vG6SvB6oYEhvgisZNFRmRCUkLz11c7rp+tbNTynGqc6mS1d5ATd/sGyV6W0KZZnXRKMTzZDRgQT3Ou9jhpAfUg=="],
|
"@expo/config-plugins/@expo/json-file/@babel/code-frame": ["@babel/code-frame@7.10.4", "", { "dependencies": { "@babel/highlight": "^7.10.4" } }, "sha512-vG6SvB6oYEhvgisZNFRmRCUkLz11c7rp+tbNTynGqc6mS1d5ATd/sGyV6W0KZZnXRKMTzZDRgQT3Ou9jhpAfUg=="],
|
||||||
|
|
||||||
"@expo/config-plugins/chalk/supports-color": ["supports-color@7.2.0", "", { "dependencies": { "has-flag": "^4.0.0" } }, "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw=="],
|
"@expo/config-plugins/chalk/supports-color": ["supports-color@7.2.0", "", { "dependencies": { "has-flag": "^4.0.0" } }, "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw=="],
|
||||||
@@ -4903,6 +4885,30 @@
|
|||||||
|
|
||||||
"@jest/types/chalk/supports-color": ["supports-color@7.2.0", "", { "dependencies": { "has-flag": "^4.0.0" } }, "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw=="],
|
"@jest/types/chalk/supports-color": ["supports-color@7.2.0", "", { "dependencies": { "has-flag": "^4.0.0" } }, "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw=="],
|
||||||
|
|
||||||
|
"@modelcontextprotocol/sdk/express/accepts": ["accepts@2.0.0", "", { "dependencies": { "mime-types": "^3.0.0", "negotiator": "^1.0.0" } }, "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng=="],
|
||||||
|
|
||||||
|
"@modelcontextprotocol/sdk/express/body-parser": ["body-parser@2.2.2", "", { "dependencies": { "bytes": "^3.1.2", "content-type": "^1.0.5", "debug": "^4.4.3", "http-errors": "^2.0.0", "iconv-lite": "^0.7.0", "on-finished": "^2.4.1", "qs": "^6.14.1", "raw-body": "^3.0.1", "type-is": "^2.0.1" } }, "sha512-oP5VkATKlNwcgvxi0vM0p/D3n2C3EReYVX+DNYs5TjZFn/oQt2j+4sVJtSMr18pdRr8wjTcBl6LoV+FUwzPmNA=="],
|
||||||
|
|
||||||
|
"@modelcontextprotocol/sdk/express/content-disposition": ["content-disposition@1.0.1", "", {}, "sha512-oIXISMynqSqm241k6kcQ5UwttDILMK4BiurCfGEREw6+X9jkkpEe5T9FZaApyLGGOnFuyMWZpdolTXMtvEJ08Q=="],
|
||||||
|
|
||||||
|
"@modelcontextprotocol/sdk/express/cookie": ["cookie@0.7.2", "", {}, "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w=="],
|
||||||
|
|
||||||
|
"@modelcontextprotocol/sdk/express/cookie-signature": ["cookie-signature@1.2.2", "", {}, "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg=="],
|
||||||
|
|
||||||
|
"@modelcontextprotocol/sdk/express/finalhandler": ["finalhandler@2.1.1", "", { "dependencies": { "debug": "^4.4.0", "encodeurl": "^2.0.0", "escape-html": "^1.0.3", "on-finished": "^2.4.1", "parseurl": "^1.3.3", "statuses": "^2.0.1" } }, "sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA=="],
|
||||||
|
|
||||||
|
"@modelcontextprotocol/sdk/express/fresh": ["fresh@2.0.0", "", {}, "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A=="],
|
||||||
|
|
||||||
|
"@modelcontextprotocol/sdk/express/merge-descriptors": ["merge-descriptors@2.0.0", "", {}, "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g=="],
|
||||||
|
|
||||||
|
"@modelcontextprotocol/sdk/express/mime-types": ["mime-types@3.0.2", "", { "dependencies": { "mime-db": "^1.54.0" } }, "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A=="],
|
||||||
|
|
||||||
|
"@modelcontextprotocol/sdk/express/send": ["send@1.2.1", "", { "dependencies": { "debug": "^4.4.3", "encodeurl": "^2.0.0", "escape-html": "^1.0.3", "etag": "^1.8.1", "fresh": "^2.0.0", "http-errors": "^2.0.1", "mime-types": "^3.0.2", "ms": "^2.1.3", "on-finished": "^2.4.1", "range-parser": "^1.2.1", "statuses": "^2.0.2" } }, "sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ=="],
|
||||||
|
|
||||||
|
"@modelcontextprotocol/sdk/express/serve-static": ["serve-static@2.2.1", "", { "dependencies": { "encodeurl": "^2.0.0", "escape-html": "^1.0.3", "parseurl": "^1.3.3", "send": "^1.2.0" } }, "sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw=="],
|
||||||
|
|
||||||
|
"@modelcontextprotocol/sdk/express/type-is": ["type-is@2.0.1", "", { "dependencies": { "content-type": "^1.0.5", "media-typer": "^1.1.0", "mime-types": "^3.0.0" } }, "sha512-OZs6gsjF4vMp32qrCbiVSkrFmXtG/AZhY3t0iAMrMBiAZyV9oALtXO8hsrHbMXF9x6L3grlFuwW2oAz7cav+Gw=="],
|
||||||
|
|
||||||
"@oclif/core/minimatch/brace-expansion": ["brace-expansion@5.0.4", "", { "dependencies": { "balanced-match": "^4.0.2" } }, "sha512-h+DEnpVvxmfVefa4jFbCf5HdH5YMDXRsmKflpf1pILZWRFlTbJpxeU55nJl4Smt5HQaGzg1o6RHFPJaOqnmBDg=="],
|
"@oclif/core/minimatch/brace-expansion": ["brace-expansion@5.0.4", "", { "dependencies": { "balanced-match": "^4.0.2" } }, "sha512-h+DEnpVvxmfVefa4jFbCf5HdH5YMDXRsmKflpf1pILZWRFlTbJpxeU55nJl4Smt5HQaGzg1o6RHFPJaOqnmBDg=="],
|
||||||
|
|
||||||
"@oclif/core/string-width/emoji-regex": ["emoji-regex@8.0.0", "", {}, "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="],
|
"@oclif/core/string-width/emoji-regex": ["emoji-regex@8.0.0", "", {}, "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="],
|
||||||
@@ -4913,34 +4919,6 @@
|
|||||||
|
|
||||||
"@react-native/dev-middleware/open/is-docker": ["is-docker@2.2.1", "", { "bin": { "is-docker": "cli.js" } }, "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ=="],
|
"@react-native/dev-middleware/open/is-docker": ["is-docker@2.2.1", "", { "bin": { "is-docker": "cli.js" } }, "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ=="],
|
||||||
|
|
||||||
"@react-native/dev-middleware/serve-static/send": ["send@0.19.2", "", { "dependencies": { "debug": "2.6.9", "depd": "2.0.0", "destroy": "1.2.0", "encodeurl": "~2.0.0", "escape-html": "~1.0.3", "etag": "~1.8.1", "fresh": "~0.5.2", "http-errors": "~2.0.1", "mime": "1.6.0", "ms": "2.1.3", "on-finished": "~2.4.1", "range-parser": "~1.2.1", "statuses": "~2.0.2" } }, "sha512-VMbMxbDeehAxpOtWJXlcUS5E8iXh6QmN+BkRX1GARS3wRaXEEgzCcB10gTQazO42tpNIya8xIyNx8fll1OFPrg=="],
|
|
||||||
|
|
||||||
"@react-router/serve/express/accepts": ["accepts@1.3.8", "", { "dependencies": { "mime-types": "~2.1.34", "negotiator": "0.6.3" } }, "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw=="],
|
|
||||||
|
|
||||||
"@react-router/serve/express/body-parser": ["body-parser@1.20.4", "", { "dependencies": { "bytes": "~3.1.2", "content-type": "~1.0.5", "debug": "2.6.9", "depd": "2.0.0", "destroy": "~1.2.0", "http-errors": "~2.0.1", "iconv-lite": "~0.4.24", "on-finished": "~2.4.1", "qs": "~6.14.0", "raw-body": "~2.5.3", "type-is": "~1.6.18", "unpipe": "~1.0.0" } }, "sha512-ZTgYYLMOXY9qKU/57FAo8F+HA2dGX7bqGc71txDRC1rS4frdFI5R7NhluHxH6M0YItAP0sHB4uqAOcYKxO6uGA=="],
|
|
||||||
|
|
||||||
"@react-router/serve/express/content-disposition": ["content-disposition@0.5.4", "", { "dependencies": { "safe-buffer": "5.2.1" } }, "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ=="],
|
|
||||||
|
|
||||||
"@react-router/serve/express/cookie": ["cookie@0.7.2", "", {}, "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w=="],
|
|
||||||
|
|
||||||
"@react-router/serve/express/cookie-signature": ["cookie-signature@1.0.7", "", {}, "sha512-NXdYc3dLr47pBkpUCHtKSwIOQXLVn8dZEuywboCOJY/osA0wFSLlSawr3KN8qXJEyX66FcONTH8EIlVuK0yyFA=="],
|
|
||||||
|
|
||||||
"@react-router/serve/express/debug": ["debug@2.6.9", "", { "dependencies": { "ms": "2.0.0" } }, "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA=="],
|
|
||||||
|
|
||||||
"@react-router/serve/express/finalhandler": ["finalhandler@1.3.2", "", { "dependencies": { "debug": "2.6.9", "encodeurl": "~2.0.0", "escape-html": "~1.0.3", "on-finished": "~2.4.1", "parseurl": "~1.3.3", "statuses": "~2.0.2", "unpipe": "~1.0.0" } }, "sha512-aA4RyPcd3badbdABGDuTXCMTtOneUCAYH/gxoYRTZlIJdF0YPWuGqiAsIrhNnnqdXGswYk6dGujem4w80UJFhg=="],
|
|
||||||
|
|
||||||
"@react-router/serve/express/fresh": ["fresh@0.5.2", "", {}, "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q=="],
|
|
||||||
|
|
||||||
"@react-router/serve/express/merge-descriptors": ["merge-descriptors@1.0.3", "", {}, "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ=="],
|
|
||||||
|
|
||||||
"@react-router/serve/express/path-to-regexp": ["path-to-regexp@0.1.12", "", {}, "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ=="],
|
|
||||||
|
|
||||||
"@react-router/serve/express/send": ["send@0.19.2", "", { "dependencies": { "debug": "2.6.9", "depd": "2.0.0", "destroy": "1.2.0", "encodeurl": "~2.0.0", "escape-html": "~1.0.3", "etag": "~1.8.1", "fresh": "~0.5.2", "http-errors": "~2.0.1", "mime": "1.6.0", "ms": "2.1.3", "on-finished": "~2.4.1", "range-parser": "~1.2.1", "statuses": "~2.0.2" } }, "sha512-VMbMxbDeehAxpOtWJXlcUS5E8iXh6QmN+BkRX1GARS3wRaXEEgzCcB10gTQazO42tpNIya8xIyNx8fll1OFPrg=="],
|
|
||||||
|
|
||||||
"@react-router/serve/express/serve-static": ["serve-static@1.16.3", "", { "dependencies": { "encodeurl": "~2.0.0", "escape-html": "~1.0.3", "parseurl": "~1.3.3", "send": "~0.19.1" } }, "sha512-x0RTqQel6g5SY7Lg6ZreMmsOzncHFU7nhnRWkKgWuMTu5NN0DR5oruckMqRvacAN9d5w6ARnRBXl9xhDCgfMeA=="],
|
|
||||||
|
|
||||||
"@react-router/serve/express/type-is": ["type-is@1.6.18", "", { "dependencies": { "media-typer": "0.3.0", "mime-types": "~2.1.24" } }, "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g=="],
|
|
||||||
|
|
||||||
"@tailwindcss/node/lightningcss/lightningcss-android-arm64": ["lightningcss-android-arm64@1.31.1", "", { "os": "android", "cpu": "arm64" }, "sha512-HXJF3x8w9nQ4jbXRiNppBCqeZPIAfUo8zE/kOEGbW5NZvGc/K7nMxbhIr+YlFlHW5mpbg/YFPdbnCh1wAXCKFg=="],
|
"@tailwindcss/node/lightningcss/lightningcss-android-arm64": ["lightningcss-android-arm64@1.31.1", "", { "os": "android", "cpu": "arm64" }, "sha512-HXJF3x8w9nQ4jbXRiNppBCqeZPIAfUo8zE/kOEGbW5NZvGc/K7nMxbhIr+YlFlHW5mpbg/YFPdbnCh1wAXCKFg=="],
|
||||||
|
|
||||||
"@tailwindcss/node/lightningcss/lightningcss-darwin-arm64": ["lightningcss-darwin-arm64@1.31.1", "", { "os": "darwin", "cpu": "arm64" }, "sha512-02uTEqf3vIfNMq3h/z2cJfcOXnQ0GRwQrkmPafhueLb2h7mqEidiCzkE4gBMEH65abHRiQvhdcQ+aP0D0g67sg=="],
|
"@tailwindcss/node/lightningcss/lightningcss-darwin-arm64": ["lightningcss-darwin-arm64@1.31.1", "", { "os": "darwin", "cpu": "arm64" }, "sha512-02uTEqf3vIfNMq3h/z2cJfcOXnQ0GRwQrkmPafhueLb2h7mqEidiCzkE4gBMEH65abHRiQvhdcQ+aP0D0g67sg=="],
|
||||||
@@ -4989,6 +4967,8 @@
|
|||||||
|
|
||||||
"better-opn/open/is-docker": ["is-docker@2.2.1", "", { "bin": { "is-docker": "cli.js" } }, "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ=="],
|
"better-opn/open/is-docker": ["is-docker@2.2.1", "", { "bin": { "is-docker": "cli.js" } }, "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ=="],
|
||||||
|
|
||||||
|
"body-parser/debug/ms": ["ms@2.0.0", "", {}, "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A=="],
|
||||||
|
|
||||||
"bun-types/@types/node/undici-types": ["undici-types@6.21.0", "", {}, "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ=="],
|
"bun-types/@types/node/undici-types": ["undici-types@6.21.0", "", {}, "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ=="],
|
||||||
|
|
||||||
"chrome-launcher/@types/node/undici-types": ["undici-types@6.21.0", "", {}, "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ=="],
|
"chrome-launcher/@types/node/undici-types": ["undici-types@6.21.0", "", {}, "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ=="],
|
||||||
@@ -5117,11 +5097,13 @@
|
|||||||
|
|
||||||
"expo/@expo/config-plugins/semver": ["semver@7.7.4", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA=="],
|
"expo/@expo/config-plugins/semver": ["semver@7.7.4", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA=="],
|
||||||
|
|
||||||
|
"express/debug/ms": ["ms@2.0.0", "", {}, "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A=="],
|
||||||
|
|
||||||
"fbjs/cross-fetch/node-fetch": ["node-fetch@2.7.0", "", { "dependencies": { "whatwg-url": "^5.0.0" }, "peerDependencies": { "encoding": "^0.1.0" }, "optionalPeers": ["encoding"] }, "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A=="],
|
"fbjs/cross-fetch/node-fetch": ["node-fetch@2.7.0", "", { "dependencies": { "whatwg-url": "^5.0.0" }, "peerDependencies": { "encoding": "^0.1.0" }, "optionalPeers": ["encoding"] }, "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A=="],
|
||||||
|
|
||||||
"filelist/minimatch/brace-expansion": ["brace-expansion@2.0.2", "", { "dependencies": { "balanced-match": "^1.0.0" } }, "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ=="],
|
"filelist/minimatch/brace-expansion": ["brace-expansion@2.0.2", "", { "dependencies": { "balanced-match": "^1.0.0" } }, "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ=="],
|
||||||
|
|
||||||
"form-data/mime-types/mime-db": ["mime-db@1.52.0", "", {}, "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg=="],
|
"finalhandler/debug/ms": ["ms@2.0.0", "", {}, "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A=="],
|
||||||
|
|
||||||
"freya-client/react-dom/scheduler": ["scheduler@0.26.0", "", {}, "sha512-NlHwttCI/l5gCPR3D1nNXtWABUmBwvZpEQiD4IXSbIDq8BzLIK/7Ir5gTFSGZDUu37K5cMNp0hFtzO38sC7gWA=="],
|
"freya-client/react-dom/scheduler": ["scheduler@0.26.0", "", {}, "sha512-NlHwttCI/l5gCPR3D1nNXtWABUmBwvZpEQiD4IXSbIDq8BzLIK/7Ir5gTFSGZDUu37K5cMNp0hFtzO38sC7gWA=="],
|
||||||
|
|
||||||
@@ -5157,16 +5139,12 @@
|
|||||||
|
|
||||||
"metro-transform-worker/metro-source-map/source-map": ["source-map@0.5.7", "", {}, "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ=="],
|
"metro-transform-worker/metro-source-map/source-map": ["source-map@0.5.7", "", {}, "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ=="],
|
||||||
|
|
||||||
"metro/accepts/negotiator": ["negotiator@0.6.3", "", {}, "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg=="],
|
|
||||||
|
|
||||||
"metro/chalk/supports-color": ["supports-color@7.2.0", "", { "dependencies": { "has-flag": "^4.0.0" } }, "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw=="],
|
"metro/chalk/supports-color": ["supports-color@7.2.0", "", { "dependencies": { "has-flag": "^4.0.0" } }, "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw=="],
|
||||||
|
|
||||||
"metro/hermes-parser/hermes-estree": ["hermes-estree@0.32.0", "", {}, "sha512-KWn3BqnlDOl97Xe1Yviur6NbgIZ+IP+UVSpshlZWkq+EtoHg6/cwiDj/osP9PCEgFE15KBm1O55JRwbMEm5ejQ=="],
|
"metro/hermes-parser/hermes-estree": ["hermes-estree@0.32.0", "", {}, "sha512-KWn3BqnlDOl97Xe1Yviur6NbgIZ+IP+UVSpshlZWkq+EtoHg6/cwiDj/osP9PCEgFE15KBm1O55JRwbMEm5ejQ=="],
|
||||||
|
|
||||||
"metro/metro-source-map/ob1": ["ob1@0.83.3", "", { "dependencies": { "flow-enums-runtime": "^0.0.6" } }, "sha512-egUxXCDwoWG06NGCS5s5AdcpnumHKJlfd3HH06P3m9TEMwwScfcY35wpQxbm9oHof+dM/lVH9Rfyu1elTVelSA=="],
|
"metro/metro-source-map/ob1": ["ob1@0.83.3", "", { "dependencies": { "flow-enums-runtime": "^0.0.6" } }, "sha512-egUxXCDwoWG06NGCS5s5AdcpnumHKJlfd3HH06P3m9TEMwwScfcY35wpQxbm9oHof+dM/lVH9Rfyu1elTVelSA=="],
|
||||||
|
|
||||||
"metro/mime-types/mime-db": ["mime-db@1.52.0", "", {}, "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg=="],
|
|
||||||
|
|
||||||
"mongodb-connection-string-url/whatwg-url/tr46": ["tr46@5.1.1", "", { "dependencies": { "punycode": "^2.3.1" } }, "sha512-hdF5ZgjTqgAntKkklYw0R03MG2x/bSzTtkxmIRw/sTNV8YXsCJ1tfLAX23lhxhHJlEf3CRCOCGGWw3vI3GaSPw=="],
|
"mongodb-connection-string-url/whatwg-url/tr46": ["tr46@5.1.1", "", { "dependencies": { "punycode": "^2.3.1" } }, "sha512-hdF5ZgjTqgAntKkklYw0R03MG2x/bSzTtkxmIRw/sTNV8YXsCJ1tfLAX23lhxhHJlEf3CRCOCGGWw3vI3GaSPw=="],
|
||||||
|
|
||||||
"mongodb-connection-string-url/whatwg-url/webidl-conversions": ["webidl-conversions@7.0.0", "", {}, "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g=="],
|
"mongodb-connection-string-url/whatwg-url/webidl-conversions": ["webidl-conversions@7.0.0", "", {}, "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g=="],
|
||||||
@@ -5189,6 +5167,8 @@
|
|||||||
|
|
||||||
"semver/lru-cache/yallist": ["yallist@4.0.0", "", {}, "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="],
|
"semver/lru-cache/yallist": ["yallist@4.0.0", "", {}, "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="],
|
||||||
|
|
||||||
|
"send/debug/ms": ["ms@2.0.0", "", {}, "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A=="],
|
||||||
|
|
||||||
"sucrase/glob/minimatch": ["minimatch@9.0.9", "", { "dependencies": { "brace-expansion": "^2.0.2" } }, "sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg=="],
|
"sucrase/glob/minimatch": ["minimatch@9.0.9", "", { "dependencies": { "brace-expansion": "^2.0.2" } }, "sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg=="],
|
||||||
|
|
||||||
"sucrase/glob/path-scurry": ["path-scurry@1.11.1", "", { "dependencies": { "lru-cache": "^10.2.0", "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" } }, "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA=="],
|
"sucrase/glob/path-scurry": ["path-scurry@1.11.1", "", { "dependencies": { "lru-cache": "^10.2.0", "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" } }, "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA=="],
|
||||||
@@ -5287,8 +5267,6 @@
|
|||||||
|
|
||||||
"@expo/cli/@expo/json-file/@babel/code-frame/chalk": ["chalk@2.4.2", "", { "dependencies": { "ansi-styles": "^3.2.1", "escape-string-regexp": "^1.0.5", "supports-color": "^5.3.0" } }, "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ=="],
|
"@expo/cli/@expo/json-file/@babel/code-frame/chalk": ["chalk@2.4.2", "", { "dependencies": { "ansi-styles": "^3.2.1", "escape-string-regexp": "^1.0.5", "supports-color": "^5.3.0" } }, "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ=="],
|
||||||
|
|
||||||
"@expo/cli/accepts/mime-types/mime-db": ["mime-db@1.52.0", "", {}, "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg=="],
|
|
||||||
|
|
||||||
"@expo/cli/minimatch/brace-expansion/balanced-match": ["balanced-match@1.0.2", "", {}, "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="],
|
"@expo/cli/minimatch/brace-expansion/balanced-match": ["balanced-match@1.0.2", "", {}, "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="],
|
||||||
|
|
||||||
"@expo/cli/ora/chalk/ansi-styles": ["ansi-styles@3.2.1", "", { "dependencies": { "color-convert": "^1.9.0" } }, "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA=="],
|
"@expo/cli/ora/chalk/ansi-styles": ["ansi-styles@3.2.1", "", { "dependencies": { "color-convert": "^1.9.0" } }, "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA=="],
|
||||||
@@ -5301,8 +5279,6 @@
|
|||||||
|
|
||||||
"@expo/cli/ora/strip-ansi/ansi-regex": ["ansi-regex@4.1.1", "", {}, "sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g=="],
|
"@expo/cli/ora/strip-ansi/ansi-regex": ["ansi-regex@4.1.1", "", {}, "sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g=="],
|
||||||
|
|
||||||
"@expo/cli/send/debug/ms": ["ms@2.0.0", "", {}, "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A=="],
|
|
||||||
|
|
||||||
"@expo/config-plugins/glob/minimatch/brace-expansion": ["brace-expansion@2.0.2", "", { "dependencies": { "balanced-match": "^1.0.0" } }, "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ=="],
|
"@expo/config-plugins/glob/minimatch/brace-expansion": ["brace-expansion@2.0.2", "", { "dependencies": { "balanced-match": "^1.0.0" } }, "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ=="],
|
||||||
|
|
||||||
"@expo/config-plugins/glob/path-scurry/lru-cache": ["lru-cache@10.4.3", "", {}, "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ=="],
|
"@expo/config-plugins/glob/path-scurry/lru-cache": ["lru-cache@10.4.3", "", {}, "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ=="],
|
||||||
@@ -5365,30 +5341,14 @@
|
|||||||
|
|
||||||
"@istanbuljs/load-nyc-config/find-up/locate-path/p-locate": ["p-locate@4.1.0", "", { "dependencies": { "p-limit": "^2.2.0" } }, "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A=="],
|
"@istanbuljs/load-nyc-config/find-up/locate-path/p-locate": ["p-locate@4.1.0", "", { "dependencies": { "p-limit": "^2.2.0" } }, "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A=="],
|
||||||
|
|
||||||
|
"@modelcontextprotocol/sdk/express/accepts/negotiator": ["negotiator@1.0.0", "", {}, "sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg=="],
|
||||||
|
|
||||||
|
"@modelcontextprotocol/sdk/express/mime-types/mime-db": ["mime-db@1.54.0", "", {}, "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ=="],
|
||||||
|
|
||||||
|
"@modelcontextprotocol/sdk/express/type-is/media-typer": ["media-typer@1.1.0", "", {}, "sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw=="],
|
||||||
|
|
||||||
"@react-native/codegen/glob/minimatch/brace-expansion": ["brace-expansion@1.1.12", "", { "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" } }, "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg=="],
|
"@react-native/codegen/glob/minimatch/brace-expansion": ["brace-expansion@1.1.12", "", { "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" } }, "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg=="],
|
||||||
|
|
||||||
"@react-native/dev-middleware/serve-static/send/debug": ["debug@2.6.9", "", { "dependencies": { "ms": "2.0.0" } }, "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA=="],
|
|
||||||
|
|
||||||
"@react-native/dev-middleware/serve-static/send/fresh": ["fresh@0.5.2", "", {}, "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q=="],
|
|
||||||
|
|
||||||
"@react-native/dev-middleware/serve-static/send/mime": ["mime@1.6.0", "", { "bin": { "mime": "cli.js" } }, "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg=="],
|
|
||||||
|
|
||||||
"@react-router/serve/express/accepts/mime-types": ["mime-types@2.1.35", "", { "dependencies": { "mime-db": "1.52.0" } }, "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw=="],
|
|
||||||
|
|
||||||
"@react-router/serve/express/accepts/negotiator": ["negotiator@0.6.3", "", {}, "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg=="],
|
|
||||||
|
|
||||||
"@react-router/serve/express/body-parser/iconv-lite": ["iconv-lite@0.4.24", "", { "dependencies": { "safer-buffer": ">= 2.1.2 < 3" } }, "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA=="],
|
|
||||||
|
|
||||||
"@react-router/serve/express/body-parser/raw-body": ["raw-body@2.5.3", "", { "dependencies": { "bytes": "~3.1.2", "http-errors": "~2.0.1", "iconv-lite": "~0.4.24", "unpipe": "~1.0.0" } }, "sha512-s4VSOf6yN0rvbRZGxs8Om5CWj6seneMwK3oDb4lWDH0UPhWcxwOWw5+qk24bxq87szX1ydrwylIOp2uG1ojUpA=="],
|
|
||||||
|
|
||||||
"@react-router/serve/express/debug/ms": ["ms@2.0.0", "", {}, "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A=="],
|
|
||||||
|
|
||||||
"@react-router/serve/express/send/mime": ["mime@1.6.0", "", { "bin": { "mime": "cli.js" } }, "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg=="],
|
|
||||||
|
|
||||||
"@react-router/serve/express/type-is/media-typer": ["media-typer@0.3.0", "", {}, "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ=="],
|
|
||||||
|
|
||||||
"@react-router/serve/express/type-is/mime-types": ["mime-types@2.1.35", "", { "dependencies": { "mime-db": "1.52.0" } }, "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw=="],
|
|
||||||
|
|
||||||
"chromium-edge-launcher/rimraf/glob/minimatch": ["minimatch@3.1.5", "", { "dependencies": { "brace-expansion": "^1.1.7" } }, "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w=="],
|
"chromium-edge-launcher/rimraf/glob/minimatch": ["minimatch@3.1.5", "", { "dependencies": { "brace-expansion": "^1.1.7" } }, "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w=="],
|
||||||
|
|
||||||
"eas-cli/minimatch/brace-expansion/balanced-match": ["balanced-match@1.0.2", "", {}, "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="],
|
"eas-cli/minimatch/brace-expansion/balanced-match": ["balanced-match@1.0.2", "", {}, "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="],
|
||||||
@@ -5529,12 +5489,6 @@
|
|||||||
|
|
||||||
"@react-native/codegen/glob/minimatch/brace-expansion/balanced-match": ["balanced-match@1.0.2", "", {}, "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="],
|
"@react-native/codegen/glob/minimatch/brace-expansion/balanced-match": ["balanced-match@1.0.2", "", {}, "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="],
|
||||||
|
|
||||||
"@react-native/dev-middleware/serve-static/send/debug/ms": ["ms@2.0.0", "", {}, "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A=="],
|
|
||||||
|
|
||||||
"@react-router/serve/express/accepts/mime-types/mime-db": ["mime-db@1.52.0", "", {}, "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg=="],
|
|
||||||
|
|
||||||
"@react-router/serve/express/type-is/mime-types/mime-db": ["mime-db@1.52.0", "", {}, "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg=="],
|
|
||||||
|
|
||||||
"chromium-edge-launcher/rimraf/glob/minimatch/brace-expansion": ["brace-expansion@1.1.12", "", { "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" } }, "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg=="],
|
"chromium-edge-launcher/rimraf/glob/minimatch/brace-expansion": ["brace-expansion@1.1.12", "", { "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" } }, "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg=="],
|
||||||
|
|
||||||
"expo-constants/@expo/config/@expo/config-plugins/@expo/plist/@xmldom/xmldom": ["@xmldom/xmldom@0.8.11", "", {}, "sha512-cQzWCtO6C8TQiYl1ruKNn2U6Ao4o4WBBcbL61yJl84x+j5sOWWFU9X7DpND8XZG3daDppSsigMdfAIl2upQBRw=="],
|
"expo-constants/@expo/config/@expo/config-plugins/@expo/plist/@xmldom/xmldom": ["@xmldom/xmldom@0.8.11", "", {}, "sha512-cQzWCtO6C8TQiYl1ruKNn2U6Ao4o4WBBcbL61yJl84x+j5sOWWFU9X7DpND8XZG3daDppSsigMdfAIl2upQBRw=="],
|
||||||
|
|||||||
@@ -11,7 +11,6 @@
|
|||||||
"drizzle-studio": "TS_IP=$(tailscale ip -4); echo \"Drizzle Studio: https://local.drizzle.studio/?host=${TS_IP}&port=4983\"; cd apps/freya-backend && bunx drizzle-kit studio --host 0.0.0.0 --port 4983",
|
"drizzle-studio": "TS_IP=$(tailscale ip -4); echo \"Drizzle Studio: https://local.drizzle.studio/?host=${TS_IP}&port=4983\"; cd apps/freya-backend && bunx drizzle-kit studio --host 0.0.0.0 --port 4983",
|
||||||
"freya-backend": "TS_IP=$(tailscale ip -4); echo \"Freya Backend: http://${TS_IP}:3000\"; echo \"\"; echo \"------------------ Bun Debugger ------------------\"; echo \"https://debug.bun.sh/#${TS_IP}:6499\"; echo \"------------------ Bun Debugger ------------------\"; echo \"\"; cd apps/freya-backend && bun run dev",
|
"freya-backend": "TS_IP=$(tailscale ip -4); echo \"Freya Backend: http://${TS_IP}:3000\"; echo \"\"; echo \"------------------ Bun Debugger ------------------\"; echo \"https://debug.bun.sh/#${TS_IP}:6499\"; echo \"------------------ Bun Debugger ------------------\"; echo \"\"; cd apps/freya-backend && bun run dev",
|
||||||
"admin-dashboard": "TS_IP=$(tailscale ip -4); echo \"Admin Dashboard: http://${TS_IP}:5174\"; cd apps/admin-dashboard && bun run dev --host 0.0.0.0",
|
"admin-dashboard": "TS_IP=$(tailscale ip -4); echo \"Admin Dashboard: http://${TS_IP}:5174\"; cd apps/admin-dashboard && bun run dev --host 0.0.0.0",
|
||||||
"agent-test-cli": "cd apps/agent-test-cli && bun run start",
|
|
||||||
"test": "bun run --filter '*' test",
|
"test": "bun run --filter '*' test",
|
||||||
"lint": "oxlint .",
|
"lint": "oxlint .",
|
||||||
"lint:fix": "oxlint --fix .",
|
"lint:fix": "oxlint --fix .",
|
||||||
|
|||||||
@@ -84,9 +84,7 @@ const ONE_DAY_MS = 24 * 60 * 60 * 1000
|
|||||||
* It owns recurrence expansion, edit-scope semantics, and feed item signals.
|
* It owns recurrence expansion, edit-scope semantics, and feed item signals.
|
||||||
*/
|
*/
|
||||||
export class ReminderSource implements FeedSource<ReminderFeedItem> {
|
export class ReminderSource implements FeedSource<ReminderFeedItem> {
|
||||||
static readonly id = "freya.reminders"
|
readonly id = "freya.reminders"
|
||||||
|
|
||||||
readonly id = ReminderSource.id
|
|
||||||
|
|
||||||
private readonly storage: ReminderStorage
|
private readonly storage: ReminderStorage
|
||||||
private readonly lookAheadMs: number
|
private readonly lookAheadMs: number
|
||||||
|
|||||||
Reference in New Issue
Block a user