@elevasis/sdk 0.5.19 → 0.5.20

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/cli.cjs CHANGED
@@ -43873,7 +43873,7 @@ async function apiDelete(endpoint, apiUrl = resolveApiUrl()) {
43873
43873
  // package.json
43874
43874
  var package_default = {
43875
43875
  name: "@elevasis/sdk",
43876
- version: "0.5.19",
43876
+ version: "0.5.20",
43877
43877
  description: "SDK for building Elevasis organization resources",
43878
43878
  type: "module",
43879
43879
  bin: {
@@ -4685,15 +4685,17 @@ var platform = {
4685
4685
  credential: options.credential
4686
4686
  };
4687
4687
  return new Promise((resolve, reject) => {
4688
- const timeoutMs = options.tool === "llm" ? 12e4 : options.tool === "execution" ? 3e5 : 6e4;
4689
- const timeoutLabel = options.tool === "llm" ? "120s" : options.tool === "execution" ? "300s" : "60s";
4688
+ const timeoutMs = 6e5;
4689
+ const timeoutLabel = "600s";
4690
4690
  const timer = setTimeout(() => {
4691
4691
  pendingCalls.delete(id);
4692
- reject(new PlatformToolError(
4693
- `Platform tool call timed out after ${timeoutLabel}: ${options.tool}.${options.method}`,
4694
- "timeout_error",
4695
- true
4696
- ));
4692
+ reject(
4693
+ new PlatformToolError(
4694
+ `Platform tool call timed out after ${timeoutLabel}: ${options.tool}.${options.method}`,
4695
+ "timeout_error",
4696
+ true
4697
+ )
4698
+ );
4697
4699
  }, timeoutMs);
4698
4700
  pendingCalls.set(id, {
4699
4701
  resolve: (value) => {
@@ -4737,11 +4739,7 @@ var platform = {
4737
4739
  return new Promise((resolve, reject) => {
4738
4740
  const timer = setTimeout(() => {
4739
4741
  pendingCredentials.delete(id);
4740
- reject(new PlatformToolError(
4741
- `Credential request timed out after 60s: ${name}`,
4742
- "timeout_error",
4743
- true
4744
- ));
4742
+ reject(new PlatformToolError(`Credential request timed out after 60s: ${name}`, "timeout_error", true));
4745
4743
  }, 6e4);
4746
4744
  pendingCredentials.set(id, {
4747
4745
  resolve: (value) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elevasis/sdk",
3
- "version": "0.5.19",
3
+ "version": "0.5.20",
4
4
  "description": "SDK for building Elevasis organization resources",
5
5
  "type": "module",
6
6
  "bin": {
@@ -32,6 +32,11 @@
32
32
  "dist/types/templates.d.ts",
33
33
  "reference/"
34
34
  ],
35
+ "scripts": {
36
+ "build": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && tsc -p tsconfig.core-dts.json && tsc -p tsconfig.build.json && tsup && rollup -c rollup.dts.config.mjs && esbuild src/cli/index.ts --bundle --platform=node --outfile=dist/cli.cjs --format=cjs --external:esbuild --external:jiti --banner:js=\"#!/usr/bin/env node\" && node scripts/copy-reference-docs.mjs && node scripts/generate-navigation.mjs",
37
+ "check-types": "tsc --noEmit",
38
+ "test:bundle": "pnpm build && vitest run --config vitest.bundle.config.ts"
39
+ },
35
40
  "dependencies": {
36
41
  "esbuild": "^0.25.0",
37
42
  "jiti": "^2.0.0"
@@ -40,6 +45,8 @@
40
45
  "zod": "^4.1.0"
41
46
  },
42
47
  "devDependencies": {
48
+ "@repo/core": "workspace:*",
49
+ "@repo/typescript-config": "workspace:*",
43
50
  "@types/node": "^22.0.0",
44
51
  "chalk": "^5.3.0",
45
52
  "commander": "^11.0.0",
@@ -50,13 +57,6 @@
50
57
  "rollup-plugin-dts": "^6.3.0",
51
58
  "tsup": "^8.0.0",
52
59
  "typescript": "5.9.2",
53
- "zod": "^4.1.0",
54
- "@repo/core": "0.0.0",
55
- "@repo/typescript-config": "0.0.0"
56
- },
57
- "scripts": {
58
- "build": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && tsc -p tsconfig.core-dts.json && tsc -p tsconfig.build.json && tsup && rollup -c rollup.dts.config.mjs && esbuild src/cli/index.ts --bundle --platform=node --outfile=dist/cli.cjs --format=cjs --external:esbuild --external:jiti --banner:js=\"#!/usr/bin/env node\" && node scripts/copy-reference-docs.mjs && node scripts/generate-navigation.mjs",
59
- "check-types": "tsc --noEmit",
60
- "test:bundle": "pnpm build && vitest run --config vitest.bundle.config.ts"
60
+ "zod": "^4.1.0"
61
61
  }
62
- }
62
+ }