@fileverse/api 0.0.8 → 0.0.10

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/index.js CHANGED
@@ -97,7 +97,12 @@ var init_config = __esm({
97
97
  init_constants();
98
98
  projectEnvPath = path4.join(process.cwd(), "config", ".env");
99
99
  userEnvPath = path4.join(os2.homedir(), ".fileverse", ".env");
100
- loadConfig(false);
100
+ if (typeof globalThis.process !== "undefined" && typeof globalThis.process.cwd === "function") {
101
+ try {
102
+ loadConfig(false);
103
+ } catch {
104
+ }
105
+ }
101
106
  config = {
102
107
  ...STATIC_CONFIG,
103
108
  get SERVICE_NAME() {
@@ -384,6 +389,7 @@ var init_publish = __esm({
384
389
  init_smart_agent();
385
390
  init_file_manager();
386
391
  init_config();
392
+ init_pimlico_utils();
387
393
  }
388
394
  });
389
395
 
@@ -1131,7 +1137,7 @@ CREATE TABLE IF NOT EXISTS events (
1131
1137
  type TEXT NOT NULL CHECK (type IN ('create', 'update', 'delete')),
1132
1138
  timestamp BIGINT NOT NULL,
1133
1139
  fileId TEXT NOT NULL,
1134
- status TEXT NOT NULL DEFAULT 'pending' CHECK (status IN ('pending', 'processing', 'processed', 'failed')),
1140
+ status TEXT NOT NULL DEFAULT 'pending' CHECK (status IN ('pending', 'processing', 'submitted', 'processed', 'failed')),
1135
1141
  retryCount INTEGER NOT NULL DEFAULT 0,
1136
1142
  lastError TEXT,
1137
1143
  lockedAt BIGINT,