@granular-software/sdk 0.4.28 → 0.4.30
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/agent-evals.d.mts +1 -1
- package/dist/agent-evals.d.ts +1 -1
- package/dist/agent-evals.js +347 -274
- package/dist/agent-evals.js.map +1 -1
- package/dist/agent-evals.mjs +347 -274
- package/dist/agent-evals.mjs.map +1 -1
- package/dist/agent-harness.d.mts +11 -2
- package/dist/agent-harness.d.ts +11 -2
- package/dist/agent-harness.js +248 -125
- package/dist/agent-harness.js.map +1 -1
- package/dist/agent-harness.mjs +246 -126
- package/dist/agent-harness.mjs.map +1 -1
- package/dist/cli/index.js +275 -149
- package/dist/{client-CigjaeO8.d.mts → client-BVvOMfln.d.mts} +11 -4
- package/dist/{client-CigjaeO8.d.ts → client-BVvOMfln.d.ts} +11 -4
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +525 -274
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +523 -275
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/agent-harness.d.mts
CHANGED
|
@@ -69,6 +69,11 @@ interface GranularAgentHeapSummaryOptions {
|
|
|
69
69
|
maxLists?: number;
|
|
70
70
|
maxEntries?: number;
|
|
71
71
|
}
|
|
72
|
+
interface GranularAgentReferentFocus {
|
|
73
|
+
entryPaths: string[];
|
|
74
|
+
listNames: string[];
|
|
75
|
+
variableNames: string[];
|
|
76
|
+
}
|
|
72
77
|
interface HarnessProjectionOptions {
|
|
73
78
|
boundaryTimestamp?: number | null;
|
|
74
79
|
}
|
|
@@ -76,17 +81,20 @@ interface BuildGranularAgentSystemPromptInput {
|
|
|
76
81
|
domainDocumentation?: string;
|
|
77
82
|
sessionContext?: GranularAgentSessionContext;
|
|
78
83
|
heapSummary?: string;
|
|
84
|
+
referentSummary?: string;
|
|
79
85
|
loopSummary?: string;
|
|
80
86
|
workflowSummary?: string;
|
|
81
87
|
tools?: GranularAgentToolInfo[];
|
|
82
88
|
checkpoint?: GranularAgentExecutionCheckpoint | null;
|
|
83
89
|
}
|
|
84
90
|
interface GeneratedJobCodeIssue {
|
|
85
|
-
code: "commonjs_require" | "placeholder_after_confirm" | "placeholder_after_ask_user" | "
|
|
91
|
+
code: "commonjs_require" | "placeholder_after_confirm" | "placeholder_after_ask_user" | "missing_user_reply" | "return_show_not_for_ui";
|
|
86
92
|
severity: "error";
|
|
87
93
|
message: string;
|
|
88
94
|
}
|
|
89
95
|
declare function reviewGeneratedJobCode(code: string): GeneratedJobCodeIssue[];
|
|
96
|
+
declare function projectConversationReferentFocus(liveDoc: Record<string, unknown> | null): GranularAgentReferentFocus;
|
|
97
|
+
declare function projectConversationReferentSummary(liveDoc: Record<string, unknown> | null): string;
|
|
90
98
|
declare function getCurrentClosureId(liveDoc: Record<string, unknown> | null): string | null;
|
|
91
99
|
declare function projectWorkflowFocus(liveDoc: Record<string, unknown> | null, pendingPrompts?: HarnessPromptLike[], options?: HarnessProjectionOptions): GranularAgentWorkflowFocus;
|
|
92
100
|
declare function projectWorkflowSummary(liveDoc: Record<string, unknown> | null, pendingPrompts?: HarnessPromptLike[], options?: HarnessProjectionOptions): string;
|
|
@@ -112,10 +120,11 @@ declare function buildContinuationInstruction(resultPreview?: string): string;
|
|
|
112
120
|
declare function buildGranularAgentDomainBlock(domainDocumentation?: string): string;
|
|
113
121
|
declare function buildGranularAgentSessionBlock(sessionContext?: GranularAgentSessionContext): string;
|
|
114
122
|
declare function buildGranularAgentHeapBlock(heapSummary?: string): string;
|
|
123
|
+
declare function buildGranularAgentReferentBlock(referentSummary?: string): string;
|
|
115
124
|
declare function buildGranularAgentLoopBlock(loopSummary?: string): string;
|
|
116
125
|
declare function buildGranularAgentWorkflowBlock(workflowSummary?: string): string;
|
|
117
126
|
declare function buildGranularAgentToolBlock(tools?: GranularAgentToolInfo[]): string;
|
|
118
127
|
declare function buildGranularAgentCheckpointBlock(checkpoint?: GranularAgentExecutionCheckpoint | null): string;
|
|
119
128
|
declare function buildGranularAgentSystemPrompt(input: BuildGranularAgentSystemPromptInput): string;
|
|
120
129
|
|
|
121
|
-
export { type BuildGranularAgentSystemPromptInput, type GeneratedJobCodeIssue, type GranularAgentExecutionCheckpoint, type GranularAgentHeapSummaryOptions, type GranularAgentSessionContext, type GranularAgentToolInfo, type GranularAgentWorkflowFocus, type HarnessContinuationDecision, type HarnessControllerBudgets, type HarnessProjectionOptions, type HarnessPromptLike, type HarnessVerifierSnapshot, type HarnessVerifierSnapshotInput, buildContinuationInstruction, buildGranularAgentCheckpointBlock, buildGranularAgentDomainBlock, buildGranularAgentHeapBlock, buildGranularAgentLoopBlock, buildGranularAgentSessionBlock, buildGranularAgentSystemPrompt, buildGranularAgentToolBlock, buildGranularAgentWorkflowBlock, createHarnessVerifierSnapshot, evaluateContinuation, getCurrentClosureId, getExclusivePromptTarget, hasOpenPrompt, projectHeapSummary, projectLoopSummary, projectWorkflowFocus, projectWorkflowSummary, reviewGeneratedJobCode };
|
|
130
|
+
export { type BuildGranularAgentSystemPromptInput, type GeneratedJobCodeIssue, type GranularAgentExecutionCheckpoint, type GranularAgentHeapSummaryOptions, type GranularAgentReferentFocus, type GranularAgentSessionContext, type GranularAgentToolInfo, type GranularAgentWorkflowFocus, type HarnessContinuationDecision, type HarnessControllerBudgets, type HarnessProjectionOptions, type HarnessPromptLike, type HarnessVerifierSnapshot, type HarnessVerifierSnapshotInput, buildContinuationInstruction, buildGranularAgentCheckpointBlock, buildGranularAgentDomainBlock, buildGranularAgentHeapBlock, buildGranularAgentLoopBlock, buildGranularAgentReferentBlock, buildGranularAgentSessionBlock, buildGranularAgentSystemPrompt, buildGranularAgentToolBlock, buildGranularAgentWorkflowBlock, createHarnessVerifierSnapshot, evaluateContinuation, getCurrentClosureId, getExclusivePromptTarget, hasOpenPrompt, projectConversationReferentFocus, projectConversationReferentSummary, projectHeapSummary, projectLoopSummary, projectWorkflowFocus, projectWorkflowSummary, reviewGeneratedJobCode };
|
package/dist/agent-harness.d.ts
CHANGED
|
@@ -69,6 +69,11 @@ interface GranularAgentHeapSummaryOptions {
|
|
|
69
69
|
maxLists?: number;
|
|
70
70
|
maxEntries?: number;
|
|
71
71
|
}
|
|
72
|
+
interface GranularAgentReferentFocus {
|
|
73
|
+
entryPaths: string[];
|
|
74
|
+
listNames: string[];
|
|
75
|
+
variableNames: string[];
|
|
76
|
+
}
|
|
72
77
|
interface HarnessProjectionOptions {
|
|
73
78
|
boundaryTimestamp?: number | null;
|
|
74
79
|
}
|
|
@@ -76,17 +81,20 @@ interface BuildGranularAgentSystemPromptInput {
|
|
|
76
81
|
domainDocumentation?: string;
|
|
77
82
|
sessionContext?: GranularAgentSessionContext;
|
|
78
83
|
heapSummary?: string;
|
|
84
|
+
referentSummary?: string;
|
|
79
85
|
loopSummary?: string;
|
|
80
86
|
workflowSummary?: string;
|
|
81
87
|
tools?: GranularAgentToolInfo[];
|
|
82
88
|
checkpoint?: GranularAgentExecutionCheckpoint | null;
|
|
83
89
|
}
|
|
84
90
|
interface GeneratedJobCodeIssue {
|
|
85
|
-
code: "commonjs_require" | "placeholder_after_confirm" | "placeholder_after_ask_user" | "
|
|
91
|
+
code: "commonjs_require" | "placeholder_after_confirm" | "placeholder_after_ask_user" | "missing_user_reply" | "return_show_not_for_ui";
|
|
86
92
|
severity: "error";
|
|
87
93
|
message: string;
|
|
88
94
|
}
|
|
89
95
|
declare function reviewGeneratedJobCode(code: string): GeneratedJobCodeIssue[];
|
|
96
|
+
declare function projectConversationReferentFocus(liveDoc: Record<string, unknown> | null): GranularAgentReferentFocus;
|
|
97
|
+
declare function projectConversationReferentSummary(liveDoc: Record<string, unknown> | null): string;
|
|
90
98
|
declare function getCurrentClosureId(liveDoc: Record<string, unknown> | null): string | null;
|
|
91
99
|
declare function projectWorkflowFocus(liveDoc: Record<string, unknown> | null, pendingPrompts?: HarnessPromptLike[], options?: HarnessProjectionOptions): GranularAgentWorkflowFocus;
|
|
92
100
|
declare function projectWorkflowSummary(liveDoc: Record<string, unknown> | null, pendingPrompts?: HarnessPromptLike[], options?: HarnessProjectionOptions): string;
|
|
@@ -112,10 +120,11 @@ declare function buildContinuationInstruction(resultPreview?: string): string;
|
|
|
112
120
|
declare function buildGranularAgentDomainBlock(domainDocumentation?: string): string;
|
|
113
121
|
declare function buildGranularAgentSessionBlock(sessionContext?: GranularAgentSessionContext): string;
|
|
114
122
|
declare function buildGranularAgentHeapBlock(heapSummary?: string): string;
|
|
123
|
+
declare function buildGranularAgentReferentBlock(referentSummary?: string): string;
|
|
115
124
|
declare function buildGranularAgentLoopBlock(loopSummary?: string): string;
|
|
116
125
|
declare function buildGranularAgentWorkflowBlock(workflowSummary?: string): string;
|
|
117
126
|
declare function buildGranularAgentToolBlock(tools?: GranularAgentToolInfo[]): string;
|
|
118
127
|
declare function buildGranularAgentCheckpointBlock(checkpoint?: GranularAgentExecutionCheckpoint | null): string;
|
|
119
128
|
declare function buildGranularAgentSystemPrompt(input: BuildGranularAgentSystemPromptInput): string;
|
|
120
129
|
|
|
121
|
-
export { type BuildGranularAgentSystemPromptInput, type GeneratedJobCodeIssue, type GranularAgentExecutionCheckpoint, type GranularAgentHeapSummaryOptions, type GranularAgentSessionContext, type GranularAgentToolInfo, type GranularAgentWorkflowFocus, type HarnessContinuationDecision, type HarnessControllerBudgets, type HarnessProjectionOptions, type HarnessPromptLike, type HarnessVerifierSnapshot, type HarnessVerifierSnapshotInput, buildContinuationInstruction, buildGranularAgentCheckpointBlock, buildGranularAgentDomainBlock, buildGranularAgentHeapBlock, buildGranularAgentLoopBlock, buildGranularAgentSessionBlock, buildGranularAgentSystemPrompt, buildGranularAgentToolBlock, buildGranularAgentWorkflowBlock, createHarnessVerifierSnapshot, evaluateContinuation, getCurrentClosureId, getExclusivePromptTarget, hasOpenPrompt, projectHeapSummary, projectLoopSummary, projectWorkflowFocus, projectWorkflowSummary, reviewGeneratedJobCode };
|
|
130
|
+
export { type BuildGranularAgentSystemPromptInput, type GeneratedJobCodeIssue, type GranularAgentExecutionCheckpoint, type GranularAgentHeapSummaryOptions, type GranularAgentReferentFocus, type GranularAgentSessionContext, type GranularAgentToolInfo, type GranularAgentWorkflowFocus, type HarnessContinuationDecision, type HarnessControllerBudgets, type HarnessProjectionOptions, type HarnessPromptLike, type HarnessVerifierSnapshot, type HarnessVerifierSnapshotInput, buildContinuationInstruction, buildGranularAgentCheckpointBlock, buildGranularAgentDomainBlock, buildGranularAgentHeapBlock, buildGranularAgentLoopBlock, buildGranularAgentReferentBlock, buildGranularAgentSessionBlock, buildGranularAgentSystemPrompt, buildGranularAgentToolBlock, buildGranularAgentWorkflowBlock, createHarnessVerifierSnapshot, evaluateContinuation, getCurrentClosureId, getExclusivePromptTarget, hasOpenPrompt, projectConversationReferentFocus, projectConversationReferentSummary, projectHeapSummary, projectLoopSummary, projectWorkflowFocus, projectWorkflowSummary, reviewGeneratedJobCode };
|