@maycombhq/sdk 2.0.0-beta.1 → 2.0.0-beta.3
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 → npm}/cache.d.ts +1 -1
- package/npm/core/api.d.ts +6098 -0
- package/npm/core/assistant-actor.d.ts +15 -0
- package/npm/core/branches.d.ts +21 -0
- package/npm/core/cancel.d.ts +9 -0
- package/npm/core/catalog.d.ts +4733 -0
- package/npm/core/change-types-migrate.d.ts +10 -0
- package/npm/core/cite.d.ts +54 -0
- package/npm/core/curated.d.ts +37 -0
- package/npm/core/facts-callers.d.ts +150 -0
- package/npm/core/facts-carry.d.ts +36 -0
- package/npm/core/facts-join-prototype.d.ts +177 -0
- package/npm/core/facts-join-vendor.d.ts +92 -0
- package/npm/core/facts-join.d.ts +256 -0
- package/npm/core/facts.d.ts +94 -0
- package/npm/core/fs.d.ts +47 -0
- package/npm/core/gates-migrate.d.ts +10 -0
- package/npm/core/host-questions.d.ts +24 -0
- package/npm/core/identity.d.ts +17 -0
- package/npm/core/index.d.ts +62 -0
- package/npm/core/json-schema.d.ts +20 -0
- package/npm/core/judgments.d.ts +63 -0
- package/npm/core/light.d.ts +8 -0
- package/npm/core/log.d.ts +49 -0
- package/npm/core/manifest-edit.d.ts +48 -0
- package/npm/core/merge.d.ts +78 -0
- package/npm/core/metarepo.d.ts +83 -0
- package/npm/core/migrate.d.ts +31 -0
- package/npm/core/migration-files.d.ts +13 -0
- package/npm/core/orgpack-defaults.d.ts +194 -0
- package/npm/core/orgpack-load.d.ts +86 -0
- package/npm/core/questions.d.ts +267 -0
- package/npm/core/record-cache.d.ts +52 -0
- package/npm/core/refs.d.ts +9 -0
- package/npm/core/repo-description.d.ts +44 -0
- package/npm/core/runtime-migrate.d.ts +11 -0
- package/npm/core/schema/ai.d.ts +397 -0
- package/npm/core/schema/change.d.ts +244 -0
- package/npm/core/schema/common.d.ts +135 -0
- package/npm/core/schema/dialect.d.ts +801 -0
- package/npm/core/schema/executors.d.ts +396 -0
- package/npm/core/schema/fact-corrections.d.ts +55 -0
- package/npm/core/schema/facts.d.ts +1476 -0
- package/npm/core/schema/frameworks.d.ts +371 -0
- package/npm/core/schema/judgment.d.ts +77 -0
- package/npm/core/schema/kinds.d.ts +5166 -0
- package/npm/core/schema/layout.d.ts +25 -0
- package/npm/core/schema/orgpack.d.ts +1167 -0
- package/npm/core/schema/plugin.d.ts +73 -0
- package/npm/core/schema/question.d.ts +152 -0
- package/npm/core/schema/repo-type.d.ts +109 -0
- package/npm/core/schema/review.d.ts +558 -0
- package/npm/core/schema/scan-settings.d.ts +34 -0
- package/npm/core/schema/scan-verify.d.ts +535 -0
- package/npm/core/schema/spec.d.ts +269 -0
- package/npm/core/schema/version.d.ts +9 -0
- package/npm/core/schema/workspace.d.ts +312 -0
- package/npm/core/serialize.d.ts +17 -0
- package/npm/core/sources-migrate.d.ts +15 -0
- package/npm/core/specs.d.ts +66 -0
- package/npm/core/tar-read.d.ts +13 -0
- package/npm/core/template.d.ts +101 -0
- package/npm/core/words.d.ts +13 -0
- package/npm/core/zip-read.d.ts +37 -0
- package/npm/core/zip.d.ts +13 -0
- package/npm/index.js +8892 -0
- package/{dist → npm}/plugin.d.ts +1 -1
- package/{dist → npm}/runner.d.ts +1 -1
- package/package.json +10 -11
- package/dist/cache.js +0 -115
- package/dist/cache.js.map +0 -1
- package/dist/fs-repo.js +0 -120
- package/dist/fs-repo.js.map +0 -1
- package/dist/index.js +0 -7
- package/dist/index.js.map +0 -1
- package/dist/parse-cache.js +0 -275
- package/dist/parse-cache.js.map +0 -1
- package/dist/plugin.js +0 -85
- package/dist/plugin.js.map +0 -1
- package/dist/runner.js +0 -209
- package/dist/runner.js.map +0 -1
- package/dist/sandbox.js +0 -443
- package/dist/sandbox.js.map +0 -1
- /package/{dist → npm}/fs-repo.d.ts +0 -0
- /package/{dist → npm}/index.d.ts +0 -0
- /package/{dist → npm}/parse-cache.d.ts +0 -0
- /package/{dist → npm}/sandbox.d.ts +0 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The name a `by` matched when it names an AI agent or runtime rather than a person (ADR 0115
|
|
3
|
+
* addendum, 2026-10-25): one of the assistants Atticus writes files for, or its short name (the
|
|
4
|
+
* part before its first hyphen); a runtime kind; a generic word for an AI; a Git host's bot
|
|
5
|
+
* account; or one of `known`, which the caller fills from the org pack (its agents' ids, the models
|
|
6
|
+
* it allows). A handle matches a name when it is the name, or starts or ends with it joined by a
|
|
7
|
+
* hyphen, dot, underscore or space ("copilot-agent", "ai-reviewer"); an email is read by its local
|
|
8
|
+
* part. Undefined for a person. Facts about the words only: Atticus can't see who typed them, so
|
|
9
|
+
* this is a record and a speed bump, and the pull request a person approves stays the gate.
|
|
10
|
+
*/
|
|
11
|
+
export declare function assistantActor(by: string, known?: readonly string[]): string | undefined;
|
|
12
|
+
/** Whether a finding's resolution was recorded by an AI rather than a person. */
|
|
13
|
+
export declare const isAssistantResolution: (r: {
|
|
14
|
+
by: string;
|
|
15
|
+
} | undefined, known?: readonly string[]) => boolean;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Branch naming (frozen in the build specification):
|
|
3
|
+
* - `change/<change-id>` in each code repo a change touches
|
|
4
|
+
* - `task/<change-id>/<task-id>` for an AI task run, merged into the change branch by PR
|
|
5
|
+
* - `handoff/<change-id>/<phase>` for a hand-off PR in the metarepo
|
|
6
|
+
*
|
|
7
|
+
* `change/x` and `change/x/y` can't both exist in one repo (Git stores refs as paths),
|
|
8
|
+
* which is why task branches have their own prefix.
|
|
9
|
+
*/
|
|
10
|
+
export type BranchKind = "change" | "task" | "handoff";
|
|
11
|
+
export interface ParsedBranch {
|
|
12
|
+
kind: BranchKind;
|
|
13
|
+
change: string;
|
|
14
|
+
task?: string;
|
|
15
|
+
phase?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function changeBranch(changeId: string): string;
|
|
18
|
+
export declare function taskBranch(changeId: string, taskId: string): string;
|
|
19
|
+
export declare function handoffBranch(changeId: string, phase: string): string;
|
|
20
|
+
/** Parse an Atticus branch name; returns undefined for any other branch. */
|
|
21
|
+
export declare function parseBranch(branch: string): ParsedBranch | undefined;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare class CancelledError extends Error {
|
|
2
|
+
constructor(message?: string);
|
|
3
|
+
}
|
|
4
|
+
/** Run `fn` with `signal` as the signal of everything it starts. */
|
|
5
|
+
export declare function withSignal<T>(signal: AbortSignal, fn: () => Promise<T>): Promise<T>;
|
|
6
|
+
/** The signal of the job this code runs in, if it runs in one. */
|
|
7
|
+
export declare function currentSignal(): AbortSignal | undefined;
|
|
8
|
+
/** Stop here when the job was cancelled. */
|
|
9
|
+
export declare function throwIfCancelled(): void;
|