@pstdio/sdk 0.21.0 → 0.22.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.
Files changed (62) hide show
  1. package/README.md +22 -192
  2. package/dist/api/index.js +419 -298
  3. package/dist/api.d.ts +3767 -0
  4. package/dist/client/index.js +1 -0
  5. package/dist/client.d.ts +1714 -0
  6. package/dist/extensions/index.js +120 -19
  7. package/dist/extensions/react/index.js +2 -1
  8. package/dist/{extensions/react/index.d.ts → extensions-react.d.ts} +23 -16
  9. package/dist/extensions.d.ts +3826 -0
  10. package/dist/hooks.d.ts +1775 -0
  11. package/dist/{prompts/render-prompt.d.ts → prompts.d.ts} +3 -1
  12. package/dist/resources/index.js +419 -298
  13. package/dist/resources.d.ts +422 -0
  14. package/package.json +12 -31
  15. package/dist/api/extensions.d.ts +0 -1
  16. package/dist/api/index.d.ts +0 -9
  17. package/dist/api/projects.d.ts +0 -1
  18. package/dist/api/sessions.d.ts +0 -2
  19. package/dist/api/settings.d.ts +0 -1
  20. package/dist/api/skills.d.ts +0 -1
  21. package/dist/api/terminal.d.ts +0 -49
  22. package/dist/api/workspaces.d.ts +0 -12
  23. package/dist/client/agents.d.ts +0 -10
  24. package/dist/client/automation.d.ts +0 -12
  25. package/dist/client/client.d.ts +0 -26
  26. package/dist/client/extensions.d.ts +0 -15
  27. package/dist/client/index.d.ts +0 -14
  28. package/dist/client/notifications.d.ts +0 -23
  29. package/dist/client/projects.d.ts +0 -14
  30. package/dist/client/request.d.ts +0 -25
  31. package/dist/client/runtime.d.ts +0 -5
  32. package/dist/client/sessions.d.ts +0 -45
  33. package/dist/client/settings.d.ts +0 -7
  34. package/dist/client/skills.d.ts +0 -9
  35. package/dist/client/sse.d.ts +0 -15
  36. package/dist/client/sync.d.ts +0 -35
  37. package/dist/client/workspaces.d.ts +0 -20
  38. package/dist/extensions/command-outcome.d.ts +0 -5
  39. package/dist/extensions/define-command.d.ts +0 -28
  40. package/dist/extensions/define-contribution.d.ts +0 -36
  41. package/dist/extensions/define-extension-view.d.ts +0 -58
  42. package/dist/extensions/define-extension.d.ts +0 -24
  43. package/dist/extensions/index.d.ts +0 -14
  44. package/dist/extensions/params.d.ts +0 -33
  45. package/dist/extensions/refs.d.ts +0 -8
  46. package/dist/extensions/terminal-session-bridge.d.ts +0 -32
  47. package/dist/extensions/webview-client.d.ts +0 -41
  48. package/dist/extensions/when.d.ts +0 -11
  49. package/dist/hooks/base.d.ts +0 -17
  50. package/dist/hooks/entities.d.ts +0 -8
  51. package/dist/hooks/index.d.ts +0 -3
  52. package/dist/hooks/session.d.ts +0 -12
  53. package/dist/hooks/worktree.d.ts +0 -53
  54. package/dist/prompts/index.d.ts +0 -1
  55. package/dist/resources/agent.d.ts +0 -2
  56. package/dist/resources/file.d.ts +0 -1
  57. package/dist/resources/index.d.ts +0 -9
  58. package/dist/resources/project.d.ts +0 -1
  59. package/dist/resources/session.d.ts +0 -1
  60. package/dist/resources/settings.d.ts +0 -1
  61. package/dist/resources/skill.d.ts +0 -1
  62. package/dist/resources/workspace.d.ts +0 -3
@@ -1,53 +0,0 @@
1
- import type { BaseHookContext } from "./base";
2
- import type { HookResourceAnchor } from "./entities";
3
- export type WorktreeCreateContext = BaseHookContext & {
4
- repoPath: string;
5
- worktreePath: string;
6
- branch: string;
7
- workspace: string;
8
- base: string;
9
- anchors?: HookResourceAnchor[];
10
- };
11
- export type WorktreeContext = BaseHookContext & {
12
- repoPath: string;
13
- worktreePath: string;
14
- branch: string;
15
- workspace: string;
16
- workspaceId: string;
17
- anchors?: HookResourceAnchor[];
18
- };
19
- export type CommitContext = {
20
- repoPath: string;
21
- worktreePath: string;
22
- commitMessage: string;
23
- stagePolicy: string;
24
- commitSha?: string;
25
- };
26
- export type RebaseContext = {
27
- repoPath: string;
28
- branch: string;
29
- target: string;
30
- };
31
- export type MergeContext = {
32
- repoPath: string;
33
- branch: string;
34
- target: string;
35
- squash: boolean;
36
- commitMessage: string | null;
37
- commitSha?: string;
38
- };
39
- export type ConflictContext = {
40
- repoPath: string;
41
- branch: string;
42
- target: string;
43
- operation: "rebase" | "merge";
44
- };
45
- export type WorktreeRemoveContext = {
46
- repoPath: string;
47
- worktreePath: string | null;
48
- branch: string;
49
- workspace: string;
50
- workspaceId: string;
51
- anchors?: HookResourceAnchor[];
52
- projectId: string;
53
- };
@@ -1 +0,0 @@
1
- export { renderPrompt } from "./render-prompt";
@@ -1,2 +0,0 @@
1
- export type { AgentAvailabilityType, AgentInfo, AgentModel, AgentSkillsLayout } from "pstdio-api-contracts";
2
- export { harnessLocalId } from "pstdio-api-contracts";
@@ -1 +0,0 @@
1
- export type { FileRecord } from "pstdio-api-contracts";
@@ -1,9 +0,0 @@
1
- export type { Repo } from "pstdio-api-contracts";
2
- export type { AgentAvailabilityType, AgentInfo, AgentModel, AgentSkillsLayout } from "./agent";
3
- export { harnessLocalId } from "./agent";
4
- export type { FileRecord } from "./file";
5
- export type { Project } from "./project";
6
- export type { Session, SessionStatus } from "./session";
7
- export type { Settings } from "./settings";
8
- export type { Skill, SkillFile, SkillWithContent } from "./skill";
9
- export type { Workspace, WorkspaceListItem } from "./workspace";
@@ -1 +0,0 @@
1
- export type { Project } from "pstdio-api-contracts";
@@ -1 +0,0 @@
1
- export type { Session, SessionStatus } from "pstdio-api-contracts";
@@ -1 +0,0 @@
1
- export type { Settings } from "pstdio-api-contracts";
@@ -1 +0,0 @@
1
- export type { Skill, SkillFile, SkillWithContent } from "pstdio-api-contracts";
@@ -1,3 +0,0 @@
1
- import type { Workspace as ContractWorkspace, WorkspaceListItem as ContractWorkspaceListItem } from "pstdio-api-contracts";
2
- export type Workspace = ContractWorkspace;
3
- export type WorkspaceListItem = ContractWorkspaceListItem;