deck-plugin-sdk 0.16.0 → 0.17.0
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/package.json +1 -1
- package/shim/bridge.js +16 -0
- package/template/plugin.json +1 -1
- package/types/core/bridge.d.ts +31 -1
package/package.json
CHANGED
package/shim/bridge.js
CHANGED
|
@@ -50,12 +50,18 @@ export const fsWrite = (...a) => b().fsWrite(...a);
|
|
|
50
50
|
export const fsWriteBytes = (...a) => b().fsWriteBytes(...a);
|
|
51
51
|
export const getAutostart = (...a) => b().getAutostart(...a);
|
|
52
52
|
export const getVaultRoot = (...a) => b().getVaultRoot(...a);
|
|
53
|
+
export const ghPrLineComment = (...a) => b().ghPrLineComment(...a);
|
|
54
|
+
export const ghPrThreads = (...a) => b().ghPrThreads(...a);
|
|
55
|
+
export const ghRun = (...a) => b().ghRun(...a);
|
|
56
|
+
export const ghThreadReply = (...a) => b().ghThreadReply(...a);
|
|
57
|
+
export const ghThreadResolve = (...a) => b().ghThreadResolve(...a);
|
|
53
58
|
export const gitAbortOp = (...a) => b().gitAbortOp(...a);
|
|
54
59
|
export const gitAiCommitMsg = (...a) => b().gitAiCommitMsg(...a);
|
|
55
60
|
export const gitBlameLine = (...a) => b().gitBlameLine(...a);
|
|
56
61
|
export const gitBranchAt = (...a) => b().gitBranchAt(...a);
|
|
57
62
|
export const gitBranchDelete = (...a) => b().gitBranchDelete(...a);
|
|
58
63
|
export const gitBranchDeleteRemote = (...a) => b().gitBranchDeleteRemote(...a);
|
|
64
|
+
export const gitBranchRename = (...a) => b().gitBranchRename(...a);
|
|
59
65
|
export const gitBranches = (...a) => b().gitBranches(...a);
|
|
60
66
|
export const gitCheckout = (...a) => b().gitCheckout(...a);
|
|
61
67
|
export const gitCheckoutDetach = (...a) => b().gitCheckoutDetach(...a);
|
|
@@ -65,22 +71,32 @@ export const gitCherryPick = (...a) => b().gitCherryPick(...a);
|
|
|
65
71
|
export const gitCommit = (...a) => b().gitCommit(...a);
|
|
66
72
|
export const gitCommitAmend = (...a) => b().gitCommitAmend(...a);
|
|
67
73
|
export const gitCommitFiles = (...a) => b().gitCommitFiles(...a);
|
|
74
|
+
export const gitContinueOp = (...a) => b().gitContinueOp(...a);
|
|
68
75
|
export const gitDiscard = (...a) => b().gitDiscard(...a);
|
|
69
76
|
export const gitFetch = (...a) => b().gitFetch(...a);
|
|
77
|
+
export const gitFetchPr = (...a) => b().gitFetchPr(...a);
|
|
70
78
|
export const gitFileBytes = (...a) => b().gitFileBytes(...a);
|
|
71
79
|
export const gitFileDiff = (...a) => b().gitFileDiff(...a);
|
|
80
|
+
export const gitHead = (...a) => b().gitHead(...a);
|
|
72
81
|
export const gitHeadFile = (...a) => b().gitHeadFile(...a);
|
|
73
82
|
export const gitIndexFile = (...a) => b().gitIndexFile(...a);
|
|
74
83
|
export const gitInfo = (...a) => b().gitInfo(...a);
|
|
75
84
|
export const gitLogGraph = (...a) => b().gitLogGraph(...a);
|
|
76
85
|
export const gitMerge = (...a) => b().gitMerge(...a);
|
|
86
|
+
export const gitMergeAs = (...a) => b().gitMergeAs(...a);
|
|
87
|
+
export const gitMergeBase = (...a) => b().gitMergeBase(...a);
|
|
77
88
|
export const gitPendingOp = (...a) => b().gitPendingOp(...a);
|
|
78
89
|
export const gitPull = (...a) => b().gitPull(...a);
|
|
79
90
|
export const gitPullRebase = (...a) => b().gitPullRebase(...a);
|
|
80
91
|
export const gitPush = (...a) => b().gitPush(...a);
|
|
81
92
|
export const gitPushBranch = (...a) => b().gitPushBranch(...a);
|
|
93
|
+
export const gitRangeFiles = (...a) => b().gitRangeFiles(...a);
|
|
94
|
+
export const gitRangeSubjects = (...a) => b().gitRangeSubjects(...a);
|
|
95
|
+
export const gitRebase = (...a) => b().gitRebase(...a);
|
|
82
96
|
export const gitRefs = (...a) => b().gitRefs(...a);
|
|
97
|
+
export const gitRemoteUrl = (...a) => b().gitRemoteUrl(...a);
|
|
83
98
|
export const gitRemotes = (...a) => b().gitRemotes(...a);
|
|
99
|
+
export const gitRepos = (...a) => b().gitRepos(...a);
|
|
84
100
|
export const gitResetTo = (...a) => b().gitResetTo(...a);
|
|
85
101
|
export const gitRevert = (...a) => b().gitRevert(...a);
|
|
86
102
|
export const gitShowFile = (...a) => b().gitShowFile(...a);
|
package/template/plugin.json
CHANGED
package/types/core/bridge.d.ts
CHANGED
|
@@ -523,6 +523,8 @@ export declare const removeClaudeMcp: () => Promise<void>;
|
|
|
523
523
|
export declare const removeClaudeHooks: () => Promise<void>;
|
|
524
524
|
export declare const notifyOs: (title: string, body: string) => Promise<void>;
|
|
525
525
|
export declare const gitStatus: (dir: string) => Promise<GitStatusRow[]>;
|
|
526
|
+
/** The repos a folder holds: the one it is inside first, then any below it. Each a repo's top level. */
|
|
527
|
+
export declare const gitRepos: (dir: string) => Promise<string[]>;
|
|
526
528
|
export interface BlameLine {
|
|
527
529
|
hash: string;
|
|
528
530
|
author: string;
|
|
@@ -605,9 +607,37 @@ export declare const gitUndoCommit: (dir: string) => Promise<string>;
|
|
|
605
607
|
export declare const gitBranchAt: (dir: string, name: string, rev: string) => Promise<string>;
|
|
606
608
|
export declare const gitRevert: (dir: string, rev: string) => Promise<string>;
|
|
607
609
|
export declare const gitCherryPick: (dir: string, rev: string) => Promise<string>;
|
|
608
|
-
export declare const gitResetTo: (dir: string, rev: string, mode: "soft" | "mixed" | "hard") => Promise<string>;
|
|
610
|
+
export declare const gitResetTo: (dir: string, rev: string, mode: "soft" | "mixed" | "hard" | "keep") => Promise<string>;
|
|
609
611
|
export declare const gitTag: (dir: string, name: string, rev: string, message?: string) => Promise<string>;
|
|
610
612
|
export declare const gitMerge: (dir: string, rev: string, noFf?: boolean) => Promise<string>;
|
|
613
|
+
/** Rebase the current branch onto `onto`; a conflict leaves it pending (gitPendingOp → "rebase"). */
|
|
614
|
+
export declare const gitRebase: (dir: string, onto: string) => Promise<string>;
|
|
615
|
+
/** HEAD's commit and branch ("" when detached) — what an undo returns to. */
|
|
616
|
+
export declare const gitHead: (dir: string) => Promise<{
|
|
617
|
+
hash: string;
|
|
618
|
+
branch: string;
|
|
619
|
+
}>;
|
|
620
|
+
/** Merge `rev` into the current branch: a merge commit always, fast-forward when possible, or squashed into one commit. */
|
|
621
|
+
export declare const gitMergeAs: (dir: string, rev: string, style: "no-ff" | "ff" | "squash") => Promise<string>;
|
|
622
|
+
/** Finish a merge, rebase, revert or cherry-pick (what gitPendingOp reported) once its conflicts are staged. */
|
|
623
|
+
export declare const gitContinueOp: (dir: string, op: string) => Promise<string>;
|
|
624
|
+
/** Subjects of the commits on `head` that `base` lacks, oldest first. */
|
|
625
|
+
export declare const gitRangeSubjects: (dir: string, base: string, head: string) => Promise<string[]>;
|
|
626
|
+
export declare const gitRemoteUrl: (dir: string, name: string) => Promise<string>;
|
|
627
|
+
/** The GitHub CLI, `gh pr …` or `gh repo view …` only. Rejects with "gh-missing" when gh is not installed. */
|
|
628
|
+
export declare const ghRun: (dir: string, args: string[]) => Promise<string>;
|
|
629
|
+
/** Pull request N's review threads, as GitHub's GraphQL JSON (parsed by prs.ts parseThreads). */
|
|
630
|
+
export declare const ghPrThreads: (dir: string, number: number) => Promise<string>;
|
|
631
|
+
/** Comment on one line of a PR's diff: side "RIGHT" is the new version, "LEFT" the old. */
|
|
632
|
+
export declare const ghPrLineComment: (dir: string, number: number, commit: string, path: string, line: number, side: "LEFT" | "RIGHT", body: string) => Promise<string>;
|
|
633
|
+
export declare const ghThreadReply: (dir: string, thread: string, body: string) => Promise<string>;
|
|
634
|
+
export declare const ghThreadResolve: (dir: string, thread: string, resolve: boolean) => Promise<string>;
|
|
635
|
+
/** The files that differ between two revisions. */
|
|
636
|
+
export declare const gitRangeFiles: (dir: string, from: string, to: string) => Promise<CommitFile[]>;
|
|
637
|
+
export declare const gitMergeBase: (dir: string, a: string, b: string) => Promise<string>;
|
|
638
|
+
/** Fetch pull request N's head from `remote`, so its commits can be diffed here. */
|
|
639
|
+
export declare const gitFetchPr: (dir: string, remote: string, number: number, base: string) => Promise<string>;
|
|
640
|
+
export declare const gitBranchRename: (dir: string, from: string, to: string) => Promise<string>;
|
|
611
641
|
export declare const gitPendingOp: (dir: string) => Promise<string>;
|
|
612
642
|
export declare const gitAbortOp: (dir: string, op: string) => Promise<string>;
|
|
613
643
|
export declare const gitBranchDelete: (dir: string, name: string, force?: boolean) => Promise<string>;
|