@openpond/harness 0.2.5 → 0.2.6
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/dist/common.js +3 -0
- package/dist/models.js +20 -0
- package/dist/types/common.d.ts +6 -0
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/models.d.ts +36 -0
- package/dist/types/models.d.ts.map +1 -1
- package/package.json +3 -2
package/dist/common.js
CHANGED
|
@@ -10,6 +10,9 @@ export const ImmutableReleaseRefSchema = z.object({
|
|
|
10
10
|
id: ReleaseIdSchema,
|
|
11
11
|
contentHash: ReleaseHashSchema,
|
|
12
12
|
}).strict();
|
|
13
|
+
export const VersionedReleaseRefSchema = ImmutableReleaseRefSchema.extend({
|
|
14
|
+
revision: z.number().int().positive(),
|
|
15
|
+
}).strict();
|
|
13
16
|
export const ImmutableAssetRefSchema = z.object({
|
|
14
17
|
id: ReleaseIdSchema,
|
|
15
18
|
path: z.string().trim().min(1).max(MAX_PORTABLE_PATH_BYTES).refine(safeRelativePath),
|
package/dist/models.js
CHANGED
|
@@ -8,3 +8,23 @@ export const ModelRefSchema = z.object({
|
|
|
8
8
|
tokenizerRevision: z.string().trim().min(1).max(500).nullable().default(null),
|
|
9
9
|
chatTemplateHash: ReleaseHashSchema.nullable().default(null),
|
|
10
10
|
}).strict();
|
|
11
|
+
export const PROVIDER_IDS = [
|
|
12
|
+
"openpond",
|
|
13
|
+
"codex",
|
|
14
|
+
"anthropic",
|
|
15
|
+
"openai",
|
|
16
|
+
"xai",
|
|
17
|
+
"google",
|
|
18
|
+
"openrouter",
|
|
19
|
+
"deepseek",
|
|
20
|
+
"zai",
|
|
21
|
+
"moonshot",
|
|
22
|
+
"together",
|
|
23
|
+
"groq",
|
|
24
|
+
"custom-openai-compatible",
|
|
25
|
+
];
|
|
26
|
+
export const ProviderIdSchema = z.enum(PROVIDER_IDS);
|
|
27
|
+
export const ChatModelRefSchema = z.object({
|
|
28
|
+
providerId: ProviderIdSchema,
|
|
29
|
+
modelId: z.string().trim().min(1).max(300),
|
|
30
|
+
});
|
package/dist/types/common.d.ts
CHANGED
|
@@ -9,6 +9,12 @@ export declare const ImmutableReleaseRefSchema: z.ZodObject<{
|
|
|
9
9
|
id: z.ZodString;
|
|
10
10
|
contentHash: z.ZodString;
|
|
11
11
|
}, z.core.$strict>;
|
|
12
|
+
export declare const VersionedReleaseRefSchema: z.ZodObject<{
|
|
13
|
+
id: z.ZodString;
|
|
14
|
+
contentHash: z.ZodString;
|
|
15
|
+
revision: z.ZodNumber;
|
|
16
|
+
}, z.core.$strict>;
|
|
17
|
+
export type VersionedReleaseRef = z.infer<typeof VersionedReleaseRefSchema>;
|
|
12
18
|
export declare const ImmutableAssetRefSchema: z.ZodObject<{
|
|
13
19
|
id: z.ZodString;
|
|
14
20
|
path: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../src/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,uBAAuB,OAAQ,CAAC;AAC7C,eAAO,MAAM,wBAAwB,YAAc,CAAC;AACpD,eAAO,MAAM,eAAe,aAAoC,CAAC;AACjE,eAAO,MAAM,iBAAiB,aAAqC,CAAC;AACpE,eAAO,MAAM,sBAAsB,aAAwC,CAAC;AAC5E,eAAO,MAAM,cAAc,sDAAgD,CAAC;AAE5E,eAAO,MAAM,yBAAyB;;;kBAG3B,CAAC;AAEZ,eAAO,MAAM,uBAAuB;;;;;;;;;;;kBAOzB,CAAC;AAEZ,eAAO,MAAM,0BAA0B;;;;;kBAK5B,CAAC;AAEZ,eAAO,MAAM,kBAAkB;;;;;;;EAO7B,CAAC;AAEH,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAEpD;AAED,wBAAgB,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,GAAG,MAAM,CAEz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yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,uBAAuB;;;;;;;;;;;kBAOzB,CAAC;AAEZ,eAAO,MAAM,0BAA0B;;;;;kBAK5B,CAAC;AAEZ,eAAO,MAAM,kBAAkB;;;;;;;EAO7B,CAAC;AAEH,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAEpD;AAED,wBAAgB,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,GAAG,MAAM,CAEzD;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAElD;AAED,wBAAgB,eAAe,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,GAAG;IAAE,WAAW,EAAE,MAAM,CAAA;CAAE,CAExG;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE;IAAE,WAAW,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAI/G;AAkBD,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
package/dist/types/models.d.ts
CHANGED
|
@@ -8,4 +8,40 @@ export declare const ModelRefSchema: z.ZodObject<{
|
|
|
8
8
|
chatTemplateHash: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
9
9
|
}, z.core.$strict>;
|
|
10
10
|
export type ModelRef = z.infer<typeof ModelRefSchema>;
|
|
11
|
+
export declare const PROVIDER_IDS: readonly ["openpond", "codex", "anthropic", "openai", "xai", "google", "openrouter", "deepseek", "zai", "moonshot", "together", "groq", "custom-openai-compatible"];
|
|
12
|
+
export declare const ProviderIdSchema: z.ZodEnum<{
|
|
13
|
+
openpond: "openpond";
|
|
14
|
+
codex: "codex";
|
|
15
|
+
anthropic: "anthropic";
|
|
16
|
+
openai: "openai";
|
|
17
|
+
xai: "xai";
|
|
18
|
+
google: "google";
|
|
19
|
+
openrouter: "openrouter";
|
|
20
|
+
deepseek: "deepseek";
|
|
21
|
+
zai: "zai";
|
|
22
|
+
moonshot: "moonshot";
|
|
23
|
+
together: "together";
|
|
24
|
+
groq: "groq";
|
|
25
|
+
"custom-openai-compatible": "custom-openai-compatible";
|
|
26
|
+
}>;
|
|
27
|
+
export type ProviderId = z.infer<typeof ProviderIdSchema>;
|
|
28
|
+
export declare const ChatModelRefSchema: z.ZodObject<{
|
|
29
|
+
providerId: z.ZodEnum<{
|
|
30
|
+
openpond: "openpond";
|
|
31
|
+
codex: "codex";
|
|
32
|
+
anthropic: "anthropic";
|
|
33
|
+
openai: "openai";
|
|
34
|
+
xai: "xai";
|
|
35
|
+
google: "google";
|
|
36
|
+
openrouter: "openrouter";
|
|
37
|
+
deepseek: "deepseek";
|
|
38
|
+
zai: "zai";
|
|
39
|
+
moonshot: "moonshot";
|
|
40
|
+
together: "together";
|
|
41
|
+
groq: "groq";
|
|
42
|
+
"custom-openai-compatible": "custom-openai-compatible";
|
|
43
|
+
}>;
|
|
44
|
+
modelId: z.ZodString;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
export type ChatModelRef = z.infer<typeof ChatModelRefSchema>;
|
|
11
47
|
//# sourceMappingURL=models.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../../src/models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,cAAc;;;;;;;kBAOhB,CAAC;AAEZ,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../../src/models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,cAAc;;;;;;;kBAOhB,CAAC;AAEZ,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,YAAY,qKAcf,CAAC;AAEX,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;EAAuB,CAAC;AAErD,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;iBAG7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openpond/harness",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"description": "Portable immutable Harness releases, workspaces, improvements, traces, tools, and model identities for OpenPond",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -82,7 +82,8 @@
|
|
|
82
82
|
"test": "vitest run --root ../.. --config vitest.config.ts --project harness",
|
|
83
83
|
"check:api": "tsx scripts/check-public-package.ts",
|
|
84
84
|
"check:consumer": "tsx scripts/verify-packed-consumer.ts",
|
|
85
|
-
"check": "pnpm run typecheck && pnpm run test && pnpm run build && pnpm run check:api && pnpm run check:consumer && npm pack --dry-run"
|
|
85
|
+
"check": "pnpm run typecheck && pnpm run test && pnpm run build && pnpm run check:api && pnpm run check:consumer && npm pack --dry-run",
|
|
86
|
+
"publish:check": "pnpm run build && pnpm run check:api && pnpm run check:consumer && npm pack --dry-run"
|
|
86
87
|
},
|
|
87
88
|
"dependencies": {
|
|
88
89
|
"zod": "^4.1.13"
|