@agentuity/coder 3.0.0-alpha.6 → 3.0.0-beta.0
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 +26 -0
- package/package.json +3 -4
package/README.md
CHANGED
|
@@ -28,6 +28,32 @@ const session = await client.createSession({
|
|
|
28
28
|
});
|
|
29
29
|
console.log(`Created session: ${session.sessionId}`);
|
|
30
30
|
|
|
31
|
+
// Create a session from a saved workspace
|
|
32
|
+
const workspaceSession = await client.createSession({
|
|
33
|
+
task: 'Test workspace startup',
|
|
34
|
+
workspaceId: 'ws_...',
|
|
35
|
+
});
|
|
36
|
+
console.log(`Created workspace session: ${workspaceSession.sessionId}`);
|
|
37
|
+
|
|
38
|
+
// Manage workspace snapshot inputs
|
|
39
|
+
const validation = await client.validateWorkspaceDependencies(['git', 'nodejs']);
|
|
40
|
+
if (validation.invalid.length > 0) {
|
|
41
|
+
throw new Error(validation.invalid.map((pkg) => pkg.error).join(', '));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
const workspace = await client.createWorkspace({
|
|
45
|
+
name: 'Node workspace',
|
|
46
|
+
scope: 'org',
|
|
47
|
+
dependencies: ['git', 'nodejs'],
|
|
48
|
+
setupScript: 'corepack enable',
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
await client.updateWorkspace(workspace.id, {
|
|
52
|
+
setupScript: 'corepack enable && bun install',
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
await client.refreshWorkspaceSnapshot(workspace.id);
|
|
56
|
+
|
|
31
57
|
// Get session details
|
|
32
58
|
const details = await client.getSession(session.sessionId);
|
|
33
59
|
console.log(`Task: ${details.task}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentuity/coder",
|
|
3
|
-
"version": "3.0.0-
|
|
3
|
+
"version": "3.0.0-beta.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"author": "Agentuity employees and contributors",
|
|
6
6
|
"type": "module",
|
|
@@ -25,8 +25,7 @@
|
|
|
25
25
|
"prepublishOnly": "bun run clean && bun run build"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@agentuity/core": "3.0.0-
|
|
29
|
-
"@agentuity/server": "3.0.0-alpha.6"
|
|
28
|
+
"@agentuity/core": "3.0.0-beta.0"
|
|
30
29
|
},
|
|
31
30
|
"devDependencies": {
|
|
32
31
|
"@types/bun": "latest",
|
|
@@ -40,7 +39,7 @@
|
|
|
40
39
|
"sideEffects": false,
|
|
41
40
|
"repository": {
|
|
42
41
|
"type": "git",
|
|
43
|
-
"url": "https://github.com/agentuity/sdk.git",
|
|
42
|
+
"url": "git+https://github.com/agentuity/sdk.git",
|
|
44
43
|
"directory": "packages/coder"
|
|
45
44
|
}
|
|
46
45
|
}
|