@devpad/cli 2.2.14 → 2.2.15

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.js +49 -454
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -13852,445 +13852,6 @@ var require_dist2 = __commonJS(function(exports) {
13852
13852
  } });
13853
13853
  });
13854
13854
 
13855
- // ../../node_modules/blake3-wasm/dist/base/hash-fn.js
13856
- var require_hash_fn = __commonJS(function(exports) {
13857
- Object.defineProperty(exports, "__esModule", { value: true });
13858
- exports.defaultHashLength = 32;
13859
- exports.inputToArray = (input) => input instanceof Uint8Array ? input : new Uint8Array(input);
13860
- });
13861
-
13862
- // ../../node_modules/blake3-wasm/dist/wasm/nodejs/blake3_js.js
13863
- var require_blake3_js = __commonJS(function(exports, module) {
13864
- var __dirname = "/home/runner/work/devpad/devpad/node_modules/blake3-wasm/dist/wasm/nodejs";
13865
- var imports = {};
13866
- imports["__wbindgen_placeholder__"] = exports;
13867
- var wasm;
13868
- var { TextDecoder: TextDecoder2 } = __require(String.raw`util`);
13869
- var cachedTextDecoder = new TextDecoder2("utf-8", { ignoreBOM: true, fatal: true });
13870
- cachedTextDecoder.decode();
13871
- var cachegetUint8Memory0 = null;
13872
- function getUint8Memory0() {
13873
- if (cachegetUint8Memory0 === null || cachegetUint8Memory0.buffer !== wasm.memory.buffer) {
13874
- cachegetUint8Memory0 = new Uint8Array(wasm.memory.buffer);
13875
- }
13876
- return cachegetUint8Memory0;
13877
- }
13878
- function getStringFromWasm0(ptr, len) {
13879
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
13880
- }
13881
- var WASM_VECTOR_LEN = 0;
13882
- function passArray8ToWasm0(arg, malloc) {
13883
- const ptr = malloc(arg.length * 1);
13884
- getUint8Memory0().set(arg, ptr / 1);
13885
- WASM_VECTOR_LEN = arg.length;
13886
- return ptr;
13887
- }
13888
- exports.hash = function(data, out) {
13889
- try {
13890
- var ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
13891
- var len0 = WASM_VECTOR_LEN;
13892
- var ptr1 = passArray8ToWasm0(out, wasm.__wbindgen_malloc);
13893
- var len1 = WASM_VECTOR_LEN;
13894
- wasm.hash(ptr0, len0, ptr1, len1);
13895
- } finally {
13896
- out.set(getUint8Memory0().subarray(ptr1 / 1, ptr1 / 1 + len1));
13897
- wasm.__wbindgen_free(ptr1, len1 * 1);
13898
- }
13899
- };
13900
- exports.create_hasher = function() {
13901
- var ret = wasm.create_hasher();
13902
- return Blake3Hash.__wrap(ret);
13903
- };
13904
- exports.create_keyed = function(key_slice) {
13905
- var ptr0 = passArray8ToWasm0(key_slice, wasm.__wbindgen_malloc);
13906
- var len0 = WASM_VECTOR_LEN;
13907
- var ret = wasm.create_keyed(ptr0, len0);
13908
- return Blake3Hash.__wrap(ret);
13909
- };
13910
- var cachegetNodeBufferMemory0 = null;
13911
- function getNodeBufferMemory0() {
13912
- if (cachegetNodeBufferMemory0 === null || cachegetNodeBufferMemory0.buffer !== wasm.memory.buffer) {
13913
- cachegetNodeBufferMemory0 = Buffer.from(wasm.memory.buffer);
13914
- }
13915
- return cachegetNodeBufferMemory0;
13916
- }
13917
- function passStringToWasm0(arg, malloc) {
13918
- const len = Buffer.byteLength(arg);
13919
- const ptr = malloc(len);
13920
- getNodeBufferMemory0().write(arg, ptr, len);
13921
- WASM_VECTOR_LEN = len;
13922
- return ptr;
13923
- }
13924
- exports.create_derive = function(context) {
13925
- var ptr0 = passStringToWasm0(context, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
13926
- var len0 = WASM_VECTOR_LEN;
13927
- var ret = wasm.create_derive(ptr0, len0);
13928
- return Blake3Hash.__wrap(ret);
13929
- };
13930
- var u32CvtShim = new Uint32Array(2);
13931
- var uint64CvtShim = new BigUint64Array(u32CvtShim.buffer);
13932
-
13933
- class Blake3Hash {
13934
- static __wrap(ptr) {
13935
- const obj = Object.create(Blake3Hash.prototype);
13936
- obj.ptr = ptr;
13937
- return obj;
13938
- }
13939
- free() {
13940
- const ptr = this.ptr;
13941
- this.ptr = 0;
13942
- wasm.__wbg_blake3hash_free(ptr);
13943
- }
13944
- reader() {
13945
- var ret = wasm.blake3hash_reader(this.ptr);
13946
- return HashReader.__wrap(ret);
13947
- }
13948
- update(input_bytes) {
13949
- var ptr0 = passArray8ToWasm0(input_bytes, wasm.__wbindgen_malloc);
13950
- var len0 = WASM_VECTOR_LEN;
13951
- wasm.blake3hash_update(this.ptr, ptr0, len0);
13952
- }
13953
- digest(out) {
13954
- try {
13955
- var ptr0 = passArray8ToWasm0(out, wasm.__wbindgen_malloc);
13956
- var len0 = WASM_VECTOR_LEN;
13957
- wasm.blake3hash_digest(this.ptr, ptr0, len0);
13958
- } finally {
13959
- out.set(getUint8Memory0().subarray(ptr0 / 1, ptr0 / 1 + len0));
13960
- wasm.__wbindgen_free(ptr0, len0 * 1);
13961
- }
13962
- }
13963
- }
13964
- exports.Blake3Hash = Blake3Hash;
13965
-
13966
- class HashReader {
13967
- static __wrap(ptr) {
13968
- const obj = Object.create(HashReader.prototype);
13969
- obj.ptr = ptr;
13970
- return obj;
13971
- }
13972
- free() {
13973
- const ptr = this.ptr;
13974
- this.ptr = 0;
13975
- wasm.__wbg_hashreader_free(ptr);
13976
- }
13977
- fill(bytes2) {
13978
- try {
13979
- var ptr0 = passArray8ToWasm0(bytes2, wasm.__wbindgen_malloc);
13980
- var len0 = WASM_VECTOR_LEN;
13981
- wasm.hashreader_fill(this.ptr, ptr0, len0);
13982
- } finally {
13983
- bytes2.set(getUint8Memory0().subarray(ptr0 / 1, ptr0 / 1 + len0));
13984
- wasm.__wbindgen_free(ptr0, len0 * 1);
13985
- }
13986
- }
13987
- set_position(position) {
13988
- uint64CvtShim[0] = position;
13989
- const low0 = u32CvtShim[0];
13990
- const high0 = u32CvtShim[1];
13991
- wasm.hashreader_set_position(this.ptr, low0, high0);
13992
- }
13993
- }
13994
- exports.HashReader = HashReader;
13995
- exports.__wbindgen_throw = function(arg0, arg1) {
13996
- throw new Error(getStringFromWasm0(arg0, arg1));
13997
- };
13998
- var path = __require("path").join(__dirname, "blake3_js_bg.wasm");
13999
- var bytes = __require("fs").readFileSync(path);
14000
- var wasmModule = new WebAssembly.Module(bytes);
14001
- var wasmInstance = new WebAssembly.Instance(wasmModule, imports);
14002
- wasm = wasmInstance.exports;
14003
- exports.__wasm = wasm;
14004
- });
14005
-
14006
- // ../../node_modules/blake3-wasm/dist/node/hash-fn.js
14007
- var require_hash_fn2 = __commonJS(function(exports) {
14008
- Object.defineProperty(exports, "__esModule", { value: true });
14009
- var hash_fn_1 = require_hash_fn();
14010
- var blake3_js_1 = require_blake3_js();
14011
- exports.normalizeInput = (input, encoding) => hash_fn_1.inputToArray(typeof input === "string" ? Buffer.from(input, encoding) : input);
14012
- function hash(input, { length = hash_fn_1.defaultHashLength } = {}) {
14013
- const result = Buffer.alloc(length);
14014
- blake3_js_1.hash(exports.normalizeInput(input), result);
14015
- return result;
14016
- }
14017
- exports.hash = hash;
14018
- function deriveKey(context, material, { length = hash_fn_1.defaultHashLength } = {}) {
14019
- const derive = blake3_js_1.create_derive(context);
14020
- derive.update(exports.normalizeInput(material));
14021
- const result = Buffer.alloc(length);
14022
- derive.digest(result);
14023
- return result;
14024
- }
14025
- exports.deriveKey = deriveKey;
14026
- function keyedHash(key, input, { length = hash_fn_1.defaultHashLength } = {}) {
14027
- if (key.length !== 32) {
14028
- throw new Error(`key provided to keyedHash must be 32 bytes, got ${key.length}`);
14029
- }
14030
- const derive = blake3_js_1.create_keyed(key);
14031
- derive.update(exports.normalizeInput(input));
14032
- const result = Buffer.alloc(length);
14033
- derive.digest(result);
14034
- return result;
14035
- }
14036
- exports.keyedHash = keyedHash;
14037
- });
14038
-
14039
- // ../../node_modules/blake3-wasm/dist/base/hash-reader.js
14040
- var require_hash_reader = __commonJS(function(exports) {
14041
- Object.defineProperty(exports, "__esModule", { value: true });
14042
- exports.maxHashBytes = BigInt("18446744073709551615");
14043
-
14044
- class BaseHashReader {
14045
- constructor(reader) {
14046
- this.pos = BigInt(0);
14047
- this.reader = reader;
14048
- }
14049
- get position() {
14050
- return this.pos;
14051
- }
14052
- set position(value) {
14053
- var _a;
14054
- if (typeof value !== "bigint") {
14055
- throw new Error(`Got a ${typeof value} set in to reader.position, expected a bigint`);
14056
- }
14057
- this.boundsCheck(value);
14058
- this.pos = value;
14059
- (_a = this.reader) === null || _a === undefined || _a.set_position(value);
14060
- }
14061
- readInto(target) {
14062
- if (!this.reader) {
14063
- throw new Error(`Cannot read from a hash after it was disposed`);
14064
- }
14065
- const next = this.pos + BigInt(target.length);
14066
- this.boundsCheck(next);
14067
- this.reader.fill(target);
14068
- this.position = next;
14069
- }
14070
- read(bytes) {
14071
- const data = this.alloc(bytes);
14072
- this.readInto(data);
14073
- return data;
14074
- }
14075
- dispose() {
14076
- var _a, _b;
14077
- (_b = (_a = this.reader) === null || _a === undefined ? undefined : _a.free) === null || _b === undefined || _b.call(_a);
14078
- this.reader = undefined;
14079
- }
14080
- boundsCheck(position) {
14081
- if (position > exports.maxHashBytes) {
14082
- throw new RangeError(`Cannot read past ${exports.maxHashBytes} bytes in BLAKE3 hashes`);
14083
- }
14084
- if (position < BigInt(0)) {
14085
- throw new RangeError(`Cannot read to a negative position`);
14086
- }
14087
- }
14088
- }
14089
- exports.BaseHashReader = BaseHashReader;
14090
- });
14091
-
14092
- // ../../node_modules/blake3-wasm/dist/base/hash-instance.js
14093
- var require_hash_instance = __commonJS(function(exports) {
14094
- Object.defineProperty(exports, "__esModule", { value: true });
14095
- var hash_fn_1 = require_hash_fn();
14096
-
14097
- class BaseHash {
14098
- constructor(implementation, alloc, getReader) {
14099
- this.alloc = alloc;
14100
- this.getReader = getReader;
14101
- this.hash = implementation;
14102
- }
14103
- update(data) {
14104
- if (!this.hash) {
14105
- throw new Error("Cannot continue updating hashing after dispose() has been called");
14106
- }
14107
- this.hash.update(hash_fn_1.inputToArray(data));
14108
- return this;
14109
- }
14110
- digest({ length = hash_fn_1.defaultHashLength, dispose = true } = {}) {
14111
- if (!this.hash) {
14112
- throw new Error("Cannot call digest() after dipose() has been called");
14113
- }
14114
- const digested = this.alloc(length);
14115
- this.hash.digest(digested);
14116
- if (dispose) {
14117
- this.dispose();
14118
- }
14119
- return digested;
14120
- }
14121
- reader({ dispose = true } = {}) {
14122
- if (!this.hash) {
14123
- throw new Error("Cannot call reader() after dipose() has been called");
14124
- }
14125
- const reader = this.getReader(this.hash.reader());
14126
- if (dispose) {
14127
- this.dispose();
14128
- }
14129
- return reader;
14130
- }
14131
- dispose() {
14132
- var _a;
14133
- (_a = this.hash) === null || _a === undefined || _a.free();
14134
- this.hash = undefined;
14135
- }
14136
- }
14137
- exports.BaseHash = BaseHash;
14138
- });
14139
-
14140
- // ../../node_modules/blake3-wasm/dist/base/disposable.js
14141
- var require_disposable = __commonJS(function(exports) {
14142
- Object.defineProperty(exports, "__esModule", { value: true });
14143
- var isPromiseLike = (value) => typeof value === "object" && !!value && ("then" in value);
14144
- exports.using = (disposable, fn) => {
14145
- let ret;
14146
- try {
14147
- ret = fn(disposable);
14148
- } catch (e) {
14149
- disposable.dispose();
14150
- throw e;
14151
- }
14152
- if (!isPromiseLike(ret)) {
14153
- disposable.dispose();
14154
- return ret;
14155
- }
14156
- return ret.then((value) => {
14157
- disposable.dispose();
14158
- return value;
14159
- }, (err2) => {
14160
- disposable.dispose();
14161
- throw err2;
14162
- });
14163
- };
14164
- });
14165
-
14166
- // ../../node_modules/blake3-wasm/dist/base/index.js
14167
- var require_base = __commonJS(function(exports) {
14168
- function __export2(m) {
14169
- for (var p in m)
14170
- if (!exports.hasOwnProperty(p))
14171
- exports[p] = m[p];
14172
- }
14173
- Object.defineProperty(exports, "__esModule", { value: true });
14174
- __export2(require_hash_fn());
14175
- __export2(require_hash_reader());
14176
- __export2(require_hash_instance());
14177
- __export2(require_disposable());
14178
- });
14179
-
14180
- // ../../node_modules/blake3-wasm/dist/node/wasm.js
14181
- var require_wasm = __commonJS(function(exports) {
14182
- Object.defineProperty(exports, "__esModule", { value: true });
14183
- var w;
14184
- exports.getWasm = () => {
14185
- if (!w) {
14186
- w = require_blake3_js();
14187
- }
14188
- return w;
14189
- };
14190
- });
14191
-
14192
- // ../../node_modules/blake3-wasm/dist/node/hash-reader.js
14193
- var require_hash_reader2 = __commonJS(function(exports) {
14194
- Object.defineProperty(exports, "__esModule", { value: true });
14195
- var hash_reader_1 = require_hash_reader();
14196
- var hash_fn_1 = require_hash_fn();
14197
-
14198
- class NodeHashReader extends hash_reader_1.BaseHashReader {
14199
- toString(encoding = "hex") {
14200
- return this.toBuffer().toString(encoding);
14201
- }
14202
- toBuffer() {
14203
- this.position = BigInt(0);
14204
- return this.read(hash_fn_1.defaultHashLength);
14205
- }
14206
- alloc(bytes) {
14207
- return Buffer.alloc(bytes);
14208
- }
14209
- }
14210
- exports.NodeHashReader = NodeHashReader;
14211
- });
14212
-
14213
- // ../../node_modules/blake3-wasm/dist/node/hash-instance.js
14214
- var require_hash_instance2 = __commonJS(function(exports) {
14215
- Object.defineProperty(exports, "__esModule", { value: true });
14216
- var hash_fn_1 = require_hash_fn2();
14217
- var index_1 = require_base();
14218
- var stream_1 = __require("stream");
14219
- var wasm_1 = require_wasm();
14220
- var hash_reader_1 = require_hash_reader2();
14221
-
14222
- class NodeHash extends stream_1.Transform {
14223
- constructor(implementation, getReader) {
14224
- super();
14225
- this.hash = new index_1.BaseHash(implementation, (l) => Buffer.alloc(l), getReader);
14226
- }
14227
- reader(options) {
14228
- const reader = this.hash.reader(options);
14229
- return reader;
14230
- }
14231
- update(data, encoding) {
14232
- this.hash.update(hash_fn_1.normalizeInput(data, encoding));
14233
- return this;
14234
- }
14235
- digest(encoding, options) {
14236
- let resolvedOpts;
14237
- let resolvedEnc;
14238
- if (encoding && typeof encoding === "object") {
14239
- resolvedOpts = encoding;
14240
- resolvedEnc = undefined;
14241
- } else {
14242
- resolvedOpts = options;
14243
- resolvedEnc = encoding;
14244
- }
14245
- const result = this.hash.digest(resolvedOpts);
14246
- return resolvedEnc ? result.toString(resolvedEnc) : result;
14247
- }
14248
- dispose() {
14249
- this.hash.dispose();
14250
- }
14251
- _transform(chunk, encoding, callback) {
14252
- this.update(chunk, encoding);
14253
- callback();
14254
- }
14255
- _flush(callback) {
14256
- callback(null, this.digest());
14257
- }
14258
- }
14259
- exports.NodeHash = NodeHash;
14260
- exports.createHash = () => new NodeHash(wasm_1.getWasm().create_hasher(), (r) => new hash_reader_1.NodeHashReader(r));
14261
- exports.createKeyed = (key) => new NodeHash(wasm_1.getWasm().create_keyed(key), (r) => new hash_reader_1.NodeHashReader(r));
14262
- exports.createDeriveKey = (context) => new NodeHash(wasm_1.getWasm().create_derive(context), (r) => new hash_reader_1.NodeHashReader(r));
14263
- });
14264
-
14265
- // ../../node_modules/blake3-wasm/dist/node/index.js
14266
- var require_node = __commonJS(function(exports) {
14267
- function __export2(m) {
14268
- for (var p in m)
14269
- if (!exports.hasOwnProperty(p))
14270
- exports[p] = m[p];
14271
- }
14272
- Object.defineProperty(exports, "__esModule", { value: true });
14273
- var hash_fn_1 = require_hash_fn2();
14274
- exports.hash = hash_fn_1.hash;
14275
- exports.deriveKey = hash_fn_1.deriveKey;
14276
- exports.keyedHash = hash_fn_1.keyedHash;
14277
- __export2(require_hash_instance2());
14278
- __export2(require_hash_reader2());
14279
- __export2(require_base());
14280
- });
14281
-
14282
- // ../../node_modules/blake3-wasm/dist/index.js
14283
- var require_dist3 = __commonJS(function(exports) {
14284
- function __export2(m) {
14285
- for (var p in m)
14286
- if (!exports.hasOwnProperty(p))
14287
- exports[p] = m[p];
14288
- }
14289
- Object.defineProperty(exports, "__esModule", { value: true });
14290
- if (false) {}
14291
- __export2(require_node());
14292
- });
14293
-
14294
13855
  // ../../node_modules/ignore/index.js
14295
13856
  var require_ignore = __commonJS(function(exports, module) {
14296
13857
  function makeArray(subject) {
@@ -17784,6 +17345,7 @@ var ApiClient2 = class {
17784
17345
  })
17785
17346
  };
17786
17347
  this.user = {
17348
+ me: () => wrap(() => this.clients.auth.get("/user/me")),
17787
17349
  history: () => wrap(() => this.clients.auth.get("/user/history")),
17788
17350
  preferences: (data) => wrap(() => this.clients.auth.patch("/user/preferences", {
17789
17351
  body: data
@@ -18309,6 +17871,12 @@ var tools = {
18309
17871
  }),
18310
17872
  execute: async (client, input) => unwrap2(await client.tasks.history.get(input.task_id))
18311
17873
  }),
17874
+ devpad_user_me: define_tool({
17875
+ name: "devpad_user_me",
17876
+ description: "Get the authenticated user's identity (id, name, github_id, task_view)",
17877
+ inputSchema: exports_external.object({}),
17878
+ execute: async (client) => unwrap2(await client.user.me())
17879
+ }),
18312
17880
  devpad_user_history: define_tool({
18313
17881
  name: "devpad_user_history",
18314
17882
  description: "Get user activity history",
@@ -20036,6 +19604,7 @@ var ApiClient22 = class {
20036
19604
  })
20037
19605
  };
20038
19606
  this.user = {
19607
+ me: () => wrap2(() => this.clients.auth.get("/user/me")),
20039
19608
  history: () => wrap2(() => this.clients.auth.get("/user/history")),
20040
19609
  preferences: (data) => wrap2(() => this.clients.auth.patch("/user/preferences", {
20041
19610
  body: data
@@ -20561,6 +20130,12 @@ var tools2 = {
20561
20130
  }),
20562
20131
  execute: async (client, input) => unwrap3(await client.tasks.history.get(input.task_id))
20563
20132
  }),
20133
+ devpad_user_me: define_tool2({
20134
+ name: "devpad_user_me",
20135
+ description: "Get the authenticated user's identity (id, name, github_id, task_view)",
20136
+ inputSchema: exports_external.object({}),
20137
+ execute: async (client) => unwrap3(await client.user.me())
20138
+ }),
20564
20139
  devpad_user_history: define_tool2({
20565
20140
  name: "devpad_user_history",
20566
20141
  description: "Get user activity history",
@@ -21452,11 +21027,11 @@ var source_default2 = chalk2;
21452
21027
 
21453
21028
  // src/asset-walker.ts
21454
21029
  init_dist();
21455
- var blake3 = __toESM(require_dist3(), 1);
21456
21030
  var import_ignore = __toESM(require_ignore(), 1);
21457
21031
  var import_mime = __toESM(require_mime(), 1);
21458
21032
  import { readdirSync, readFileSync, statSync } from "node:fs";
21459
21033
  import { extname, join, relative, sep } from "node:path";
21034
+ import * as blake3 from "blake3-wasm";
21460
21035
  var CF_ASSETS_IGNORE_FILENAME = ".assetsignore";
21461
21036
  var REDIRECTS_FILENAME = "_redirects";
21462
21037
  var HEADERS_FILENAME = "_headers";
@@ -24178,16 +23753,29 @@ var make_spinner2 = (text3) => {
24178
23753
  return noop;
24179
23754
  };
24180
23755
 
24181
- // src/task-update.ts
24182
- var task_status_to_progress = (status) => {
24183
- if (status === "done")
24184
- return "DONE";
24185
- if (status === "in_progress")
24186
- return "IN_PROGRESS";
24187
- if (status === "todo")
24188
- return "TODO";
24189
- return;
23756
+ // src/task-progress.ts
23757
+ var STATUS_TO_PROGRESS = {
23758
+ todo: "UNSTARTED",
23759
+ in_progress: "IN_PROGRESS",
23760
+ done: "COMPLETED"
23761
+ };
23762
+ var task_status_to_progress = (status) => status ? STATUS_TO_PROGRESS[status] : undefined;
23763
+ async function resolve_owner_id2(client) {
23764
+ const result = await client.user.me();
23765
+ if (!result.ok)
23766
+ throw new Error(`Failed to resolve current user: ${result.error.message}`);
23767
+ return result.value.id;
23768
+ }
23769
+
23770
+ // src/task-progress.ts
23771
+ var STATUS_TO_PROGRESS2 = {
23772
+ todo: "UNSTARTED",
23773
+ in_progress: "IN_PROGRESS",
23774
+ done: "COMPLETED"
24190
23775
  };
23776
+ var task_status_to_progress2 = (status) => status ? STATUS_TO_PROGRESS2[status] : undefined;
23777
+
23778
+ // src/task-update.ts
24191
23779
  function build_task_update_input(id2, options) {
24192
23780
  if (!options.status && !options.title && !options.summary && !options.priority)
24193
23781
  return null;
@@ -24196,7 +23784,7 @@ function build_task_update_input(id2, options) {
24196
23784
  title: options.title,
24197
23785
  summary: options.summary,
24198
23786
  priority: options.priority ? options.priority.toUpperCase() : undefined,
24199
- progress: task_status_to_progress(options.status)
23787
+ progress: task_status_to_progress2(options.status)
24200
23788
  };
24201
23789
  }
24202
23790
 
@@ -24362,12 +23950,14 @@ tasks.command("create").description("Create a new task").requiredOption("-t, --t
24362
23950
  if (!tool)
24363
23951
  throw new Error("Tool not found");
24364
23952
  const client = getApiClient();
23953
+ const owner_id2 = await resolve_owner_id2(client);
24365
23954
  const result = await tool.execute(client, {
24366
23955
  title: options.title,
24367
23956
  project_id: options.project,
24368
23957
  summary: options.summary,
24369
23958
  priority: options.priority.toUpperCase(),
24370
- progress: options.status === "done" ? "DONE" : options.status === "in_progress" ? "IN_PROGRESS" : "TODO"
23959
+ progress: task_status_to_progress(options.status) ?? "UNSTARTED",
23960
+ owner_id: owner_id2
24371
23961
  });
24372
23962
  spinner.succeed(`Task "${String(result.title)}" created`);
24373
23963
  console.log(source_default.green(`ID: ${String(result.id)}`));
@@ -24388,7 +23978,8 @@ tasks.command("update <id>").description("Update a task (partial \u2014 only pro
24388
23978
  if (!tool)
24389
23979
  throw new Error("Tool not found");
24390
23980
  const client = getApiClient();
24391
- const result = await tool.execute(client, input);
23981
+ const owner_id2 = await resolve_owner_id2(client);
23982
+ const result = await tool.execute(client, { ...input, owner_id: owner_id2 });
24392
23983
  spinner.succeed(`Task "${String(result.title)}" updated`);
24393
23984
  } catch (error) {
24394
23985
  spinner.fail("Failed to update task");
@@ -24402,9 +23993,11 @@ tasks.command("done <id>").description("Mark a task as done").action(async (id2)
24402
23993
  if (!tool)
24403
23994
  throw new Error("Tool not found");
24404
23995
  const client = getApiClient();
23996
+ const owner_id2 = await resolve_owner_id2(client);
24405
23997
  const result = await tool.execute(client, {
24406
23998
  id: id2,
24407
- progress: "DONE"
23999
+ owner_id: owner_id2,
24000
+ progress: "COMPLETED"
24408
24001
  });
24409
24002
  spinner.succeed(`Task "${String(result.title)}" marked as done`);
24410
24003
  } catch (error) {
@@ -24419,9 +24012,11 @@ tasks.command("todo <id>").description("Mark a task as todo").action(async (id2)
24419
24012
  if (!tool)
24420
24013
  throw new Error("Tool not found");
24421
24014
  const client = getApiClient();
24015
+ const owner_id2 = await resolve_owner_id2(client);
24422
24016
  const result = await tool.execute(client, {
24423
24017
  id: id2,
24424
- progress: "TODO"
24018
+ owner_id: owner_id2,
24019
+ progress: "UNSTARTED"
24425
24020
  });
24426
24021
  spinner.succeed(`Task "${String(result.title)}" marked as todo`);
24427
24022
  } catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devpad/cli",
3
- "version": "2.2.14",
3
+ "version": "2.2.15",
4
4
  "description": "Command line interface for devpad project management",
5
5
  "keywords": [
6
6
  "cli",
@@ -38,7 +38,7 @@
38
38
  "registry": "https://registry.npmjs.org/"
39
39
  },
40
40
  "scripts": {
41
- "build": "bun build src/index.ts --outdir dist --target node --packages=bundle",
41
+ "build": "bun build src/index.ts --outdir dist --target node --packages=bundle --external blake3-wasm",
42
42
  "test": "bun test tests/unit tests/integration",
43
43
  "typecheck": "tsc --noEmit",
44
44
  "prepublishOnly": "bun run build"
@@ -50,10 +50,10 @@
50
50
  "mime": "^3.0.0"
51
51
  },
52
52
  "devDependencies": {
53
- "@devpad/api": "^2.2.14",
54
- "@devpad/pipeline-fakes": "^2.2.14",
55
- "@devpad/pipeline-templates": "^2.2.14",
56
- "@devpad/schema": "^2.2.14",
53
+ "@devpad/api": "^2.2.15",
54
+ "@devpad/pipeline-fakes": "^2.2.15",
55
+ "@devpad/pipeline-templates": "^2.2.15",
56
+ "@devpad/schema": "^2.2.15",
57
57
  "@types/node": "^20.11.24",
58
58
  "bun-types": "latest",
59
59
  "chalk": "^5.3.0",