@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 +14 -38
- package/dist/index.d.ts +14 -38
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
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
|
|
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
|
-
|
|
8
|
-
|
|
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
|
|
13
|
+
/** Railway project ID */
|
|
11
14
|
projectId?: string;
|
|
12
|
-
/** Railway
|
|
15
|
+
/** Railway environment ID */
|
|
13
16
|
environmentId?: string;
|
|
14
17
|
}
|
|
15
18
|
/**
|
|
16
|
-
* Railway
|
|
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
|
-
*
|
|
44
|
-
* await sandbox.destroy();
|
|
45
|
-
* ```
|
|
21
|
+
* This package no longer provides a direct provider implementation.
|
|
46
22
|
*/
|
|
47
|
-
declare
|
|
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
|
|
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
|
-
|
|
8
|
-
|
|
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
|
|
13
|
+
/** Railway project ID */
|
|
11
14
|
projectId?: string;
|
|
12
|
-
/** Railway
|
|
15
|
+
/** Railway environment ID */
|
|
13
16
|
environmentId?: string;
|
|
14
17
|
}
|
|
15
18
|
/**
|
|
16
|
-
* Railway
|
|
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
|
-
*
|
|
44
|
-
* await sandbox.destroy();
|
|
45
|
-
* ```
|
|
21
|
+
* This package no longer provides a direct provider implementation.
|
|
46
22
|
*/
|
|
47
|
-
declare
|
|
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
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
};
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["/**\n * Railway
|
|
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
|
|
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.
|
|
22
|
-
"computesdk": "
|
|
21
|
+
"@computesdk/provider": "1.4.0",
|
|
22
|
+
"computesdk": "3.0.0"
|
|
23
23
|
},
|
|
24
24
|
"keywords": [
|
|
25
25
|
"computesdk",
|