trainfabric 0.1.21 → 0.1.22

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 (2) hide show
  1. package/dist/index.cjs +12 -3
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -8817,13 +8817,22 @@ var import_node_fs = __toESM(require("node:fs"), 1);
8817
8817
  var import_node_os = __toESM(require("node:os"), 1);
8818
8818
  var import_node_path2 = __toESM(require("node:path"), 1);
8819
8819
  function collectRuntimeFiles(repoPath) {
8820
- const manifestFiles = /* @__PURE__ */ new Set(["training.yaml", "train.runtime.yaml", "pyproject.toml", "requirements.txt", "environment.yml", "Dockerfile"]);
8820
+ const manifestFiles = /* @__PURE__ */ new Set([
8821
+ "training.yaml",
8822
+ "train.runtime.yaml",
8823
+ "pyproject.toml",
8824
+ "requirements.txt",
8825
+ "environment.yml",
8826
+ "Dockerfile"
8827
+ ]);
8828
+ const configExtensions = /* @__PURE__ */ new Set([".yaml", ".yml", ".json", ".toml"]);
8821
8829
  const ignoredDirectories = /* @__PURE__ */ new Set([".git", ".hg", ".svn", "node_modules", ".venv", "venv", "__pycache__", ".mypy_cache", ".pytest_cache", "dist", "build"]);
8822
8830
  const found = [];
8823
8831
  const maxFiles = 256;
8824
8832
  const maxFileBytes = 256 * 1024;
8825
8833
  function shouldIncludeFile(fileName) {
8826
- return manifestFiles.has(fileName) || fileName.endsWith(".py");
8834
+ const extension = import_node_path2.default.extname(fileName).toLowerCase();
8835
+ return manifestFiles.has(fileName) || configExtensions.has(extension) || fileName.endsWith(".py");
8827
8836
  }
8828
8837
  function walk(currentPath) {
8829
8838
  if (found.length >= maxFiles) {
@@ -8945,7 +8954,7 @@ function buildComputeSpec(options) {
8945
8954
 
8946
8955
  // src/index.ts
8947
8956
  var DEFAULT_TRAINFABRIC_API_URL2 = "https://api.trainfabric.com";
8948
- var CLI_VERSION = "0.1.21";
8957
+ var CLI_VERSION = "0.1.22";
8949
8958
  var CONFIG_DIR = import_node_path3.default.join(import_node_os2.default.homedir(), ".trainfabric");
8950
8959
  var CONFIG_PATH = import_node_path3.default.join(CONFIG_DIR, "config.json");
8951
8960
  var FALLBACK_SECRET_PATH = import_node_path3.default.join(CONFIG_DIR, "session.enc");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trainfabric",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "description": "Trainfabric CLI for launching GPU training jobs on the hosted Trainfabric backend.",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",