@kitman-sh/sdk 0.7.0 → 0.7.2

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/package.json +1 -1
  2. package/types/packages/live/src/rpc/runner-group.d.ts +260 -260
  3. package/types/packages/core/src/a2a.d.ts +0 -577
  4. package/types/packages/core/src/agent-capabilities.d.ts +0 -1434
  5. package/types/packages/core/src/agent-launch-snapshot.d.ts +0 -44
  6. package/types/packages/core/src/approval-queue.d.ts +0 -126
  7. package/types/packages/core/src/audit.d.ts +0 -52
  8. package/types/packages/core/src/change-delivery.d.ts +0 -39
  9. package/types/packages/core/src/change-request-review.d.ts +0 -146
  10. package/types/packages/core/src/change-request.d.ts +0 -432
  11. package/types/packages/core/src/connection.d.ts +0 -33
  12. package/types/packages/core/src/context-feedback.d.ts +0 -89
  13. package/types/packages/core/src/data-lifecycle.d.ts +0 -195
  14. package/types/packages/core/src/decision.d.ts +0 -48
  15. package/types/packages/core/src/delivery-operation.d.ts +0 -125
  16. package/types/packages/core/src/delivery-policy.d.ts +0 -174
  17. package/types/packages/core/src/engineering-resources.d.ts +0 -26
  18. package/types/packages/core/src/enterprise-code-host.d.ts +0 -18
  19. package/types/packages/core/src/epic-delivery.d.ts +0 -38
  20. package/types/packages/core/src/external-effect.d.ts +0 -313
  21. package/types/packages/core/src/fix-flow.d.ts +0 -149
  22. package/types/packages/core/src/following.d.ts +0 -59
  23. package/types/packages/core/src/github-delivery-fixtures.d.ts +0 -28
  24. package/types/packages/core/src/github-delivery.d.ts +0 -78
  25. package/types/packages/core/src/gitlab-delivery-fixtures.d.ts +0 -26
  26. package/types/packages/core/src/gitlab-delivery.d.ts +0 -76
  27. package/types/packages/core/src/global-search.d.ts +0 -42
  28. package/types/packages/core/src/id.d.ts +0 -1
  29. package/types/packages/core/src/integration.d.ts +0 -255
  30. package/types/packages/core/src/intent.d.ts +0 -260
  31. package/types/packages/core/src/json.d.ts +0 -10
  32. package/types/packages/core/src/kit-taxonomy.d.ts +0 -21
  33. package/types/packages/core/src/live.d.ts +0 -8309
  34. package/types/packages/core/src/me.d.ts +0 -31
  35. package/types/packages/core/src/memory.d.ts +0 -88
  36. package/types/packages/core/src/my-teams.d.ts +0 -1230
  37. package/types/packages/core/src/notification.d.ts +0 -181
  38. package/types/packages/core/src/observability.d.ts +0 -175
  39. package/types/packages/core/src/package.d.ts +0 -369
  40. package/types/packages/core/src/personal-development-profile.d.ts +0 -11
  41. package/types/packages/core/src/platform-release.d.ts +0 -60
  42. package/types/packages/core/src/program-credential.d.ts +0 -10
  43. package/types/packages/core/src/project.d.ts +0 -66
  44. package/types/packages/core/src/provider-safe-text.d.ts +0 -2
  45. package/types/packages/core/src/repo-binding.d.ts +0 -131
  46. package/types/packages/core/src/run-journal.d.ts +0 -28
  47. package/types/packages/core/src/run-launch.d.ts +0 -67
  48. package/types/packages/core/src/runner-eligibility.d.ts +0 -43
  49. package/types/packages/core/src/runner-routing.d.ts +0 -11
  50. package/types/packages/core/src/runner-trust.d.ts +0 -67
  51. package/types/packages/core/src/runner.d.ts +0 -3750
  52. package/types/packages/core/src/scope-directory.d.ts +0 -100
  53. package/types/packages/core/src/secret.d.ts +0 -37
  54. package/types/packages/core/src/session.d.ts +0 -90
  55. package/types/packages/core/src/step-brief.d.ts +0 -50
  56. package/types/packages/core/src/sync-kit.d.ts +0 -587
  57. package/types/packages/core/src/task-detail.d.ts +0 -491
  58. package/types/packages/core/src/task-execution-record.d.ts +0 -620
  59. package/types/packages/core/src/task-key.d.ts +0 -9
  60. package/types/packages/core/src/task.d.ts +0 -543
  61. package/types/packages/core/src/work-unit.d.ts +0 -740
  62. package/types/packages/core/src/workspace.d.ts +0 -96
@@ -1,100 +0,0 @@
1
- import * as Schema from 'effect/Schema';
2
- export declare const ScopeDirectoryPageSize = 50;
3
- export declare const ScopeDirectoryPageSizeMaximum = 100;
4
- export declare const ScopeDirectoryIncludedMaximum = 8;
5
- export declare const ScopeDirectoryIdMaximum = 128;
6
- export declare const ScopeDirectoryCursorMaximum = 512;
7
- export declare const ScopeDirectoryId: Schema.String;
8
- export declare const WorkspaceSelectorItem: Schema.Struct<{
9
- readonly id: Schema.String;
10
- readonly name: Schema.String;
11
- }>;
12
- export declare const ProjectSelectorItem: Schema.Struct<{
13
- readonly id: Schema.String;
14
- readonly workspaceId: Schema.String;
15
- readonly name: Schema.String;
16
- }>;
17
- export declare const ScopeDirectoryPageInfo: Schema.Union<readonly [Schema.Struct<{
18
- readonly hasNextPage: Schema.Literal<false>;
19
- }>, Schema.Struct<{
20
- readonly hasNextPage: Schema.Literal<true>;
21
- readonly endCursor: Schema.String;
22
- }>]>;
23
- export declare const WorkspaceSelectorPage: Schema.Struct<{
24
- readonly items: Schema.$Array<Schema.Struct<{
25
- readonly id: Schema.String;
26
- readonly name: Schema.String;
27
- }>>;
28
- readonly included: Schema.$Array<Schema.Struct<{
29
- readonly id: Schema.String;
30
- readonly name: Schema.String;
31
- }>>;
32
- readonly pageInfo: Schema.Union<readonly [Schema.Struct<{
33
- readonly hasNextPage: Schema.Literal<false>;
34
- }>, Schema.Struct<{
35
- readonly hasNextPage: Schema.Literal<true>;
36
- readonly endCursor: Schema.String;
37
- }>]>;
38
- }>;
39
- export declare const ProjectSelectorPage: Schema.Struct<{
40
- readonly items: Schema.$Array<Schema.Struct<{
41
- readonly id: Schema.String;
42
- readonly workspaceId: Schema.String;
43
- readonly name: Schema.String;
44
- }>>;
45
- readonly included: Schema.$Array<Schema.Struct<{
46
- readonly id: Schema.String;
47
- readonly workspaceId: Schema.String;
48
- readonly name: Schema.String;
49
- }>>;
50
- readonly pageInfo: Schema.Union<readonly [Schema.Struct<{
51
- readonly hasNextPage: Schema.Literal<false>;
52
- }>, Schema.Struct<{
53
- readonly hasNextPage: Schema.Literal<true>;
54
- readonly endCursor: Schema.String;
55
- }>]>;
56
- }>;
57
- export declare const ScopeDirectoryPageQuery: Schema.Struct<{
58
- readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.FiniteFromString]>>;
59
- readonly cursor: Schema.optionalKey<Schema.String>;
60
- readonly includeIds: Schema.optionalKey<Schema.String>;
61
- }>;
62
- export declare const parseWorkspaceSelectorPage: <ValueType>(value: ValueType) => {
63
- readonly items: readonly {
64
- readonly id: string;
65
- readonly name: string;
66
- }[];
67
- readonly included: readonly {
68
- readonly id: string;
69
- readonly name: string;
70
- }[];
71
- readonly pageInfo: {
72
- readonly hasNextPage: false;
73
- } | {
74
- readonly hasNextPage: true;
75
- readonly endCursor: string;
76
- };
77
- };
78
- export declare const parseProjectSelectorPage: <ValueType>(value: ValueType, workspaceId: string) => {
79
- readonly items: readonly {
80
- readonly id: string;
81
- readonly workspaceId: string;
82
- readonly name: string;
83
- }[];
84
- readonly included: readonly {
85
- readonly id: string;
86
- readonly workspaceId: string;
87
- readonly name: string;
88
- }[];
89
- readonly pageInfo: {
90
- readonly hasNextPage: false;
91
- } | {
92
- readonly hasNextPage: true;
93
- readonly endCursor: string;
94
- };
95
- };
96
- export type WorkspaceSelectorItem = (typeof WorkspaceSelectorItem)['Type'];
97
- export type ProjectSelectorItem = (typeof ProjectSelectorItem)['Type'];
98
- export type WorkspaceSelectorPage = (typeof WorkspaceSelectorPage)['Type'];
99
- export type ProjectSelectorPage = (typeof ProjectSelectorPage)['Type'];
100
- export type ScopeDirectoryPageInfo = (typeof ScopeDirectoryPageInfo)['Type'];
@@ -1,37 +0,0 @@
1
- import * as Schema from 'effect/Schema';
2
- /** A Secret's name, which a Loop reads through Effect `Config`. */
3
- export declare const SecretName: Schema.String;
4
- export declare const SecretScope: Schema.Union<readonly [Schema.Literal<"workspace">, Schema.Literal<"project">]>;
5
- export type SecretScope = (typeof SecretScope)['Type'];
6
- /** A Secret as anyone may see it: never its value. */
7
- export declare const SecretSummary: Schema.Struct<{
8
- readonly name: Schema.String;
9
- readonly scope: Schema.Union<readonly [Schema.Literal<"workspace">, Schema.Literal<"project">]>;
10
- readonly projectId: Schema.optionalKey<Schema.String>;
11
- readonly setByActorType: Schema.Union<readonly [Schema.Literal<"human">, Schema.Literal<"delegated_agent">, Schema.Literal<"agent">]>;
12
- readonly setByActorId: Schema.String;
13
- readonly setAt: Schema.String;
14
- }>;
15
- export type SecretSummary = (typeof SecretSummary)['Type'];
16
- export declare const SecretList: Schema.Struct<{
17
- readonly items: Schema.$Array<Schema.Struct<{
18
- readonly name: Schema.String;
19
- readonly scope: Schema.Union<readonly [Schema.Literal<"workspace">, Schema.Literal<"project">]>;
20
- readonly projectId: Schema.optionalKey<Schema.String>;
21
- readonly setByActorType: Schema.Union<readonly [Schema.Literal<"human">, Schema.Literal<"delegated_agent">, Schema.Literal<"agent">]>;
22
- readonly setByActorId: Schema.String;
23
- readonly setAt: Schema.String;
24
- }>>;
25
- }>;
26
- export type SecretList = (typeof SecretList)['Type'];
27
- export declare const secretSetRefused = "A Secret takes a value of 1 to 65536 characters and an optional projectId";
28
- /** Sets a Secret for the Workspace, or for one of its Projects; a refusal never quotes the value. */
29
- export declare const SecretSet: Schema.Struct<{
30
- readonly value: Schema.String;
31
- readonly projectId: Schema.optionalKey<Schema.String>;
32
- }>;
33
- export type SecretSet = (typeof SecretSet)['Type'];
34
- export declare const SecretScopeQuery: Schema.Struct<{
35
- readonly projectId: Schema.optionalKey<Schema.String>;
36
- }>;
37
- export type SecretScopeQuery = (typeof SecretScopeQuery)['Type'];
@@ -1,90 +0,0 @@
1
- import * as Schema from 'effect/Schema';
2
- export declare const SessionStatuses: readonly ['active', 'ended'];
3
- export declare const DefaultSessionStatus = "active";
4
- export declare const SessionStatus: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"ended">]>;
5
- export declare const SessionUpdateKind: Schema.Union<readonly [Schema.Literal<"note">, Schema.Literal<"question">, Schema.Literal<"answer">, Schema.Literal<"decision">, Schema.Literal<"blocker">, Schema.Literal<"finding">, Schema.Literal<"handoff">, Schema.Literal<"test_result">, Schema.Literal<"file_reference">, Schema.Literal<"status_change">, Schema.Literal<"assignment_change">, Schema.Literal<"link">]>;
6
- export declare const Session: Schema.Struct<{
7
- readonly id: Schema.String;
8
- readonly workspaceId: Schema.String;
9
- readonly projectId: Schema.optionalKey<Schema.String>;
10
- readonly taskId: Schema.String;
11
- readonly actorType: Schema.Union<readonly [Schema.Literal<"human">, Schema.Literal<"delegated_agent">, Schema.Literal<"agent">]>;
12
- readonly actorId: Schema.String;
13
- readonly actorName: Schema.optionalKey<Schema.String>;
14
- readonly delegatedByUserId: Schema.optionalKey<Schema.String>;
15
- readonly agentName: Schema.optionalKey<Schema.String>;
16
- readonly agentIdentityId: Schema.optionalKey<Schema.String>;
17
- readonly runtimeMetadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
18
- readonly modelMetadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
19
- readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"ended">]>;
20
- readonly summary: Schema.optionalKey<Schema.String>;
21
- readonly startedAt: Schema.String;
22
- readonly endedAt: Schema.optionalKey<Schema.String>;
23
- readonly createdAt: Schema.String;
24
- readonly updatedAt: Schema.String;
25
- }>;
26
- export declare const SessionCreate: Schema.Struct<{
27
- readonly summary: Schema.optionalKey<Schema.String>;
28
- readonly agentIdentityId: Schema.optionalKey<Schema.String>;
29
- readonly runtimeMetadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
30
- readonly modelMetadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
31
- }>;
32
- export declare const SessionEnd: Schema.Struct<{
33
- readonly summary: Schema.optionalKey<Schema.String>;
34
- }>;
35
- export declare const SessionList: Schema.Struct<{
36
- readonly items: Schema.$Array<Schema.Struct<{
37
- readonly id: Schema.String;
38
- readonly workspaceId: Schema.String;
39
- readonly projectId: Schema.optionalKey<Schema.String>;
40
- readonly taskId: Schema.String;
41
- readonly actorType: Schema.Union<readonly [Schema.Literal<"human">, Schema.Literal<"delegated_agent">, Schema.Literal<"agent">]>;
42
- readonly actorId: Schema.String;
43
- readonly actorName: Schema.optionalKey<Schema.String>;
44
- readonly delegatedByUserId: Schema.optionalKey<Schema.String>;
45
- readonly agentName: Schema.optionalKey<Schema.String>;
46
- readonly agentIdentityId: Schema.optionalKey<Schema.String>;
47
- readonly runtimeMetadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
48
- readonly modelMetadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
49
- readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"ended">]>;
50
- readonly summary: Schema.optionalKey<Schema.String>;
51
- readonly startedAt: Schema.String;
52
- readonly endedAt: Schema.optionalKey<Schema.String>;
53
- readonly createdAt: Schema.String;
54
- readonly updatedAt: Schema.String;
55
- }>>;
56
- }>;
57
- export declare const SessionUpdate: Schema.Struct<{
58
- readonly id: Schema.String;
59
- readonly sessionId: Schema.String;
60
- readonly taskId: Schema.String;
61
- readonly kind: Schema.Union<readonly [Schema.Literal<"note">, Schema.Literal<"question">, Schema.Literal<"answer">, Schema.Literal<"decision">, Schema.Literal<"blocker">, Schema.Literal<"finding">, Schema.Literal<"handoff">, Schema.Literal<"test_result">, Schema.Literal<"file_reference">, Schema.Literal<"status_change">, Schema.Literal<"assignment_change">, Schema.Literal<"link">]>;
62
- readonly content: Schema.String;
63
- readonly metadata: Schema.$Record<Schema.String, Schema.Unknown>;
64
- readonly createdAt: Schema.String;
65
- }>;
66
- export declare const SessionUpdateList: Schema.Struct<{
67
- readonly items: Schema.$Array<Schema.Struct<{
68
- readonly id: Schema.String;
69
- readonly sessionId: Schema.String;
70
- readonly taskId: Schema.String;
71
- readonly kind: Schema.Union<readonly [Schema.Literal<"note">, Schema.Literal<"question">, Schema.Literal<"answer">, Schema.Literal<"decision">, Schema.Literal<"blocker">, Schema.Literal<"finding">, Schema.Literal<"handoff">, Schema.Literal<"test_result">, Schema.Literal<"file_reference">, Schema.Literal<"status_change">, Schema.Literal<"assignment_change">, Schema.Literal<"link">]>;
72
- readonly content: Schema.String;
73
- readonly metadata: Schema.$Record<Schema.String, Schema.Unknown>;
74
- readonly createdAt: Schema.String;
75
- }>>;
76
- }>;
77
- export declare const SessionUpdateCreate: Schema.Struct<{
78
- readonly kind: Schema.Union<readonly [Schema.Literal<"note">, Schema.Literal<"question">, Schema.Literal<"answer">, Schema.Literal<"decision">, Schema.Literal<"blocker">, Schema.Literal<"finding">, Schema.Literal<"handoff">, Schema.Literal<"test_result">, Schema.Literal<"file_reference">, Schema.Literal<"status_change">, Schema.Literal<"assignment_change">, Schema.Literal<"link">]>;
79
- readonly content: Schema.String;
80
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
81
- }>;
82
- export type SessionStatus = (typeof SessionStatus)['Type'];
83
- export type SessionUpdateKind = (typeof SessionUpdateKind)['Type'];
84
- export type Session = (typeof Session)['Type'];
85
- export type SessionCreate = (typeof SessionCreate)['Type'];
86
- export type SessionEnd = (typeof SessionEnd)['Type'];
87
- export type SessionList = (typeof SessionList)['Type'];
88
- export type SessionUpdate = (typeof SessionUpdate)['Type'];
89
- export type SessionUpdateList = (typeof SessionUpdateList)['Type'];
90
- export type SessionUpdateCreate = (typeof SessionUpdateCreate)['Type'];
@@ -1,50 +0,0 @@
1
- import type { JsonObject } from './runtime-type';
2
- /** Validates an Output against its JSON Schema; the message is what the agent sees for its one repair. */
3
- export declare function validateAgentOutput(schema: JsonObject, output: JsonObject): {
4
- readonly ok: true;
5
- } | {
6
- readonly ok: false;
7
- readonly message: string;
8
- };
9
- /** The first message an agent receives. */
10
- export declare function renderStepBriefPrompt(input: {
11
- readonly instruction: string;
12
- readonly contextPackMarkdown?: string;
13
- readonly outputSchema: JsonObject;
14
- }): string;
15
- type ContextArtifact = {
16
- readonly title: string;
17
- readonly kind: string;
18
- readonly text: string;
19
- };
20
- /**
21
- * A program agent Step's ContextPack: its Task's context, this Run's artifacts, related artifacts from earlier Runs,
22
- * and what earlier attempts of the Step recorded; then the Run's Intent and steering. Undefined when there is nothing to say.
23
- */
24
- export declare function programStepContext(input: {
25
- readonly taskContext?: string;
26
- /** The Project's Kits, for a Run with no Task whose ContextPack would carry them. */
27
- readonly kits?: string;
28
- readonly runArtifacts: readonly ContextArtifact[];
29
- readonly earlierArtifacts: readonly ContextArtifact[];
30
- readonly handoff: readonly {
31
- readonly attempt: number;
32
- readonly kind: string;
33
- readonly content: string;
34
- }[];
35
- /** The Run's current Intent, as Oversight renders it. */
36
- readonly intent?: string;
37
- readonly steering?: readonly string[];
38
- }): string | undefined;
39
- /** The program's prompt, and how the agent leaves a trail a retry on another Runner can follow. */
40
- export declare const programStepInstruction: (prompt: string) => string;
41
- type StepCredentialLease = {
42
- readonly stepAttemptId: string;
43
- readonly leaseId: string;
44
- readonly fencingToken: string;
45
- };
46
- /** The agent's credential for StepAttempt-scoped Kitman MCP tools; it is valid only for the lease it was minted for. */
47
- export declare function mintStepCredential(secret: string, lease: StepCredentialLease): string;
48
- export declare function stepCredentialAttemptId(credential: string): string | undefined;
49
- export declare function stepCredentialMatches(secret: string, credential: string, lease: StepCredentialLease): boolean;
50
- export {};