@computesdk/railway 1.1.42 → 1.2.1

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/index.d.mts CHANGED
@@ -1,49 +1,25 @@
1
- import * as computesdk from 'computesdk';
2
- import { ComputeConfig } from '@computesdk/provider';
3
-
4
1
  /**
5
- * Railway provider configuration
2
+ * Railway package placeholder.
3
+ *
4
+ * Railway support previously depended on the hosted control-plane transport,
5
+ * which has been removed from computesdk.
6
6
  */
7
- interface RailwayConfig extends ComputeConfig {
8
- /** Railway API key - if not provided, will fallback to RAILWAY_API_KEY environment variable */
7
+ /**
8
+ * Railway configuration (kept for compile-time compatibility of callers).
9
+ */
10
+ interface RailwayConfig {
11
+ /** Railway API key */
9
12
  apiKey?: string;
10
- /** Railway Project ID - if not provided, will fallback to RAILWAY_PROJECT_ID environment variable */
13
+ /** Railway project ID */
11
14
  projectId?: string;
12
- /** Railway Environment ID - if not provided, will fallback to RAILWAY_ENVIRONMENT_ID environment variable */
15
+ /** Railway environment ID */
13
16
  environmentId?: string;
14
17
  }
15
18
  /**
16
- * Railway compute factory - creates configured compute instances
17
- *
18
- * Railway is an infrastructure provider that becomes a full sandbox provider
19
- * via the ComputeSDK gateway. The gateway provisions Railway services with the
20
- * daemon pre-installed, enabling full sandbox capabilities.
21
- *
22
- * @example
23
- * ```typescript
24
- * import { railway } from '@computesdk/railway';
25
- *
26
- * const compute = railway({
27
- * apiKey: 'railway_xxx',
28
- * projectId: 'project_xxx',
29
- * environmentId: 'env_xxx'
30
- * });
31
- *
32
- * // Full compute API available (routes through gateway)
33
- * const sandbox = await compute.sandbox.create();
34
- *
35
- * // Execute code
36
- * const result = await sandbox.runCode('console.log("Hello from Railway!")');
37
- * console.log(result.stdout);
38
- *
39
- * // Filesystem operations
40
- * await sandbox.filesystem.writeFile('/tmp/test.txt', 'Hello!');
41
- * const content = await sandbox.filesystem.readFile('/tmp/test.txt');
19
+ * Railway provider entrypoint.
42
20
  *
43
- * // Cleanup
44
- * await sandbox.destroy();
45
- * ```
21
+ * This package no longer provides a direct provider implementation.
46
22
  */
47
- declare const railway: (config: RailwayConfig) => computesdk.CallableCompute;
23
+ declare function railway(_config: RailwayConfig): never;
48
24
 
49
25
  export { type RailwayConfig, railway };
package/dist/index.d.ts CHANGED
@@ -1,49 +1,25 @@
1
- import * as computesdk from 'computesdk';
2
- import { ComputeConfig } from '@computesdk/provider';
3
-
4
1
  /**
5
- * Railway provider configuration
2
+ * Railway package placeholder.
3
+ *
4
+ * Railway support previously depended on the hosted control-plane transport,
5
+ * which has been removed from computesdk.
6
6
  */
7
- interface RailwayConfig extends ComputeConfig {
8
- /** Railway API key - if not provided, will fallback to RAILWAY_API_KEY environment variable */
7
+ /**
8
+ * Railway configuration (kept for compile-time compatibility of callers).
9
+ */
10
+ interface RailwayConfig {
11
+ /** Railway API key */
9
12
  apiKey?: string;
10
- /** Railway Project ID - if not provided, will fallback to RAILWAY_PROJECT_ID environment variable */
13
+ /** Railway project ID */
11
14
  projectId?: string;
12
- /** Railway Environment ID - if not provided, will fallback to RAILWAY_ENVIRONMENT_ID environment variable */
15
+ /** Railway environment ID */
13
16
  environmentId?: string;
14
17
  }
15
18
  /**
16
- * Railway compute factory - creates configured compute instances
17
- *
18
- * Railway is an infrastructure provider that becomes a full sandbox provider
19
- * via the ComputeSDK gateway. The gateway provisions Railway services with the
20
- * daemon pre-installed, enabling full sandbox capabilities.
21
- *
22
- * @example
23
- * ```typescript
24
- * import { railway } from '@computesdk/railway';
25
- *
26
- * const compute = railway({
27
- * apiKey: 'railway_xxx',
28
- * projectId: 'project_xxx',
29
- * environmentId: 'env_xxx'
30
- * });
31
- *
32
- * // Full compute API available (routes through gateway)
33
- * const sandbox = await compute.sandbox.create();
34
- *
35
- * // Execute code
36
- * const result = await sandbox.runCode('console.log("Hello from Railway!")');
37
- * console.log(result.stdout);
38
- *
39
- * // Filesystem operations
40
- * await sandbox.filesystem.writeFile('/tmp/test.txt', 'Hello!');
41
- * const content = await sandbox.filesystem.readFile('/tmp/test.txt');
19
+ * Railway provider entrypoint.
42
20
  *
43
- * // Cleanup
44
- * await sandbox.destroy();
45
- * ```
21
+ * This package no longer provides a direct provider implementation.
46
22
  */
47
- declare const railway: (config: RailwayConfig) => computesdk.CallableCompute;
23
+ declare function railway(_config: RailwayConfig): never;
48
24
 
49
25
  export { type RailwayConfig, railway };
package/dist/index.js CHANGED
@@ -23,10 +23,11 @@ __export(index_exports, {
23
23
  railway: () => railway
24
24
  });
25
25
  module.exports = __toCommonJS(index_exports);
26
- var import_provider = require("@computesdk/provider");
27
- var railway = (0, import_provider.defineCompute)({
28
- provider: "railway"
29
- });
26
+ function railway(_config) {
27
+ throw new Error(
28
+ "@computesdk/railway is no longer supported after control-plane removal. Use a direct provider package (for example @computesdk/e2b, @computesdk/modal, @computesdk/vercel, or @computesdk/daytona) with computesdk provider/providers config."
29
+ );
30
+ }
30
31
  // Annotate the CommonJS export names for ESM import in node:
31
32
  0 && (module.exports = {
32
33
  railway
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["/**\n * Railway Provider - Compute Factory\n * \n * Provides a first-class Railway provider experience by routing all operations\n * through the ComputeSDK gateway. The gateway handles infrastructure provisioning\n * via @computesdk/gateway and installs the daemon for full sandbox capabilities.\n */\n\nimport { defineCompute, type ComputeConfig } from '@computesdk/provider';\n\n/**\n * Railway provider configuration\n */\nexport interface RailwayConfig extends ComputeConfig {\n /** Railway API key - if not provided, will fallback to RAILWAY_API_KEY environment variable */\n apiKey?: string;\n /** Railway Project ID - if not provided, will fallback to RAILWAY_PROJECT_ID environment variable */\n projectId?: string;\n /** Railway Environment ID - if not provided, will fallback to RAILWAY_ENVIRONMENT_ID environment variable */\n environmentId?: string;\n}\n\n/**\n * Railway compute factory - creates configured compute instances\n * \n * Railway is an infrastructure provider that becomes a full sandbox provider\n * via the ComputeSDK gateway. The gateway provisions Railway services with the\n * daemon pre-installed, enabling full sandbox capabilities.\n * \n * @example\n * ```typescript\n * import { railway } from '@computesdk/railway';\n * \n * const compute = railway({\n * apiKey: 'railway_xxx',\n * projectId: 'project_xxx',\n * environmentId: 'env_xxx'\n * });\n * \n * // Full compute API available (routes through gateway)\n * const sandbox = await compute.sandbox.create();\n * \n * // Execute code\n * const result = await sandbox.runCode('console.log(\"Hello from Railway!\")');\n * console.log(result.stdout);\n * \n * // Filesystem operations\n * await sandbox.filesystem.writeFile('/tmp/test.txt', 'Hello!');\n * const content = await sandbox.filesystem.readFile('/tmp/test.txt');\n * \n * // Cleanup\n * await sandbox.destroy();\n * ```\n */\nexport const railway = defineCompute<RailwayConfig>({\n provider: 'railway'\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAQA,sBAAkD;AA8C3C,IAAM,cAAU,+BAA6B;AAAA,EAClD,UAAU;AACZ,CAAC;","names":[]}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["/**\n * Railway package placeholder.\n *\n * Railway support previously depended on the hosted control-plane transport,\n * which has been removed from computesdk.\n */\n\n/**\n * Railway configuration (kept for compile-time compatibility of callers).\n */\nexport interface RailwayConfig {\n /** Railway API key */\n apiKey?: string;\n /** Railway project ID */\n projectId?: string;\n /** Railway environment ID */\n environmentId?: string;\n}\n\n/**\n * Railway provider entrypoint.\n *\n * This package no longer provides a direct provider implementation.\n */\nexport function railway(_config: RailwayConfig): never {\n throw new Error(\n '@computesdk/railway is no longer supported after control-plane removal. ' +\n 'Use a direct provider package (for example @computesdk/e2b, @computesdk/modal, @computesdk/vercel, or @computesdk/daytona) with computesdk provider/providers config.'\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAwBO,SAAS,QAAQ,SAA+B;AACrD,QAAM,IAAI;AAAA,IACR;AAAA,EAEF;AACF;","names":[]}
package/dist/index.mjs CHANGED
@@ -1,8 +1,9 @@
1
1
  // src/index.ts
2
- import { defineCompute } from "@computesdk/provider";
3
- var railway = defineCompute({
4
- provider: "railway"
5
- });
2
+ function railway(_config) {
3
+ throw new Error(
4
+ "@computesdk/railway is no longer supported after control-plane removal. Use a direct provider package (for example @computesdk/e2b, @computesdk/modal, @computesdk/vercel, or @computesdk/daytona) with computesdk provider/providers config."
5
+ );
6
+ }
6
7
  export {
7
8
  railway
8
9
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["/**\n * Railway Provider - Compute Factory\n * \n * Provides a first-class Railway provider experience by routing all operations\n * through the ComputeSDK gateway. The gateway handles infrastructure provisioning\n * via @computesdk/gateway and installs the daemon for full sandbox capabilities.\n */\n\nimport { defineCompute, type ComputeConfig } from '@computesdk/provider';\n\n/**\n * Railway provider configuration\n */\nexport interface RailwayConfig extends ComputeConfig {\n /** Railway API key - if not provided, will fallback to RAILWAY_API_KEY environment variable */\n apiKey?: string;\n /** Railway Project ID - if not provided, will fallback to RAILWAY_PROJECT_ID environment variable */\n projectId?: string;\n /** Railway Environment ID - if not provided, will fallback to RAILWAY_ENVIRONMENT_ID environment variable */\n environmentId?: string;\n}\n\n/**\n * Railway compute factory - creates configured compute instances\n * \n * Railway is an infrastructure provider that becomes a full sandbox provider\n * via the ComputeSDK gateway. The gateway provisions Railway services with the\n * daemon pre-installed, enabling full sandbox capabilities.\n * \n * @example\n * ```typescript\n * import { railway } from '@computesdk/railway';\n * \n * const compute = railway({\n * apiKey: 'railway_xxx',\n * projectId: 'project_xxx',\n * environmentId: 'env_xxx'\n * });\n * \n * // Full compute API available (routes through gateway)\n * const sandbox = await compute.sandbox.create();\n * \n * // Execute code\n * const result = await sandbox.runCode('console.log(\"Hello from Railway!\")');\n * console.log(result.stdout);\n * \n * // Filesystem operations\n * await sandbox.filesystem.writeFile('/tmp/test.txt', 'Hello!');\n * const content = await sandbox.filesystem.readFile('/tmp/test.txt');\n * \n * // Cleanup\n * await sandbox.destroy();\n * ```\n */\nexport const railway = defineCompute<RailwayConfig>({\n provider: 'railway'\n});\n"],"mappings":";AAQA,SAAS,qBAAyC;AA8C3C,IAAM,UAAU,cAA6B;AAAA,EAClD,UAAU;AACZ,CAAC;","names":[]}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["/**\n * Railway package placeholder.\n *\n * Railway support previously depended on the hosted control-plane transport,\n * which has been removed from computesdk.\n */\n\n/**\n * Railway configuration (kept for compile-time compatibility of callers).\n */\nexport interface RailwayConfig {\n /** Railway API key */\n apiKey?: string;\n /** Railway project ID */\n projectId?: string;\n /** Railway environment ID */\n environmentId?: string;\n}\n\n/**\n * Railway provider entrypoint.\n *\n * This package no longer provides a direct provider implementation.\n */\nexport function railway(_config: RailwayConfig): never {\n throw new Error(\n '@computesdk/railway is no longer supported after control-plane removal. ' +\n 'Use a direct provider package (for example @computesdk/e2b, @computesdk/modal, @computesdk/vercel, or @computesdk/daytona) with computesdk provider/providers config.'\n );\n}\n"],"mappings":";AAwBO,SAAS,QAAQ,SAA+B;AACrD,QAAM,IAAI;AAAA,IACR;AAAA,EAEF;AACF;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@computesdk/railway",
3
- "version": "1.1.42",
3
+ "version": "1.2.1",
4
4
  "description": "Railway provider for ComputeSDK - simple cloud deployment for containerized sandboxes",
5
5
  "author": "ComputeSDK Team",
6
6
  "license": "MIT",
@@ -18,8 +18,8 @@
18
18
  "dist"
19
19
  ],
20
20
  "dependencies": {
21
- "@computesdk/provider": "1.2.0",
22
- "computesdk": "2.5.4"
21
+ "@computesdk/provider": "1.4.0",
22
+ "computesdk": "3.0.0"
23
23
  },
24
24
  "keywords": [
25
25
  "computesdk",