oneshot-stack-team 0.1.0 → 0.1.2
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 +3 -3
- package/bin/oneshot-stack-team.js +5 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ A team bundle that keeps the stable `oneshot-stack` core unchanged and adds reus
|
|
|
7
7
|
Run this from the root of any Git repository:
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
npx --yes --prefer-online oneshot-stack-team@latest install
|
|
10
|
+
npx --yes --prefer-online oneshot-stack-team@latest install --with-model
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
The installer adds:
|
|
@@ -19,7 +19,7 @@ The installer adds:
|
|
|
19
19
|
- `.github/skills/security-check/SKILL.md`
|
|
20
20
|
- `.vscode/mcp.json`
|
|
21
21
|
|
|
22
|
-
It
|
|
22
|
+
It installs or configures local Ollama and pulls `qwen3:8b` through the core OneShot installer. Ollama only prepares repository context and task guidance; Copilot writes the implementation. To install the workflow without setting up Ollama yet, omit `--with-model`.
|
|
23
23
|
|
|
24
24
|
## After installation
|
|
25
25
|
|
|
@@ -32,7 +32,7 @@ For implementation, debugging, refactoring, testing, code analysis, and ticket w
|
|
|
32
32
|
|
|
33
33
|
## Local model
|
|
34
34
|
|
|
35
|
-
The team bundle
|
|
35
|
+
The team bundle uses Ollama locally. With `--with-model`, it installs Ollama when supported and pulls the default model:
|
|
36
36
|
|
|
37
37
|
```bash
|
|
38
38
|
ollama pull qwen3:8b
|
|
@@ -3,14 +3,17 @@ import fs from 'node:fs/promises';
|
|
|
3
3
|
import fsSync from 'node:fs';
|
|
4
4
|
import path from 'node:path';
|
|
5
5
|
import { spawnSync } from 'node:child_process';
|
|
6
|
+
import { createRequire } from 'node:module';
|
|
6
7
|
|
|
7
8
|
const packageRoot = path.resolve(new URL('..', import.meta.url).pathname);
|
|
8
9
|
const root = process.cwd();
|
|
9
10
|
const command = process.argv[2] || 'install';
|
|
11
|
+
const require = createRequire(import.meta.url);
|
|
12
|
+
const withModel = process.argv.includes('--with-model');
|
|
10
13
|
|
|
11
14
|
function baseInstaller() {
|
|
12
|
-
const installer =
|
|
13
|
-
const result = spawnSync(process.execPath, [installer, 'install'], { cwd: root, stdio: 'inherit', env: process.env });
|
|
15
|
+
const installer = require.resolve('oneshot-stack/bin/oneshot-stack.js', { paths: [packageRoot] });
|
|
16
|
+
const result = spawnSync(process.execPath, [installer, 'install', ...(withModel ? ['--with-model'] : [])], { cwd: root, stdio: 'inherit', env: process.env });
|
|
14
17
|
if (result.status !== 0) throw new Error('Base OneShot installation failed.');
|
|
15
18
|
}
|
|
16
19
|
|