@agentshouse/kit 0.2.1-c62e8a5e845ed → 0.2.1-c681dfca497a8
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/README.md +8 -8
- package/dist/agents.js +19 -4
- package/dist/bootstrap.json +4 -4
- package/dist/chatgpt.js +26 -0
- package/dist/clis.js +2 -2
- package/dist/copies.js +18 -8
- package/dist/files.js +7 -1
- package/dist/git.js +11 -8
- package/dist/home.js +36 -3
- package/dist/house-main.js +99 -38
- package/dist/kit-main.js +4 -4
- package/dist/login.js +8 -9
- package/dist/resident.js +2 -2
- package/dist/skills.js +11 -1
- package/dist/update.js +1 -0
- package/how-we-work.md +11 -3
- package/package.json +2 -1
- package/skills/ask-matt/SKILL.md +17 -11
- package/skills/ask-matt/agents/openai.yaml +1 -0
- package/skills/code-review/SKILL.md +5 -5
- package/skills/codebase-design/DESIGN-IT-TWICE.md +1 -1
- package/skills/codebase-design/SKILL.md +0 -2
- package/skills/diagnosing-bugs/SKILL.md +2 -4
- package/skills/domain-modeling/{CONTEXT-FORMAT.md → GLOSSARY-FORMAT.md} +10 -10
- package/skills/domain-modeling/SKILL.md +12 -14
- package/skills/grill-me/SKILL.md +1 -2
- package/skills/grill-me/agents/openai.yaml +1 -0
- package/skills/grill-with-docs/SKILL.md +1 -2
- package/skills/grill-with-docs/agents/openai.yaml +1 -0
- package/skills/grilling/SKILL.md +2 -2
- package/skills/handoff/SKILL.md +2 -3
- package/skills/handoff/agents/openai.yaml +1 -0
- package/skills/implement/SKILL.md +5 -4
- package/skills/implement/agents/openai.yaml +1 -0
- package/skills/implement-spec/SKILL.md +40 -0
- package/skills/implement-spec/agents/openai.yaml +5 -0
- package/skills/improve-codebase-architecture/SKILL.md +6 -7
- package/skills/improve-codebase-architecture/agents/openai.yaml +1 -0
- package/skills/pr/CREDITS.md +3 -0
- package/skills/pr/LICENSE +21 -0
- package/skills/pr/SKILL.md +170 -0
- package/skills/pr/agents/openai.yaml +3 -0
- package/skills/prototype/SKILL.md +0 -2
- package/skills/research/SKILL.md +0 -2
- package/skills/retro/LICENSE +21 -0
- package/skills/retro/SKILL.md +44 -0
- package/skills/retro/agents/openai.yaml +5 -0
- package/skills/tdd/SKILL.md +2 -4
- package/skills/teach/SKILL.md +3 -4
- package/skills/teach/agents/openai.yaml +1 -0
- package/skills/to-questionnaire/SKILL.md +1 -2
- package/skills/to-questionnaire/agents/openai.yaml +1 -0
- package/skills/to-spec/SKILL.md +1 -2
- package/skills/to-spec/agents/openai.yaml +1 -0
- package/skills/to-tickets/SKILL.md +3 -4
- package/skills/to-tickets/agents/openai.yaml +1 -0
- package/skills/triage/AGENT-BRIEF.md +207 -0
- package/skills/triage/LICENSE +21 -0
- package/skills/triage/OUT-OF-SCOPE.md +105 -0
- package/skills/triage/SKILL.md +112 -0
- package/skills/triage/agents/openai.yaml +5 -0
- package/skills/wait-what/SKILL.md +2 -3
- package/skills/wait-what/agents/openai.yaml +1 -0
- package/skills/wayfinder/SKILL.md +5 -6
- package/skills/wayfinder/agents/openai.yaml +1 -0
- package/skills/wizard/LICENSE +21 -0
- package/skills/wizard/SKILL.md +44 -0
- package/skills/wizard/agents/openai.yaml +3 -0
- package/skills/wizard/template.sh +223 -0
- package/skills/writing-for-agents/SKILL.md +0 -2
- package/dist/codex.js +0 -61
- package/skills/resolving-merge-conflicts/SKILL.md +0 -16
- package/skills/resolving-merge-conflicts/agents/openai.yaml +0 -3
- /package/skills/{resolving-merge-conflicts → implement-spec}/LICENSE +0 -0
package/dist/codex.js
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { homedir } from 'node:os';
|
|
2
|
-
import { delimiter, join, resolve } from 'node:path';
|
|
3
|
-
import { parseArgs } from 'node:util';
|
|
4
|
-
import { CLIS, executable, writeCodexRule } from './clis.js';
|
|
5
|
-
import { kitHome, readOwnAgent, writeOwnAgent } from './home.js';
|
|
6
|
-
import { accepted, DEFAULT_HOUSE } from './login.js';
|
|
7
|
-
const USAGE = `usage: kit codex [--key <key>] [--house <origin>] [<codex argument>...]
|
|
8
|
-
--key <key> a key from New key for a script on Connections, kept for later runs
|
|
9
|
-
--house <origin> the House of the key, ${DEFAULT_HOUSE} unless one is stored
|
|
10
|
-
`;
|
|
11
|
-
const VALUED = ['--key', '--house'];
|
|
12
|
-
const KEY_SOURCE = 'New key for a script on Connections';
|
|
13
|
-
function codexArgumentsStart(argv) {
|
|
14
|
-
let index = 0;
|
|
15
|
-
while (index < argv.length) {
|
|
16
|
-
const arg = argv[index];
|
|
17
|
-
if (VALUED.includes(arg))
|
|
18
|
-
index += 2;
|
|
19
|
-
else if (arg === '--help' || VALUED.some((option) => arg.startsWith(`${option}=`)))
|
|
20
|
-
index += 1;
|
|
21
|
-
else
|
|
22
|
-
break;
|
|
23
|
-
}
|
|
24
|
-
return index;
|
|
25
|
-
}
|
|
26
|
-
async function onPath(name) {
|
|
27
|
-
for (const directory of (process.env.PATH ?? '').split(delimiter)) {
|
|
28
|
-
const path = resolve(directory, name);
|
|
29
|
-
if (await executable(path))
|
|
30
|
-
return path;
|
|
31
|
-
}
|
|
32
|
-
throw new Error(`${name} is not on your PATH; install it with ${CLIS['codex-acp'].install}`);
|
|
33
|
-
}
|
|
34
|
-
export async function codex(argv) {
|
|
35
|
-
const start = codexArgumentsStart(argv);
|
|
36
|
-
const { values } = parseArgs({
|
|
37
|
-
args: argv.slice(0, start),
|
|
38
|
-
options: { key: { type: 'string' }, house: { type: 'string' }, help: { type: 'boolean', default: false } },
|
|
39
|
-
});
|
|
40
|
-
if (values.help) {
|
|
41
|
-
process.stdout.write(USAGE);
|
|
42
|
-
return;
|
|
43
|
-
}
|
|
44
|
-
process.env.HOUSE_KIT_HOME = resolve(process.env.HOUSE_KIT_HOME || join(homedir(), '.house-kit-outside'));
|
|
45
|
-
const stored = await readOwnAgent();
|
|
46
|
-
if (values.key !== undefined) {
|
|
47
|
-
const house = values.house ?? stored?.house ?? DEFAULT_HOUSE;
|
|
48
|
-
if (!(await accepted(house, values.key)))
|
|
49
|
-
throw new Error(`${house} does not accept this key; pass one from ${KEY_SOURCE}`);
|
|
50
|
-
await writeOwnAgent({ house, credential: values.key });
|
|
51
|
-
}
|
|
52
|
-
else if (values.house !== undefined) {
|
|
53
|
-
throw new Error('--house names the House of a --key; pass the key with it');
|
|
54
|
-
}
|
|
55
|
-
else if (stored === null) {
|
|
56
|
-
throw new Error(`${kitHome()} holds no House key; pass --key with one from ${KEY_SOURCE}`);
|
|
57
|
-
}
|
|
58
|
-
await writeCodexRule();
|
|
59
|
-
const path = await onPath('codex');
|
|
60
|
-
process.execve(path, [path, ...argv.slice(start)], process.env);
|
|
61
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: resolving-merge-conflicts
|
|
3
|
-
description: "Use when you need to resolve an in-progress git merge/rebase conflict."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
<!-- Vendored from mattpocock/skills at commit c55ee46073ed923f86ce59a5eb3b6d895095d1b7 (skills/engineering/resolving-merge-conflicts). MIT licensed — see LICENSE in this directory. -->
|
|
7
|
-
|
|
8
|
-
1. **See the current state** of the merge/rebase. Check git history, and the conflicting files.
|
|
9
|
-
|
|
10
|
-
2. **Find the primary sources** for each conflict. Understand deeply why each change was made, and what the original intent was. Read the commit messages, check the PRs, check original issues/tickets.
|
|
11
|
-
|
|
12
|
-
3. **Resolve each hunk.** Preserve both intents where possible. Where incompatible, pick the one matching the merge's stated goal and note the trade-off. Do **not** invent new behaviour. Always resolve; never `--abort`.
|
|
13
|
-
|
|
14
|
-
4. Discover the project's **automated checks** and run them, typically typecheck, then tests, then format. Fix anything the merge broke.
|
|
15
|
-
|
|
16
|
-
5. **Finish the merge/rebase.** Stage everything and commit. If rebasing, continue the rebase process until all commits are rebased.
|
|
File without changes
|