Add upload tool and related APIs (#187)
* Add utils for r2 upload * Add the tool and new routes * fix auth issue * sign headers * add comment * use our own API key to auth signed uploads * Restructure things slightly * tweak * tweak * add comments * tweak * revert a thing * twaek * drop mime type filtering * new incarnation of mime type filtering * jsut allow all octet-streams * simplify further * tweak * update lockfile --------- Co-authored-by: Colin McDonnell <colinmcd94@gmail.com>
This commit is contained in:
committed by
pullfrog[bot]
parent
cac9b0e645
commit
071e885d63
+1
-1
@@ -1,5 +1,5 @@
|
||||
import type { AgentResult, ValidationCheck } from "./utils.ts";
|
||||
import { generateAgentUuids, defineFixture, getAgentOutput, runTests } from "./utils.ts";
|
||||
import { defineFixture, generateAgentUuids, getAgentOutput, runTests } from "./utils.ts";
|
||||
|
||||
/**
|
||||
* nobash test - validates agents respect bash=disabled setting.
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
import type { AgentResult, ValidationCheck } from "./utils.ts";
|
||||
import { generateAgentUuids, defineFixture, getAgentOutput, runTests } from "./utils.ts";
|
||||
import { defineFixture, generateAgentUuids, getAgentOutput, runTests } from "./utils.ts";
|
||||
|
||||
/**
|
||||
* restricted test - validates bash=restricted environment filtering.
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
import { randomUUID } from "node:crypto";
|
||||
import { spawn } from "node:child_process";
|
||||
import { randomUUID } from "node:crypto";
|
||||
import { dirname, join } from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import { config } from "dotenv";
|
||||
|
||||
Reference in New Issue
Block a user