@lobehub/cli 0.0.86 → 0.0.87
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/acceptance-report.html +320 -320
- package/dist/index.js +170 -54
- package/man/man1/lh.1 +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -11845,10 +11845,10 @@ var init_acceptanceFlow = __esmMin((() => {
|
|
|
11845
11845
|
|
|
11846
11846
|
//#endregion
|
|
11847
11847
|
//#region ../../packages/types/src/acceptanceReview.ts
|
|
11848
|
-
var rectSchema, acceptanceReviewAnchorSchema, ACCEPTANCE_REVIEW_ANCHOR_MAX_BYTES, createAcceptanceReviewCommentSchema, acceptanceReviewDecisionSchema;
|
|
11848
|
+
var rectSchema$1, acceptanceReviewAnchorSchema, ACCEPTANCE_REVIEW_ANCHOR_MAX_BYTES, createAcceptanceReviewCommentSchema, acceptanceReviewDecisionSchema;
|
|
11849
11849
|
var init_acceptanceReview = __esmMin((() => {
|
|
11850
11850
|
init_zod$1();
|
|
11851
|
-
rectSchema = object$1({
|
|
11851
|
+
rectSchema$1 = object$1({
|
|
11852
11852
|
height: number$1().finite(),
|
|
11853
11853
|
width: number$1().finite(),
|
|
11854
11854
|
x: number$1().finite(),
|
|
@@ -11866,9 +11866,9 @@ var init_acceptanceReview = __esmMin((() => {
|
|
|
11866
11866
|
userAgent: string().max(500)
|
|
11867
11867
|
}).optional(),
|
|
11868
11868
|
intent: _enum(["change", "comment"]),
|
|
11869
|
-
region: rectSchema.optional(),
|
|
11869
|
+
region: rectSchema$1.optional(),
|
|
11870
11870
|
regionRefs: array(object$1({
|
|
11871
|
-
box: rectSchema,
|
|
11871
|
+
box: rectSchema$1,
|
|
11872
11872
|
selector: string().max(2e3),
|
|
11873
11873
|
text: string().max(200).optional()
|
|
11874
11874
|
}).nullable()).max(6).optional(),
|
|
@@ -11889,7 +11889,7 @@ var init_acceptanceReview = __esmMin((() => {
|
|
|
11889
11889
|
line: number$1().int()
|
|
11890
11890
|
}).optional(),
|
|
11891
11891
|
label: string().max(200),
|
|
11892
|
-
rect: rectSchema,
|
|
11892
|
+
rect: rectSchema$1,
|
|
11893
11893
|
selector: string().max(2e3),
|
|
11894
11894
|
text: string().max(200).optional()
|
|
11895
11895
|
})).max(8),
|
|
@@ -11916,6 +11916,97 @@ var init_acceptanceReview = __esmMin((() => {
|
|
|
11916
11916
|
});
|
|
11917
11917
|
}));
|
|
11918
11918
|
|
|
11919
|
+
//#endregion
|
|
11920
|
+
//#region ../../packages/types/src/acceptanceReviewRound.ts
|
|
11921
|
+
var acceptanceReviewMarkKinds, finite, rectSchema, anchorShape, sketchNodeSchema, acceptanceReviewMarkContextSchema, acceptanceReviewPageMetaSchema, acceptanceReviewMarkInputSchema, ACCEPTANCE_REVIEW_MARK_MAX_BYTES, screenshotSchema, createAcceptanceReviewMarkSchema, updateAcceptanceReviewMarkSchema, submitAcceptanceReviewSchema, acceptanceReviewMarkVerdicts, acceptanceReviewMarkVerdictSchema, createAcceptanceReviewReplySchema;
|
|
11922
|
+
var init_acceptanceReviewRound = __esmMin((() => {
|
|
11923
|
+
init_zod$1();
|
|
11924
|
+
init_acceptanceReview();
|
|
11925
|
+
acceptanceReviewMarkKinds = [
|
|
11926
|
+
"region",
|
|
11927
|
+
"element",
|
|
11928
|
+
"sketch"
|
|
11929
|
+
];
|
|
11930
|
+
finite = number$1().finite();
|
|
11931
|
+
rectSchema = object$1({
|
|
11932
|
+
height: finite,
|
|
11933
|
+
width: finite,
|
|
11934
|
+
x: finite,
|
|
11935
|
+
y: finite
|
|
11936
|
+
});
|
|
11937
|
+
anchorShape = acceptanceReviewAnchorSchema.shape;
|
|
11938
|
+
sketchNodeSchema = lazy(() => object$1({
|
|
11939
|
+
children: array(sketchNodeSchema).max(50),
|
|
11940
|
+
rect: rectSchema,
|
|
11941
|
+
type: _enum([
|
|
11942
|
+
"avatar",
|
|
11943
|
+
"button",
|
|
11944
|
+
"card",
|
|
11945
|
+
"image",
|
|
11946
|
+
"input",
|
|
11947
|
+
"text"
|
|
11948
|
+
])
|
|
11949
|
+
}));
|
|
11950
|
+
acceptanceReviewMarkContextSchema = object$1({
|
|
11951
|
+
commit: anchorShape.commit,
|
|
11952
|
+
context: anchorShape.context,
|
|
11953
|
+
env: anchorShape.env
|
|
11954
|
+
});
|
|
11955
|
+
acceptanceReviewPageMetaSchema = object$1({
|
|
11956
|
+
description: string().max(500).optional(),
|
|
11957
|
+
favicon: string().max(2e3).optional(),
|
|
11958
|
+
lang: string().max(35).optional(),
|
|
11959
|
+
title: string().max(300).optional()
|
|
11960
|
+
});
|
|
11961
|
+
acceptanceReviewMarkInputSchema = object$1({
|
|
11962
|
+
clientId: string().trim().min(1).max(255),
|
|
11963
|
+
content: string().trim().min(1).max(4e3),
|
|
11964
|
+
context: acceptanceReviewMarkContextSchema.optional(),
|
|
11965
|
+
kind: _enum(acceptanceReviewMarkKinds),
|
|
11966
|
+
pageMeta: acceptanceReviewPageMetaSchema.optional(),
|
|
11967
|
+
rectDocument: rectSchema,
|
|
11968
|
+
rectViewport: rectSchema,
|
|
11969
|
+
regionRefs: anchorShape.regionRefs,
|
|
11970
|
+
regions: array(rectSchema).max(6).optional(),
|
|
11971
|
+
routeKey: string().max(500),
|
|
11972
|
+
scroll: object$1({
|
|
11973
|
+
x: finite,
|
|
11974
|
+
y: finite
|
|
11975
|
+
}),
|
|
11976
|
+
sketch: array(sketchNodeSchema).max(50).optional(),
|
|
11977
|
+
targets: anchorShape.targets.optional(),
|
|
11978
|
+
url: string().url().max(2e3),
|
|
11979
|
+
viewport: object$1({
|
|
11980
|
+
dpr: number$1().positive(),
|
|
11981
|
+
height: finite,
|
|
11982
|
+
width: finite
|
|
11983
|
+
})
|
|
11984
|
+
});
|
|
11985
|
+
ACCEPTANCE_REVIEW_MARK_MAX_BYTES = 64 * 1024;
|
|
11986
|
+
screenshotSchema = object$1({ dataUrl: string().regex(/^data:image\/(jpeg|webp);base64,/) });
|
|
11987
|
+
createAcceptanceReviewMarkSchema = acceptanceReviewMarkInputSchema.extend({ screenshot: screenshotSchema.optional() }).refine(({ screenshot: _screenshot, ...mark }) => JSON.stringify(mark).length <= ACCEPTANCE_REVIEW_MARK_MAX_BYTES, { message: "Mark is too large" });
|
|
11988
|
+
updateAcceptanceReviewMarkSchema = object$1({
|
|
11989
|
+
content: string().trim().min(1).max(4e3).optional(),
|
|
11990
|
+
rectDocument: rectSchema.optional(),
|
|
11991
|
+
rectViewport: rectSchema.optional(),
|
|
11992
|
+
regionRefs: anchorShape.regionRefs,
|
|
11993
|
+
regions: array(rectSchema).max(6).optional()
|
|
11994
|
+
}).refine((value) => Object.values(value).some((field) => field !== void 0), { message: "Nothing to update" });
|
|
11995
|
+
submitAcceptanceReviewSchema = object$1({
|
|
11996
|
+
agentId: string().trim().min(1).max(255).optional(),
|
|
11997
|
+
feedback: string().trim().max(4e3).optional()
|
|
11998
|
+
});
|
|
11999
|
+
acceptanceReviewMarkVerdicts = ["pass", "not_fixed"];
|
|
12000
|
+
acceptanceReviewMarkVerdictSchema = object$1({
|
|
12001
|
+
reason: string().trim().max(2e3).optional(),
|
|
12002
|
+
verdict: _enum(acceptanceReviewMarkVerdicts)
|
|
12003
|
+
});
|
|
12004
|
+
createAcceptanceReviewReplySchema = object$1({
|
|
12005
|
+
clientId: string().trim().min(1).max(255),
|
|
12006
|
+
content: string().trim().min(1).max(4e3)
|
|
12007
|
+
});
|
|
12008
|
+
}));
|
|
12009
|
+
|
|
11919
12010
|
//#endregion
|
|
11920
12011
|
//#region ../../packages/types/src/oauthApp.ts
|
|
11921
12012
|
var init_oauthApp = __esmMin((() => {}));
|
|
@@ -12051,6 +12142,7 @@ var init_src$1 = __esmMin((() => {
|
|
|
12051
12142
|
init_acceptanceComment();
|
|
12052
12143
|
init_acceptanceFlow();
|
|
12053
12144
|
init_acceptanceReview();
|
|
12145
|
+
init_acceptanceReviewRound();
|
|
12054
12146
|
init_agentRuntime();
|
|
12055
12147
|
init_oauthApp();
|
|
12056
12148
|
init_chat();
|
|
@@ -31328,7 +31420,7 @@ _Mime_extensionToType = /* @__PURE__ */ new WeakMap(), _Mime_typeToExtension = /
|
|
|
31328
31420
|
var src_default = new Mime(types$1, types$2)._freeze();
|
|
31329
31421
|
|
|
31330
31422
|
//#endregion
|
|
31331
|
-
//#region node_modules/.pnpm/strtok3@10.
|
|
31423
|
+
//#region node_modules/.pnpm/strtok3@10.8.0/node_modules/strtok3/lib/stream/Errors.js
|
|
31332
31424
|
var defaultMessages, EndOfStreamError, AbortError$1;
|
|
31333
31425
|
var init_Errors = __esmMin((() => {
|
|
31334
31426
|
defaultMessages = "End-Of-Stream";
|
|
@@ -31347,7 +31439,7 @@ var init_Errors = __esmMin((() => {
|
|
|
31347
31439
|
}));
|
|
31348
31440
|
|
|
31349
31441
|
//#endregion
|
|
31350
|
-
//#region node_modules/.pnpm/strtok3@10.
|
|
31442
|
+
//#region node_modules/.pnpm/strtok3@10.8.0/node_modules/strtok3/lib/AbortSignal.js
|
|
31351
31443
|
/** Reject an already-cancelled operation before acquiring tokenizer resources. */
|
|
31352
31444
|
function throwIfAborted(signal) {
|
|
31353
31445
|
if (signal?.aborted) throw new AbortError$1();
|
|
@@ -31357,7 +31449,7 @@ var init_AbortSignal = __esmMin((() => {
|
|
|
31357
31449
|
}));
|
|
31358
31450
|
|
|
31359
31451
|
//#endregion
|
|
31360
|
-
//#region node_modules/.pnpm/strtok3@10.
|
|
31452
|
+
//#region node_modules/.pnpm/strtok3@10.8.0/node_modules/strtok3/lib/BufferSizeError.js
|
|
31361
31453
|
/**
|
|
31362
31454
|
* Validate options before acquiring file handles or stream readers.
|
|
31363
31455
|
* @param options - Tokenizer options containing the optional allocation limit
|
|
@@ -31387,12 +31479,12 @@ var init_BufferSizeError = __esmMin((() => {
|
|
|
31387
31479
|
}));
|
|
31388
31480
|
|
|
31389
31481
|
//#endregion
|
|
31390
|
-
//#region node_modules/.pnpm/strtok3@10.
|
|
31482
|
+
//#region node_modules/.pnpm/strtok3@10.8.0/node_modules/strtok3/lib/stream/AbstractStreamReader.js
|
|
31391
31483
|
var AbstractStreamReader;
|
|
31392
31484
|
var init_AbstractStreamReader = __esmMin((() => {
|
|
31393
31485
|
init_Errors();
|
|
31394
31486
|
AbstractStreamReader = class {
|
|
31395
|
-
constructor() {
|
|
31487
|
+
constructor(options) {
|
|
31396
31488
|
this.endOfStream = false;
|
|
31397
31489
|
this.interrupted = false;
|
|
31398
31490
|
/**
|
|
@@ -31400,6 +31492,7 @@ var init_AbstractStreamReader = __esmMin((() => {
|
|
|
31400
31492
|
* @type {Array}
|
|
31401
31493
|
*/
|
|
31402
31494
|
this.peekQueue = [];
|
|
31495
|
+
this.onCloseCallback = options?.onClose;
|
|
31403
31496
|
}
|
|
31404
31497
|
async peek(uint8Array, mayBeLess = false) {
|
|
31405
31498
|
const bytesRead = await this.read(uint8Array, mayBeLess);
|
|
@@ -31443,11 +31536,23 @@ var init_AbstractStreamReader = __esmMin((() => {
|
|
|
31443
31536
|
if (!mayBeLess && bytesRead < buffer.length) throw new EndOfStreamError();
|
|
31444
31537
|
return bytesRead;
|
|
31445
31538
|
}
|
|
31539
|
+
/** Share resource cleanup, callback completion and failures across close calls. */
|
|
31540
|
+
close() {
|
|
31541
|
+
this.closePromise ?? (this.closePromise = Promise.resolve().then(async () => {
|
|
31542
|
+
await this.closeResource();
|
|
31543
|
+
await this.onCloseCallback?.();
|
|
31544
|
+
}));
|
|
31545
|
+
return this.closePromise;
|
|
31546
|
+
}
|
|
31547
|
+
/** Backend cleanup completes before the optional close callback. */
|
|
31548
|
+
closeResource() {
|
|
31549
|
+
return this.abort();
|
|
31550
|
+
}
|
|
31446
31551
|
};
|
|
31447
31552
|
}));
|
|
31448
31553
|
|
|
31449
31554
|
//#endregion
|
|
31450
|
-
//#region node_modules/.pnpm/strtok3@10.
|
|
31555
|
+
//#region node_modules/.pnpm/strtok3@10.8.0/node_modules/strtok3/lib/stream/Deferred.js
|
|
31451
31556
|
var Deferred;
|
|
31452
31557
|
var init_Deferred = __esmMin((() => {
|
|
31453
31558
|
Deferred = class {
|
|
@@ -31463,7 +31568,7 @@ var init_Deferred = __esmMin((() => {
|
|
|
31463
31568
|
}));
|
|
31464
31569
|
|
|
31465
31570
|
//#endregion
|
|
31466
|
-
//#region node_modules/.pnpm/strtok3@10.
|
|
31571
|
+
//#region node_modules/.pnpm/strtok3@10.8.0/node_modules/strtok3/lib/stream/StreamReader.js
|
|
31467
31572
|
function handlePostEndError() {
|
|
31468
31573
|
this.removeListener("close", removePostEndErrorHandler);
|
|
31469
31574
|
}
|
|
@@ -31476,8 +31581,8 @@ var init_StreamReader = __esmMin((() => {
|
|
|
31476
31581
|
init_Deferred();
|
|
31477
31582
|
init_Errors();
|
|
31478
31583
|
StreamReader = class extends AbstractStreamReader {
|
|
31479
|
-
constructor(s) {
|
|
31480
|
-
super();
|
|
31584
|
+
constructor(s, options) {
|
|
31585
|
+
super(options);
|
|
31481
31586
|
this.s = s;
|
|
31482
31587
|
/**
|
|
31483
31588
|
* Pending requests waiting for data, tracked until completion or cancellation
|
|
@@ -31565,33 +31670,31 @@ var init_StreamReader = __esmMin((() => {
|
|
|
31565
31670
|
async abort() {
|
|
31566
31671
|
this.reject(new AbortError$1());
|
|
31567
31672
|
}
|
|
31568
|
-
async close() {
|
|
31569
|
-
return this.abort();
|
|
31570
|
-
}
|
|
31571
31673
|
};
|
|
31572
31674
|
}));
|
|
31573
31675
|
|
|
31574
31676
|
//#endregion
|
|
31575
|
-
//#region node_modules/.pnpm/strtok3@10.
|
|
31677
|
+
//#region node_modules/.pnpm/strtok3@10.8.0/node_modules/strtok3/lib/stream/WebStreamReader.js
|
|
31576
31678
|
var WebStreamReader;
|
|
31577
31679
|
var init_WebStreamReader = __esmMin((() => {
|
|
31578
31680
|
init_AbstractStreamReader();
|
|
31579
31681
|
WebStreamReader = class extends AbstractStreamReader {
|
|
31580
|
-
constructor(reader) {
|
|
31581
|
-
super();
|
|
31682
|
+
constructor(reader, options) {
|
|
31683
|
+
super(options);
|
|
31582
31684
|
this.reader = reader;
|
|
31685
|
+
this.released = false;
|
|
31583
31686
|
}
|
|
31584
31687
|
async abort() {
|
|
31585
|
-
|
|
31586
|
-
|
|
31587
|
-
|
|
31588
|
-
|
|
31688
|
+
if (!this.released) {
|
|
31689
|
+
this.reader.releaseLock();
|
|
31690
|
+
this.released = true;
|
|
31691
|
+
}
|
|
31589
31692
|
}
|
|
31590
31693
|
};
|
|
31591
31694
|
}));
|
|
31592
31695
|
|
|
31593
31696
|
//#endregion
|
|
31594
|
-
//#region node_modules/.pnpm/strtok3@10.
|
|
31697
|
+
//#region node_modules/.pnpm/strtok3@10.8.0/node_modules/strtok3/lib/stream/WebStreamByobReader.js
|
|
31595
31698
|
var WebStreamByobReader;
|
|
31596
31699
|
var init_WebStreamByobReader = __esmMin((() => {
|
|
31597
31700
|
init_WebStreamReader();
|
|
@@ -31616,14 +31719,14 @@ var init_WebStreamByobReader = __esmMin((() => {
|
|
|
31616
31719
|
}));
|
|
31617
31720
|
|
|
31618
31721
|
//#endregion
|
|
31619
|
-
//#region node_modules/.pnpm/strtok3@10.
|
|
31722
|
+
//#region node_modules/.pnpm/strtok3@10.8.0/node_modules/strtok3/lib/stream/WebStreamDefaultReader.js
|
|
31620
31723
|
var WebStreamDefaultReader;
|
|
31621
31724
|
var init_WebStreamDefaultReader = __esmMin((() => {
|
|
31622
31725
|
init_AbstractStreamReader();
|
|
31623
31726
|
init_Errors();
|
|
31624
31727
|
WebStreamDefaultReader = class extends AbstractStreamReader {
|
|
31625
|
-
constructor(reader) {
|
|
31626
|
-
super();
|
|
31728
|
+
constructor(reader, options) {
|
|
31729
|
+
super(options);
|
|
31627
31730
|
this.reader = reader;
|
|
31628
31731
|
this.buffer = null;
|
|
31629
31732
|
}
|
|
@@ -31662,7 +31765,7 @@ var init_WebStreamDefaultReader = __esmMin((() => {
|
|
|
31662
31765
|
this.interrupted = true;
|
|
31663
31766
|
return this.reader.cancel();
|
|
31664
31767
|
}
|
|
31665
|
-
async
|
|
31768
|
+
async closeResource() {
|
|
31666
31769
|
try {
|
|
31667
31770
|
await this.abort();
|
|
31668
31771
|
} finally {
|
|
@@ -31673,14 +31776,14 @@ var init_WebStreamDefaultReader = __esmMin((() => {
|
|
|
31673
31776
|
}));
|
|
31674
31777
|
|
|
31675
31778
|
//#endregion
|
|
31676
|
-
//#region node_modules/.pnpm/strtok3@10.
|
|
31677
|
-
function makeWebStreamReader(stream) {
|
|
31779
|
+
//#region node_modules/.pnpm/strtok3@10.8.0/node_modules/strtok3/lib/stream/WebStreamReaderFactory.js
|
|
31780
|
+
function makeWebStreamReader(stream, options) {
|
|
31678
31781
|
try {
|
|
31679
31782
|
const reader = stream.getReader({ mode: "byob" });
|
|
31680
|
-
if (reader instanceof ReadableStreamDefaultReader) return new WebStreamDefaultReader(reader);
|
|
31681
|
-
return new WebStreamByobReader(reader);
|
|
31783
|
+
if (reader instanceof ReadableStreamDefaultReader) return new WebStreamDefaultReader(reader, options);
|
|
31784
|
+
return new WebStreamByobReader(reader, options);
|
|
31682
31785
|
} catch (error) {
|
|
31683
|
-
if (error instanceof TypeError) return new WebStreamDefaultReader(stream.getReader());
|
|
31786
|
+
if (error instanceof TypeError) return new WebStreamDefaultReader(stream.getReader(), options);
|
|
31684
31787
|
throw error;
|
|
31685
31788
|
}
|
|
31686
31789
|
}
|
|
@@ -31690,7 +31793,7 @@ var init_WebStreamReaderFactory = __esmMin((() => {
|
|
|
31690
31793
|
}));
|
|
31691
31794
|
|
|
31692
31795
|
//#endregion
|
|
31693
|
-
//#region node_modules/.pnpm/strtok3@10.
|
|
31796
|
+
//#region node_modules/.pnpm/strtok3@10.8.0/node_modules/strtok3/lib/stream/index.js
|
|
31694
31797
|
var init_stream$1 = __esmMin((() => {
|
|
31695
31798
|
init_Errors();
|
|
31696
31799
|
init_StreamReader();
|
|
@@ -31700,7 +31803,7 @@ var init_stream$1 = __esmMin((() => {
|
|
|
31700
31803
|
}));
|
|
31701
31804
|
|
|
31702
31805
|
//#endregion
|
|
31703
|
-
//#region node_modules/.pnpm/strtok3@10.
|
|
31806
|
+
//#region node_modules/.pnpm/strtok3@10.8.0/node_modules/strtok3/lib/AbstractTokenizer.js
|
|
31704
31807
|
var AbstractTokenizer;
|
|
31705
31808
|
var init_AbstractTokenizer = __esmMin((() => {
|
|
31706
31809
|
init_AbortSignal();
|
|
@@ -31876,7 +31979,7 @@ var init_AbstractTokenizer = __esmMin((() => {
|
|
|
31876
31979
|
}));
|
|
31877
31980
|
|
|
31878
31981
|
//#endregion
|
|
31879
|
-
//#region node_modules/.pnpm/strtok3@10.
|
|
31982
|
+
//#region node_modules/.pnpm/strtok3@10.8.0/node_modules/strtok3/lib/BlobTokenizer.js
|
|
31880
31983
|
var BlobTokenizer;
|
|
31881
31984
|
var init_BlobTokenizer = __esmMin((() => {
|
|
31882
31985
|
init_AbstractTokenizer();
|
|
@@ -31941,7 +32044,7 @@ var init_BlobTokenizer = __esmMin((() => {
|
|
|
31941
32044
|
}));
|
|
31942
32045
|
|
|
31943
32046
|
//#endregion
|
|
31944
|
-
//#region node_modules/.pnpm/strtok3@10.
|
|
32047
|
+
//#region node_modules/.pnpm/strtok3@10.8.0/node_modules/strtok3/lib/BufferTokenizer.js
|
|
31945
32048
|
var BufferTokenizer;
|
|
31946
32049
|
var init_BufferTokenizer = __esmMin((() => {
|
|
31947
32050
|
init_AbstractTokenizer();
|
|
@@ -31999,7 +32102,7 @@ var init_BufferTokenizer = __esmMin((() => {
|
|
|
31999
32102
|
}));
|
|
32000
32103
|
|
|
32001
32104
|
//#endregion
|
|
32002
|
-
//#region node_modules/.pnpm/strtok3@10.
|
|
32105
|
+
//#region node_modules/.pnpm/strtok3@10.8.0/node_modules/strtok3/lib/ReadStreamTokenizer.js
|
|
32003
32106
|
var ignoreChunkSize, ReadStreamTokenizer;
|
|
32004
32107
|
var init_ReadStreamTokenizer = __esmMin((() => {
|
|
32005
32108
|
init_AbstractTokenizer();
|
|
@@ -32116,7 +32219,7 @@ var init_ReadStreamTokenizer = __esmMin((() => {
|
|
|
32116
32219
|
}));
|
|
32117
32220
|
|
|
32118
32221
|
//#endregion
|
|
32119
|
-
//#region node_modules/.pnpm/strtok3@10.
|
|
32222
|
+
//#region node_modules/.pnpm/strtok3@10.8.0/node_modules/strtok3/lib/core.js
|
|
32120
32223
|
/**
|
|
32121
32224
|
* Construct ReadStreamTokenizer from given Stream.
|
|
32122
32225
|
* Will set fileSize, if provided given Stream has set the .path property/
|
|
@@ -32170,7 +32273,7 @@ var init_core$1 = __esmMin((() => {
|
|
|
32170
32273
|
}));
|
|
32171
32274
|
|
|
32172
32275
|
//#endregion
|
|
32173
|
-
//#region node_modules/.pnpm/strtok3@10.
|
|
32276
|
+
//#region node_modules/.pnpm/strtok3@10.8.0/node_modules/strtok3/lib/NotRegularFileError.js
|
|
32174
32277
|
var NotRegularFileError;
|
|
32175
32278
|
var init_NotRegularFileError = __esmMin((() => {
|
|
32176
32279
|
NotRegularFileError = class extends Error {
|
|
@@ -32183,7 +32286,7 @@ var init_NotRegularFileError = __esmMin((() => {
|
|
|
32183
32286
|
}));
|
|
32184
32287
|
|
|
32185
32288
|
//#endregion
|
|
32186
|
-
//#region node_modules/.pnpm/strtok3@10.
|
|
32289
|
+
//#region node_modules/.pnpm/strtok3@10.8.0/node_modules/strtok3/lib/FileTokenizer.js
|
|
32187
32290
|
var FileTokenizer;
|
|
32188
32291
|
var init_FileTokenizer = __esmMin((() => {
|
|
32189
32292
|
init_AbortSignal();
|
|
@@ -32232,11 +32335,7 @@ var init_FileTokenizer = __esmMin((() => {
|
|
|
32232
32335
|
async readBuffer(uint8Array, options) {
|
|
32233
32336
|
const normOptions = this.normalizeOptions(uint8Array, options);
|
|
32234
32337
|
this.position = normOptions.position;
|
|
32235
|
-
|
|
32236
|
-
const res = await this.fileHandle.read(uint8Array, 0, normOptions.length, normOptions.position);
|
|
32237
|
-
this.position += res.bytesRead;
|
|
32238
|
-
if (res.bytesRead < normOptions.length && (!options || !options.mayBeLess)) throw new EndOfStreamError();
|
|
32239
|
-
return res.bytesRead;
|
|
32338
|
+
return this.readBufferAt(uint8Array, normOptions, true);
|
|
32240
32339
|
}
|
|
32241
32340
|
/**
|
|
32242
32341
|
* Peek buffer from file
|
|
@@ -32245,10 +32344,23 @@ var init_FileTokenizer = __esmMin((() => {
|
|
|
32245
32344
|
* @returns Promise number of bytes read
|
|
32246
32345
|
*/
|
|
32247
32346
|
async peekBuffer(uint8Array, options) {
|
|
32248
|
-
|
|
32249
|
-
|
|
32250
|
-
|
|
32251
|
-
|
|
32347
|
+
return this.readBufferAt(uint8Array, this.normalizeOptions(uint8Array, options), false);
|
|
32348
|
+
}
|
|
32349
|
+
/**
|
|
32350
|
+
* Fill requests across short file reads; only a zero-byte read establishes EOF.
|
|
32351
|
+
* Keep this policy below token decoding and independent of the size recorded at open.
|
|
32352
|
+
* mayBeLess tolerates EOF, not fragmentation; peeks never commit cursor progress.
|
|
32353
|
+
*/
|
|
32354
|
+
async readBufferAt(uint8Array, options, advancePosition) {
|
|
32355
|
+
let bytesRead = 0;
|
|
32356
|
+
while (bytesRead < options.length) {
|
|
32357
|
+
const res = await this.fileHandle.read(uint8Array, bytesRead, options.length - bytesRead, options.position + bytesRead);
|
|
32358
|
+
bytesRead += res.bytesRead;
|
|
32359
|
+
if (advancePosition) this.position += res.bytesRead;
|
|
32360
|
+
if (res.bytesRead === 0) break;
|
|
32361
|
+
}
|
|
32362
|
+
if (!options.mayBeLess && bytesRead < options.length) throw new EndOfStreamError();
|
|
32363
|
+
return bytesRead;
|
|
32252
32364
|
}
|
|
32253
32365
|
async closeOnce() {
|
|
32254
32366
|
await this.fileHandle.close();
|
|
@@ -32265,7 +32377,7 @@ var init_FileTokenizer = __esmMin((() => {
|
|
|
32265
32377
|
}));
|
|
32266
32378
|
|
|
32267
32379
|
//#endregion
|
|
32268
|
-
//#region node_modules/.pnpm/strtok3@10.
|
|
32380
|
+
//#region node_modules/.pnpm/strtok3@10.8.0/node_modules/strtok3/lib/index.js
|
|
32269
32381
|
async function waitForPendingOpen(stream) {
|
|
32270
32382
|
if (stream.pending !== true || stream.destroyed || stream.errored !== null) return;
|
|
32271
32383
|
await new Promise((resolve) => {
|
|
@@ -49484,13 +49596,17 @@ function registerAgentCommand(program) {
|
|
|
49484
49596
|
registerAgentSpaceFsCommand(agent);
|
|
49485
49597
|
registerAgentAccountCommand(agent);
|
|
49486
49598
|
registerAgentInboxCommand(agent);
|
|
49487
|
-
agent.command("list").description("List agents").option("-L, --limit <n>", "Maximum number of items", "30").option("-k, --keyword <keyword>", "Filter by keyword").option("--json [fields]", "Output JSON, optionally specify fields (comma-separated)").action(async (options) => {
|
|
49599
|
+
agent.command("list").description("List agents").option("-L, --limit <n>", "Maximum number of items", "30").option("-k, --keyword <keyword>", "Filter by keyword").option("--tag <tag>", "Only agents carrying this tag").option("--json [fields]", "Output JSON, optionally specify fields (comma-separated)").action(async (options) => {
|
|
49488
49600
|
const client = await getTrpcClient();
|
|
49489
49601
|
const input = { includeInbox: true };
|
|
49490
49602
|
if (options.keyword) input.keyword = options.keyword;
|
|
49603
|
+
if (options.tag?.trim()) input.tag = options.tag.trim();
|
|
49491
49604
|
if (options.limit) input.limit = Number.parseInt(options.limit, 10);
|
|
49492
49605
|
const result = await client.agent.queryAgents.query(input);
|
|
49493
|
-
const
|
|
49606
|
+
const listed = Array.isArray(result) ? result : result.items ?? [];
|
|
49607
|
+
const tag = input.tag;
|
|
49608
|
+
const items = tag === void 0 ? listed : listed.filter((a) => Array.isArray(a?.tags) && a.tags.includes(tag));
|
|
49609
|
+
if (tag !== void 0 && listed.length > 0 && !listed.some((a) => Array.isArray(a?.tags))) log$13.warn("This server does not filter agents by tag; upgrade it to use --tag.");
|
|
49494
49610
|
if (options.json !== void 0) {
|
|
49495
49611
|
const fields = typeof options.json === "string" ? options.json : void 0;
|
|
49496
49612
|
outputJson(withUrls(items, await resolveUrlBuilder(client), (item) => resourcePath.agent(item.id)), fields);
|
package/man/man1/lh.1
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.\" Code generated by `npm run man:generate`; DO NOT EDIT.
|
|
2
2
|
.\" Manual command details come from the Commander command tree.
|
|
3
|
-
.TH LH 1 "" "@lobehub/cli 0.0.
|
|
3
|
+
.TH LH 1 "" "@lobehub/cli 0.0.87" "User Commands"
|
|
4
4
|
.SH NAME
|
|
5
5
|
lh \- LobeHub CLI \- manage and connect to LobeHub services
|
|
6
6
|
.SH SYNOPSIS
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.87",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/lobehub/lobehub",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"access": "public",
|
|
83
83
|
"registry": "https://registry.npmjs.org"
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "e5d6033293caa6861a8150311092c8c7c5d9edd8"
|
|
86
86
|
}
|