agental-sdk 0.3.0 → 0.3.1
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 +1 -1
- package/dist/openapi.d.ts +2 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -455,7 +455,7 @@ const { messages } = await mail.list();
|
|
|
455
455
|
## What the SDK does for you
|
|
456
456
|
|
|
457
457
|
- A create or a fork is sent with an `Idempotency-Key`. If its answer is lost, or the machine is not confirmed yet, the same request is sent again with the same key, which gives the same sandbox back and never a second one. Pass `idempotencyKey` yourself to be able to ask again after your process has died.
|
|
458
|
-
- Reads, file writes, starts and stops are sent again when a proxy answers in the API's place, when the connection drops
|
|
458
|
+
- Reads, file writes, starts and stops are sent again when a proxy answers in the API's place, and when the connection drops.
|
|
459
459
|
- A command is never sent twice. One that was cut off may have done part of its work, so that is yours to decide.
|
|
460
460
|
- A delete carries the confirm header the API asks for.
|
|
461
461
|
|
package/dist/openapi.d.ts
CHANGED
|
@@ -1928,7 +1928,7 @@ export interface paths {
|
|
|
1928
1928
|
};
|
|
1929
1929
|
get?: never;
|
|
1930
1930
|
put?: never;
|
|
1931
|
-
/** @description Brings running sandboxes on the template up to date with it now: all of them, or the ones named. It is the only call that changes a running sandbox because of its template; a change to a template reaches the others when they next start. Their next command gets the template's variables as they are now, with each sandbox's own on top. Its files are written to their disks now, where that can be done, and before their next command in any case. Each is held to the template's outbound rule, with its own addresses on top, from when this answers: its server is told first, one sandbox at a time, and one whose server does not take it is named in failed and left as it was. Nothing is restarted,
|
|
1931
|
+
/** @description Brings running sandboxes on the template up to date with it now: all of them, or the ones named. It is the only call that changes a running sandbox because of its template; a change to a template reaches the others when they next start. Their next command gets the template's variables as they are now, with each sandbox's own on top. Its files are written to their disks now, where that can be done, and before their next command in any case. Each is held to the template's outbound rule, with its own addresses on top, from when this answers: its server is told first, one sandbox at a time, and one whose server does not take it is named in failed and left as it was. Nothing is restarted. Every open connection the rule now forbids, from the sandbox or through its proxy, is cut by the time this answers: the program in the sandbox sees it reset, and the far end hears nothing more. Connections the rule still allows carry on untouched, as do SSH sessions into the sandbox, its public addresses and the desktop. */
|
|
1932
1932
|
post: operations["applyTemplate"];
|
|
1933
1933
|
delete?: never;
|
|
1934
1934
|
options?: never;
|
|
@@ -1963,7 +1963,7 @@ export interface paths {
|
|
|
1963
1963
|
};
|
|
1964
1964
|
/** @description What the sandbox may reach outside itself: the rule it is held to, as network on the sandbox says it, and what it comes from: its template's rule as the sandbox has it, and its own addresses on top. It changes nothing, and is answered whatever state the sandbox is in. */
|
|
1965
1965
|
get: operations["getNetwork"];
|
|
1966
|
-
/** @description Sets the addresses the sandbox may reach on top of its template's outbound rule, in place of the ones it had. They add to what the template lets out and never take from it: on an open template they change nothing until the template is blocked or an allowlist. The sandbox is held to its template's rule with these on top from when this answers, without a restart, running or stopped
|
|
1966
|
+
/** @description Sets the addresses the sandbox may reach on top of its template's outbound rule, in place of the ones it had. They add to what the template lets out and never take from it: on an open template they change nothing until the template is blocked or an allowlist. The sandbox is held to its template's rule with these on top from when this answers, without a restart, running or stopped. Taking an address away cuts the open connections to it by the time this answers, those through the sandbox's proxy included: the program sees its connection reset. Connections the rule still allows carry on untouched. The rule itself is its template's, and is changed with PUT /v1/templates/{id}/network: sending outbound here is refused with rule_on_template. What is sent to the sandbox, commands, files, its public addresses and SSH, is not affected. Only where GET /v1/policy says networkPolicy. */
|
|
1967
1967
|
put: operations["setNetwork"];
|
|
1968
1968
|
post?: never;
|
|
1969
1969
|
delete?: never;
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** This package's version, as package.json says it. A test holds the two to the same. */
|
|
2
|
-
export declare const VERSION = "0.3.
|
|
2
|
+
export declare const VERSION = "0.3.1";
|
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** This package's version, as package.json says it. A test holds the two to the same. */
|
|
2
|
-
export const VERSION = "0.3.
|
|
2
|
+
export const VERSION = "0.3.1";
|
package/package.json
CHANGED