@lidtop/loadout 0.2.0 → 0.3.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/dist/bundled.d.ts +1 -0
- package/dist/bundled.js +8 -0
- package/dist/picker.js +6 -3
- package/dist/schema.js +2 -1
- package/kits/claude-cli/instructions.md +2 -0
- package/kits/claude-cli/kit.yaml +19 -0
- package/kits/claude-cli/skills/loadout-claude-cli/SKILL.md +7 -0
- package/kits/codex-cli/instructions.md +2 -0
- package/kits/codex-cli/kit.yaml +19 -0
- package/kits/codex-cli/skills/loadout-codex-cli/SKILL.md +7 -0
- package/kits/opencode-cli/instructions.md +2 -0
- package/kits/opencode-cli/kit.yaml +19 -0
- package/kits/opencode-cli/skills/loadout-opencode-cli/SKILL.md +7 -0
- package/package.json +1 -1
- package/dist/locations.d.ts +0 -1
- package/dist/locations.js +0 -4
package/dist/bundled.d.ts
CHANGED
package/dist/bundled.js
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
import { fileURLToPath } from 'node:url';
|
|
2
2
|
// Shared by source runs and the published dist/ entry point.
|
|
3
3
|
export const bundledRoot = fileURLToPath(new URL('../kits/', import.meta.url));
|
|
4
|
+
const agentCliKits = new Set([
|
|
5
|
+
'loadout-claude-cli',
|
|
6
|
+
'loadout-codex-cli',
|
|
7
|
+
'loadout-opencode-cli',
|
|
8
|
+
]);
|
|
9
|
+
export function bundledProvider(id) {
|
|
10
|
+
return agentCliKits.has(id) ? 'loadout-agent-clis' : 'loadout';
|
|
11
|
+
}
|
package/dist/picker.js
CHANGED
|
@@ -35,11 +35,12 @@ function wordmark(width, rows) {
|
|
|
35
35
|
}
|
|
36
36
|
const repositorySections = ['Kits', 'Browse', 'Installed'];
|
|
37
37
|
const providerFor = (kit) => kit.origin === 'bundled'
|
|
38
|
-
?
|
|
38
|
+
? kitSource(kit)
|
|
39
39
|
: (kit.external?.repo ??
|
|
40
40
|
(kit.origin === 'personal' ? 'Personal' : undefined));
|
|
41
41
|
const providerPrefixes = {
|
|
42
42
|
loadout: 'loadout-',
|
|
43
|
+
'loadout-agent-clis': 'loadout-',
|
|
43
44
|
'mattpocock/skills': 'matt-pocock-',
|
|
44
45
|
'anthropics/skills': 'anthropic-',
|
|
45
46
|
};
|
|
@@ -134,8 +135,10 @@ const renderPicker = createPrompt((config, done) => {
|
|
|
134
135
|
return [];
|
|
135
136
|
const count = kits.filter((kit) => enabledSet.has(kit.id)).length;
|
|
136
137
|
const origins = new Set(kits.map((kit) => kit.origin));
|
|
137
|
-
const description =
|
|
138
|
-
?
|
|
138
|
+
const description = origins.has('bundled')
|
|
139
|
+
? id === 'loadout-agent-clis'
|
|
140
|
+
? 'Delegate tasks through agent CLI harnesses'
|
|
141
|
+
: 'Included with Loadout'
|
|
139
142
|
: id === 'Personal'
|
|
140
143
|
? 'Your personal kits'
|
|
141
144
|
: origins.has('curated') && providerDescriptions[id]
|
package/dist/schema.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { bundledProvider } from './bundled.js';
|
|
2
3
|
export const idSchema = z
|
|
3
4
|
.string()
|
|
4
5
|
.regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/, 'Use lowercase words separated by hyphens');
|
|
@@ -134,7 +135,7 @@ export function parse(schema, value, label) {
|
|
|
134
135
|
}
|
|
135
136
|
export function kitSource(kit) {
|
|
136
137
|
return kit.origin === 'bundled'
|
|
137
|
-
?
|
|
138
|
+
? bundledProvider(kit.id)
|
|
138
139
|
: ((kit.pinned ?? kit.external)?.repo ??
|
|
139
140
|
(kit.origin === 'personal' ? 'Personal' : 'Repository'));
|
|
140
141
|
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
Use `--model opus` by default for Claude CLI; use `--model fable` only when asked. Start with `claude -p --model opus --output-format json "PROMPT"` and capture `session_id` from the response.
|
|
2
|
+
For follow-ups, run `claude -p --resume SESSION_ID --model opus --output-format json "FOLLOW-UP"` in the same working directory; substitute `fable` in both commands when requested.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
schemaVersion: 1
|
|
2
|
+
id: claude-cli
|
|
3
|
+
description: Run non-interactive Claude CLI conversations
|
|
4
|
+
questions:
|
|
5
|
+
placement:
|
|
6
|
+
type: choice
|
|
7
|
+
message: Add Claude CLI guidance to context or as a skill?
|
|
8
|
+
choices: [context, skill]
|
|
9
|
+
outputs:
|
|
10
|
+
- type: instructions
|
|
11
|
+
source: instructions.md
|
|
12
|
+
when:
|
|
13
|
+
answer: placement
|
|
14
|
+
equals: context
|
|
15
|
+
- type: skill
|
|
16
|
+
source: skills/loadout-claude-cli
|
|
17
|
+
when:
|
|
18
|
+
answer: placement
|
|
19
|
+
equals: skill
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: loadout-claude-cli
|
|
3
|
+
description: Run non-interactive Claude CLI prompts and follow-up conversations. Use when asked to delegate a task to Claude CLI or continue a Claude CLI session.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Use `--model opus` by default for Claude CLI; use `--model fable` only when asked. Start with `claude -p --model opus --output-format json "PROMPT"` and capture `session_id` from the response.
|
|
7
|
+
For follow-ups, run `claude -p --resume SESSION_ID --model opus --output-format json "FOLLOW-UP"` in the same working directory; substitute `fable` in both commands when requested.
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
Use `--model gpt-5.6-sol` by default; use `--model gpt-6-astra` only when asked. Start with `codex exec --model gpt-5.6-sol --json "PROMPT"` and capture `thread_id` from the output.
|
|
2
|
+
For follow-ups, run `codex exec resume --model gpt-5.6-sol --json SESSION_ID "FOLLOW-UP"` in the same working directory; substitute `gpt-6-astra` in both commands when requested.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
schemaVersion: 1
|
|
2
|
+
id: codex-cli
|
|
3
|
+
description: Run non-interactive Codex CLI conversations
|
|
4
|
+
questions:
|
|
5
|
+
placement:
|
|
6
|
+
type: choice
|
|
7
|
+
message: Add Codex CLI guidance to context or as a skill?
|
|
8
|
+
choices: [context, skill]
|
|
9
|
+
outputs:
|
|
10
|
+
- type: instructions
|
|
11
|
+
source: instructions.md
|
|
12
|
+
when:
|
|
13
|
+
answer: placement
|
|
14
|
+
equals: context
|
|
15
|
+
- type: skill
|
|
16
|
+
source: skills/loadout-codex-cli
|
|
17
|
+
when:
|
|
18
|
+
answer: placement
|
|
19
|
+
equals: skill
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: loadout-codex-cli
|
|
3
|
+
description: Run non-interactive Codex CLI prompts and follow-up conversations. Use when asked to delegate a task to Codex CLI or continue a Codex CLI session.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Use `--model gpt-5.6-sol` by default; use `--model gpt-6-astra` only when asked. Start with `codex exec --model gpt-5.6-sol --json "PROMPT"` and capture `thread_id` from the output.
|
|
7
|
+
For follow-ups, run `codex exec resume --model gpt-5.6-sol --json SESSION_ID "FOLLOW-UP"` in the same working directory; substitute `gpt-6-astra` in both commands when requested.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
schemaVersion: 1
|
|
2
|
+
id: opencode-cli
|
|
3
|
+
description: Run non-interactive OpenCode CLI conversations
|
|
4
|
+
questions:
|
|
5
|
+
placement:
|
|
6
|
+
type: choice
|
|
7
|
+
message: Add OpenCode CLI guidance to context or as a skill?
|
|
8
|
+
choices: [context, skill]
|
|
9
|
+
outputs:
|
|
10
|
+
- type: instructions
|
|
11
|
+
source: instructions.md
|
|
12
|
+
when:
|
|
13
|
+
answer: placement
|
|
14
|
+
equals: context
|
|
15
|
+
- type: skill
|
|
16
|
+
source: skills/loadout-opencode-cli
|
|
17
|
+
when:
|
|
18
|
+
answer: placement
|
|
19
|
+
equals: skill
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: loadout-opencode-cli
|
|
3
|
+
description: Run non-interactive OpenCode CLI prompts and follow-up conversations. Use when asked to delegate a task to OpenCode CLI or continue an OpenCode CLI session.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Start with `opencode run --format json "PROMPT"` using the configured default model, and capture `sessionID` from the output.
|
|
7
|
+
For follow-ups, run `opencode run --session SESSION_ID --format json "FOLLOW-UP"` in the same working directory.
|
package/package.json
CHANGED
package/dist/locations.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function stateDirectory(root: string): string;
|
package/dist/locations.js
DELETED