@nylorun/studio 0.2.0-rc.1 → 0.2.0-rc.3

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/host.js CHANGED
@@ -12,6 +12,7 @@ const MIME_TYPES = Object.freeze({
12
12
  ".json": "application/json; charset=utf-8",
13
13
  ".map": "application/json; charset=utf-8",
14
14
  ".png": "image/png",
15
+ ".webmanifest": "application/manifest+json; charset=utf-8",
15
16
  ".svg": "image/svg+xml",
16
17
  ".webp": "image/webp",
17
18
  ".woff2": "font/woff2"
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export { parseAgentServerUrl, startStaticStudio, startStudio } from "./host.js";
2
2
  export type { StudioConfig, StudioHost, StudioOptions } from "./host.js";
3
- export type { StudioAgentManifest, StudioDiscoveryDocument, StudioDiscoveryEntry, StudioEndpointSet } from "./protocol.js";
3
+ export type { StudioAgentManifest, StudioDiscoveryDocument, StudioDiscoveryEntry, StudioEndpointSet, StudioMiddlewareManifest } from "./protocol.js";
@@ -11,29 +11,32 @@ export type StudioEndpointSet = Readonly<{
11
11
  agUi: string;
12
12
  sessions: string;
13
13
  }>;
14
+ export type StudioMiddlewareManifest = Readonly<{
15
+ id: string;
16
+ instructions?: readonly string[];
17
+ tools?: readonly Readonly<{
18
+ name: string;
19
+ description?: string;
20
+ }>[];
21
+ model?: Readonly<{
22
+ id?: string;
23
+ controls?: Readonly<{
24
+ temperature?: number;
25
+ maxOutputTokens?: number;
26
+ }>;
27
+ }>;
28
+ }>;
14
29
  /** A generated, JSON-safe description of one direct Harness agent. */
15
30
  export type StudioAgentManifest = Readonly<{
16
31
  protocolVersion: 1;
17
32
  id: string;
18
33
  name: string;
19
- description: string;
20
- capabilities: readonly string[];
21
- requirements?: Readonly<Record<string, boolean>>;
22
- model: Readonly<{
23
- provider: string;
24
- id: string;
25
- }>;
26
34
  harness: Readonly<{
27
- name: "@nylorun/harness";
28
- version: string;
29
35
  manifest: Readonly<{
30
- middleware: readonly Readonly<{
31
- id: string;
32
- }>[];
36
+ id: string;
37
+ name: string;
38
+ middleware: readonly StudioMiddlewareManifest[];
33
39
  }>;
34
40
  }>;
35
41
  endpoints: StudioEndpointSet;
36
- records?: Readonly<{
37
- path: string;
38
- }>;
39
42
  }>;