@agentknight/sdk 0.9.53 → 0.9.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -201
- package/dist/chunks/{acp-adapter-LJQBDWYK.js → acp-adapter-HUNUQGUF.js} +3 -3
- package/dist/chunks/{chunk-2CNJAMAN.js → chunk-5J7BK2Y7.js} +1 -1
- package/dist/chunks/{chunk-6YFGVYI5.js → chunk-6ZPE7VIE.js} +432 -44
- package/dist/chunks/{chunk-HJCNQM4M.js → chunk-E7QL4CBT.js} +1 -1
- package/dist/chunks/{chunk-XL6UB4C3.js → chunk-HFVA7ZOD.js} +2 -2
- package/dist/chunks/chunk-IJPJQF7S.js +16 -0
- package/dist/chunks/{chunk-UZFIXIAS.js → chunk-K5CMKBW6.js} +392 -365
- package/dist/chunks/{chunk-ML6Q2MYH.js → chunk-L3A736SO.js} +1 -1
- package/dist/chunks/{chunk-AAZH6QGV.js → chunk-NTFNQYQ3.js} +2 -2
- package/dist/chunks/{chunk-EFRYPUKX.js → chunk-XPHAIOKN.js} +7 -21
- package/dist/chunks/{chunk-6DYWE5PL.js → chunk-Z5STULMQ.js} +1 -1
- package/dist/chunks/{claude-adapter-UWVOXYNG.js → claude-adapter-G6YTPXRP.js} +3 -3
- package/dist/chunks/{codex-adapter-44N7DBRH.js → codex-adapter-ELYJE2A2.js} +3 -3
- package/dist/chunks/{copilot-adapter-ZM7EUBZ5.js → copilot-adapter-2QAIOSEK.js} +22 -10
- package/dist/chunks/{managed-agent-adapter-5TIM4PBR.js → managed-agent-adapter-KEXZFLGA.js} +5 -5
- package/dist/chunks/{pi-adapter-NADD52CV.js → pi-adapter-5BFIJTPD.js} +3 -3
- package/dist/configuration.js +8 -6
- package/dist/index.d.ts +2 -1
- package/dist/index.js +435 -487
- package/dist/runtime.js +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// src/config.ts
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
var SessionImagesConfigSchema = z.object({
|
|
4
|
+
allowUnencryptedStorage: z.literal(true),
|
|
5
|
+
storageAccount: z.string().regex(/^[a-z0-9]{3,24}$/u),
|
|
6
|
+
storageContainer: z.string().min(3).max(63).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/u)
|
|
7
|
+
}).strict();
|
|
8
|
+
var SessionImageRelayUrlSchema = z.url().refine((value) => {
|
|
9
|
+
const url = new URL(value);
|
|
10
|
+
return /^https:\/\/[^/?#\\@\s\x00-\x1f\x7f]+\/?$/iu.test(value) && url.protocol === "https:" && url.username === "" && url.password === "" && url.pathname === "/" && url.search === "" && url.hash === "";
|
|
11
|
+
}, "Session images require an HTTPS Relay origin without a path, credentials, query or fragment").transform((value) => new URL(value).origin);
|
|
12
|
+
|
|
13
|
+
export {
|
|
14
|
+
SessionImagesConfigSchema,
|
|
15
|
+
SessionImageRelayUrlSchema
|
|
16
|
+
};
|