@pinta-ai/pinta-copilot 0.11.1 → 0.12.1-pta1010.1
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/CHANGELOG.md +52 -0
- package/LICENSE-ACORN +21 -0
- package/README.md +16 -3
- package/dist/index.js +59 -51
- package/dist/index.mjs +59 -51
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,58 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to pinta-copilot are documented here.
|
|
4
4
|
|
|
5
|
+
## [0.12.1-pta1010.1] - 2026-11-26
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- Bundle Core `0.11.1-pta1010.1` for bounded Fetch-mode and CLI-option semantics
|
|
10
|
+
and OpenAI-key token boundaries. Real passwords and unsupported cases remain
|
|
11
|
+
protected; the Acorn MIT notice is included.
|
|
12
|
+
- Preserve returned-secret provenance across extension output and snake/camel
|
|
13
|
+
CLI results, using the host's returned-text selector rather than diagnostics.
|
|
14
|
+
- Publish as a Stage candidate; existing stable selection and model attribution
|
|
15
|
+
remain unchanged until an explicit compatible catalog approval is installed.
|
|
16
|
+
|
|
17
|
+
## [0.12.0] - 2026-10-19
|
|
18
|
+
|
|
19
|
+
### Added
|
|
20
|
+
|
|
21
|
+
- CLI tool rows can now carry `copilot.model` (PTA-776). The CLI sends the tool
|
|
22
|
+
hooks neither `tool_use_id` nor `transcript_path`, so since 0.9.0 every CLI
|
|
23
|
+
tool span (`PreToolUse`, `PostToolUse`, `PostToolUseFailure`,
|
|
24
|
+
`PermissionRequest`) had no model: 0 of 23,911 stage rows over 14 days.
|
|
25
|
+
The hook now identifies the call by what it is and looks it up in
|
|
26
|
+
`$COPILOT_HOME/session-state/<session_id>/events.jsonl`: in the agent's LAST
|
|
27
|
+
`assistant.message` on disk, the one `toolRequests` entry with the same tool
|
|
28
|
+
name and the same arguments (hook `tool_name` / `tool_input`, or `toolName` /
|
|
29
|
+
`toolArgs` parsed as JSON, key order ignored, "" read as `{}`) that has no
|
|
30
|
+
`tool.execution_complete` yet. New `copilot.model_source` value:
|
|
31
|
+
`transcript.assistant.message.unique_call`.
|
|
32
|
+
- The model stays empty, never borrowed, unless exactly one such request
|
|
33
|
+
exists. It is empty when: two identical requests are pending (parallel
|
|
34
|
+
calls); the matching response is not the last one on disk, or is followed by
|
|
35
|
+
a `user.message`, an `abort`, a `session.model_change` or the agent's `assistant.turn_end` (an aborted
|
|
36
|
+
call writes no `tool.execution_complete`, so a call the user abandoned must
|
|
37
|
+
not lend its model to the repeat after `/model`); the tool or arguments
|
|
38
|
+
differ; the request is a subagent's, after the hook's timestamp, or in
|
|
39
|
+
another session; the response has no model; or a call ID is present but
|
|
40
|
+
unusable.
|
|
41
|
+
- `/model` writes `session.model_change` (a persisted event) seconds before the
|
|
42
|
+
next response, so a model switch closes the previous response even when the
|
|
43
|
+
abort and the next user message have not reached the disk.
|
|
44
|
+
- Expect many empty `PreToolUse` rows (the first call of a batch most of all).
|
|
45
|
+
The CLI writes the log with a ~100 ms debounce, so the response that requested
|
|
46
|
+
the call is often not on disk yet when the first hook runs; the model is then
|
|
47
|
+
empty rather than guessed. `PostToolUse` rows are more likely to be filled.
|
|
48
|
+
How to measure after release: per `copilot.hook` and per `service.version`,
|
|
49
|
+
the share of tool rows with `copilot.model_source =
|
|
50
|
+
'transcript.assistant.message.unique_call'`.
|
|
51
|
+
- Format source: `@github/copilot` 1.0.49 only (`schemas/session-events.schema.json`
|
|
52
|
+
and `app.js` of the npm tarball). The latest release, 1.0.98, is a native
|
|
53
|
+
binary whose log format could not be read, and no live session was measured.
|
|
54
|
+
- `pinta.call_id` pairing for CLI calls without a host id: a start and its
|
|
55
|
+
end carry one id (already on main, first release with this version).
|
|
56
|
+
|
|
5
57
|
## [0.11.1] - 2026-10-19
|
|
6
58
|
|
|
7
59
|
### Changed
|
package/LICENSE-ACORN
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (C) 2012-2022 by various contributors (see AUTHORS)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -211,6 +211,7 @@ becomes `model_source`; any previous host source is kept as
|
|
|
211
211
|
|---|---|
|
|
212
212
|
| `hook.model` | The hook's explicit model. A SessionStart selection is **not proof of the routed response model**. |
|
|
213
213
|
| `transcript.assistant.message` | `assistant.message.data.model` on a response requesting the hook's exact tool-call ID. |
|
|
214
|
+
| `transcript.assistant.message.unique_call` | CLI hooks without a tool-call ID: `assistant.message.data.model` on the one response whose `toolRequests` has the hook's tool name and arguments and whose call has not completed. Two or more such requests, or none, give no model. |
|
|
214
215
|
| `transcript.tool.execution_start` / `transcript.tool.execution_complete` | `data.model` on the exact tool execution. Matching assistant/execution records must agree; conflicts are omitted. |
|
|
215
216
|
| `transcript.session.selected` | Startup selection from `session.start.data.selectedModel` plus model changes at/before the hook timestamp, only when the entire bounded history is available. **Selected/requested, not routed.** Never carried onto tools or resume events. |
|
|
216
217
|
|
|
@@ -221,7 +222,19 @@ The CLI lookup uses the supplied `transcript_path`/`transcriptPath`, or
|
|
|
221
222
|
and the exact subagent identity. Parent and child models cannot be inherited
|
|
222
223
|
from one another. A future or merely latest response is never a fallback.
|
|
223
224
|
|
|
224
|
-
|
|
225
|
+
The CLI sends no tool-call ID to its hooks. For those events the lookup matches
|
|
226
|
+
by tool name and arguments instead (`transcript.assistant.message.unique_call`),
|
|
227
|
+
and only against the agent's last `assistant.message` on disk, while no
|
|
228
|
+
`user.message`, `abort`, `session.model_change` or `assistant.turn_end` follows it. The CLI writes its
|
|
229
|
+
log with a ~100 ms debounce, so `PreToolUse` (the first call of a batch above
|
|
230
|
+
all) often finds no response yet and stays empty; `PostToolUse` fills more
|
|
231
|
+
often. The record format is read from the `@github/copilot` 1.0.49 package only
|
|
232
|
+
(the latest, 1.0.98, is a native binary that could not be inspected) and was not
|
|
233
|
+
measured on a live session. To measure coverage, compare the share of tool rows
|
|
234
|
+
with this `model_source` per `copilot.hook` and per `service.version`.
|
|
235
|
+
|
|
236
|
+
**CLI tool hooks omit a stable tool-call ID. Their model is filled only when a
|
|
237
|
+
single pending request matches the tool name and arguments; otherwise it remains
|
|
225
238
|
absent**, even if a session selection or a recent response is visible. A
|
|
226
239
|
subagent ID without its own transcript, an unrecognized IDE/cloud transcript
|
|
227
240
|
format, or a record outside the read window also leaves the model absent.
|
|
@@ -230,8 +243,8 @@ a claim of complete model coverage for every host version.
|
|
|
230
243
|
|
|
231
244
|
Each lookup is read-only: at most a 256 KiB header plus a 1 MiB tail and 4,096
|
|
232
245
|
complete JSONL records, with no subprocess, directory scan, or cross-hook model
|
|
233
|
-
cache. Explicit models and tool hooks
|
|
234
|
-
lookup IO. Missing/unreadable files, non-regular files, leaf symlinks,
|
|
246
|
+
cache. Explicit models and tool hooks with neither a correlation ID nor a tool name
|
|
247
|
+
and input do no model lookup IO. Missing/unreadable files, non-regular files, leaf symlinks,
|
|
235
248
|
malformed records and ambiguous metadata fail quietly; incomplete boundary
|
|
236
249
|
lines are ignored. Transcript contents are never logged or forwarded by this
|
|
237
250
|
lookup. Guard behavior, event counts, and the existing privacy pipeline are
|