team 0.0.1 → 0.1.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.
- package/LICENSE +21 -0
- package/README.md +310 -0
- package/dist/approve/approval.d.ts +38 -0
- package/dist/approve/approval.js +78 -0
- package/dist/approve/diff.d.ts +13 -0
- package/dist/approve/diff.js +47 -0
- package/dist/approve/fingerprint.d.ts +44 -0
- package/dist/approve/fingerprint.js +109 -0
- package/dist/args.d.ts +7 -0
- package/dist/args.js +22 -0
- package/dist/budgets/checks.d.ts +35 -0
- package/dist/budgets/checks.js +77 -0
- package/dist/budgets/gate.d.ts +20 -0
- package/dist/budgets/gate.js +96 -0
- package/dist/budgets/readings.d.ts +47 -0
- package/dist/budgets/readings.js +119 -0
- package/dist/budgets/run.d.ts +66 -0
- package/dist/budgets/run.js +119 -0
- package/dist/budgets/table.d.ts +24 -0
- package/dist/budgets/table.js +90 -0
- package/dist/caller.d.ts +48 -0
- package/dist/caller.js +126 -0
- package/dist/check/config.d.ts +51 -0
- package/dist/check/config.js +50 -0
- package/dist/check/git.d.ts +27 -0
- package/dist/check/git.js +97 -0
- package/dist/check/message.d.ts +27 -0
- package/dist/check/message.js +101 -0
- package/dist/check/run.d.ts +31 -0
- package/dist/check/run.js +77 -0
- package/dist/check/signature.d.ts +10 -0
- package/dist/check/signature.js +22 -0
- package/dist/cli.d.ts +9 -0
- package/dist/cli.js +76 -0
- package/dist/clis.d.ts +7 -0
- package/dist/clis.js +9 -0
- package/dist/commands/add.d.ts +23 -0
- package/dist/commands/add.js +445 -0
- package/dist/commands/approve.d.ts +11 -0
- package/dist/commands/approve.js +146 -0
- package/dist/commands/check.d.ts +17 -0
- package/dist/commands/check.js +103 -0
- package/dist/commands/doctor.d.ts +38 -0
- package/dist/commands/doctor.js +232 -0
- package/dist/commands/down.d.ts +37 -0
- package/dist/commands/down.js +258 -0
- package/dist/commands/init.d.ts +9 -0
- package/dist/commands/init.js +138 -0
- package/dist/commands/remove.d.ts +23 -0
- package/dist/commands/remove.js +235 -0
- package/dist/commands/status.d.ts +41 -0
- package/dist/commands/status.js +147 -0
- package/dist/commands/up.d.ts +49 -0
- package/dist/commands/up.js +361 -0
- package/dist/commands/watch.d.ts +35 -0
- package/dist/commands/watch.js +302 -0
- package/dist/commands/worktree.d.ts +12 -0
- package/dist/commands/worktree.js +388 -0
- package/dist/end/condition.d.ts +28 -0
- package/dist/end/condition.js +77 -0
- package/dist/file/current.d.ts +13 -0
- package/dist/file/current.js +53 -0
- package/dist/file/lines.d.ts +25 -0
- package/dist/file/lines.js +277 -0
- package/dist/file/load.d.ts +7 -0
- package/dist/file/load.js +90 -0
- package/dist/file/paths.d.ts +6 -0
- package/dist/file/paths.js +77 -0
- package/dist/file/secrets.d.ts +6 -0
- package/dist/file/secrets.js +54 -0
- package/dist/file/signature.d.ts +13 -0
- package/dist/file/signature.js +36 -0
- package/dist/file/types.d.ts +130 -0
- package/dist/file/types.js +1 -0
- package/dist/file/validate.d.ts +13 -0
- package/dist/file/validate.js +702 -0
- package/dist/file/write.d.ts +11 -0
- package/dist/file/write.js +13 -0
- package/dist/herdr.d.ts +38 -0
- package/dist/herdr.js +227 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +6 -0
- package/dist/io.d.ts +10 -0
- package/dist/io.js +1 -0
- package/dist/launch/deliver.d.ts +10 -0
- package/dist/launch/deliver.js +39 -0
- package/dist/launch/execute.d.ts +46 -0
- package/dist/launch/execute.js +284 -0
- package/dist/launch/plan.d.ts +185 -0
- package/dist/launch/plan.js +280 -0
- package/dist/launch/rules.d.ts +25 -0
- package/dist/launch/rules.js +36 -0
- package/dist/log.d.ts +1 -0
- package/dist/log.js +24 -0
- package/dist/profiles/antigravity.yaml +66 -0
- package/dist/profiles/claude-code.yaml +69 -0
- package/dist/profiles/codex.yaml +77 -0
- package/dist/profiles/cursor.yaml +68 -0
- package/dist/profiles/index.d.ts +1 -0
- package/dist/profiles/index.js +1 -0
- package/dist/profiles/profile.d.ts +60 -0
- package/dist/profiles/profile.js +313 -0
- package/dist/profiles/quota.d.ts +22 -0
- package/dist/profiles/quota.js +56 -0
- package/dist/state.d.ts +59 -0
- package/dist/state.js +127 -0
- package/dist/status/compare.d.ts +26 -0
- package/dist/status/compare.js +110 -0
- package/dist/status/statusline.d.ts +9 -0
- package/dist/status/statusline.js +26 -0
- package/dist/store/store.d.ts +62 -0
- package/dist/store/store.js +116 -0
- package/dist/watch/check.d.ts +82 -0
- package/dist/watch/check.js +29 -0
- package/dist/watch/checks/approval.d.ts +2 -0
- package/dist/watch/checks/approval.js +16 -0
- package/dist/watch/checks/attention.d.ts +2 -0
- package/dist/watch/checks/attention.js +23 -0
- package/dist/watch/checks/budget.d.ts +2 -0
- package/dist/watch/checks/budget.js +141 -0
- package/dist/watch/checks/disk.d.ts +2 -0
- package/dist/watch/checks/disk.js +13 -0
- package/dist/watch/checks/extra.d.ts +2 -0
- package/dist/watch/checks/extra.js +18 -0
- package/dist/watch/checks/idle.d.ts +2 -0
- package/dist/watch/checks/idle.js +32 -0
- package/dist/watch/checks/load.d.ts +2 -0
- package/dist/watch/checks/load.js +11 -0
- package/dist/watch/checks/memory.d.ts +2 -0
- package/dist/watch/checks/memory.js +11 -0
- package/dist/watch/checks/missing.d.ts +2 -0
- package/dist/watch/checks/missing.js +12 -0
- package/dist/watch/checks/model-drift.d.ts +2 -0
- package/dist/watch/checks/model-drift.js +14 -0
- package/dist/watch/checks/swap-free.d.ts +2 -0
- package/dist/watch/checks/swap-free.js +12 -0
- package/dist/watch/checks/swap-growth.d.ts +2 -0
- package/dist/watch/checks/swap-growth.js +18 -0
- package/dist/watch/checks/team-idle.d.ts +2 -0
- package/dist/watch/checks/team-idle.js +18 -0
- package/dist/watch/checks/unsent.d.ts +2 -0
- package/dist/watch/checks/unsent.js +18 -0
- package/dist/watch/close.d.ts +19 -0
- package/dist/watch/close.js +40 -0
- package/dist/watch/dialect.d.ts +5 -0
- package/dist/watch/dialect.js +430 -0
- package/dist/watch/end.d.ts +11 -0
- package/dist/watch/end.js +17 -0
- package/dist/watch/machine.d.ts +38 -0
- package/dist/watch/machine.js +137 -0
- package/dist/watch/notify.d.ts +1 -0
- package/dist/watch/notify.js +15 -0
- package/dist/watch/pass.d.ts +30 -0
- package/dist/watch/pass.js +237 -0
- package/dist/watch/screen-core.d.ts +14 -0
- package/dist/watch/screen-core.js +320 -0
- package/dist/watch/screen-data.d.ts +65 -0
- package/dist/watch/screen-data.js +1 -0
- package/dist/watch/screen-file.d.ts +2 -0
- package/dist/watch/screen-file.js +269 -0
- package/dist/watch/screen.d.ts +20 -0
- package/dist/watch/screen.js +38 -0
- package/dist/worktree/place.d.ts +18 -0
- package/dist/worktree/place.js +126 -0
- package/dist/yaml.d.ts +30 -0
- package/dist/yaml.js +380 -0
- package/examples/checks/codex-quota +217 -0
- package/examples/team.yaml +76 -0
- package/package.json +29 -10
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
export type Problem = {
|
|
2
|
+
line: number;
|
|
3
|
+
message: string;
|
|
4
|
+
};
|
|
5
|
+
export type Position = 'last-line' | 'trailer' | 'anywhere';
|
|
6
|
+
export type Mode = 'worktree' | 'shared';
|
|
7
|
+
export type BudgetSource = 'check' | 'status_line';
|
|
8
|
+
export type BudgetAccount = {
|
|
9
|
+
kind: 'subscription' | 'spend';
|
|
10
|
+
shared: boolean;
|
|
11
|
+
/** Percent left that is held back. Null on a spend account. */
|
|
12
|
+
reserve: number | null;
|
|
13
|
+
/** Money still required on a spend account. Null on a subscription. */
|
|
14
|
+
floor: {
|
|
15
|
+
amount: number;
|
|
16
|
+
currency: string;
|
|
17
|
+
} | null;
|
|
18
|
+
sources: BudgetSource[];
|
|
19
|
+
/** The command `check` names, or null when the account has no check. */
|
|
20
|
+
check: string | null;
|
|
21
|
+
};
|
|
22
|
+
export type Seat = {
|
|
23
|
+
role: string;
|
|
24
|
+
name: string;
|
|
25
|
+
cli: string;
|
|
26
|
+
vendor: string;
|
|
27
|
+
model: string;
|
|
28
|
+
version: string;
|
|
29
|
+
display: string;
|
|
30
|
+
launch: string;
|
|
31
|
+
cwd: string;
|
|
32
|
+
label: string;
|
|
33
|
+
mode: Mode;
|
|
34
|
+
parked: boolean;
|
|
35
|
+
stopped: boolean;
|
|
36
|
+
declared: string;
|
|
37
|
+
count: number;
|
|
38
|
+
instance: number;
|
|
39
|
+
line: number;
|
|
40
|
+
};
|
|
41
|
+
export type TeamFile = {
|
|
42
|
+
format: 1;
|
|
43
|
+
project: string;
|
|
44
|
+
visibility: 'public' | 'private';
|
|
45
|
+
session: string;
|
|
46
|
+
coordinator: string;
|
|
47
|
+
operator: string;
|
|
48
|
+
tools: Record<string, Record<string, string>>;
|
|
49
|
+
identity: {
|
|
50
|
+
signature: {
|
|
51
|
+
commits: {
|
|
52
|
+
template: string;
|
|
53
|
+
position: Position;
|
|
54
|
+
exempt: 'merge'[];
|
|
55
|
+
};
|
|
56
|
+
pullRequests: {
|
|
57
|
+
template: string;
|
|
58
|
+
position: Position;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
humans: string[];
|
|
62
|
+
since: string | null;
|
|
63
|
+
forbidden: string[];
|
|
64
|
+
forbiddenPublic: string[];
|
|
65
|
+
};
|
|
66
|
+
rules: string[];
|
|
67
|
+
trust: string[];
|
|
68
|
+
workspace: {
|
|
69
|
+
mode: Mode;
|
|
70
|
+
path: string | null;
|
|
71
|
+
branch: string;
|
|
72
|
+
base: string | null;
|
|
73
|
+
setup: string[];
|
|
74
|
+
remove: 'on-merge' | 'manual';
|
|
75
|
+
protected: string[];
|
|
76
|
+
limit: number;
|
|
77
|
+
};
|
|
78
|
+
watch: {
|
|
79
|
+
interval: number;
|
|
80
|
+
idleFirst: number;
|
|
81
|
+
idleRepeat: number;
|
|
82
|
+
teamIdle: number;
|
|
83
|
+
nudgeWait: number;
|
|
84
|
+
unsentAfter: number;
|
|
85
|
+
quotaMarks: number[];
|
|
86
|
+
checks: string[];
|
|
87
|
+
};
|
|
88
|
+
budgets: {
|
|
89
|
+
staleAfter: number;
|
|
90
|
+
checkEvery: number;
|
|
91
|
+
marks: number[];
|
|
92
|
+
accounts: Record<string, BudgetAccount>;
|
|
93
|
+
};
|
|
94
|
+
machine: {
|
|
95
|
+
loadStart: number;
|
|
96
|
+
loadMax: number;
|
|
97
|
+
memoryStart: number;
|
|
98
|
+
memoryMin: number;
|
|
99
|
+
diskMin: number;
|
|
100
|
+
swapFreeMin: number;
|
|
101
|
+
swapGrowthMax: number;
|
|
102
|
+
swapGrowthWindow: number;
|
|
103
|
+
};
|
|
104
|
+
limits: {
|
|
105
|
+
seats: number;
|
|
106
|
+
temporary: number;
|
|
107
|
+
vendors: Record<string, number>;
|
|
108
|
+
};
|
|
109
|
+
seats: Seat[];
|
|
110
|
+
};
|
|
111
|
+
export type ValidateResult = {
|
|
112
|
+
ok: true;
|
|
113
|
+
team: TeamFile;
|
|
114
|
+
warnings: Problem[];
|
|
115
|
+
} | {
|
|
116
|
+
ok: false;
|
|
117
|
+
errors: Problem[];
|
|
118
|
+
};
|
|
119
|
+
export type LoadResult = {
|
|
120
|
+
ok: true;
|
|
121
|
+
team: TeamFile;
|
|
122
|
+
root: string;
|
|
123
|
+
path: string;
|
|
124
|
+
warnings: Problem[];
|
|
125
|
+
text: string;
|
|
126
|
+
} | {
|
|
127
|
+
ok: false;
|
|
128
|
+
errors: Problem[];
|
|
129
|
+
path?: string;
|
|
130
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { TeamFile, ValidateResult } from './types.ts';
|
|
2
|
+
export declare function validateTeamFile(text: string): ValidateResult;
|
|
3
|
+
/**
|
|
4
|
+
* The watch values a file that sets none runs with — and, since the section is the owner's, the
|
|
5
|
+
* values a file runs with until the owner approves what it sets instead.
|
|
6
|
+
*/
|
|
7
|
+
export declare function defaultWatch(): TeamFile['watch'];
|
|
8
|
+
/**
|
|
9
|
+
* The budget values a file that sets none runs with — and, since the section is the owner's, the
|
|
10
|
+
* values a file runs with until the owner approves what it sets instead. No accounts: nothing is
|
|
11
|
+
* budgeted until the owner names one.
|
|
12
|
+
*/
|
|
13
|
+
export declare function defaultBudgets(): TeamFile['budgets'];
|