@spotpatch/agent 1.1.0 → 1.2.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/dist/index.cjs +407 -97
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.js +418 -94
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AgentJobResult, AgentCheckResult, SpotAnnotation, ResolvedAiExecutionOptions, ResolvedAiModelProfile, ResolvedOpenAICompatibleProviderOptions, AgentLimits, AgentCapabilitySnapshot } from '@spotpatch/shared';
|
|
1
|
+
import { AgentJobResult, AgentCheckResult, SpotAnnotation, ResolvedAiExecutionOptions, ResolvedAiModelProfile, ResolvedOpenAICompatibleProviderOptions, AgentLimits, AgentCapabilitySnapshot, AgentWorkspaceHealthSnapshot } from '@spotpatch/shared';
|
|
2
2
|
|
|
3
3
|
interface ProviderCredential {
|
|
4
4
|
readonly kind: "provider-credential";
|
|
@@ -40,6 +40,7 @@ interface ExecuteAgentChangeOptions {
|
|
|
40
40
|
readonly root: string;
|
|
41
41
|
readonly signal: AbortSignal;
|
|
42
42
|
readonly temporaryBase?: string;
|
|
43
|
+
readonly workingTreeMode?: "require-clean" | "include-local-changes";
|
|
43
44
|
}
|
|
44
45
|
declare function executeAgentChange(options: ExecuteAgentChangeOptions): Promise<PreparedAgentChange>;
|
|
45
46
|
|
|
@@ -89,4 +90,6 @@ interface ProviderSessionOptions {
|
|
|
89
90
|
|
|
90
91
|
declare function createOpenAICompatibleProviderSession(options: ProviderSessionOptions): ProviderSession;
|
|
91
92
|
|
|
92
|
-
|
|
93
|
+
declare function inspectAgentWorkspace(root: string, signal?: AbortSignal): Promise<AgentWorkspaceHealthSnapshot>;
|
|
94
|
+
|
|
95
|
+
export { type AgentExecutionCallbacks, type ExecuteAgentChangeOptions, type PreparedAgentChange, type ProviderCredential, type ProviderSession, type ProviderSessionOptions, type ProviderToolCall, type ProviderToolDefinition, type ProviderToolResult, type ProviderTurn, applyPreparedAgentChange, createOpenAICompatibleProviderSession, createProviderCredential, executeAgentChange, inspectAgentWorkspace, probeProviderCapability, resolveProviderCredential, revertPreparedAgentChange };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AgentJobResult, AgentCheckResult, SpotAnnotation, ResolvedAiExecutionOptions, ResolvedAiModelProfile, ResolvedOpenAICompatibleProviderOptions, AgentLimits, AgentCapabilitySnapshot } from '@spotpatch/shared';
|
|
1
|
+
import { AgentJobResult, AgentCheckResult, SpotAnnotation, ResolvedAiExecutionOptions, ResolvedAiModelProfile, ResolvedOpenAICompatibleProviderOptions, AgentLimits, AgentCapabilitySnapshot, AgentWorkspaceHealthSnapshot } from '@spotpatch/shared';
|
|
2
2
|
|
|
3
3
|
interface ProviderCredential {
|
|
4
4
|
readonly kind: "provider-credential";
|
|
@@ -40,6 +40,7 @@ interface ExecuteAgentChangeOptions {
|
|
|
40
40
|
readonly root: string;
|
|
41
41
|
readonly signal: AbortSignal;
|
|
42
42
|
readonly temporaryBase?: string;
|
|
43
|
+
readonly workingTreeMode?: "require-clean" | "include-local-changes";
|
|
43
44
|
}
|
|
44
45
|
declare function executeAgentChange(options: ExecuteAgentChangeOptions): Promise<PreparedAgentChange>;
|
|
45
46
|
|
|
@@ -89,4 +90,6 @@ interface ProviderSessionOptions {
|
|
|
89
90
|
|
|
90
91
|
declare function createOpenAICompatibleProviderSession(options: ProviderSessionOptions): ProviderSession;
|
|
91
92
|
|
|
92
|
-
|
|
93
|
+
declare function inspectAgentWorkspace(root: string, signal?: AbortSignal): Promise<AgentWorkspaceHealthSnapshot>;
|
|
94
|
+
|
|
95
|
+
export { type AgentExecutionCallbacks, type ExecuteAgentChangeOptions, type PreparedAgentChange, type ProviderCredential, type ProviderSession, type ProviderSessionOptions, type ProviderToolCall, type ProviderToolDefinition, type ProviderToolResult, type ProviderTurn, applyPreparedAgentChange, createOpenAICompatibleProviderSession, createProviderCredential, executeAgentChange, inspectAgentWorkspace, probeProviderCapability, resolveProviderCredential, revertPreparedAgentChange };
|