@agentworkforce/deploy 3.0.35 → 3.0.37
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/deploy.d.ts.map +1 -1
- package/dist/deploy.js +155 -15
- package/dist/deploy.js.map +1 -1
- package/dist/deploy.test.js +555 -0
- package/dist/deploy.test.js.map +1 -1
- package/dist/modes/sandbox-client.d.ts +4 -0
- package/dist/modes/sandbox-client.d.ts.map +1 -1
- package/dist/modes/sandbox-client.js +4 -0
- package/dist/modes/sandbox-client.js.map +1 -1
- package/dist/modes/sandbox-client.test.js +26 -1
- package/dist/modes/sandbox-client.test.js.map +1 -1
- package/dist/modes/sandbox.d.ts.map +1 -1
- package/dist/modes/sandbox.js +3 -1
- package/dist/modes/sandbox.js.map +1 -1
- package/dist/modes/sandbox.test.js +135 -1
- package/dist/modes/sandbox.test.js.map +1 -1
- package/dist/runtime-credentials-live.test.d.ts +2 -0
- package/dist/runtime-credentials-live.test.d.ts.map +1 -0
- package/dist/runtime-credentials-live.test.js +20 -0
- package/dist/runtime-credentials-live.test.js.map +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import test from 'node:test';
|
|
2
|
+
import assert from 'node:assert/strict';
|
|
3
|
+
const LIVE_RUNTIME_CREDENTIALS_URL = 'https://agentrelay.com/cloud/api/v1/workspaces/rw_probe/runtime-credentials';
|
|
4
|
+
test('live runtime-credentials route rejects unauthenticated POST with 401 and GET with 405', async () => {
|
|
5
|
+
const post = await fetch(LIVE_RUNTIME_CREDENTIALS_URL, {
|
|
6
|
+
method: 'POST',
|
|
7
|
+
headers: { 'content-type': 'application/json' },
|
|
8
|
+
body: JSON.stringify({
|
|
9
|
+
personaId: 'runtime-credentials-live-probe',
|
|
10
|
+
integrations: {},
|
|
11
|
+
ttlSeconds: 3600
|
|
12
|
+
})
|
|
13
|
+
});
|
|
14
|
+
assert.equal(post.status, 401);
|
|
15
|
+
const postBody = (await post.json());
|
|
16
|
+
assert.equal(postBody.code, 'unauthorized');
|
|
17
|
+
const get = await fetch(LIVE_RUNTIME_CREDENTIALS_URL, { method: 'GET' });
|
|
18
|
+
assert.equal(get.status, 405);
|
|
19
|
+
});
|
|
20
|
+
//# sourceMappingURL=runtime-credentials-live.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime-credentials-live.test.js","sourceRoot":"","sources":["../src/runtime-credentials-live.test.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,MAAM,MAAM,oBAAoB,CAAC;AAExC,MAAM,4BAA4B,GAChC,6EAA6E,CAAC;AAEhF,IAAI,CAAC,uFAAuF,EAAE,KAAK,IAAI,EAAE;IACvG,MAAM,IAAI,GAAG,MAAM,KAAK,CAAC,4BAA4B,EAAE;QACrD,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;QAC/C,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC;YACnB,SAAS,EAAE,gCAAgC;YAC3C,YAAY,EAAE,EAAE;YAChB,UAAU,EAAE,IAAI;SACjB,CAAC;KACH,CAAC,CAAC;IACH,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC/B,MAAM,QAAQ,GAAG,CAAC,MAAM,IAAI,CAAC,IAAI,EAAE,CAAuB,CAAC;IAC3D,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC;IAE5C,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,4BAA4B,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;IACzE,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAChC,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentworkforce/deploy",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.37",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"@agent-relay/cloud": "^6.0.17",
|
|
29
29
|
"@daytonaio/sdk": "^0.179.0",
|
|
30
30
|
"esbuild": "^0.25.0",
|
|
31
|
-
"@agentworkforce/persona-kit": "3.0.
|
|
32
|
-
"@agentworkforce/runtime": "3.0.
|
|
31
|
+
"@agentworkforce/persona-kit": "3.0.37",
|
|
32
|
+
"@agentworkforce/runtime": "3.0.37"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
35
|
"build": "tsc -p tsconfig.json",
|