attio 0.0.1-experimental.20251104.3 → 0.0.1-experimental.20251104.4

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/lib/attio.js +4 -657
  2. package/package.json +1 -1
package/lib/attio.js CHANGED
@@ -40,648 +40,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
40
40
  ));
41
41
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
42
42
 
43
- // ../../../node_modules/rimraf/rimraf.js
44
- var require_rimraf = __commonJS({
45
- "../../../node_modules/rimraf/rimraf.js"(exports, module) {
46
- var assert = __require("assert");
47
- var path23 = __require("path");
48
- var fs19 = __require("fs");
49
- var glob2 = void 0;
50
- try {
51
- glob2 = __require("glob");
52
- } catch (_err) {
53
- }
54
- var defaultGlobOpts = {
55
- nosort: true,
56
- silent: true
57
- };
58
- var timeout = 0;
59
- var isWindows = process.platform === "win32";
60
- var defaults = (options) => {
61
- const methods = [
62
- "unlink",
63
- "chmod",
64
- "stat",
65
- "lstat",
66
- "rmdir",
67
- "readdir"
68
- ];
69
- methods.forEach((m) => {
70
- options[m] = options[m] || fs19[m];
71
- m = m + "Sync";
72
- options[m] = options[m] || fs19[m];
73
- });
74
- options.maxBusyTries = options.maxBusyTries || 3;
75
- options.emfileWait = options.emfileWait || 1e3;
76
- if (options.glob === false) {
77
- options.disableGlob = true;
78
- }
79
- if (options.disableGlob !== true && glob2 === void 0) {
80
- throw Error("glob dependency not found, set `options.disableGlob = true` if intentional");
81
- }
82
- options.disableGlob = options.disableGlob || false;
83
- options.glob = options.glob || defaultGlobOpts;
84
- };
85
- var rimraf = (p, options, cb) => {
86
- if (typeof options === "function") {
87
- cb = options;
88
- options = {};
89
- }
90
- assert(p, "rimraf: missing path");
91
- assert.equal(typeof p, "string", "rimraf: path should be a string");
92
- assert.equal(typeof cb, "function", "rimraf: callback function required");
93
- assert(options, "rimraf: invalid options argument provided");
94
- assert.equal(typeof options, "object", "rimraf: options should be object");
95
- defaults(options);
96
- let busyTries = 0;
97
- let errState = null;
98
- let n = 0;
99
- const next = (er) => {
100
- errState = errState || er;
101
- if (--n === 0)
102
- cb(errState);
103
- };
104
- const afterGlob = (er, results) => {
105
- if (er)
106
- return cb(er);
107
- n = results.length;
108
- if (n === 0)
109
- return cb();
110
- results.forEach((p2) => {
111
- const CB = (er2) => {
112
- if (er2) {
113
- if ((er2.code === "EBUSY" || er2.code === "ENOTEMPTY" || er2.code === "EPERM") && busyTries < options.maxBusyTries) {
114
- busyTries++;
115
- return setTimeout(() => rimraf_(p2, options, CB), busyTries * 100);
116
- }
117
- if (er2.code === "EMFILE" && timeout < options.emfileWait) {
118
- return setTimeout(() => rimraf_(p2, options, CB), timeout++);
119
- }
120
- if (er2.code === "ENOENT") er2 = null;
121
- }
122
- timeout = 0;
123
- next(er2);
124
- };
125
- rimraf_(p2, options, CB);
126
- });
127
- };
128
- if (options.disableGlob || !glob2.hasMagic(p))
129
- return afterGlob(null, [p]);
130
- options.lstat(p, (er, stat) => {
131
- if (!er)
132
- return afterGlob(null, [p]);
133
- glob2(p, options.glob, afterGlob);
134
- });
135
- };
136
- var rimraf_ = (p, options, cb) => {
137
- assert(p);
138
- assert(options);
139
- assert(typeof cb === "function");
140
- options.lstat(p, (er, st) => {
141
- if (er && er.code === "ENOENT")
142
- return cb(null);
143
- if (er && er.code === "EPERM" && isWindows)
144
- fixWinEPERM(p, options, er, cb);
145
- if (st && st.isDirectory())
146
- return rmdir(p, options, er, cb);
147
- options.unlink(p, (er2) => {
148
- if (er2) {
149
- if (er2.code === "ENOENT")
150
- return cb(null);
151
- if (er2.code === "EPERM")
152
- return isWindows ? fixWinEPERM(p, options, er2, cb) : rmdir(p, options, er2, cb);
153
- if (er2.code === "EISDIR")
154
- return rmdir(p, options, er2, cb);
155
- }
156
- return cb(er2);
157
- });
158
- });
159
- };
160
- var fixWinEPERM = (p, options, er, cb) => {
161
- assert(p);
162
- assert(options);
163
- assert(typeof cb === "function");
164
- options.chmod(p, 438, (er2) => {
165
- if (er2)
166
- cb(er2.code === "ENOENT" ? null : er);
167
- else
168
- options.stat(p, (er3, stats) => {
169
- if (er3)
170
- cb(er3.code === "ENOENT" ? null : er);
171
- else if (stats.isDirectory())
172
- rmdir(p, options, er, cb);
173
- else
174
- options.unlink(p, cb);
175
- });
176
- });
177
- };
178
- var fixWinEPERMSync = (p, options, er) => {
179
- assert(p);
180
- assert(options);
181
- try {
182
- options.chmodSync(p, 438);
183
- } catch (er2) {
184
- if (er2.code === "ENOENT")
185
- return;
186
- else
187
- throw er;
188
- }
189
- let stats;
190
- try {
191
- stats = options.statSync(p);
192
- } catch (er3) {
193
- if (er3.code === "ENOENT")
194
- return;
195
- else
196
- throw er;
197
- }
198
- if (stats.isDirectory())
199
- rmdirSync(p, options, er);
200
- else
201
- options.unlinkSync(p);
202
- };
203
- var rmdir = (p, options, originalEr, cb) => {
204
- assert(p);
205
- assert(options);
206
- assert(typeof cb === "function");
207
- options.rmdir(p, (er) => {
208
- if (er && (er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM"))
209
- rmkids(p, options, cb);
210
- else if (er && er.code === "ENOTDIR")
211
- cb(originalEr);
212
- else
213
- cb(er);
214
- });
215
- };
216
- var rmkids = (p, options, cb) => {
217
- assert(p);
218
- assert(options);
219
- assert(typeof cb === "function");
220
- options.readdir(p, (er, files) => {
221
- if (er)
222
- return cb(er);
223
- let n = files.length;
224
- if (n === 0)
225
- return options.rmdir(p, cb);
226
- let errState;
227
- files.forEach((f) => {
228
- rimraf(path23.join(p, f), options, (er2) => {
229
- if (errState)
230
- return;
231
- if (er2)
232
- return cb(errState = er2);
233
- if (--n === 0)
234
- options.rmdir(p, cb);
235
- });
236
- });
237
- });
238
- };
239
- var rimrafSync = (p, options) => {
240
- options = options || {};
241
- defaults(options);
242
- assert(p, "rimraf: missing path");
243
- assert.equal(typeof p, "string", "rimraf: path should be a string");
244
- assert(options, "rimraf: missing options");
245
- assert.equal(typeof options, "object", "rimraf: options should be object");
246
- let results;
247
- if (options.disableGlob || !glob2.hasMagic(p)) {
248
- results = [p];
249
- } else {
250
- try {
251
- options.lstatSync(p);
252
- results = [p];
253
- } catch (er) {
254
- results = glob2.sync(p, options.glob);
255
- }
256
- }
257
- if (!results.length)
258
- return;
259
- for (let i = 0; i < results.length; i++) {
260
- const p2 = results[i];
261
- let st;
262
- try {
263
- st = options.lstatSync(p2);
264
- } catch (er) {
265
- if (er.code === "ENOENT")
266
- return;
267
- if (er.code === "EPERM" && isWindows)
268
- fixWinEPERMSync(p2, options, er);
269
- }
270
- try {
271
- if (st && st.isDirectory())
272
- rmdirSync(p2, options, null);
273
- else
274
- options.unlinkSync(p2);
275
- } catch (er) {
276
- if (er.code === "ENOENT")
277
- return;
278
- if (er.code === "EPERM")
279
- return isWindows ? fixWinEPERMSync(p2, options, er) : rmdirSync(p2, options, er);
280
- if (er.code !== "EISDIR")
281
- throw er;
282
- rmdirSync(p2, options, er);
283
- }
284
- }
285
- };
286
- var rmdirSync = (p, options, originalEr) => {
287
- assert(p);
288
- assert(options);
289
- try {
290
- options.rmdirSync(p);
291
- } catch (er) {
292
- if (er.code === "ENOENT")
293
- return;
294
- if (er.code === "ENOTDIR")
295
- throw originalEr;
296
- if (er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM")
297
- rmkidsSync(p, options);
298
- }
299
- };
300
- var rmkidsSync = (p, options) => {
301
- assert(p);
302
- assert(options);
303
- options.readdirSync(p).forEach((f) => rimrafSync(path23.join(p, f), options));
304
- const retries = isWindows ? 100 : 1;
305
- let i = 0;
306
- do {
307
- let threw = true;
308
- try {
309
- const ret = options.rmdirSync(p, options);
310
- threw = false;
311
- return ret;
312
- } finally {
313
- if (++i < retries && threw)
314
- continue;
315
- }
316
- } while (true);
317
- };
318
- module.exports = rimraf;
319
- rimraf.sync = rimrafSync;
320
- }
321
- });
322
-
323
- // ../../../node_modules/tmp-promise/node_modules/tmp/lib/tmp.js
324
- var require_tmp = __commonJS({
325
- "../../../node_modules/tmp-promise/node_modules/tmp/lib/tmp.js"(exports, module) {
326
- var fs19 = __require("fs");
327
- var os = __require("os");
328
- var path23 = __require("path");
329
- var crypto4 = __require("crypto");
330
- var _c = { fs: fs19.constants, os: os.constants };
331
- var rimraf = require_rimraf();
332
- var RANDOM_CHARS = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
333
- var TEMPLATE_PATTERN = /XXXXXX/;
334
- var DEFAULT_TRIES = 3;
335
- var CREATE_FLAGS = (_c.O_CREAT || _c.fs.O_CREAT) | (_c.O_EXCL || _c.fs.O_EXCL) | (_c.O_RDWR || _c.fs.O_RDWR);
336
- var IS_WIN32 = os.platform() === "win32";
337
- var EBADF = _c.EBADF || _c.os.errno.EBADF;
338
- var ENOENT = _c.ENOENT || _c.os.errno.ENOENT;
339
- var DIR_MODE = 448;
340
- var FILE_MODE = 384;
341
- var EXIT = "exit";
342
- var _removeObjects = [];
343
- var FN_RMDIR_SYNC = fs19.rmdirSync.bind(fs19);
344
- var FN_RIMRAF_SYNC = rimraf.sync;
345
- var _gracefulCleanup = false;
346
- function tmpName(options, callback) {
347
- const args = _parseArguments(options, callback), opts = args[0], cb = args[1];
348
- try {
349
- _assertAndSanitizeOptions(opts);
350
- } catch (err) {
351
- return cb(err);
352
- }
353
- let tries = opts.tries;
354
- (function _getUniqueName() {
355
- try {
356
- const name = _generateTmpName(opts);
357
- fs19.stat(name, function(err) {
358
- if (!err) {
359
- if (tries-- > 0) return _getUniqueName();
360
- return cb(new Error("Could not get a unique tmp filename, max tries reached " + name));
361
- }
362
- cb(null, name);
363
- });
364
- } catch (err) {
365
- cb(err);
366
- }
367
- })();
368
- }
369
- function tmpNameSync(options) {
370
- const args = _parseArguments(options), opts = args[0];
371
- _assertAndSanitizeOptions(opts);
372
- let tries = opts.tries;
373
- do {
374
- const name = _generateTmpName(opts);
375
- try {
376
- fs19.statSync(name);
377
- } catch (e) {
378
- return name;
379
- }
380
- } while (tries-- > 0);
381
- throw new Error("Could not get a unique tmp filename, max tries reached");
382
- }
383
- function file(options, callback) {
384
- const args = _parseArguments(options, callback), opts = args[0], cb = args[1];
385
- tmpName(opts, function _tmpNameCreated(err, name) {
386
- if (err) return cb(err);
387
- fs19.open(name, CREATE_FLAGS, opts.mode || FILE_MODE, function _fileCreated(err2, fd) {
388
- if (err2) return cb(err2);
389
- if (opts.discardDescriptor) {
390
- return fs19.close(fd, function _discardCallback(possibleErr) {
391
- return cb(possibleErr, name, void 0, _prepareTmpFileRemoveCallback(name, -1, opts, false));
392
- });
393
- } else {
394
- const discardOrDetachDescriptor = opts.discardDescriptor || opts.detachDescriptor;
395
- cb(null, name, fd, _prepareTmpFileRemoveCallback(name, discardOrDetachDescriptor ? -1 : fd, opts, false));
396
- }
397
- });
398
- });
399
- }
400
- function fileSync(options) {
401
- const args = _parseArguments(options), opts = args[0];
402
- const discardOrDetachDescriptor = opts.discardDescriptor || opts.detachDescriptor;
403
- const name = tmpNameSync(opts);
404
- var fd = fs19.openSync(name, CREATE_FLAGS, opts.mode || FILE_MODE);
405
- if (opts.discardDescriptor) {
406
- fs19.closeSync(fd);
407
- fd = void 0;
408
- }
409
- return {
410
- name,
411
- fd,
412
- removeCallback: _prepareTmpFileRemoveCallback(name, discardOrDetachDescriptor ? -1 : fd, opts, true)
413
- };
414
- }
415
- function dir(options, callback) {
416
- const args = _parseArguments(options, callback), opts = args[0], cb = args[1];
417
- tmpName(opts, function _tmpNameCreated(err, name) {
418
- if (err) return cb(err);
419
- fs19.mkdir(name, opts.mode || DIR_MODE, function _dirCreated(err2) {
420
- if (err2) return cb(err2);
421
- cb(null, name, _prepareTmpDirRemoveCallback(name, opts, false));
422
- });
423
- });
424
- }
425
- function dirSync(options) {
426
- const args = _parseArguments(options), opts = args[0];
427
- const name = tmpNameSync(opts);
428
- fs19.mkdirSync(name, opts.mode || DIR_MODE);
429
- return {
430
- name,
431
- removeCallback: _prepareTmpDirRemoveCallback(name, opts, true)
432
- };
433
- }
434
- function _removeFileAsync(fdPath, next) {
435
- const _handler = function(err) {
436
- if (err && !_isENOENT(err)) {
437
- return next(err);
438
- }
439
- next();
440
- };
441
- if (0 <= fdPath[0])
442
- fs19.close(fdPath[0], function() {
443
- fs19.unlink(fdPath[1], _handler);
444
- });
445
- else fs19.unlink(fdPath[1], _handler);
446
- }
447
- function _removeFileSync(fdPath) {
448
- let rethrownException = null;
449
- try {
450
- if (0 <= fdPath[0]) fs19.closeSync(fdPath[0]);
451
- } catch (e) {
452
- if (!_isEBADF(e) && !_isENOENT(e)) throw e;
453
- } finally {
454
- try {
455
- fs19.unlinkSync(fdPath[1]);
456
- } catch (e) {
457
- if (!_isENOENT(e)) rethrownException = e;
458
- }
459
- }
460
- if (rethrownException !== null) {
461
- throw rethrownException;
462
- }
463
- }
464
- function _prepareTmpFileRemoveCallback(name, fd, opts, sync) {
465
- const removeCallbackSync = _prepareRemoveCallback(_removeFileSync, [fd, name], sync);
466
- const removeCallback = _prepareRemoveCallback(_removeFileAsync, [fd, name], sync, removeCallbackSync);
467
- if (!opts.keep) _removeObjects.unshift(removeCallbackSync);
468
- return sync ? removeCallbackSync : removeCallback;
469
- }
470
- function _prepareTmpDirRemoveCallback(name, opts, sync) {
471
- const removeFunction = opts.unsafeCleanup ? rimraf : fs19.rmdir.bind(fs19);
472
- const removeFunctionSync = opts.unsafeCleanup ? FN_RIMRAF_SYNC : FN_RMDIR_SYNC;
473
- const removeCallbackSync = _prepareRemoveCallback(removeFunctionSync, name, sync);
474
- const removeCallback = _prepareRemoveCallback(removeFunction, name, sync, removeCallbackSync);
475
- if (!opts.keep) _removeObjects.unshift(removeCallbackSync);
476
- return sync ? removeCallbackSync : removeCallback;
477
- }
478
- function _prepareRemoveCallback(removeFunction, fileOrDirName, sync, cleanupCallbackSync) {
479
- let called = false;
480
- return function _cleanupCallback(next) {
481
- if (!called) {
482
- const toRemove = cleanupCallbackSync || _cleanupCallback;
483
- const index = _removeObjects.indexOf(toRemove);
484
- if (index >= 0) _removeObjects.splice(index, 1);
485
- called = true;
486
- if (sync || removeFunction === FN_RMDIR_SYNC || removeFunction === FN_RIMRAF_SYNC) {
487
- return removeFunction(fileOrDirName);
488
- } else {
489
- return removeFunction(fileOrDirName, next || function() {
490
- });
491
- }
492
- }
493
- };
494
- }
495
- function _garbageCollector() {
496
- if (!_gracefulCleanup) return;
497
- while (_removeObjects.length) {
498
- try {
499
- _removeObjects[0]();
500
- } catch (e) {
501
- }
502
- }
503
- }
504
- function _randomChars(howMany) {
505
- let value = [], rnd = null;
506
- try {
507
- rnd = crypto4.randomBytes(howMany);
508
- } catch (e) {
509
- rnd = crypto4.pseudoRandomBytes(howMany);
510
- }
511
- for (var i = 0; i < howMany; i++) {
512
- value.push(RANDOM_CHARS[rnd[i] % RANDOM_CHARS.length]);
513
- }
514
- return value.join("");
515
- }
516
- function _isBlank(s) {
517
- return s === null || _isUndefined(s) || !s.trim();
518
- }
519
- function _isUndefined(obj) {
520
- return typeof obj === "undefined";
521
- }
522
- function _parseArguments(options, callback) {
523
- if (typeof options === "function") {
524
- return [{}, options];
525
- }
526
- if (_isUndefined(options)) {
527
- return [{}, callback];
528
- }
529
- const actualOptions = {};
530
- for (const key of Object.getOwnPropertyNames(options)) {
531
- actualOptions[key] = options[key];
532
- }
533
- return [actualOptions, callback];
534
- }
535
- function _generateTmpName(opts) {
536
- const tmpDir = opts.tmpdir;
537
- if (!_isUndefined(opts.name))
538
- return path23.join(tmpDir, opts.dir, opts.name);
539
- if (!_isUndefined(opts.template))
540
- return path23.join(tmpDir, opts.dir, opts.template).replace(TEMPLATE_PATTERN, _randomChars(6));
541
- const name = [
542
- opts.prefix ? opts.prefix : "tmp",
543
- "-",
544
- process.pid,
545
- "-",
546
- _randomChars(12),
547
- opts.postfix ? "-" + opts.postfix : ""
548
- ].join("");
549
- return path23.join(tmpDir, opts.dir, name);
550
- }
551
- function _assertAndSanitizeOptions(options) {
552
- options.tmpdir = _getTmpDir(options);
553
- const tmpDir = options.tmpdir;
554
- if (!_isUndefined(options.name))
555
- _assertIsRelative(options.name, "name", tmpDir);
556
- if (!_isUndefined(options.dir))
557
- _assertIsRelative(options.dir, "dir", tmpDir);
558
- if (!_isUndefined(options.template)) {
559
- _assertIsRelative(options.template, "template", tmpDir);
560
- if (!options.template.match(TEMPLATE_PATTERN))
561
- throw new Error(`Invalid template, found "${options.template}".`);
562
- }
563
- if (!_isUndefined(options.tries) && isNaN(options.tries) || options.tries < 0)
564
- throw new Error(`Invalid tries, found "${options.tries}".`);
565
- options.tries = _isUndefined(options.name) ? options.tries || DEFAULT_TRIES : 1;
566
- options.keep = !!options.keep;
567
- options.detachDescriptor = !!options.detachDescriptor;
568
- options.discardDescriptor = !!options.discardDescriptor;
569
- options.unsafeCleanup = !!options.unsafeCleanup;
570
- options.dir = _isUndefined(options.dir) ? "" : path23.relative(tmpDir, _resolvePath(options.dir, tmpDir));
571
- options.template = _isUndefined(options.template) ? void 0 : path23.relative(tmpDir, _resolvePath(options.template, tmpDir));
572
- options.template = _isBlank(options.template) ? void 0 : path23.relative(options.dir, options.template);
573
- options.name = _isUndefined(options.name) ? void 0 : _sanitizeName(options.name);
574
- options.prefix = _isUndefined(options.prefix) ? "" : options.prefix;
575
- options.postfix = _isUndefined(options.postfix) ? "" : options.postfix;
576
- }
577
- function _resolvePath(name, tmpDir) {
578
- const sanitizedName = _sanitizeName(name);
579
- if (sanitizedName.startsWith(tmpDir)) {
580
- return path23.resolve(sanitizedName);
581
- } else {
582
- return path23.resolve(path23.join(tmpDir, sanitizedName));
583
- }
584
- }
585
- function _sanitizeName(name) {
586
- if (_isBlank(name)) {
587
- return name;
588
- }
589
- return name.replace(/["']/g, "");
590
- }
591
- function _assertIsRelative(name, option, tmpDir) {
592
- if (option === "name") {
593
- if (path23.isAbsolute(name))
594
- throw new Error(`${option} option must not contain an absolute path, found "${name}".`);
595
- let basename = path23.basename(name);
596
- if (basename === ".." || basename === "." || basename !== name)
597
- throw new Error(`${option} option must not contain a path, found "${name}".`);
598
- } else {
599
- if (path23.isAbsolute(name) && !name.startsWith(tmpDir)) {
600
- throw new Error(`${option} option must be relative to "${tmpDir}", found "${name}".`);
601
- }
602
- let resolvedPath = _resolvePath(name, tmpDir);
603
- if (!resolvedPath.startsWith(tmpDir))
604
- throw new Error(`${option} option must be relative to "${tmpDir}", found "${resolvedPath}".`);
605
- }
606
- }
607
- function _isEBADF(error) {
608
- return _isExpectedError(error, -EBADF, "EBADF");
609
- }
610
- function _isENOENT(error) {
611
- return _isExpectedError(error, -ENOENT, "ENOENT");
612
- }
613
- function _isExpectedError(error, errno, code) {
614
- return IS_WIN32 ? error.code === code : error.code === code && error.errno === errno;
615
- }
616
- function setGracefulCleanup() {
617
- _gracefulCleanup = true;
618
- }
619
- function _getTmpDir(options) {
620
- return path23.resolve(_sanitizeName(options && options.tmpdir || os.tmpdir()));
621
- }
622
- process.addListener(EXIT, _garbageCollector);
623
- Object.defineProperty(module.exports, "tmpdir", {
624
- enumerable: true,
625
- configurable: false,
626
- get: function() {
627
- return _getTmpDir();
628
- }
629
- });
630
- module.exports.dir = dir;
631
- module.exports.dirSync = dirSync;
632
- module.exports.file = file;
633
- module.exports.fileSync = fileSync;
634
- module.exports.tmpName = tmpName;
635
- module.exports.tmpNameSync = tmpNameSync;
636
- module.exports.setGracefulCleanup = setGracefulCleanup;
637
- }
638
- });
639
-
640
- // ../../../node_modules/tmp-promise/index.js
641
- var require_tmp_promise = __commonJS({
642
- "../../../node_modules/tmp-promise/index.js"(exports, module) {
643
- "use strict";
644
- var { promisify } = __require("util");
645
- var tmp3 = require_tmp();
646
- module.exports.fileSync = tmp3.fileSync;
647
- var fileWithOptions = promisify(
648
- (options, cb) => tmp3.file(
649
- options,
650
- (err, path23, fd, cleanup) => err ? cb(err) : cb(void 0, { path: path23, fd, cleanup: promisify(cleanup) })
651
- )
652
- );
653
- module.exports.file = async (options) => fileWithOptions(options);
654
- module.exports.withFile = async function withFile(fn2, options) {
655
- const { path: path23, fd, cleanup } = await module.exports.file(options);
656
- try {
657
- return await fn2({ path: path23, fd });
658
- } finally {
659
- await cleanup();
660
- }
661
- };
662
- module.exports.dirSync = tmp3.dirSync;
663
- var dirWithOptions = promisify(
664
- (options, cb) => tmp3.dir(
665
- options,
666
- (err, path23, cleanup) => err ? cb(err) : cb(void 0, { path: path23, cleanup: promisify(cleanup) })
667
- )
668
- );
669
- module.exports.dir = async (options) => dirWithOptions(options);
670
- module.exports.withDir = async function withDir(fn2, options) {
671
- const { path: path23, cleanup } = await module.exports.dir(options);
672
- try {
673
- return await fn2({ path: path23 });
674
- } finally {
675
- await cleanup();
676
- }
677
- };
678
- module.exports.tmpNameSync = tmp3.tmpNameSync;
679
- module.exports.tmpName = promisify(tmp3.tmpName);
680
- module.exports.tmpdir = tmp3.tmpdir;
681
- module.exports.setGracefulCleanup = tmp3.setGracefulCleanup;
682
- }
683
- });
684
-
685
43
  // ../../../node_modules/graphql/version.js
686
44
  var require_version = __commonJS({
687
45
  "../../../node_modules/graphql/version.js"(exports) {
@@ -37167,10 +36525,10 @@ async function findWorkflowBlockModules(srcDirAbsolute) {
37167
36525
  }
37168
36526
 
37169
36527
  // lib/commands/dev/client-builder.js
37170
- var import_tmp_promise = __toESM(require_tmp_promise(), 1);
37171
36528
  import fs9 from "fs/promises";
37172
36529
  import path10 from "path";
37173
36530
  import * as esbuild from "esbuild";
36531
+ import tmp from "tmp-promise";
37174
36532
  import { complete as complete12, errored as errored11, isErrored as isErrored9 } from "@attio/fetchable-npm";
37175
36533
 
37176
36534
  // lib/build/client/create-client-build-config.js
@@ -37466,7 +36824,7 @@ var ClientBuilder = class _ClientBuilder {
37466
36824
  static async create({ outfile, directories, mode }) {
37467
36825
  try {
37468
36826
  const workflowBlockModulesRef = { current: /* @__PURE__ */ new Map() };
37469
- const tempFile = await import_tmp_promise.default.file({ postfix: ".js" });
36827
+ const tempFile = await tmp.file({ postfix: ".js" });
37470
36828
  const esbuildContext = await esbuild.context({
37471
36829
  ...createClientBuildConfig({
37472
36830
  appDir: directories.app,
@@ -37543,10 +36901,10 @@ var ClientBuilder = class _ClientBuilder {
37543
36901
  };
37544
36902
 
37545
36903
  // lib/commands/dev/server-builder.js
37546
- var import_tmp_promise2 = __toESM(require_tmp_promise(), 1);
37547
36904
  import fs10 from "fs/promises";
37548
36905
  import path12 from "path";
37549
36906
  import * as esbuild2 from "esbuild";
36907
+ import tmp2 from "tmp-promise";
37550
36908
  import { complete as complete14, errored as errored13, isErrored as isErrored11 } from "@attio/fetchable-npm";
37551
36909
 
37552
36910
  // lib/build/server/create-server-build-config.js
@@ -37763,7 +37121,7 @@ var ServerBuilder = class _ServerBuilder {
37763
37121
  }
37764
37122
  static async create({ outfile, directories, mode }) {
37765
37123
  try {
37766
- const tempFile = await import_tmp_promise2.default.file({ postfix: ".js" });
37124
+ const tempFile = await tmp2.file({ postfix: ".js" });
37767
37125
  const esbuildContext = await esbuild2.context({
37768
37126
  ...createServerBuildConfig(tempFile.path),
37769
37127
  write: mode === "write-to-disk",
@@ -40279,14 +39637,3 @@ var whoami = new Command10().name("whoami").description("Identify the current us
40279
39637
  // lib/attio.temp.js
40280
39638
  var program = new Command11();
40281
39639
  program.name("attio").description("CLI tool to create Attio apps").version("0.0.1").addCommand(init).addCommand(build).addCommand(dev).addCommand(version2).addCommand(login).addCommand(logout).addCommand(whoami).addCommand(logs).parse();
40282
- /*! Bundled license information:
40283
-
40284
- tmp/lib/tmp.js:
40285
- (*!
40286
- * Tmp
40287
- *
40288
- * Copyright (c) 2011-2017 KARASZI Istvan <github@spam.raszi.hu>
40289
- *
40290
- * MIT Licensed
40291
- *)
40292
- */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "attio",
3
- "version": "0.0.1-experimental.20251104.3",
3
+ "version": "0.0.1-experimental.20251104.4",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "lib",