trainfabric 0.1.28 → 0.1.29
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.cjs +9 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -8823,6 +8823,7 @@ var idPatterns = {
|
|
|
8823
8823
|
apiKey: /^key_[A-Za-z0-9_-]+$/,
|
|
8824
8824
|
dataset: /^ds_[A-Za-z0-9_-]+$/,
|
|
8825
8825
|
deployment: /^dep_[A-Za-z0-9_-]+$/,
|
|
8826
|
+
detection: /^det_[A-Za-z0-9_-]+$/,
|
|
8826
8827
|
model: /^mdl_[A-Za-z0-9_-]+$/,
|
|
8827
8828
|
org: /^org_[A-Za-z0-9_-]+$/,
|
|
8828
8829
|
pool: /^pool_[A-Za-z0-9_-]+$/,
|
|
@@ -8919,7 +8920,12 @@ function validateRepoPath(repoPath) {
|
|
|
8919
8920
|
if (absolute === parsed.root || absolute === import_node_os.default.homedir()) {
|
|
8920
8921
|
throw new Error(`Refusing to package unsafe repository path: ${repoPath}`);
|
|
8921
8922
|
}
|
|
8922
|
-
|
|
8923
|
+
let stat;
|
|
8924
|
+
try {
|
|
8925
|
+
stat = import_node_fs.default.statSync(absolute);
|
|
8926
|
+
} catch {
|
|
8927
|
+
throw new Error(`Repository path not found: ${repoPath}`);
|
|
8928
|
+
}
|
|
8923
8929
|
if (!stat.isDirectory()) {
|
|
8924
8930
|
throw new Error(`Repository path must be a directory: ${repoPath}`);
|
|
8925
8931
|
}
|
|
@@ -9133,7 +9139,7 @@ function buildComputeSpec(options) {
|
|
|
9133
9139
|
|
|
9134
9140
|
// src/index.ts
|
|
9135
9141
|
var DEFAULT_TRAINFABRIC_API_URL2 = "https://api.trainfabric.com";
|
|
9136
|
-
var CLI_VERSION = "0.1.
|
|
9142
|
+
var CLI_VERSION = "0.1.29";
|
|
9137
9143
|
var CONFIG_DIR = import_node_path3.default.join(import_node_os2.default.homedir(), ".trainfabric");
|
|
9138
9144
|
var CONFIG_PATH = import_node_path3.default.join(CONFIG_DIR, "config.json");
|
|
9139
9145
|
var FALLBACK_SECRET_PATH = import_node_path3.default.join(CONFIG_DIR, "session.enc");
|
|
@@ -9817,7 +9823,7 @@ program2.command("runtime:build").option("--project <projectId>").requiredOption
|
|
|
9817
9823
|
printJson(
|
|
9818
9824
|
await createClient(config).runtime.build({
|
|
9819
9825
|
projectId: requireProjectId(options, config),
|
|
9820
|
-
detectionId: options.detection
|
|
9826
|
+
detectionId: normalizeId(options.detection, "detection", "Runtime detection ID")
|
|
9821
9827
|
})
|
|
9822
9828
|
);
|
|
9823
9829
|
});
|