heybash-xdpool 1.0.6 → 1.0.8
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/CHANGELOG.md +12 -0
- package/README.md +3 -1
- package/assets/licenses/dsh-connect-doubao-MIT.txt +21 -0
- package/lib/bin.js +396 -48
- package/lib/client.js +523 -26
- package/lib/index.d.ts +25 -2
- package/lib/index.js +4868 -1914
- package/package.json +1 -1
- package/vendor/channel-pack/pack.js +17 -2
package/lib/index.d.ts
CHANGED
|
@@ -29,6 +29,8 @@ type TaskEventTransport = 'desktop' | 'web';
|
|
|
29
29
|
/** A ready-to-send chain, plus the channel it must go out on. */
|
|
30
30
|
interface TaskEventChain {
|
|
31
31
|
transport: TaskEventTransport;
|
|
32
|
+
/** Skill sharing uses the newer desktop identity required by that task. */
|
|
33
|
+
identity?: 'skill-share';
|
|
32
34
|
/** Desktop chains: the event array. */
|
|
33
35
|
events?: readonly Record<string, unknown>[];
|
|
34
36
|
/** Web chains: the single page event to report. */
|
|
@@ -369,6 +371,12 @@ interface WorkBuddyTravelState {
|
|
|
369
371
|
/** Credits an arrived trip pays. */
|
|
370
372
|
rewardCredit: number;
|
|
371
373
|
}
|
|
374
|
+
/** A public marketplace skill that may be used to create a share link. */
|
|
375
|
+
interface ShareableSkill {
|
|
376
|
+
id: string;
|
|
377
|
+
name: string;
|
|
378
|
+
description: string;
|
|
379
|
+
}
|
|
372
380
|
interface WorkBuddyTask {
|
|
373
381
|
/** Upstream task code; the claim path is built from it. */
|
|
374
382
|
taskCode: string;
|
|
@@ -627,7 +635,7 @@ export declare class WorkBuddyUpstreamClient {
|
|
|
627
635
|
* Business fields win over the fingerprint, so a caller can override a device
|
|
628
636
|
* id to align with a real install.
|
|
629
637
|
*/
|
|
630
|
-
reportDesktopEvents(credential: WorkBuddyCredential, events: readonly Record<string, unknown>[]): Promise<void>;
|
|
638
|
+
reportDesktopEvents(credential: WorkBuddyCredential, events: readonly Record<string, unknown>[], identity?: 'skill-share'): Promise<void>;
|
|
631
639
|
/**
|
|
632
640
|
* Report one chat-activity event to the growth system.
|
|
633
641
|
*
|
|
@@ -668,6 +676,12 @@ export declare class WorkBuddyUpstreamClient {
|
|
|
668
676
|
* response carries the display fields the summon events replay.
|
|
669
677
|
*/
|
|
670
678
|
marketExpertList(credential: WorkBuddyCredential, expertType?: 'agent' | 'team' | ''): Promise<readonly MarketExpert[]>;
|
|
679
|
+
/** Read public marketplace skills for the share-link task. */
|
|
680
|
+
shareableSkills(credential: WorkBuddyCredential): Promise<readonly ShareableSkill[]>;
|
|
681
|
+
/** Create a real link for a public marketplace skill. Never sends it to a person. */
|
|
682
|
+
createSkillShareLink(credential: WorkBuddyCredential, skill: ShareableSkill): Promise<{
|
|
683
|
+
shareCode: string;
|
|
684
|
+
}>;
|
|
671
685
|
/**
|
|
672
686
|
* Open a REAL desktop conversation and return the ids the server assigned.
|
|
673
687
|
*
|
|
@@ -763,7 +777,10 @@ export declare class WorkBuddyUpstreamClient {
|
|
|
763
777
|
* is 400 "first_buddy task not completed yet". Callers treat that as "not yet"
|
|
764
778
|
* rather than an error, which is why it is thrown as-is for them to classify.
|
|
765
779
|
*/
|
|
766
|
-
buddyAdoptFirst(credential: WorkBuddyCredential): Promise<
|
|
780
|
+
buddyAdoptFirst(credential: WorkBuddyCredential): Promise<{
|
|
781
|
+
credit: number;
|
|
782
|
+
energy: number;
|
|
783
|
+
}>;
|
|
767
784
|
/** Current travel state for the account's buddy. */
|
|
768
785
|
buddyTravelStatus(credential: WorkBuddyCredential): Promise<WorkBuddyTravelState>;
|
|
769
786
|
/**
|
|
@@ -3862,6 +3879,10 @@ export declare class WorkBuddyScheduler {
|
|
|
3862
3879
|
private stopped;
|
|
3863
3880
|
private readonly states;
|
|
3864
3881
|
private claimableSeen;
|
|
3882
|
+
/** Completion failures for the latest pass, keyed by account and task. */
|
|
3883
|
+
private readonly eventFailures;
|
|
3884
|
+
/** Direct rewards from first-Buddy adoption, awaiting the task summary. */
|
|
3885
|
+
private readonly buddyAdoptionReceipts;
|
|
3865
3886
|
/**
|
|
3866
3887
|
* Credits/energy/tasks earned per account TODAY, keyed by account id.
|
|
3867
3888
|
*
|
|
@@ -4070,6 +4091,8 @@ export declare class WorkBuddyScheduler {
|
|
|
4070
4091
|
*/
|
|
4071
4092
|
private reportOne;
|
|
4072
4093
|
private sendEventChains;
|
|
4094
|
+
/** Adopt only when the account truly lacks a Buddy; verify after the write. */
|
|
4095
|
+
private completeFirstBuddy;
|
|
4073
4096
|
/**
|
|
4074
4097
|
* Send one chain on the channel it was built for.
|
|
4075
4098
|
*
|