@kitman-sh/sdk 0.10.82 → 0.10.84

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 (79) hide show
  1. package/dist/build/index.js +2 -2
  2. package/dist/{chunk-fc5r66fq.js → chunk-3pz068kn.js} +11 -5
  3. package/dist/{chunk-0f530caz.js → chunk-cqknxyv9.js} +88 -47
  4. package/dist/loop/index.js +7 -1
  5. package/dist/program/index.js +2 -2
  6. package/package.json +1 -1
  7. package/types/packages/core/src/a2a.d.ts +577 -0
  8. package/types/packages/core/src/agent-capabilities.d.ts +1434 -0
  9. package/types/packages/core/src/agent-launch-snapshot.d.ts +44 -0
  10. package/types/packages/core/src/approval-queue.d.ts +126 -0
  11. package/types/packages/core/src/audit.d.ts +52 -0
  12. package/types/packages/core/src/change-delivery.d.ts +39 -0
  13. package/types/packages/core/src/change-request-review.d.ts +361 -0
  14. package/types/packages/core/src/change-request.d.ts +288 -0
  15. package/types/packages/core/src/connection.d.ts +33 -0
  16. package/types/packages/core/src/context-feedback.d.ts +89 -0
  17. package/types/packages/core/src/data-lifecycle.d.ts +195 -0
  18. package/types/packages/core/src/decision.d.ts +48 -0
  19. package/types/packages/core/src/delivery-operation.d.ts +125 -0
  20. package/types/packages/core/src/delivery-policy.d.ts +174 -0
  21. package/types/packages/core/src/enterprise-forge.d.ts +19 -0
  22. package/types/packages/core/src/epic-delivery.d.ts +38 -0
  23. package/types/packages/core/src/external-effect.d.ts +313 -0
  24. package/types/packages/core/src/fix-flow.d.ts +149 -0
  25. package/types/packages/core/src/following.d.ts +59 -0
  26. package/types/packages/core/src/github-delivery-fixtures.d.ts +28 -0
  27. package/types/packages/core/src/github-delivery.d.ts +78 -0
  28. package/types/packages/core/src/gitlab-delivery-fixtures.d.ts +26 -0
  29. package/types/packages/core/src/gitlab-delivery.d.ts +76 -0
  30. package/types/packages/core/src/global-search.d.ts +42 -0
  31. package/types/packages/core/src/id.d.ts +1 -0
  32. package/types/packages/core/src/integration.d.ts +276 -0
  33. package/types/packages/core/src/intent.d.ts +260 -0
  34. package/types/packages/core/src/kit-install.d.ts +130 -0
  35. package/types/packages/core/src/live.d.ts +8231 -0
  36. package/types/packages/core/src/marketplace.d.ts +168 -0
  37. package/types/packages/core/src/me.d.ts +31 -0
  38. package/types/packages/core/src/memory.d.ts +93 -0
  39. package/types/packages/core/src/my-teams.d.ts +1599 -0
  40. package/types/packages/core/src/notification.d.ts +250 -0
  41. package/types/packages/core/src/observability.d.ts +175 -0
  42. package/types/packages/core/src/owner.d.ts +15 -0
  43. package/types/packages/core/src/personal-development-profile.d.ts +11 -0
  44. package/types/packages/core/src/platform-release.d.ts +60 -0
  45. package/types/packages/core/src/program-credential.d.ts +10 -0
  46. package/types/packages/core/src/provider-safe-text.d.ts +2 -0
  47. package/types/packages/core/src/push.d.ts +68 -0
  48. package/types/packages/core/src/run-display.d.ts +22 -0
  49. package/types/packages/core/src/run-file.d.ts +190 -0
  50. package/types/packages/core/src/run-graph.d.ts +67 -0
  51. package/types/packages/core/src/run-journal.d.ts +28 -0
  52. package/types/packages/core/src/run-launch.d.ts +82 -0
  53. package/types/packages/core/src/runner-eligibility.d.ts +62 -0
  54. package/types/packages/core/src/runner-routing.d.ts +11 -0
  55. package/types/packages/core/src/runner-trust.d.ts +67 -0
  56. package/types/packages/core/src/runner.d.ts +4076 -0
  57. package/types/packages/core/src/scope-directory.d.ts +100 -0
  58. package/types/packages/core/src/session.d.ts +90 -0
  59. package/types/packages/core/src/step-brief.d.ts +70 -0
  60. package/types/packages/core/src/storage.d.ts +49 -0
  61. package/types/packages/core/src/sync-kit.d.ts +595 -0
  62. package/types/packages/core/src/task-detail.d.ts +511 -0
  63. package/types/packages/core/src/task-execution-record.d.ts +620 -0
  64. package/types/packages/core/src/task-key.d.ts +9 -0
  65. package/types/packages/core/src/task.d.ts +588 -0
  66. package/types/packages/core/src/team-context.d.ts +43 -0
  67. package/types/packages/core/src/transcript.d.ts +250 -0
  68. package/types/packages/core/src/trust-panel.d.ts +27 -0
  69. package/types/packages/core/src/work-unit.d.ts +33 -1
  70. package/types/packages/core/src/workspace.d.ts +167 -0
  71. package/types/packages/live/src/rpc/runner-client.d.ts +15 -0
  72. package/types/packages/live/src/rpc/runner-group.d.ts +1699 -1670
  73. package/types/packages/sdk/src/loop/activities.d.ts +3 -0
  74. package/types/packages/sdk/src/loop/index.d.ts +1 -0
  75. package/types/packages/sdk/src/loop/resolve.d.ts +13 -0
  76. package/types/packages/sdk/src/loop/steps.d.ts +5 -0
  77. package/types/packages/sdk/src/loop/sync.d.ts +8 -1
  78. package/types/packages/sdk/src/loop/test-loop.d.ts +7 -0
  79. package/types/packages/sdk/src/program/engine.d.ts +2 -1
@@ -265,6 +265,8 @@ export declare const PipelineStatus: Schema.Struct<{
265
265
  readonly approved: Schema.optionalKey<Schema.String>;
266
266
  /** The ChangeRequest's RepoBinding. */
267
267
  readonly repository: Schema.optionalKey<Schema.String>;
268
+ /** The branch the ChangeRequest merges into; left out by a Kitman from before it said. */
269
+ readonly targetBranch: Schema.optionalKey<Schema.String>;
268
270
  /** The forge says the ChangeRequest conflicts with its target; left out while it has not worked that out. */
269
271
  readonly conflicts: Schema.optionalKey<Schema.Boolean>;
270
272
  /** The forge says the branch must take its target in before it can merge, as a semi-linear project does. */
@@ -754,6 +756,7 @@ export declare const pipelineStatus: (name: string, request: typeof ChangeReques
754
756
  readonly runnerChecks?: readonly string[];
755
757
  readonly approved?: string;
756
758
  readonly repository?: string;
759
+ readonly targetBranch?: string;
757
760
  readonly conflicts?: boolean;
758
761
  readonly needsRebase?: boolean;
759
762
  readonly target?: {
@@ -10,6 +10,7 @@ export * from './config';
10
10
  export * from './sync';
11
11
  export * from './continuing';
12
12
  export * from './measure';
13
+ export * from './resolve';
13
14
  export * from './claims';
14
15
  /** What a verification is called, as a Loop's Output names one. */
15
16
  export { CheckName } from '../../../core/src/work-unit';
@@ -0,0 +1,13 @@
1
+ import { ResolvedRevisions } from '../../../core/src/work-unit';
2
+ import * as Effect from 'effect/Effect';
3
+ import { DurableDeferred } from 'effect/workflow';
4
+ import { StepFailed } from './steps';
5
+ export { ResolvedRevisions };
6
+ export declare const resolveDeferred: (step: string) => DurableDeferred.DurableDeferred<import("effect/Schema").Struct<{
7
+ readonly commits: import("effect/Schema").$Array<import("effect/Schema").String>;
8
+ }>, typeof StepFailed>;
9
+ /**
10
+ * Resolves each revision, such as `origin/main` or a commit SHA, to the full SHA of the commit it names now, on a
11
+ * Runner with no agent and no checks. A revision that names no commit fails the Step.
12
+ */
13
+ export declare const resolveRevisions: (name: string, revisions: readonly [string, ...string[]]) => Effect.Effect<readonly string[], import("./steps").CapabilityDenied | import("./steps").DuplicateStep | StepFailed, import("./steps").LoopHost | import("./steps").LoopRun | import("effect/workflow/WorkflowEngine").WorkflowEngine | import("effect/workflow/WorkflowEngine").WorkflowInstance>;
@@ -151,6 +151,11 @@ export type VerificationLaunch = Launch & {
151
151
  readonly rerunFailed?: boolean;
152
152
  /** Benchmarks the revision against `base` (the Run's base branch head when left out) in place of checks. */
153
153
  readonly measure?: MeasureLaunch;
154
+ /** Resolves revisions to the commits they name now, in place of checks. */
155
+ readonly resolve?: ResolveLaunch;
156
+ };
157
+ export type ResolveLaunch = {
158
+ readonly revisions: readonly string[];
154
159
  };
155
160
  export type MeasureLaunch = {
156
161
  readonly base?: string;
@@ -1,13 +1,16 @@
1
1
  import * as Schema from 'effect/Schema';
2
2
  /**
3
3
  * What a base sync did: nothing to take, a merge that went in, or the files it could not settle. A merge carries the
4
- * Runner's `catchUp` report of what it did to the branch's own change, when the Runner made one.
4
+ * Runner's `catchUp` report of what it did to the branch's own change, when the Runner made one; each carries `base`,
5
+ * the commit the Runner read the target branch at, when the Runner reports one.
5
6
  */
6
7
  export declare const BaseSync: Schema.Union<readonly [Schema.Struct<{
7
8
  readonly status: Schema.Literal<"up_to_date">;
9
+ readonly base: Schema.optionalKey<Schema.String>;
8
10
  }>, Schema.Struct<{
9
11
  readonly status: Schema.Literal<"merged">;
10
12
  readonly settled: Schema.$Array<Schema.String>;
13
+ readonly base: Schema.optionalKey<Schema.String>;
11
14
  readonly catchUp: Schema.optionalKey<Schema.Struct<{
12
15
  readonly from: Schema.String;
13
16
  readonly head: Schema.String;
@@ -21,6 +24,7 @@ export declare const BaseSync: Schema.Union<readonly [Schema.Struct<{
21
24
  /** The files it could not settle; the merge was aborted, so the branch is as it was. */
22
25
  readonly files: Schema.NonEmptyArray<Schema.String>;
23
26
  readonly reason: Schema.String;
27
+ readonly base: Schema.optionalKey<Schema.String>;
24
28
  }>]>;
25
29
  export type BaseSync = typeof BaseSync.Type;
26
30
  /**
@@ -35,9 +39,11 @@ export declare const syncBase: (name: string, options: {
35
39
  readonly target?: string;
36
40
  }) => import("effect/Effect").Effect<{
37
41
  readonly status: "up_to_date";
42
+ readonly base?: string;
38
43
  } | {
39
44
  readonly status: "merged";
40
45
  readonly settled: readonly string[];
46
+ readonly base?: string;
41
47
  readonly catchUp?: {
42
48
  readonly from: string;
43
49
  readonly head: string;
@@ -50,4 +56,5 @@ export declare const syncBase: (name: string, options: {
50
56
  readonly status: "conflict";
51
57
  readonly files: readonly [string, ...string[]];
52
58
  readonly reason: string;
59
+ readonly base?: string;
53
60
  }, import("./steps").CapabilityDenied | import("./steps").DuplicateStep | import("./steps").OutputInvalid | import("./steps").StepFailed, import("./steps").LoopHost | import("./steps").LoopRun | import("effect/workflow/WorkflowEngine").WorkflowEngine | import("effect/workflow/WorkflowEngine").WorkflowInstance>;
@@ -74,6 +74,13 @@ export type TestLoopScript = {
74
74
  readonly measurements?: {
75
75
  readonly [step: string]: MeasureEvidence | ScriptedFailure;
76
76
  };
77
+ /**
78
+ * The commit each revision a `resolveRevisions` Step resolves names, by revision; `null` names none. A revision left
79
+ * out names itself when it is a full SHA, and otherwise a commit made up from its name.
80
+ */
81
+ readonly commits?: {
82
+ readonly [revision: string]: string | null;
83
+ };
77
84
  /** What each `claim` Step came to; a claim left out is granted. */
78
85
  readonly claims?: {
79
86
  readonly [step: string]: ClaimResult;
@@ -1,6 +1,6 @@
1
1
  import { type OrchestrationWorkUnit, type ProgramWorkUnit, type RunFilePartUrl, type RunFileRecord, type RunFileUpload } from '../../../core/src/index';
2
2
  import { type QuestionAdvice } from '../../../core/src/question-recommendation';
3
- import { StepFailed, type MeasureLaunch, type ChangeRequestResult, type EventFilter, type OtherEvent, type IntegrationBranch, type LoopDefinition, type MergeResult, type ReleaseResult, type PlanTicket, type ProposeRequest, type TranscriptsResult, type AlertTaskResult, type PipelineStatus, type ReportPipelineResult, type ReviewThreads, type OpenChangeRequests, type OwnChangeRequests, type DraftUpdateRequest, type ProjectActivityResult, type WriteBackMilestones, type SuggestedVerification } from '../loop';
3
+ import { StepFailed, type MeasureLaunch, type ResolveLaunch, type ChangeRequestResult, type EventFilter, type OtherEvent, type IntegrationBranch, type LoopDefinition, type MergeResult, type ReleaseResult, type PlanTicket, type ProposeRequest, type TranscriptsResult, type AlertTaskResult, type PipelineStatus, type ReportPipelineResult, type ReviewThreads, type OpenChangeRequests, type OwnChangeRequests, type DraftUpdateRequest, type ProjectActivityResult, type WriteBackMilestones, type SuggestedVerification } from '../loop';
4
4
  import * as Cause from 'effect/Cause';
5
5
  import * as Effect from 'effect/Effect';
6
6
  import * as FileSystem from 'effect/FileSystem';
@@ -57,6 +57,7 @@ export type ProgramCapabilities = {
57
57
  readonly suggested?: readonly SuggestedVerification[];
58
58
  readonly rerunFailed?: boolean;
59
59
  readonly measure?: MeasureLaunch;
60
+ readonly resolve?: ResolveLaunch;
60
61
  }) => Effect.Effect<{
61
62
  readonly verificationId: string;
62
63
  }, Error>;