shardflux 0.1.0 → 0.3.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/CHANGELOG.md +17 -0
- package/README.md +10 -0
- package/package.json +4 -3
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
`shardflux` bundles `@shardflux/sdk` and `@shardflux/cli`; see their changelogs for details.
|
|
4
|
+
|
|
5
|
+
## 0.3.0 (not yet published; npm `latest` is 0.2.0)
|
|
6
|
+
|
|
7
|
+
- `@shardflux/sdk` ^0.6.1: `formatTiming()` separators, the held open's abort signal, a standalone wait's first poll.
|
|
8
|
+
- `@shardflux/cli` ^0.3.0: `--timing` on commands that open, wait or wake (stderr, or a `timing` field with `--json`).
|
|
9
|
+
|
|
10
|
+
## 0.2.0 (2026-09-28)
|
|
11
|
+
|
|
12
|
+
- `@shardflux/sdk` ^0.6.0 (lifecycle timing and progress, `wait` on lifecycle calls, wake on use) and
|
|
13
|
+
`@shardflux/cli` ^0.2.0.
|
|
14
|
+
|
|
15
|
+
## 0.1.0 (2026-09-26)
|
|
16
|
+
|
|
17
|
+
- First release: `@shardflux/sdk` ^0.5.0 and `@shardflux/cli` ^0.1.0.
|
package/README.md
CHANGED
|
@@ -46,6 +46,16 @@ console.log(await cell.files.readText('/home/user/notes.txt'));
|
|
|
46
46
|
await workspace.suspend(); // resume later with open() or workspace.resume()
|
|
47
47
|
```
|
|
48
48
|
|
|
49
|
+
Give a workspace's processes your credentials as environment variables with secrets (values are
|
|
50
|
+
write-only):
|
|
51
|
+
|
|
52
|
+
```ts
|
|
53
|
+
const projectId = (await cloud.me()).api_key!.project_id;
|
|
54
|
+
await cloud.secrets.create(projectId, { name: 'OPENAI_API_KEY', value: process.env.OPENAI_API_KEY! });
|
|
55
|
+
const agentBox = await cloud.workspaces.open({ key: 'customer-42/main', template: 'python-node-browser', secrets: ['OPENAI_API_KEY'] });
|
|
56
|
+
await agentBox.secrets.set(['OPENAI_API_KEY', 'DATABASE_URL']); // every exec and terminal sees them
|
|
57
|
+
```
|
|
58
|
+
|
|
49
59
|
Everything exported by `@shardflux/sdk` is exported here, including `workspaceTools()` for agent
|
|
50
60
|
frameworks, the error classes and the API types. See the
|
|
51
61
|
[`@shardflux/sdk` README](https://www.npmjs.com/package/@shardflux/sdk) for the full guide.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shardflux",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Shardflux: cloud computers for AI agents. The TypeScript SDK (import { Shardflux } from 'shardflux') and the shard CLI in one package.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -40,13 +40,14 @@
|
|
|
40
40
|
"index.d.ts",
|
|
41
41
|
"cli.js",
|
|
42
42
|
"README.md",
|
|
43
|
+
"CHANGELOG.md",
|
|
43
44
|
"LICENSE"
|
|
44
45
|
],
|
|
45
46
|
"publishConfig": {
|
|
46
47
|
"access": "public"
|
|
47
48
|
},
|
|
48
49
|
"dependencies": {
|
|
49
|
-
"@shardflux/cli": "^0.
|
|
50
|
-
"@shardflux/sdk": "^0.
|
|
50
|
+
"@shardflux/cli": "^0.3.0",
|
|
51
|
+
"@shardflux/sdk": "^0.6.1"
|
|
51
52
|
}
|
|
52
53
|
}
|