@kitman-sh/sdk 0.10.78 → 0.10.80
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/dist/build/index.js +2 -2
- package/dist/{chunk-r609bz8q.js → chunk-9ff7wyqt.js} +1561 -1501
- package/dist/{chunk-7tbysqtf.js → chunk-hrwq77a0.js} +1 -1
- package/dist/loop/index.js +1 -1
- package/dist/program/index.js +2 -2
- package/package.json +1 -1
- package/types/packages/core/src/loop.d.ts +64 -11
- package/types/packages/core/src/redaction.d.ts +5 -0
- package/types/packages/core/src/secret.d.ts +2 -0
- package/types/packages/live/src/rpc/runner-group.d.ts +239 -239
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
executeLoop2,
|
|
34
34
|
LoopCheckError2,
|
|
35
35
|
checkLoop2
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-9ff7wyqt.js";
|
|
37
37
|
// packages/core/src/agent-environment.ts
|
|
38
38
|
import * as Schema from "effect/Schema";
|
|
39
39
|
var AgentEnvironmentPolicy = Schema.Union([Schema.Literal("recommended"), Schema.Literal("required")]);
|
package/dist/loop/index.js
CHANGED
package/dist/program/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"../chunk-
|
|
2
|
+
import"../chunk-9ff7wyqt.js";
|
|
3
3
|
import {
|
|
4
4
|
JournalWriteFailed2,
|
|
5
5
|
refusedStep2,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
networkGuard2,
|
|
18
18
|
carriedKits2,
|
|
19
19
|
runKit2
|
|
20
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-hrwq77a0.js";
|
|
21
21
|
export {
|
|
22
22
|
Described2 as Described,
|
|
23
23
|
JournalWriteFailed2 as JournalWriteFailed,
|
package/package.json
CHANGED
|
@@ -1567,17 +1567,6 @@ export declare const StepAttemptSessionUpdateList: Schema.Struct<{
|
|
|
1567
1567
|
readonly next: Schema.optionalKey<Schema.String>;
|
|
1568
1568
|
}>;
|
|
1569
1569
|
export type StepAttemptSessionUpdateList = (typeof StepAttemptSessionUpdateList)['Type'];
|
|
1570
|
-
export declare const StepOutputSubmissionResult: Schema.Union<readonly [Schema.Struct<{
|
|
1571
|
-
readonly status: Schema.Literal<"accepted">;
|
|
1572
|
-
}>, Schema.Struct<{
|
|
1573
|
-
readonly status: Schema.Literal<"rejected">;
|
|
1574
|
-
readonly message: Schema.String;
|
|
1575
|
-
readonly submissionsLeft: Schema.Int;
|
|
1576
|
-
}>, Schema.Struct<{
|
|
1577
|
-
readonly status: Schema.Literal<"failed">;
|
|
1578
|
-
readonly message: Schema.String;
|
|
1579
|
-
}>]>;
|
|
1580
|
-
export type StepOutputSubmissionResult = (typeof StepOutputSubmissionResult)['Type'];
|
|
1581
1570
|
/** Why a Runner holds a Harness: its provider would not serve it, or it failed to start. */
|
|
1582
1571
|
export declare const HarnessHoldReasons: readonly ['out_of_quota', 'rate_limited', 'login_refused', 'failed_to_start'];
|
|
1583
1572
|
export type HarnessHoldReason = (typeof HarnessHoldReasons)[number];
|
|
@@ -1927,6 +1916,7 @@ export declare const StepAttemptList: Schema.Struct<{
|
|
|
1927
1916
|
* resume authority; this record never mirrors or advances durable wait state.
|
|
1928
1917
|
*/
|
|
1929
1918
|
export declare const QuestionResponderPolicy: Schema.Struct<{
|
|
1919
|
+
/** Empty for a Run nobody requested, such as a scheduled one: its Workspace admins answer. */
|
|
1930
1920
|
readonly eligibleMemberIds: Schema.$Array<Schema.String>;
|
|
1931
1921
|
readonly allowWorkspaceAdmins: Schema.Boolean;
|
|
1932
1922
|
}>;
|
|
@@ -1965,6 +1955,7 @@ export declare const Question: Schema.Struct<{
|
|
|
1965
1955
|
readonly default: Schema.optionalKey<Schema.String>;
|
|
1966
1956
|
readonly defaultAt: Schema.optionalKey<Schema.String>;
|
|
1967
1957
|
readonly responderPolicy: Schema.Struct<{
|
|
1958
|
+
/** Empty for a Run nobody requested, such as a scheduled one: its Workspace admins answer. */
|
|
1968
1959
|
readonly eligibleMemberIds: Schema.$Array<Schema.String>;
|
|
1969
1960
|
readonly allowWorkspaceAdmins: Schema.Boolean;
|
|
1970
1961
|
}>;
|
|
@@ -1983,6 +1974,65 @@ export declare const Question: Schema.Struct<{
|
|
|
1983
1974
|
readonly updatedAt: Schema.String;
|
|
1984
1975
|
readonly resolvedAt: Schema.optionalKey<Schema.String>;
|
|
1985
1976
|
}>;
|
|
1977
|
+
export declare const StepOutputSubmissionResult: Schema.Union<readonly [Schema.Struct<{
|
|
1978
|
+
readonly status: Schema.Literal<"accepted">;
|
|
1979
|
+
}>, Schema.Struct<{
|
|
1980
|
+
readonly status: Schema.Literal<"rejected">;
|
|
1981
|
+
readonly message: Schema.String;
|
|
1982
|
+
readonly submissionsLeft: Schema.Int;
|
|
1983
|
+
}>, Schema.Struct<{
|
|
1984
|
+
readonly status: Schema.Literal<"failed">;
|
|
1985
|
+
readonly message: Schema.String;
|
|
1986
|
+
}>, Schema.Struct<{
|
|
1987
|
+
readonly status: Schema.Literal<"parked">;
|
|
1988
|
+
readonly message: Schema.String;
|
|
1989
|
+
readonly question: Schema.Struct<{
|
|
1990
|
+
readonly id: Schema.String;
|
|
1991
|
+
readonly workspaceId: Schema.String;
|
|
1992
|
+
readonly teamId: Schema.optionalKey<Schema.String>;
|
|
1993
|
+
readonly taskId: Schema.optionalKey<Schema.String>;
|
|
1994
|
+
readonly runId: Schema.String;
|
|
1995
|
+
/** The Step that asked: a program's `ask` name or an agent's Step name, such as `next:1`. */
|
|
1996
|
+
readonly stepKey: Schema.String;
|
|
1997
|
+
readonly waitId: Schema.String;
|
|
1998
|
+
readonly taskThreadEntryId: Schema.optionalKey<Schema.String>;
|
|
1999
|
+
readonly prompt: Schema.String;
|
|
2000
|
+
/** A program's closed options; an answer outside them is refused. */
|
|
2001
|
+
readonly options: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2002
|
+
readonly freeText: Schema.optionalKey<Schema.Boolean>;
|
|
2003
|
+
/** A short trade-off for an option, by option. */
|
|
2004
|
+
readonly optionDescriptions: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
2005
|
+
/** The answer the asker would pick: one of the options, or a suggested free-text answer. */
|
|
2006
|
+
readonly recommended: Schema.optionalKey<Schema.String>;
|
|
2007
|
+
/** Why the asker recommends it, or, for an `informationOnly` Question, why it cannot. */
|
|
2008
|
+
readonly recommendationReason: Schema.optionalKey<Schema.String>;
|
|
2009
|
+
/** It only asks for something the asker cannot guess, such as a secret's name, so it recommends nothing. */
|
|
2010
|
+
readonly informationOnly: Schema.optionalKey<Schema.Boolean>;
|
|
2011
|
+
/** What the Run takes when nobody answers: at once when it is unattended, else at `defaultAt`. */
|
|
2012
|
+
readonly default: Schema.optionalKey<Schema.String>;
|
|
2013
|
+
readonly defaultAt: Schema.optionalKey<Schema.String>;
|
|
2014
|
+
readonly responderPolicy: Schema.Struct<{
|
|
2015
|
+
/** Empty for a Run nobody requested, such as a scheduled one: its Workspace admins answer. */
|
|
2016
|
+
readonly eligibleMemberIds: Schema.$Array<Schema.String>;
|
|
2017
|
+
readonly allowWorkspaceAdmins: Schema.Boolean;
|
|
2018
|
+
}>;
|
|
2019
|
+
readonly status: Schema.Literals<readonly ["open", "answered", "resume_requested", "resumed", "resume_failed", "expired", "cancelled"]>;
|
|
2020
|
+
readonly answer: Schema.optionalKey<Schema.Struct<{
|
|
2021
|
+
readonly value: Schema.String;
|
|
2022
|
+
/** Left out when the Run took the Question's default. */
|
|
2023
|
+
readonly answeredByUserId: Schema.optionalKey<Schema.String>;
|
|
2024
|
+
/** The Run took the default: nobody was attending, or nobody answered before `defaultAt`. */
|
|
2025
|
+
readonly byDefault: Schema.optionalKey<Schema.Boolean>;
|
|
2026
|
+
readonly answeredAt: Schema.String;
|
|
2027
|
+
readonly idempotencyKey: Schema.String;
|
|
2028
|
+
}>>;
|
|
2029
|
+
readonly resolutionOutcome: Schema.optionalKey<Schema.String>;
|
|
2030
|
+
readonly createdAt: Schema.String;
|
|
2031
|
+
readonly updatedAt: Schema.String;
|
|
2032
|
+
readonly resolvedAt: Schema.optionalKey<Schema.String>;
|
|
2033
|
+
}>;
|
|
2034
|
+
}>]>;
|
|
2035
|
+
export type StepOutputSubmissionResult = (typeof StepOutputSubmissionResult)['Type'];
|
|
1986
2036
|
export declare const QuestionAnswerCreate: Schema.Struct<{
|
|
1987
2037
|
readonly value: Schema.String;
|
|
1988
2038
|
readonly idempotencyKey: Schema.String;
|
|
@@ -2014,6 +2064,7 @@ export declare const QuestionList: Schema.Struct<{
|
|
|
2014
2064
|
readonly default: Schema.optionalKey<Schema.String>;
|
|
2015
2065
|
readonly defaultAt: Schema.optionalKey<Schema.String>;
|
|
2016
2066
|
readonly responderPolicy: Schema.Struct<{
|
|
2067
|
+
/** Empty for a Run nobody requested, such as a scheduled one: its Workspace admins answer. */
|
|
2017
2068
|
readonly eligibleMemberIds: Schema.$Array<Schema.String>;
|
|
2018
2069
|
readonly allowWorkspaceAdmins: Schema.Boolean;
|
|
2019
2070
|
}>;
|
|
@@ -2701,6 +2752,7 @@ export declare const RunShow: Schema.Struct<{
|
|
|
2701
2752
|
readonly default: Schema.optionalKey<Schema.String>;
|
|
2702
2753
|
readonly defaultAt: Schema.optionalKey<Schema.String>;
|
|
2703
2754
|
readonly responderPolicy: Schema.Struct<{
|
|
2755
|
+
/** Empty for a Run nobody requested, such as a scheduled one: its Workspace admins answer. */
|
|
2704
2756
|
readonly eligibleMemberIds: Schema.$Array<Schema.String>;
|
|
2705
2757
|
readonly allowWorkspaceAdmins: Schema.Boolean;
|
|
2706
2758
|
}>;
|
|
@@ -3582,6 +3634,7 @@ export declare const RunWaitResult: Schema.Struct<{
|
|
|
3582
3634
|
readonly default: Schema.optionalKey<Schema.String>;
|
|
3583
3635
|
readonly defaultAt: Schema.optionalKey<Schema.String>;
|
|
3584
3636
|
readonly responderPolicy: Schema.Struct<{
|
|
3637
|
+
/** Empty for a Run nobody requested, such as a scheduled one: its Workspace admins answer. */
|
|
3585
3638
|
readonly eligibleMemberIds: Schema.$Array<Schema.String>;
|
|
3586
3639
|
readonly allowWorkspaceAdmins: Schema.Boolean;
|
|
3587
3640
|
}>;
|
|
@@ -9,6 +9,11 @@ declare const RedactionFindingSchema: Schema.Struct<{
|
|
|
9
9
|
readonly rule: Schema.String;
|
|
10
10
|
readonly preview: Schema.String;
|
|
11
11
|
readonly sha256: Schema.String;
|
|
12
|
+
/** Where in the text the rule matched, so the writer can fix it without the value echoed back. */
|
|
13
|
+
readonly span: Schema.optionalKey<Schema.Struct<{
|
|
14
|
+
readonly start: Schema.Int;
|
|
15
|
+
readonly end: Schema.Int;
|
|
16
|
+
}>>;
|
|
12
17
|
}>;
|
|
13
18
|
export type RedactionFinding = (typeof RedactionFindingSchema)['Type'];
|
|
14
19
|
export declare const EvidenceRef: Schema.Struct<{
|
|
@@ -17,6 +17,8 @@ export declare const secretReference: (owner: string, name: string) => string;
|
|
|
17
17
|
* it does a reference.
|
|
18
18
|
*/
|
|
19
19
|
export declare const secretPlaceholder: (token: string, reference: string) => string;
|
|
20
|
+
/** Whether `text` is wholly a reference, or a placeholder `secretPlaceholder` made for one, and holds no secret. */
|
|
21
|
+
export declare const isSecretReference: (text: string) => boolean;
|
|
20
22
|
/** `text` with each reference or placeholder in it replaced by `swap`'s answer for its reference. */
|
|
21
23
|
export declare const replaceSecretReferences: (text: string, swap: (reference: string) => string) => string;
|
|
22
24
|
/** The references in `text`, held plainly or in placeholders, each once. */
|