@brazosd/node 0.1.7 → 0.1.8
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/browser.d.ts +19 -3
- package/browser.js +16 -6
- package/index.d.ts +19 -3
- package/index.js +16 -6
- package/package.json +1 -1
package/browser.d.ts
CHANGED
|
@@ -1542,6 +1542,10 @@ type ContinueAgentSession = {
|
|
|
1542
1542
|
* Legacy compatibility field for temporary attachment paths. New clients should use `attachmentPaths`.
|
|
1543
1543
|
*/
|
|
1544
1544
|
attachmentTmpPaths?: Array<string>;
|
|
1545
|
+
/**
|
|
1546
|
+
* If the session was automatically archived for inactivity, continue from its archive checkpoint in a new session. The response identifies the session to use for subsequent inputs. Manually archived sessions reject continuation.
|
|
1547
|
+
*/
|
|
1548
|
+
forkOnInactivity?: boolean;
|
|
1545
1549
|
/**
|
|
1546
1550
|
* Next user prompt to append to the session.
|
|
1547
1551
|
*/
|
|
@@ -1643,6 +1647,10 @@ type CreateAgentSession = {
|
|
|
1643
1647
|
*/
|
|
1644
1648
|
attachmentTmpPaths?: Array<string>;
|
|
1645
1649
|
initialClientMcp?: InitialClientMCP;
|
|
1650
|
+
/**
|
|
1651
|
+
* Visible remote MCP installation to load for this session before its first turn, alongside agent defaults.
|
|
1652
|
+
*/
|
|
1653
|
+
initialRemoteMcpId?: string;
|
|
1646
1654
|
/**
|
|
1647
1655
|
* Optional model ID to use for the session. If omitted, the agent model is used.
|
|
1648
1656
|
*/
|
|
@@ -4394,8 +4402,12 @@ declare class DefaultService {
|
|
|
4394
4402
|
* @returns AgentSession Agent session created
|
|
4395
4403
|
* @throws ApiError
|
|
4396
4404
|
*/
|
|
4397
|
-
createAgentSession({ requestBody, }: {
|
|
4405
|
+
createAgentSession({ requestBody, xBrazosdIdempotentKey, }: {
|
|
4398
4406
|
requestBody: CreateAgentSession;
|
|
4407
|
+
/**
|
|
4408
|
+
* Optional UUID identifying one logical request for this organization and user. Reuse the same key when retrying the same operation, target and body. Conflicting reuse returns HTTP 409.
|
|
4409
|
+
*/
|
|
4410
|
+
xBrazosdIdempotentKey?: string;
|
|
4399
4411
|
}): CancelablePromise<AgentSession>;
|
|
4400
4412
|
/**
|
|
4401
4413
|
* Select the lazy sandbox source for a session
|
|
@@ -4500,16 +4512,20 @@ declare class DefaultService {
|
|
|
4500
4512
|
}): CancelablePromise<AgentSession>;
|
|
4501
4513
|
/**
|
|
4502
4514
|
* Continue agent session
|
|
4503
|
-
* Append a
|
|
4515
|
+
* Append a user prompt to a managed session. Active sessions queue the input and terminal sessions start a new run over their history. Set forkOnInactivity to continue from an automatic archive checkpoint.
|
|
4504
4516
|
* @returns AgentSession Agent session continued
|
|
4505
4517
|
* @throws ApiError
|
|
4506
4518
|
*/
|
|
4507
|
-
continueAgentSession({ sessionId, requestBody, }: {
|
|
4519
|
+
continueAgentSession({ sessionId, requestBody, xBrazosdIdempotentKey, }: {
|
|
4508
4520
|
/**
|
|
4509
4521
|
* UUID of the session to continue.
|
|
4510
4522
|
*/
|
|
4511
4523
|
sessionId: string;
|
|
4512
4524
|
requestBody: ContinueAgentSession;
|
|
4525
|
+
/**
|
|
4526
|
+
* Optional UUID identifying one logical request for this organization and user. Reuse the same key when retrying the same operation, target and body. Conflicting reuse returns HTTP 409.
|
|
4527
|
+
*/
|
|
4528
|
+
xBrazosdIdempotentKey?: string;
|
|
4513
4529
|
}): CancelablePromise<AgentSession>;
|
|
4514
4530
|
/**
|
|
4515
4531
|
* Get agent session events
|
package/browser.js
CHANGED
|
@@ -1280,18 +1280,23 @@ var DefaultService = class {
|
|
|
1280
1280
|
* @throws ApiError
|
|
1281
1281
|
*/
|
|
1282
1282
|
createAgentSession({
|
|
1283
|
-
requestBody
|
|
1283
|
+
requestBody,
|
|
1284
|
+
xBrazosdIdempotentKey
|
|
1284
1285
|
}) {
|
|
1285
1286
|
return this.httpRequest.request({
|
|
1286
1287
|
method: "POST",
|
|
1287
1288
|
url: "/agent-sessions",
|
|
1289
|
+
headers: {
|
|
1290
|
+
"X-Brazosd-Idempotent-Key": xBrazosdIdempotentKey
|
|
1291
|
+
},
|
|
1288
1292
|
body: requestBody,
|
|
1289
1293
|
mediaType: "application/json",
|
|
1290
1294
|
errors: {
|
|
1291
1295
|
400: `Invalid request`,
|
|
1292
1296
|
402: `Payment required`,
|
|
1293
1297
|
403: `Forbidden`,
|
|
1294
|
-
404: `Agent not found
|
|
1298
|
+
404: `Agent not found`,
|
|
1299
|
+
409: `Idempotent key already used with a different request`
|
|
1295
1300
|
}
|
|
1296
1301
|
});
|
|
1297
1302
|
}
|
|
@@ -1521,13 +1526,14 @@ var DefaultService = class {
|
|
|
1521
1526
|
}
|
|
1522
1527
|
/**
|
|
1523
1528
|
* Continue agent session
|
|
1524
|
-
* Append a
|
|
1529
|
+
* Append a user prompt to a managed session. Active sessions queue the input and terminal sessions start a new run over their history. Set forkOnInactivity to continue from an automatic archive checkpoint.
|
|
1525
1530
|
* @returns AgentSession Agent session continued
|
|
1526
1531
|
* @throws ApiError
|
|
1527
1532
|
*/
|
|
1528
1533
|
continueAgentSession({
|
|
1529
1534
|
sessionId,
|
|
1530
|
-
requestBody
|
|
1535
|
+
requestBody,
|
|
1536
|
+
xBrazosdIdempotentKey
|
|
1531
1537
|
}) {
|
|
1532
1538
|
return this.httpRequest.request({
|
|
1533
1539
|
method: "POST",
|
|
@@ -1535,6 +1541,9 @@ var DefaultService = class {
|
|
|
1535
1541
|
path: {
|
|
1536
1542
|
"sessionId": sessionId
|
|
1537
1543
|
},
|
|
1544
|
+
headers: {
|
|
1545
|
+
"X-Brazosd-Idempotent-Key": xBrazosdIdempotentKey
|
|
1546
|
+
},
|
|
1538
1547
|
body: requestBody,
|
|
1539
1548
|
mediaType: "application/json",
|
|
1540
1549
|
errors: {
|
|
@@ -1542,7 +1551,7 @@ var DefaultService = class {
|
|
|
1542
1551
|
402: `Payment required`,
|
|
1543
1552
|
403: `Forbidden`,
|
|
1544
1553
|
404: `Agent session not found`,
|
|
1545
|
-
409: `Agent session cannot accept more input`
|
|
1554
|
+
409: `Agent session cannot accept more input or the idempotent key was used with a different request`
|
|
1546
1555
|
}
|
|
1547
1556
|
});
|
|
1548
1557
|
}
|
|
@@ -9508,7 +9517,8 @@ var operations = {
|
|
|
9508
9517
|
"400": "void",
|
|
9509
9518
|
"402": "void",
|
|
9510
9519
|
"403": "void",
|
|
9511
|
-
"404": "void"
|
|
9520
|
+
"404": "void",
|
|
9521
|
+
"409": "void"
|
|
9512
9522
|
}
|
|
9513
9523
|
},
|
|
9514
9524
|
"PUT /agent-sessions/{sessionID}/sandbox-snapshot": {
|
package/index.d.ts
CHANGED
|
@@ -1544,6 +1544,10 @@ type ContinueAgentSession = {
|
|
|
1544
1544
|
* Legacy compatibility field for temporary attachment paths. New clients should use `attachmentPaths`.
|
|
1545
1545
|
*/
|
|
1546
1546
|
attachmentTmpPaths?: Array<string>;
|
|
1547
|
+
/**
|
|
1548
|
+
* If the session was automatically archived for inactivity, continue from its archive checkpoint in a new session. The response identifies the session to use for subsequent inputs. Manually archived sessions reject continuation.
|
|
1549
|
+
*/
|
|
1550
|
+
forkOnInactivity?: boolean;
|
|
1547
1551
|
/**
|
|
1548
1552
|
* Next user prompt to append to the session.
|
|
1549
1553
|
*/
|
|
@@ -1645,6 +1649,10 @@ type CreateAgentSession = {
|
|
|
1645
1649
|
*/
|
|
1646
1650
|
attachmentTmpPaths?: Array<string>;
|
|
1647
1651
|
initialClientMcp?: InitialClientMCP;
|
|
1652
|
+
/**
|
|
1653
|
+
* Visible remote MCP installation to load for this session before its first turn, alongside agent defaults.
|
|
1654
|
+
*/
|
|
1655
|
+
initialRemoteMcpId?: string;
|
|
1648
1656
|
/**
|
|
1649
1657
|
* Optional model ID to use for the session. If omitted, the agent model is used.
|
|
1650
1658
|
*/
|
|
@@ -4396,8 +4404,12 @@ declare class DefaultService {
|
|
|
4396
4404
|
* @returns AgentSession Agent session created
|
|
4397
4405
|
* @throws ApiError
|
|
4398
4406
|
*/
|
|
4399
|
-
createAgentSession({ requestBody, }: {
|
|
4407
|
+
createAgentSession({ requestBody, xBrazosdIdempotentKey, }: {
|
|
4400
4408
|
requestBody: CreateAgentSession;
|
|
4409
|
+
/**
|
|
4410
|
+
* Optional UUID identifying one logical request for this organization and user. Reuse the same key when retrying the same operation, target and body. Conflicting reuse returns HTTP 409.
|
|
4411
|
+
*/
|
|
4412
|
+
xBrazosdIdempotentKey?: string;
|
|
4401
4413
|
}): CancelablePromise<AgentSession>;
|
|
4402
4414
|
/**
|
|
4403
4415
|
* Select the lazy sandbox source for a session
|
|
@@ -4502,16 +4514,20 @@ declare class DefaultService {
|
|
|
4502
4514
|
}): CancelablePromise<AgentSession>;
|
|
4503
4515
|
/**
|
|
4504
4516
|
* Continue agent session
|
|
4505
|
-
* Append a
|
|
4517
|
+
* Append a user prompt to a managed session. Active sessions queue the input and terminal sessions start a new run over their history. Set forkOnInactivity to continue from an automatic archive checkpoint.
|
|
4506
4518
|
* @returns AgentSession Agent session continued
|
|
4507
4519
|
* @throws ApiError
|
|
4508
4520
|
*/
|
|
4509
|
-
continueAgentSession({ sessionId, requestBody, }: {
|
|
4521
|
+
continueAgentSession({ sessionId, requestBody, xBrazosdIdempotentKey, }: {
|
|
4510
4522
|
/**
|
|
4511
4523
|
* UUID of the session to continue.
|
|
4512
4524
|
*/
|
|
4513
4525
|
sessionId: string;
|
|
4514
4526
|
requestBody: ContinueAgentSession;
|
|
4527
|
+
/**
|
|
4528
|
+
* Optional UUID identifying one logical request for this organization and user. Reuse the same key when retrying the same operation, target and body. Conflicting reuse returns HTTP 409.
|
|
4529
|
+
*/
|
|
4530
|
+
xBrazosdIdempotentKey?: string;
|
|
4515
4531
|
}): CancelablePromise<AgentSession>;
|
|
4516
4532
|
/**
|
|
4517
4533
|
* Get agent session events
|
package/index.js
CHANGED
|
@@ -1280,18 +1280,23 @@ var DefaultService = class {
|
|
|
1280
1280
|
* @throws ApiError
|
|
1281
1281
|
*/
|
|
1282
1282
|
createAgentSession({
|
|
1283
|
-
requestBody
|
|
1283
|
+
requestBody,
|
|
1284
|
+
xBrazosdIdempotentKey
|
|
1284
1285
|
}) {
|
|
1285
1286
|
return this.httpRequest.request({
|
|
1286
1287
|
method: "POST",
|
|
1287
1288
|
url: "/agent-sessions",
|
|
1289
|
+
headers: {
|
|
1290
|
+
"X-Brazosd-Idempotent-Key": xBrazosdIdempotentKey
|
|
1291
|
+
},
|
|
1288
1292
|
body: requestBody,
|
|
1289
1293
|
mediaType: "application/json",
|
|
1290
1294
|
errors: {
|
|
1291
1295
|
400: `Invalid request`,
|
|
1292
1296
|
402: `Payment required`,
|
|
1293
1297
|
403: `Forbidden`,
|
|
1294
|
-
404: `Agent not found
|
|
1298
|
+
404: `Agent not found`,
|
|
1299
|
+
409: `Idempotent key already used with a different request`
|
|
1295
1300
|
}
|
|
1296
1301
|
});
|
|
1297
1302
|
}
|
|
@@ -1521,13 +1526,14 @@ var DefaultService = class {
|
|
|
1521
1526
|
}
|
|
1522
1527
|
/**
|
|
1523
1528
|
* Continue agent session
|
|
1524
|
-
* Append a
|
|
1529
|
+
* Append a user prompt to a managed session. Active sessions queue the input and terminal sessions start a new run over their history. Set forkOnInactivity to continue from an automatic archive checkpoint.
|
|
1525
1530
|
* @returns AgentSession Agent session continued
|
|
1526
1531
|
* @throws ApiError
|
|
1527
1532
|
*/
|
|
1528
1533
|
continueAgentSession({
|
|
1529
1534
|
sessionId,
|
|
1530
|
-
requestBody
|
|
1535
|
+
requestBody,
|
|
1536
|
+
xBrazosdIdempotentKey
|
|
1531
1537
|
}) {
|
|
1532
1538
|
return this.httpRequest.request({
|
|
1533
1539
|
method: "POST",
|
|
@@ -1535,6 +1541,9 @@ var DefaultService = class {
|
|
|
1535
1541
|
path: {
|
|
1536
1542
|
"sessionId": sessionId
|
|
1537
1543
|
},
|
|
1544
|
+
headers: {
|
|
1545
|
+
"X-Brazosd-Idempotent-Key": xBrazosdIdempotentKey
|
|
1546
|
+
},
|
|
1538
1547
|
body: requestBody,
|
|
1539
1548
|
mediaType: "application/json",
|
|
1540
1549
|
errors: {
|
|
@@ -1542,7 +1551,7 @@ var DefaultService = class {
|
|
|
1542
1551
|
402: `Payment required`,
|
|
1543
1552
|
403: `Forbidden`,
|
|
1544
1553
|
404: `Agent session not found`,
|
|
1545
|
-
409: `Agent session cannot accept more input`
|
|
1554
|
+
409: `Agent session cannot accept more input or the idempotent key was used with a different request`
|
|
1546
1555
|
}
|
|
1547
1556
|
});
|
|
1548
1557
|
}
|
|
@@ -9508,7 +9517,8 @@ var operations = {
|
|
|
9508
9517
|
"400": "void",
|
|
9509
9518
|
"402": "void",
|
|
9510
9519
|
"403": "void",
|
|
9511
|
-
"404": "void"
|
|
9520
|
+
"404": "void",
|
|
9521
|
+
"409": "void"
|
|
9512
9522
|
}
|
|
9513
9523
|
},
|
|
9514
9524
|
"PUT /agent-sessions/{sessionID}/sandbox-snapshot": {
|