@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.
- package/CHANGELOG.md +24 -0
- package/README.md +89 -270
- package/dist/{chunk-B4JRBDUO.js → chunk-3HEUI5UL.js} +278 -304
- package/dist/chunk-3HEUI5UL.js.map +1 -0
- package/dist/computers/index.cjs +148 -345
- package/dist/computers/index.cjs.map +1 -1
- package/dist/computers/index.d.cts +1 -270
- package/dist/computers/index.d.ts +1 -270
- package/dist/computers/index.js +1 -2
- package/dist/index-59d7VJXL.d.cts +303 -0
- package/dist/index-59d7VJXL.d.ts +303 -0
- package/dist/index.cjs +191 -1573
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +22 -4
- package/dist/index.d.ts +22 -4
- package/dist/index.js +5 -61
- package/package.json +25 -22
- package/dist/agents/index.cjs +0 -1226
- package/dist/agents/index.cjs.map +0 -1
- package/dist/agents/index.d.cts +0 -2
- package/dist/agents/index.d.ts +0 -2
- package/dist/agents/index.js +0 -60
- package/dist/agents/index.js.map +0 -1
- package/dist/chunk-6Y2YZCPU.js +0 -1007
- package/dist/chunk-6Y2YZCPU.js.map +0 -1
- package/dist/chunk-B4JRBDUO.js.map +0 -1
- package/dist/chunk-P7F52CSQ.js +0 -177
- package/dist/chunk-P7F52CSQ.js.map +0 -1
- package/dist/chunk-THPVQCTE.js +0 -183
- package/dist/chunk-THPVQCTE.js.map +0 -1
- package/dist/config-dDPvsH-K.d.cts +0 -42
- package/dist/config-dDPvsH-K.d.ts +0 -42
- package/dist/gatekeeper/index.cjs +0 -348
- package/dist/gatekeeper/index.cjs.map +0 -1
- package/dist/gatekeeper/index.d.cts +0 -104
- package/dist/gatekeeper/index.d.ts +0 -104
- package/dist/gatekeeper/index.js +0 -8
- package/dist/gatekeeper/index.js.map +0 -1
- package/dist/index-Cii1_OFg.d.ts +0 -696
- package/dist/index-CsEA7qMF.d.cts +0 -696
package/dist/index.js
CHANGED
|
@@ -1,75 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
CelestoApiError,
|
|
3
|
+
CelestoError,
|
|
4
|
+
CelestoNetworkError,
|
|
5
5
|
Computer,
|
|
6
6
|
MISSING_CREDENTIALS_MESSAGE,
|
|
7
7
|
resolveCelestoApiKey,
|
|
8
8
|
resolveClientConfig
|
|
9
|
-
} from "./chunk-
|
|
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.
|
|
4
|
-
"description": "
|
|
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/
|
|
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
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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",
|