@nylorun/core 0.29.0-beta → 0.31.0-beta

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/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @nylorun/core
2
2
 
3
+ ## 0.31.0-beta
4
+
5
+ ### Minor Changes
6
+
7
+ - 2f3fc06: A skill file can be uploaded from a stream, so a client never holds a large one in memory (ADR-93).
8
+
9
+ - **`SkillFileSource.stream()`**, optional: each call opens a new stream of the file's bytes. When a source has it, `client.files.ensure` (and so `agentManifests.save`) sends the stream instead of `read()`'s bytes.
10
+ - **`client.files.uploadStream(stream, { sha256 })`** sends one file half-duplex, up to the Tenant's skill limit (2 GiB by default). The Runtime already streams the body to its hash.
11
+ - **A stream is never sent twice by the transport.** After an expired token or a protocol check, `ensure` opens a new stream and sends it once more.
12
+
13
+ ## 0.30.0-beta
14
+
15
+ ### Minor Changes
16
+
17
+ - 2ef610b: An outside credential provider for the egress gate (Host feature `credential-provider`; no protocol change). A Host's operator names a service that holds people's keys with `NYLORUN_CREDENTIAL_PROVIDER_URL` and `NYLORUN_CREDENTIAL_PROVIDER_TOKEN`, which `nylorun start` passes from its shell to the `gateway` and `runtime` containers. For a pod Agent with an owner, egress-gate asks the provider (`POST /v1/hosts`, with the Agent and its owner) which hosts the owner connected, lets them through on 443 inside the Tenant's egress ceiling, terminates TLS for them and hands each request to `<url>/v1/forward/<path>` with the sandbox's own headers plus `nylorun-provider-host`, `nylorun-provider-agent`, `nylorun-provider-owner` and `nylorun-provider-token`; the provider adds the key and sends it on, so the Runtime never sees a value. Each segment's sandbox sees the variables the provider names (`POST /v1/environment`) as `nylorun_managed`, under the vault's own. A secret in the Agent's vault bound to the same host still wins. Answers are cached per Agent for 15 s (Host tuning `credentialProvider.*`); an Agent with no owner is never asked about, and a provider that fails answers nothing, so its hosts are refused as before.
18
+
3
19
  ## 0.29.0-beta
4
20
 
5
21
  ### Minor Changes
@@ -206,10 +206,15 @@ export type ProtocolFeature = (typeof PROTOCOL_FEATURES)[number];
206
206
  * `model-host-identity`: `PUT /v1/tenant/model` takes `auth: { type: "host_identity", project,
207
207
  * location }` for `google-vertex`: the model gate calls Agent Platform with the Host's Google
208
208
  * Application Default Credentials, when the Host's operator lends them (`NYLORUN_MODEL_HOST_IDENTITY`).
209
+ * `credential-provider`: egress-gate can hand a pod Agent's requests to an outside credential
210
+ * provider the Host's operator names (`NYLORUN_CREDENTIAL_PROVIDER_URL`), which adds the Agent
211
+ * owner's keys: the hosts it lists (exact, or `*.suffix`) pass the allowlist on 443, and each
212
+ * segment's sandbox sees the variables it names, as `nylorun_managed`, a stand-in it names or a
213
+ * plain value. No route changes.
209
214
  */
210
215
  export declare const OPTIONAL_HOST_FEATURES: readonly ["tenant-fixture-model", "transcript-events", "subject-headers", "ag-ui-endpoint", "a2a-endpoint", "sandbox-pods", "trusted-issuers", "session-reads", "calls-export", "credential-coverage", "tool-calls", "environment-setup", "environment-disk-versions", "tool-policy", "traces",
211
216
  /** Opt-in artifact metadata pages (`GET /v1/artifacts?limit=…`). */
212
- "artifact-reads", "gateway-credentials", "agent-folders", "session-model", "model-host-identity"];
217
+ "artifact-reads", "gateway-credentials", "agent-folders", "session-model", "model-host-identity", "credential-provider"];
213
218
  export type OptionalHostFeature = (typeof OPTIONAL_HOST_FEATURES)[number];
214
219
  export interface ProtocolRange {
215
220
  min: number;
@@ -208,6 +208,11 @@ export const PROTOCOL_FEATURES = [
208
208
  * `model-host-identity`: `PUT /v1/tenant/model` takes `auth: { type: "host_identity", project,
209
209
  * location }` for `google-vertex`: the model gate calls Agent Platform with the Host's Google
210
210
  * Application Default Credentials, when the Host's operator lends them (`NYLORUN_MODEL_HOST_IDENTITY`).
211
+ * `credential-provider`: egress-gate can hand a pod Agent's requests to an outside credential
212
+ * provider the Host's operator names (`NYLORUN_CREDENTIAL_PROVIDER_URL`), which adds the Agent
213
+ * owner's keys: the hosts it lists (exact, or `*.suffix`) pass the allowlist on 443, and each
214
+ * segment's sandbox sees the variables it names, as `nylorun_managed`, a stand-in it names or a
215
+ * plain value. No route changes.
211
216
  */
212
217
  export const OPTIONAL_HOST_FEATURES = [
213
218
  "tenant-fixture-model",
@@ -231,6 +236,7 @@ export const OPTIONAL_HOST_FEATURES = [
231
236
  "agent-folders",
232
237
  "session-model",
233
238
  "model-host-identity",
239
+ "credential-provider",
234
240
  ];
235
241
  /**
236
242
  * What this Host serves: protocol 16, 17 and 18. Protocol 16 replaced agent definitions and
@@ -9,6 +9,12 @@ import type { ToolDefinition } from "./tool.js";
9
9
  export interface SkillFileSource {
10
10
  readonly size: number;
11
11
  read(): Promise<Uint8Array>;
12
+ /**
13
+ * The bytes as a stream, for a file too large to hold in memory (an org's skill of a gigabyte,
14
+ * ADR-93). When present, the client's upload sends it instead of `read()`'s bytes. Each call
15
+ * opens a new stream.
16
+ */
17
+ stream?(): ReadableStream<Uint8Array>;
12
18
  }
13
19
  /**
14
20
  * @internal What one builder call, skills folder or plugin adds to an agent. The manifest holds
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nylorun/core",
3
- "version": "0.29.0-beta",
3
+ "version": "0.31.0-beta",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "Shared agent definitions and wire contracts",