@celestoai/sdk 0.1.6 → 0.1.7

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.
Files changed (40) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +89 -270
  3. package/dist/{chunk-B4JRBDUO.js → chunk-3HEUI5UL.js} +278 -304
  4. package/dist/chunk-3HEUI5UL.js.map +1 -0
  5. package/dist/computers/index.cjs +148 -345
  6. package/dist/computers/index.cjs.map +1 -1
  7. package/dist/computers/index.d.cts +1 -270
  8. package/dist/computers/index.d.ts +1 -270
  9. package/dist/computers/index.js +1 -2
  10. package/dist/index-59d7VJXL.d.cts +303 -0
  11. package/dist/index-59d7VJXL.d.ts +303 -0
  12. package/dist/index.cjs +191 -1573
  13. package/dist/index.cjs.map +1 -1
  14. package/dist/index.d.cts +22 -4
  15. package/dist/index.d.ts +22 -4
  16. package/dist/index.js +5 -61
  17. package/package.json +25 -22
  18. package/dist/agents/index.cjs +0 -1226
  19. package/dist/agents/index.cjs.map +0 -1
  20. package/dist/agents/index.d.cts +0 -2
  21. package/dist/agents/index.d.ts +0 -2
  22. package/dist/agents/index.js +0 -60
  23. package/dist/agents/index.js.map +0 -1
  24. package/dist/chunk-6Y2YZCPU.js +0 -1007
  25. package/dist/chunk-6Y2YZCPU.js.map +0 -1
  26. package/dist/chunk-B4JRBDUO.js.map +0 -1
  27. package/dist/chunk-P7F52CSQ.js +0 -177
  28. package/dist/chunk-P7F52CSQ.js.map +0 -1
  29. package/dist/chunk-THPVQCTE.js +0 -183
  30. package/dist/chunk-THPVQCTE.js.map +0 -1
  31. package/dist/config-dDPvsH-K.d.cts +0 -42
  32. package/dist/config-dDPvsH-K.d.ts +0 -42
  33. package/dist/gatekeeper/index.cjs +0 -348
  34. package/dist/gatekeeper/index.cjs.map +0 -1
  35. package/dist/gatekeeper/index.d.cts +0 -104
  36. package/dist/gatekeeper/index.d.ts +0 -104
  37. package/dist/gatekeeper/index.js +0 -8
  38. package/dist/gatekeeper/index.js.map +0 -1
  39. package/dist/index-Cii1_OFg.d.ts +0 -696
  40. package/dist/index-CsEA7qMF.d.cts +0 -696
package/dist/index.js CHANGED
@@ -1,75 +1,19 @@
1
1
  import {
2
- GatekeeperClient
3
- } from "./chunk-P7F52CSQ.js";
4
- import {
2
+ CelestoApiError,
3
+ CelestoError,
4
+ CelestoNetworkError,
5
5
  Computer,
6
6
  MISSING_CREDENTIALS_MESSAGE,
7
7
  resolveCelestoApiKey,
8
8
  resolveClientConfig
9
- } from "./chunk-B4JRBDUO.js";
10
- import {
11
- ALLOWED_CONFIG_KEYS,
12
- AgentArchivedError,
13
- AgentsClient,
14
- BudgetExceededError,
15
- ConfigKeyNotAllowedError,
16
- EVENTS_VERSION,
17
- EndUsersClient,
18
- IdempotencyConflictError,
19
- KNOWN_EVENTS,
20
- ManagedAgentError,
21
- ManagedAgentsClient,
22
- ModelRequiresOwnKeyError,
23
- ProviderNotConnectedError,
24
- RunsClient,
25
- RuntimeSettingsClient,
26
- SessionAgentMismatchError,
27
- SessionBusyError,
28
- SessionEndUserMismatchError,
29
- SessionsClient,
30
- eventText,
31
- isTerminal,
32
- parseRunEvents,
33
- parseSseFrames,
34
- toRunEvent
35
- } from "./chunk-6Y2YZCPU.js";
36
- import {
37
- CelestoApiError,
38
- CelestoError,
39
- CelestoNetworkError
40
- } from "./chunk-THPVQCTE.js";
9
+ } from "./chunk-3HEUI5UL.js";
41
10
  export {
42
- ALLOWED_CONFIG_KEYS,
43
- AgentArchivedError,
44
- AgentsClient,
45
- BudgetExceededError,
46
11
  CelestoApiError,
47
12
  CelestoError,
48
13
  CelestoNetworkError,
49
14
  Computer,
50
- ConfigKeyNotAllowedError,
51
- EVENTS_VERSION,
52
- EndUsersClient,
53
- GatekeeperClient,
54
- IdempotencyConflictError,
55
- KNOWN_EVENTS,
56
15
  MISSING_CREDENTIALS_MESSAGE,
57
- ManagedAgentError,
58
- ManagedAgentsClient,
59
- ModelRequiresOwnKeyError,
60
- ProviderNotConnectedError,
61
- RunsClient,
62
- RuntimeSettingsClient,
63
- SessionAgentMismatchError,
64
- SessionBusyError,
65
- SessionEndUserMismatchError,
66
- SessionsClient,
67
- eventText,
68
- isTerminal,
69
- parseRunEvents,
70
- parseSseFrames,
71
16
  resolveCelestoApiKey,
72
- resolveClientConfig,
73
- toRunEvent
17
+ resolveClientConfig
74
18
  };
75
19
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@celestoai/sdk",
3
- "version": "0.1.6",
4
- "description": "Celesto SDK \u2014 managed agents, Gatekeeper, and Computers clients for Node.js",
3
+ "version": "0.1.7",
4
+ "description": "Run and manage Celesto Cloud computers from Node.js",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
8
- "url": "git+https://github.com/CelestoAI/sdk.git",
9
- "directory": "ts"
8
+ "url": "git+https://github.com/CelestoAI/celesto.git",
9
+ "directory": "ts-cloud"
10
10
  },
11
11
  "type": "module",
12
12
  "main": "./dist/index.cjs",
@@ -14,28 +14,29 @@
14
14
  "types": "./dist/index.d.ts",
15
15
  "exports": {
16
16
  ".": {
17
- "types": "./dist/index.d.ts",
18
- "import": "./dist/index.js",
19
- "require": "./dist/index.cjs"
20
- },
21
- "./gatekeeper": {
22
- "types": "./dist/gatekeeper/index.d.ts",
23
- "import": "./dist/gatekeeper/index.js",
24
- "require": "./dist/gatekeeper/index.cjs"
17
+ "import": {
18
+ "types": "./dist/index.d.ts",
19
+ "default": "./dist/index.js"
20
+ },
21
+ "require": {
22
+ "types": "./dist/index.d.cts",
23
+ "default": "./dist/index.cjs"
24
+ }
25
25
  },
26
26
  "./computers": {
27
- "types": "./dist/computers/index.d.ts",
28
- "import": "./dist/computers/index.js",
29
- "require": "./dist/computers/index.cjs"
30
- },
31
- "./agents": {
32
- "types": "./dist/agents/index.d.ts",
33
- "import": "./dist/agents/index.js",
34
- "require": "./dist/agents/index.cjs"
27
+ "import": {
28
+ "types": "./dist/computers/index.d.ts",
29
+ "default": "./dist/computers/index.js"
30
+ },
31
+ "require": {
32
+ "types": "./dist/computers/index.d.cts",
33
+ "default": "./dist/computers/index.cjs"
34
+ }
35
35
  }
36
36
  },
37
37
  "files": [
38
- "dist"
38
+ "dist",
39
+ "CHANGELOG.md"
39
40
  ],
40
41
  "sideEffects": false,
41
42
  "publishConfig": {
@@ -48,7 +49,9 @@
48
49
  "build": "tsup",
49
50
  "dev": "tsup --watch",
50
51
  "lint": "tsc -p tsconfig.json --noEmit",
51
- "test": "tsx --test tests/*.test.ts"
52
+ "test": "tsx --test tests/*.test.ts",
53
+ "test:package": "node --test tests/package.test.mjs",
54
+ "check": "npm run lint && npm test && npm run build && npm run test:package"
52
55
  },
53
56
  "devDependencies": {
54
57
  "@types/node": "^20.14.0",