@xemahq/skill-registry-api-client 0.2.0 → 0.3.0
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/README.md
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
<!-- Generated by @xemahq/api-client-generator. Do not edit by hand. -->
|
|
2
|
+
<p align="center">
|
|
3
|
+
<svg width="680" height="120" viewBox="0 0 680 120" fill="none" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="@xemahq/skill-registry-api-client">
|
|
4
|
+
<rect width="680" height="120" rx="14" fill="#0B1020"/>
|
|
5
|
+
<g transform="translate(28,34)">
|
|
6
|
+
<path d="M26 0 L52 15 L52 45 L26 60 L0 45 L0 15 Z" fill="#14B8A6" opacity="0.18"/>
|
|
7
|
+
<path d="M26 12 L41 21 L41 39 L26 48 L11 39 L11 21 Z" fill="#14B8A6"/>
|
|
8
|
+
</g>
|
|
9
|
+
<text x="92" y="52" font-family="ui-monospace,SFMono-Regular,Menlo,monospace" font-size="22" fill="#F8FAFC" font-weight="700">@xemahq/skill-registry-api-client</text>
|
|
10
|
+
<text x="92" y="80" font-family="ui-sans-serif,system-ui,sans-serif" font-size="15" fill="#94A3B8">Typed, generated HTTP client for the Skill Registry API.</text>
|
|
11
|
+
<text x="652" y="105" text-anchor="end" font-family="ui-sans-serif,system-ui,sans-serif" font-size="12" fill="#475569">xema.dev</text>
|
|
12
|
+
</svg>
|
|
13
|
+
</p>
|
|
14
|
+
|
|
15
|
+
<p align="center">
|
|
16
|
+
<a href="https://xema.dev">Website</a> ·
|
|
17
|
+
<a href="https://www.npmjs.com/package/@xemahq/skill-registry-api-client">npm</a>
|
|
18
|
+
</p>
|
|
19
|
+
|
|
20
|
+
<p align="center">
|
|
21
|
+
<img alt="npm" src="https://img.shields.io/npm/v/%40xemahq%2Fskill-registry-api-client?color=2563eb&label=npm">
|
|
22
|
+
<img alt="license" src="https://img.shields.io/npm/l/%40xemahq%2Fskill-registry-api-client?color=10b981">
|
|
23
|
+
<img alt="types" src="https://img.shields.io/npm/types/%40xemahq%2Fskill-registry-api-client?color=3178c6">
|
|
24
|
+
</p>
|
|
25
|
+
|
|
26
|
+
# @xemahq/skill-registry-api-client
|
|
27
|
+
|
|
28
|
+
> Typed, generated HTTP client for the Skill Registry API.
|
|
29
|
+
|
|
30
|
+
## Overview
|
|
31
|
+
|
|
32
|
+
Auto-generated TypeScript client for the **Skill Registry API**. It exports typed
|
|
33
|
+
request functions and response models that mirror the service's OpenAPI surface,
|
|
34
|
+
so callers get end-to-end type safety without hand-writing HTTP calls. This
|
|
35
|
+
package is produced by `@xemahq/api-client-generator` and regenerated whenever
|
|
36
|
+
the service's API changes — do not edit it by hand.
|
|
37
|
+
|
|
38
|
+
## When to use it
|
|
39
|
+
|
|
40
|
+
- Use it from any TypeScript service or app that calls the Skill Registry API over HTTP.
|
|
41
|
+
- You get compile-time types for every endpoint and payload; regenerate to pick
|
|
42
|
+
up API changes rather than editing the client.
|
|
43
|
+
|
|
44
|
+
## Installation
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
pnpm add @xemahq/skill-registry-api-client
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Usage
|
|
51
|
+
|
|
52
|
+
```ts
|
|
53
|
+
// Every endpoint function and response model is exported from the package root.
|
|
54
|
+
import * as client from '@xemahq/skill-registry-api-client';
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Call the typed endpoint functions; request and response shapes are fully typed
|
|
58
|
+
from the service's OpenAPI spec.
|
|
59
|
+
|
|
60
|
+
## License
|
|
61
|
+
|
|
62
|
+
Proprietary — © Xema. All rights reserved. — [xema.dev](https://xema.dev)
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import type { SkillEvalCaseDto } from './skillEvalCaseDto.js';
|
|
9
9
|
export interface SkillEvalSuiteResponseDto {
|
|
10
10
|
skillId: string;
|
|
11
|
-
|
|
11
|
+
baselineAgentId: string;
|
|
12
12
|
cases: SkillEvalCaseDto[];
|
|
13
13
|
/** The iteration number the NEXT eval run will be recorded as. */
|
|
14
14
|
nextIteration: number;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import type { SkillEvalCaseDto } from './skillEvalCaseDto.js';
|
|
9
9
|
export interface UpsertSkillEvalSuiteDto {
|
|
10
10
|
/** llm-registry-api Agent id of the GENERIC baseline composition the eval runs against. Both A/B configs use this composition; the with-skill config additionally mounts the skill under test. Pick a generic agent composition with no domain skills so the delta isolates THIS skill. */
|
|
11
|
-
|
|
11
|
+
baselineAgentId: string;
|
|
12
12
|
/**
|
|
13
13
|
* @minItems 3
|
|
14
14
|
* @maxItems 5
|
package/package.json
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xemahq/skill-registry-api-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
8
8
|
],
|
|
9
9
|
"publishConfig": {
|
|
10
|
-
"registry": "https://
|
|
11
|
-
"access": "public"
|
|
10
|
+
"registry": "https://npm.pkg.github.com"
|
|
12
11
|
},
|
|
13
12
|
"devDependencies": {
|
|
14
13
|
"typescript": "5.9.3"
|
|
@@ -19,7 +18,7 @@
|
|
|
19
18
|
"service": "skill-registry-api",
|
|
20
19
|
"biome": "agent-runtime",
|
|
21
20
|
"target": "server",
|
|
22
|
-
"generator": "@xemahq/api-client-generator@0.1.
|
|
21
|
+
"generator": "@xemahq/api-client-generator@0.1.2",
|
|
23
22
|
"source": "openapi.public.json"
|
|
24
23
|
},
|
|
25
24
|
"scripts": {
|