srcpack 0.1.3 → 0.1.5
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 +21 -2
- package/dist/bundle.d.ts +3 -1
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +32010 -19234
- package/dist/index.js +1512 -1511
- package/package.json +17 -5
- package/src/bundle.ts +52 -25
- package/src/cli.ts +3 -3
- package/src/gdrive.ts +6 -1
- package/src/init.ts +2 -2
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Zero-config CLI for bundling code into LLM-optimized context files.
|
|
4
4
|
|
|
5
|
+
**Requirements:** Node.js 20+ or Bun
|
|
6
|
+
|
|
5
7
|
## Quick Start
|
|
6
8
|
|
|
7
9
|
```bash
|
|
@@ -58,9 +60,12 @@ Or add to `package.json`:
|
|
|
58
60
|
// Simple glob
|
|
59
61
|
"src/**/*"
|
|
60
62
|
|
|
61
|
-
// Array with exclusions
|
|
63
|
+
// Array with exclusions (! prefix)
|
|
62
64
|
["src/**/*", "!src/**/*.test.ts"]
|
|
63
65
|
|
|
66
|
+
// Force-include gitignored files (+ prefix)
|
|
67
|
+
["docs/**/*", "+docs/**/*.local.md"]
|
|
68
|
+
|
|
64
69
|
// Full options
|
|
65
70
|
{
|
|
66
71
|
include: "src/**/*",
|
|
@@ -69,7 +74,7 @@ Or add to `package.json`:
|
|
|
69
74
|
}
|
|
70
75
|
```
|
|
71
76
|
|
|
72
|
-
Patterns follow glob syntax. Prefix with `!` to exclude
|
|
77
|
+
Patterns follow glob syntax. Prefix with `!` to exclude, `+` to force-include (bypasses `.gitignore`). Binary files are excluded.
|
|
73
78
|
|
|
74
79
|
### Google Drive Upload
|
|
75
80
|
|
|
@@ -144,6 +149,20 @@ export default defineConfig({
|
|
|
144
149
|
const config = await loadConfig();
|
|
145
150
|
```
|
|
146
151
|
|
|
152
|
+
## LLM Context
|
|
153
|
+
|
|
154
|
+
- https://kriasoft.com/srcpack/llms.txt
|
|
155
|
+
- https://kriasoft.com/srcpack/llms-full.txt
|
|
156
|
+
|
|
157
|
+
## Community
|
|
158
|
+
|
|
159
|
+
- [Discord](https://discord.com/invite/aG83xEb6RX) — Questions, feedback, and discussion
|
|
160
|
+
- [GitHub Issues](https://github.com/kriasoft/srcpack/issues) — Bug reports and feature requests
|
|
161
|
+
|
|
162
|
+
## Backers
|
|
163
|
+
|
|
164
|
+
<a href="https://reactstarter.com/b/1"><img src="https://reactstarter.com/b/1.png" height="60" /></a> <a href="https://reactstarter.com/b/2"><img src="https://reactstarter.com/b/2.png" height="60" /></a> <a href="https://reactstarter.com/b/3"><img src="https://reactstarter.com/b/3.png" height="60" /></a> <a href="https://reactstarter.com/b/4"><img src="https://reactstarter.com/b/4.png" height="60" /></a> <a href="https://reactstarter.com/b/5"><img src="https://reactstarter.com/b/5.png" height="60" /></a> <a href="https://reactstarter.com/b/6"><img src="https://reactstarter.com/b/6.png" height="60" /></a> <a href="https://reactstarter.com/b/7"><img src="https://reactstarter.com/b/7.png" height="60" /></a> <a href="https://reactstarter.com/b/8"><img src="https://reactstarter.com/b/8.png" height="60" /></a>
|
|
165
|
+
|
|
147
166
|
## License
|
|
148
167
|
|
|
149
168
|
MIT
|
package/dist/bundle.d.ts
CHANGED
|
@@ -11,7 +11,9 @@ export interface BundleResult {
|
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
13
|
* Resolve bundle config to a list of file paths.
|
|
14
|
-
*
|
|
14
|
+
* - Regular patterns respect .gitignore
|
|
15
|
+
* - Force patterns (+prefix) bypass .gitignore
|
|
16
|
+
* - Exclude patterns (!prefix) filter both
|
|
15
17
|
*/
|
|
16
18
|
export declare function resolvePatterns(config: BundleConfigInput, cwd: string): Promise<string[]>;
|
|
17
19
|
/**
|
package/dist/cli.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#!/usr/bin/env
|
|
1
|
+
#!/usr/bin/env node
|
|
2
2
|
export {};
|