Skip to content

Commit b60eb31

Browse files
committed
fix: add missing Required fields (enabled, syntax_error) unblocking CI
CI build 619 failed on two Required<> type exhaustiveness errors: 1. ConsolidationPipeline.ts:66 — DEFAULT_CONSOLIDATION lacked `enabled` after the prior commit added enabled?: boolean to ConsolidationConfig. Adding `enabled: true` to defaults makes Required<ConsolidationConfig> satisfied; behaviour unchanged since true is already the default behaviour when the field is absent in user config. 2. ForgeStatsAggregator.ts:61 — rejectionReasons initialiser lacked the `syntax_error` variant which was added to ForgeRejectionCategory at some point but the aggregator default wasn't updated in lockstep. Adds syntax_error: 0 so Record<ForgeRejectionCategory, number> is exhaustive. Neither is my introduced bug (#2 is pre-existing); both block the semantic-release publish pipeline. 216/216 memory tests still pass.
1 parent b9f4d65 commit b60eb31

105 files changed

Lines changed: 204 additions & 122 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

dist/agents/agency/AgencyRegistry.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/api/AgentOS.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/api/agentExport.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* @example
1919
* ```ts
2020
* import { agent } from '@framers/agentos';
21-
* import { exportAgentConfig, importAgent, exportAgentConfigJSON } from '@framers/agentos/api/agentExport';
21+
* import { exportAgentConfig, importAgent, exportAgentConfigJSON } from '../api/agentExport';
2222
*
2323
* const myAgent = agent({ model: 'openai:gpt-4o', instructions: 'Be helpful.' });
2424
* const json = exportAgentConfigJSON(myAgent);

dist/api/agentExport.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/api/errors.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @fileoverview Custom error class for AgentOS service facade errors.
33
*/
4-
import { GMIError, GMIErrorCode } from '@framers/agentos/core/utils/errors';
4+
import { GMIError, GMIErrorCode } from '../core/utils/errors';
55
/**
66
* Custom error class for errors specifically originating from the AgentOS service facade.
77
* Provides a standardized way to represent errors encountered within the `AgentOS` class.

dist/api/errors.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/api/runtime/AgentOSOrchestrator.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/api/runtime/ExternalToolResultHandler.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/api/runtime/GMIChunkTransformer.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/api/runtime/StreamChunkEmitter.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55
import type { StreamId, StreamingManager } from '../../core/streaming/StreamingManager';
66
import { AgentOSResponseChunkType } from '../types/AgentOSResponse';
7-
import { GMIErrorCode } from '@framers/agentos/core/utils/errors';
7+
import { GMIErrorCode } from '../../core/utils/errors';
88
type TurnExecutionLifecyclePhase = 'planned' | 'executing' | 'degraded' | 'recovered' | 'completed' | 'errored';
99
interface StreamContext {
1010
languageNegotiation?: any;

0 commit comments

Comments
 (0)