@runblackcat/sdk 0.1.0-alpha.113 → 0.1.0-alpha.115
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 +6 -0
- package/package.json +1 -1
- package/sdk/dist/index.d.ts +18 -0
- package/sdk/dist/index.js +3 -0
package/README.md
CHANGED
|
@@ -44,6 +44,12 @@ are in [docs/PRODUCT.md](docs/PRODUCT.md).
|
|
|
44
44
|
- **Multi-tenant** — tenants share hosts, isolated at the VM boundary by the Firecracker
|
|
45
45
|
jailer, seccomp, and explicit VM-to-VM network denial.
|
|
46
46
|
|
|
47
|
+
## Recipes
|
|
48
|
+
|
|
49
|
+
- [Shared Bazel cache and remote execution](recipes/remote-build/README.md) —
|
|
50
|
+
a supervised NativeLink plugin, provider-backed durable cache, scoped workers
|
|
51
|
+
on the ordinary fleet, and a minimal Bazel example for engineers and CI.
|
|
52
|
+
|
|
47
53
|
## Design in one page
|
|
48
54
|
|
|
49
55
|
| | |
|
package/package.json
CHANGED
package/sdk/dist/index.d.ts
CHANGED
|
@@ -965,9 +965,27 @@ declare class ReservationsResource {
|
|
|
965
965
|
idempotency_key: string;
|
|
966
966
|
}): Promise<CapacityReservation>;
|
|
967
967
|
}
|
|
968
|
+
/** Managed-DNS queries only; all timestamps are UTC epoch milliseconds. */
|
|
969
|
+
export interface SandboxEgressDnsEntry {
|
|
970
|
+
host: string;
|
|
971
|
+
queries: number;
|
|
972
|
+
decision: "allowed" | "filtered";
|
|
973
|
+
first_seen_at: number;
|
|
974
|
+
last_seen_at: number;
|
|
975
|
+
}
|
|
976
|
+
export interface SandboxEgressDns {
|
|
977
|
+
items: SandboxEgressDnsEntry[];
|
|
978
|
+
observation_started_at: number | null;
|
|
979
|
+
/** Queries for additional names after the node-local admission cap. */
|
|
980
|
+
overflow_queries: number;
|
|
981
|
+
/** Queries with invalid or unrecordable names. */
|
|
982
|
+
invalid_queries: number;
|
|
983
|
+
}
|
|
968
984
|
declare class SandboxesResource {
|
|
969
985
|
private readonly client;
|
|
970
986
|
constructor(client: GatewayClient);
|
|
987
|
+
/** Read node-local DNS history for a running sandbox; never resumes it. */
|
|
988
|
+
egressDns(id: string): Promise<SandboxEgressDns>;
|
|
971
989
|
/** List all of this tenant's non-destroyed sandboxes, including hibernated ones. */
|
|
972
990
|
list(): Promise<Sandbox[]>;
|
|
973
991
|
/**
|
package/sdk/dist/index.js
CHANGED
|
@@ -461,6 +461,9 @@ class SandboxesResource {
|
|
|
461
461
|
constructor(client) {
|
|
462
462
|
this.client = client;
|
|
463
463
|
}
|
|
464
|
+
egressDns(id) {
|
|
465
|
+
return this.client.json("GET", `/v1/sandboxes/${pathSegment(id)}/egress/dns`, undefined, "either");
|
|
466
|
+
}
|
|
464
467
|
list() {
|
|
465
468
|
return this.client.json("GET", "/v1/sandboxes", undefined, "either");
|
|
466
469
|
}
|