@pstdio/sdk 0.8.0 → 0.9.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/README.md +27 -188
- package/dist/api/extensions.d.ts +1 -1
- package/dist/api/index.d.ts +1 -2
- package/dist/api/statuses.d.ts +1 -0
- package/dist/api/tags.d.ts +1 -0
- package/dist/api/tickets.d.ts +3 -0
- package/dist/api/workspaces.d.ts +10 -1
- package/dist/client/client.d.ts +3 -2
- package/dist/client/index.d.ts +0 -1
- package/dist/client/index.js +0 -12
- package/dist/client/projects.d.ts +0 -11
- package/dist/client/statuses.d.ts +2 -0
- package/dist/client/tags.d.ts +2 -0
- package/dist/client/tickets.d.ts +2 -0
- package/dist/client/workspaces.d.ts +2 -0
- package/dist/extensions/define-command.d.ts +1 -1
- package/dist/extensions/define-extension.d.ts +50 -7
- package/dist/extensions/index.d.ts +3 -2
- package/dist/extensions/index.js +120 -11
- package/dist/extensions/kernel-slots.d.ts +36 -35
- package/dist/extensions/params.d.ts +19 -12
- package/dist/extensions/refs.d.ts +3 -3
- package/dist/extensions/slots.d.ts +1 -9
- package/dist/extensions/types/commands.d.ts +8 -0
- package/dist/extensions/types/context.d.ts +191 -12
- package/dist/extensions/types/contributions.d.ts +183 -10
- package/dist/extensions/types/extension.d.ts +16 -10
- package/dist/extensions/types/params.d.ts +43 -29
- package/dist/extensions/types/slots.d.ts +1 -1
- package/dist/extensions/types/webview-capabilities.d.ts +12 -2
- package/dist/extensions/workbench-targets.d.ts +134 -0
- package/dist/hooks/attempt.d.ts +2 -0
- package/dist/hooks/entities.d.ts +2 -0
- package/dist/hooks/ticket.d.ts +3 -0
- package/dist/resources/index.js +2 -2
- package/dist/resources/status.d.ts +1 -0
- package/dist/resources/tag.d.ts +1 -0
- package/dist/resources/ticket.d.ts +1 -0
- package/dist/resources/workspace.d.ts +4 -1
- package/package.json +2 -6
- package/dist/api/actions.d.ts +0 -13
- package/dist/client/actions.d.ts +0 -8
- package/dist/plugins/define-plugin.d.ts +0 -2
- package/dist/plugins/helpers/context.d.ts +0 -24
- package/dist/plugins/helpers/create-attempt.d.ts +0 -5
- package/dist/plugins/helpers/create-session.d.ts +0 -21
- package/dist/plugins/helpers/create-workspace.d.ts +0 -5
- package/dist/plugins/helpers/find-ticket-by-ref.d.ts +0 -6
- package/dist/plugins/helpers/find-workspace-by-ref.d.ts +0 -5
- package/dist/plugins/helpers/followup-session.d.ts +0 -29
- package/dist/plugins/helpers/get-attempts-for-ticket.d.ts +0 -17
- package/dist/plugins/helpers/index.d.ts +0 -16
- package/dist/plugins/helpers/remove-all-worktrees-for-ticket.d.ts +0 -2
- package/dist/plugins/helpers/run-command.d.ts +0 -10
- package/dist/plugins/helpers/save-ticket.d.ts +0 -14
- package/dist/plugins/helpers/set-ticket-status.d.ts +0 -7
- package/dist/plugins/helpers/set-workspace-attempt-status.d.ts +0 -7
- package/dist/plugins/helpers/ticket-pull.d.ts +0 -18
- package/dist/plugins/helpers/update-ticket-when-all-attempts-match.d.ts +0 -7
- package/dist/plugins/helpers/workspaces-for-ticket.d.ts +0 -17
- package/dist/plugins/helpers/worktree-bootstrap.d.ts +0 -8
- package/dist/plugins/hooks.d.ts +0 -42
- package/dist/plugins/index.d.ts +0 -5
- package/dist/plugins/index.js +0 -739
- package/dist/plugins/types.d.ts +0 -112
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { PluginHelperContext, TicketRef } from "./context";
|
|
2
|
-
type TicketAttemptStatusTransitionInput = TicketRef & {
|
|
3
|
-
allAttemptsStatus: string;
|
|
4
|
-
setStatus: string;
|
|
5
|
-
};
|
|
6
|
-
export declare const updateTicketWhenAllAttemptsMatch: (ctx: PluginHelperContext, input: TicketAttemptStatusTransitionInput) => Promise<boolean>;
|
|
7
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { PluginHelperContext, TicketRef } from "./context";
|
|
2
|
-
export declare const workspacesForTicket: (ctx: PluginHelperContext, input: TicketRef) => Promise<{
|
|
3
|
-
id: string;
|
|
4
|
-
project_id: string;
|
|
5
|
-
name: string;
|
|
6
|
-
branch: string | null;
|
|
7
|
-
worktree_path: string | null;
|
|
8
|
-
attempt_status_id: string | null;
|
|
9
|
-
archived: boolean;
|
|
10
|
-
workspace_shorthand: string;
|
|
11
|
-
startup_log_file_id: string | null;
|
|
12
|
-
created_at: string;
|
|
13
|
-
updated_at: string;
|
|
14
|
-
deleted_at: string | null;
|
|
15
|
-
ticket_shorthand: string;
|
|
16
|
-
attempt_status_name: string | null;
|
|
17
|
-
}[]>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { PluginHelperContext } from "./context";
|
|
2
|
-
type BootstrapWorktreeInput = {
|
|
3
|
-
repoPath: string;
|
|
4
|
-
worktreePath: string;
|
|
5
|
-
ticketId?: string;
|
|
6
|
-
};
|
|
7
|
-
export declare const bootstrapWorktree: (ctx: PluginHelperContext, input: BootstrapWorktreeInput) => Promise<void>;
|
|
8
|
-
export {};
|
package/dist/plugins/hooks.d.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import type { AttemptStatusChangeContext } from "../hooks/attempt";
|
|
2
|
-
import type { SessionHookContext } from "../hooks/session";
|
|
3
|
-
import type { TicketContext, TicketCreationContext, TicketStatusChangeContext } from "../hooks/ticket";
|
|
4
|
-
import type { CommitContext, ConflictContext, MergeContext, RebaseContext, WorktreeContext, WorktreeCreateContext, WorktreeRemoveContext } from "../hooks/worktree";
|
|
5
|
-
export type HookResponse = {
|
|
6
|
-
reject?: boolean;
|
|
7
|
-
reason?: string;
|
|
8
|
-
data?: Record<string, unknown>;
|
|
9
|
-
};
|
|
10
|
-
export type PreHookReturn = HookResponse | undefined | Promise<HookResponse | undefined>;
|
|
11
|
-
export type PostHookReturn = void | Promise<void>;
|
|
12
|
-
export type PrePluginHooks = {
|
|
13
|
-
preTicketCreation?: (ctx: TicketCreationContext) => PreHookReturn;
|
|
14
|
-
preTicketStatusChange?: (ctx: TicketStatusChangeContext) => PreHookReturn;
|
|
15
|
-
preTicketArchive?: (ctx: TicketContext) => PreHookReturn;
|
|
16
|
-
preTicketDeletion?: (ctx: TicketContext) => PreHookReturn;
|
|
17
|
-
preWorktreeCreate?: (ctx: WorktreeCreateContext) => PreHookReturn;
|
|
18
|
-
preWorktreeRemove?: (ctx: WorktreeRemoveContext) => PreHookReturn;
|
|
19
|
-
preCommit?: (ctx: CommitContext) => PreHookReturn;
|
|
20
|
-
preRebase?: (ctx: RebaseContext) => PreHookReturn;
|
|
21
|
-
preMerge?: (ctx: MergeContext) => PreHookReturn;
|
|
22
|
-
preAttemptStatusChange?: (ctx: AttemptStatusChangeContext) => PreHookReturn;
|
|
23
|
-
};
|
|
24
|
-
export type PostPluginHooks = {
|
|
25
|
-
postTicketCreation?: (ctx: TicketContext) => PostHookReturn;
|
|
26
|
-
postTicketStatusChange?: (ctx: TicketStatusChangeContext) => PostHookReturn;
|
|
27
|
-
postTicketArchive?: (ctx: TicketContext) => PostHookReturn;
|
|
28
|
-
postTicketDeletion?: (ctx: TicketContext) => PostHookReturn;
|
|
29
|
-
postSessionStart?: (ctx: SessionHookContext) => PostHookReturn;
|
|
30
|
-
postSessionSuccess?: (ctx: SessionHookContext) => PostHookReturn;
|
|
31
|
-
postSessionFail?: (ctx: SessionHookContext) => PostHookReturn;
|
|
32
|
-
postSessionResume?: (ctx: SessionHookContext) => PostHookReturn;
|
|
33
|
-
postSessionAwaitInput?: (ctx: SessionHookContext) => PostHookReturn;
|
|
34
|
-
postWorktreeCreate?: (ctx: WorktreeContext) => PostHookReturn;
|
|
35
|
-
postWorktreeRemove?: (ctx: WorktreeRemoveContext) => PostHookReturn;
|
|
36
|
-
postCommit?: (ctx: CommitContext) => PostHookReturn;
|
|
37
|
-
postRebase?: (ctx: RebaseContext) => PostHookReturn;
|
|
38
|
-
postMerge?: (ctx: MergeContext) => PostHookReturn;
|
|
39
|
-
onConflict?: (ctx: ConflictContext) => PostHookReturn;
|
|
40
|
-
postAttemptStatusChange?: (ctx: AttemptStatusChangeContext) => PostHookReturn;
|
|
41
|
-
};
|
|
42
|
-
export type PluginHooks = PrePluginHooks & PostPluginHooks;
|
package/dist/plugins/index.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { renderPrompt } from "../prompts";
|
|
2
|
-
export { definePlugin } from "./define-plugin";
|
|
3
|
-
export { bootstrapWorktree, createAttempt, createSession, createWorkspace, findTicketByRef, findWorkspaceByRef, followupSession, getAttemptsForTicket, type PullTicketsInput, type PullTicketsResult, pullTickets, removeAllWorktreesForTicket, runCommand, type SaveTicketInput, type SaveTicketResult, saveTicket, setTicketStatus, setWorkspaceAttemptStatus, updateTicketWhenAllAttemptsMatch, workspacesForTicket, } from "./helpers";
|
|
4
|
-
export type { HookResponse, PluginHooks, PostHookReturn, PostPluginHooks, PreHookReturn, PrePluginHooks, } from "./hooks";
|
|
5
|
-
export type { ActionDefinition, ActionDescriptor, ActionInput, ActionParamDef, ActionParamValue, ActionPlacement, ActionTargetMap, ActionTriggerContext, ActionTriggerResult, AgentActionParam, AgentParamValue, LongTextActionParam, PluginDefinition, RepoActionParam, RepoParamValue, ScheduleDefinition, ScheduledTriggerContext, SelectActionParam, TargetType, TemplateSelectActionParam, TextActionParam, } from "./types";
|