@spotpatch/vite 1.3.0 → 1.4.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/README.md +5 -0
- package/dist/index.cjs +6 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/runtime-client.js +21 -24
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -69,5 +69,10 @@ SpotPatch never stashes, resets, commits, or changes the source index, and Apply
|
|
|
69
69
|
or Revert touches only the Agent delta. Conflicts and unsupported workspace
|
|
70
70
|
states remain blocked with an actionable reason.
|
|
71
71
|
|
|
72
|
+
OpenAI-compatible relays may reuse a provider tool call ID in a later model
|
|
73
|
+
turn. SpotPatch scopes idempotency to the model turn, while conflicting IDs in
|
|
74
|
+
the same turn still fail without source-side effects. Invalid tool arguments
|
|
75
|
+
and same-turn ID conflicts are reported separately.
|
|
76
|
+
|
|
72
77
|
See the [repository README](https://github.com/huanglvjing/spotpatch#readme) for
|
|
73
78
|
the complete setup and security model.
|
package/dist/index.cjs
CHANGED
|
@@ -515,7 +515,7 @@ var import_node_path2 = __toESM(require("path"), 1);
|
|
|
515
515
|
// package.json
|
|
516
516
|
var package_default = {
|
|
517
517
|
name: "@spotpatch/vite",
|
|
518
|
-
version: "1.
|
|
518
|
+
version: "1.4.0",
|
|
519
519
|
description: "Vite development plugin for SpotPatch.",
|
|
520
520
|
license: "MIT",
|
|
521
521
|
repository: {
|
|
@@ -793,7 +793,7 @@ function createAgentJobManager(options) {
|
|
|
793
793
|
const eventBase = (job) => {
|
|
794
794
|
job.sequence += 1;
|
|
795
795
|
return {
|
|
796
|
-
schemaVersion:
|
|
796
|
+
schemaVersion: 2,
|
|
797
797
|
sequence: job.sequence,
|
|
798
798
|
jobId: job.id,
|
|
799
799
|
status: job.status,
|
|
@@ -2043,6 +2043,8 @@ var STATUS_BY_ERROR = Object.freeze({
|
|
|
2043
2043
|
[import_shared9.ERROR_CODES.WORKTREE_LOCAL_CHANGES_UNSUPPORTED]: 409,
|
|
2044
2044
|
[import_shared9.ERROR_CODES.TOOL_DENIED]: 403,
|
|
2045
2045
|
[import_shared9.ERROR_CODES.TOOL_INPUT_INVALID]: 422,
|
|
2046
|
+
[import_shared9.ERROR_CODES.TOOL_ARGUMENTS_INVALID]: 422,
|
|
2047
|
+
[import_shared9.ERROR_CODES.TOOL_CALL_ID_CONFLICT]: 422,
|
|
2046
2048
|
[import_shared9.ERROR_CODES.TOOL_PATH_DENIED]: 403,
|
|
2047
2049
|
[import_shared9.ERROR_CODES.PATCH_REJECTED]: 422,
|
|
2048
2050
|
[import_shared9.ERROR_CODES.VALIDATION_FAILED]: 422,
|
|
@@ -2076,6 +2078,8 @@ var PUBLIC_MESSAGES = Object.freeze({
|
|
|
2076
2078
|
[import_shared9.ERROR_CODES.WORKTREE_LOCAL_CHANGES_UNSUPPORTED]: "The local workspace state cannot be isolated safely.",
|
|
2077
2079
|
[import_shared9.ERROR_CODES.TOOL_DENIED]: "The Agent tool request was denied.",
|
|
2078
2080
|
[import_shared9.ERROR_CODES.TOOL_INPUT_INVALID]: "The Agent tool input was invalid.",
|
|
2081
|
+
[import_shared9.ERROR_CODES.TOOL_ARGUMENTS_INVALID]: "The Agent tool arguments are invalid.",
|
|
2082
|
+
[import_shared9.ERROR_CODES.TOOL_CALL_ID_CONFLICT]: "A tool call ID conflicts within one Agent turn.",
|
|
2079
2083
|
[import_shared9.ERROR_CODES.TOOL_PATH_DENIED]: "The Agent tool path was denied.",
|
|
2080
2084
|
[import_shared9.ERROR_CODES.PATCH_REJECTED]: "The proposed patch was rejected.",
|
|
2081
2085
|
[import_shared9.ERROR_CODES.VALIDATION_FAILED]: "The proposed change failed validation.",
|