@pickled-dev/cli 0.13.0 → 0.15.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.
Files changed (3) hide show
  1. package/README.md +26 -0
  2. package/dist/index.js +154 -151
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -110,6 +110,32 @@ Review fired traps before trusting this surface.
110
110
  | `Ungrounded` | No valid citations, or every citation is unknown. |
111
111
  | `Error` | The target failed before Pickled could score the response. |
112
112
 
113
+ ## Sources
114
+
115
+ Sources are what scenarios cite. Three loader types:
116
+
117
+ - **`file` (default)** - a path to one local file. The string form (`readme: ./README.md`) implicitly uses this.
118
+ - **`url`** - an `http(s)://` path. Fetched on every `pickled check` run.
119
+ - **`codebase`** - a glob expanded into one logical source whose content is every matched file concatenated with file-separator headers. Useful when you want the agent to answer from a directory of JSDoc, per-package agent docs, or examples.
120
+
121
+ Codebase sources are always explicit:
122
+
123
+ ```yaml
124
+ docs:
125
+ sources:
126
+ readme: ./README.md # file (string form)
127
+ docs_site: https://example.com/docs.md # url (string form, http prefix)
128
+ jsdoc:
129
+ type: codebase
130
+ path: "packages/**/src/**/*.ts"
131
+ exclude: ["**/*.test.ts"] # codebase-only
132
+ maxBytes: 524288 # optional; default 256 KB soft cap
133
+ ```
134
+
135
+ Codebase loader safety defaults: skips directories (`onlyFiles`), does not follow symlinks, rejects glob patterns containing `..` segments. Files are read in lexicographic order so the same config produces the same content for reproducible LLM calls. The audit's trap cross-reference scans each matched file individually so findings carry per-file `source_id:path:line`.
136
+
137
+ URL sources are NOT scanned by the audit's trap cross-reference in v1; they are fetched only during `pickled check`.
138
+
113
139
  ## Targets
114
140
 
115
141
  Pickled ships three target shapes today. Each target is a distinct surface that exercises the agent differently; results are comparable but not identical.