@cat-factory/worker 0.78.7 → 0.78.9
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.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -2
- package/dist/index.js.map +1 -1
- package/dist/infrastructure/ai/ContainerAgentExecutor.d.ts +1 -1
- package/dist/infrastructure/ai/ContainerAgentExecutor.d.ts.map +1 -1
- package/dist/infrastructure/ai/ContainerAgentExecutor.js.map +1 -1
- package/dist/infrastructure/ai/ContainerRepoBootstrapper.d.ts +1 -1
- package/dist/infrastructure/ai/ContainerRepoBootstrapper.d.ts.map +1 -1
- package/dist/infrastructure/ai/ContainerRepoBootstrapper.js +1 -1
- package/dist/infrastructure/ai/ContainerRepoBootstrapper.js.map +1 -1
- package/dist/infrastructure/ai/LlmFragmentSelector.d.ts +1 -1
- package/dist/infrastructure/ai/LlmFragmentSelector.d.ts.map +1 -1
- package/dist/infrastructure/ai/LlmFragmentSelector.js.map +1 -1
- package/dist/infrastructure/config/auth.d.ts +0 -8
- package/dist/infrastructure/config/auth.d.ts.map +1 -1
- package/dist/infrastructure/config/auth.js +1 -1
- package/dist/infrastructure/config/auth.js.map +1 -1
- package/dist/infrastructure/config/cors.d.ts +1 -1
- package/dist/infrastructure/config/cors.d.ts.map +1 -1
- package/dist/infrastructure/config/cors.js +1 -1
- package/dist/infrastructure/config/cors.js.map +1 -1
- package/dist/infrastructure/container.d.ts +1 -14
- package/dist/infrastructure/container.d.ts.map +1 -1
- package/dist/infrastructure/container.js +8 -2
- package/dist/infrastructure/container.js.map +1 -1
- package/dist/infrastructure/containers/ContainerSessionService.d.ts +1 -1
- package/dist/infrastructure/containers/ContainerSessionService.d.ts.map +1 -1
- package/dist/infrastructure/containers/ContainerSessionService.js +1 -1
- package/dist/infrastructure/containers/ContainerSessionService.js.map +1 -1
- package/dist/infrastructure/environments/WebCryptoSecretCipher.d.ts +1 -1
- package/dist/infrastructure/environments/WebCryptoSecretCipher.d.ts.map +1 -1
- package/dist/infrastructure/environments/WebCryptoSecretCipher.js.map +1 -1
- package/dist/infrastructure/github/FetchGitHubClient.d.ts +1 -1
- package/dist/infrastructure/github/FetchGitHubClient.d.ts.map +1 -1
- package/dist/infrastructure/github/FetchGitHubClient.js +1 -1
- package/dist/infrastructure/github/FetchGitHubClient.js.map +1 -1
- package/dist/infrastructure/github/FetchGitHubProvisioningClient.d.ts +1 -1
- package/dist/infrastructure/github/FetchGitHubProvisioningClient.d.ts.map +1 -1
- package/dist/infrastructure/github/FetchGitHubProvisioningClient.js +1 -1
- package/dist/infrastructure/github/FetchGitHubProvisioningClient.js.map +1 -1
- package/dist/infrastructure/github/GitHubAppAuth.d.ts +1 -1
- package/dist/infrastructure/github/GitHubAppAuth.d.ts.map +1 -1
- package/dist/infrastructure/github/GitHubAppAuth.js.map +1 -1
- package/dist/infrastructure/github/GitHubAppRegistry.d.ts +1 -1
- package/dist/infrastructure/github/GitHubAppRegistry.d.ts.map +1 -1
- package/dist/infrastructure/github/GitHubAppRegistry.js +1 -1
- package/dist/infrastructure/github/GitHubAppRegistry.js.map +1 -1
- package/dist/infrastructure/github/GitHubBranchUpdater.d.ts +1 -1
- package/dist/infrastructure/github/GitHubBranchUpdater.d.ts.map +1 -1
- package/dist/infrastructure/github/GitHubBranchUpdater.js.map +1 -1
- package/dist/infrastructure/github/GitHubCiStatusProvider.d.ts +1 -1
- package/dist/infrastructure/github/GitHubCiStatusProvider.d.ts.map +1 -1
- package/dist/infrastructure/github/GitHubCiStatusProvider.js +1 -1
- package/dist/infrastructure/github/GitHubCiStatusProvider.js.map +1 -1
- package/dist/infrastructure/github/GitHubMergeabilityProvider.d.ts +1 -1
- package/dist/infrastructure/github/GitHubMergeabilityProvider.d.ts.map +1 -1
- package/dist/infrastructure/github/GitHubMergeabilityProvider.js +1 -1
- package/dist/infrastructure/github/GitHubMergeabilityProvider.js.map +1 -1
- package/dist/infrastructure/github/GitHubPullRequestMerger.d.ts +1 -1
- package/dist/infrastructure/github/GitHubPullRequestMerger.d.ts.map +1 -1
- package/dist/infrastructure/github/GitHubPullRequestMerger.js +1 -1
- package/dist/infrastructure/github/GitHubPullRequestMerger.js.map +1 -1
- package/dist/infrastructure/github/sync-consumer.d.ts +0 -3
- package/dist/infrastructure/github/sync-consumer.d.ts.map +1 -1
- package/dist/infrastructure/github/sync-consumer.js +1 -1
- package/dist/infrastructure/github/sync-consumer.js.map +1 -1
- package/dist/infrastructure/observability/logger.d.ts +0 -1
- package/dist/infrastructure/observability/logger.d.ts.map +1 -1
- package/dist/infrastructure/repositories/chunk.d.ts +0 -8
- package/dist/infrastructure/repositories/chunk.d.ts.map +1 -1
- package/dist/infrastructure/repositories/chunk.js +1 -1
- package/dist/infrastructure/repositories/chunk.js.map +1 -1
- package/dist/infrastructure/runners/HttpRunnerPoolProvider.d.ts +1 -1
- package/dist/infrastructure/runners/HttpRunnerPoolProvider.d.ts.map +1 -1
- package/dist/infrastructure/runners/HttpRunnerPoolProvider.js +1 -1
- package/dist/infrastructure/runners/HttpRunnerPoolProvider.js.map +1 -1
- package/dist/infrastructure/workflows/GitHubBackfillWorkflow.d.ts +2 -1
- package/dist/infrastructure/workflows/GitHubBackfillWorkflow.d.ts.map +1 -1
- package/dist/infrastructure/workflows/retention.d.ts +2 -3
- package/dist/infrastructure/workflows/retention.d.ts.map +1 -1
- package/dist/infrastructure/workflows/retention.js +1 -1
- package/dist/infrastructure/workflows/retention.js.map +1 -1
- package/dist/infrastructure/workflows/runtime.d.ts +0 -2
- package/dist/infrastructure/workflows/runtime.d.ts.map +1 -1
- package/dist/infrastructure/workflows/runtime.js +1 -1
- package/dist/infrastructure/workflows/runtime.js.map +1 -1
- package/dist/infrastructure/workflows/sweeper.d.ts +2 -1
- package/dist/infrastructure/workflows/sweeper.d.ts.map +1 -1
- package/package.json +17 -17
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chunk.js","sourceRoot":"","sources":["../../../src/infrastructure/repositories/chunk.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,
|
|
1
|
+
{"version":3,"file":"chunk.js","sourceRoot":"","sources":["../../../src/infrastructure/repositories/chunk.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,gBAAgB,GAAG,EAAE,CAAA;AAE3B,qFAAqF;AACrF,MAAM,UAAU,UAAU,CAAI,KAAmB;IAC/C,MAAM,MAAM,GAAU,EAAE,CAAA;IACxB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,IAAI,gBAAgB,EAAE,CAAC;QACxD,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,GAAG,gBAAgB,CAAC,CAAC,CAAA;IACnD,CAAC;IACD,OAAO,MAAM,CAAA;AACf,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { HttpRunnerPoolProvider, RunnerPoolApiError
|
|
1
|
+
export { HttpRunnerPoolProvider, RunnerPoolApiError } from '@cat-factory/integrations';
|
|
2
2
|
//# sourceMappingURL=HttpRunnerPoolProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HttpRunnerPoolProvider.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/runners/HttpRunnerPoolProvider.ts"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"HttpRunnerPoolProvider.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/runners/HttpRunnerPoolProvider.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Moved to the runtime-neutral @cat-factory/integrations package (so the Node
|
|
2
2
|
// service can drive a self-hosted runner pool through the same implementation);
|
|
3
3
|
// re-exported here for existing Worker imports.
|
|
4
|
-
export { HttpRunnerPoolProvider, RunnerPoolApiError
|
|
4
|
+
export { HttpRunnerPoolProvider, RunnerPoolApiError } from '@cat-factory/integrations';
|
|
5
5
|
//# sourceMappingURL=HttpRunnerPoolProvider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HttpRunnerPoolProvider.js","sourceRoot":"","sources":["../../../src/infrastructure/runners/HttpRunnerPoolProvider.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,gFAAgF;AAChF,gDAAgD;AAChD,OAAO,
|
|
1
|
+
{"version":3,"file":"HttpRunnerPoolProvider.js","sourceRoot":"","sources":["../../../src/infrastructure/runners/HttpRunnerPoolProvider.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,gFAAgF;AAChF,gDAAgD;AAChD,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { WorkflowEntrypoint, type WorkflowEvent, type WorkflowStep } from 'cloudflare:workers';
|
|
2
2
|
import type { Env } from '../env';
|
|
3
3
|
/** Params for a full-repo backfill of one installation. */
|
|
4
|
-
|
|
4
|
+
interface GitHubBackfillParams {
|
|
5
5
|
installationId: number;
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
@@ -14,4 +14,5 @@ export interface GitHubBackfillParams {
|
|
|
14
14
|
export declare class GitHubBackfillWorkflow extends WorkflowEntrypoint<Env, GitHubBackfillParams> {
|
|
15
15
|
run(event: WorkflowEvent<GitHubBackfillParams>, step: WorkflowStep): Promise<void>;
|
|
16
16
|
}
|
|
17
|
+
export {};
|
|
17
18
|
//# sourceMappingURL=GitHubBackfillWorkflow.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GitHubBackfillWorkflow.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/workflows/GitHubBackfillWorkflow.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,KAAK,aAAa,EAClB,KAAK,YAAY,EAElB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAA;AAGjC,2DAA2D;AAC3D,
|
|
1
|
+
{"version":3,"file":"GitHubBackfillWorkflow.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/workflows/GitHubBackfillWorkflow.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,KAAK,aAAa,EAClB,KAAK,YAAY,EAElB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAA;AAGjC,2DAA2D;AAC3D,UAAU,oBAAoB;IAC5B,cAAc,EAAE,MAAM,CAAA;CACvB;AAOD;;;;;;GAMG;AACH,qBAAa,sBAAuB,SAAQ,kBAAkB,CAAC,GAAG,EAAE,oBAAoB,CAAC;IACxE,GAAG,CAChB,KAAK,EAAE,aAAa,CAAC,oBAAoB,CAAC,EAC1C,IAAI,EAAE,YAAY,GACjB,OAAO,CAAC,IAAI,CAAC,CAMf;CACF"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import type { AgentContextSnapshotRepository, AgentSearchQueryRepository, Clock, CommitProjectionRepository, LlmCallMetricRepository, PasswordResetTokenRepository, PipelineScheduleRepository, ProvisioningLogRepository, RateLimitRepository, TokenUsageRepository } from '@cat-factory/kernel';
|
|
2
|
-
/** Recurring-pipeline run history is kept ~1 week (the inspector's window). */
|
|
3
|
-
export declare const SCHEDULE_RUN_RETENTION_MS: number;
|
|
4
2
|
/** Per-table retention ages in milliseconds; 0 (or less) disables that table's pass. */
|
|
5
|
-
|
|
3
|
+
interface RetentionPolicy {
|
|
6
4
|
tokenUsageMs: number;
|
|
7
5
|
rateLimitMs: number;
|
|
8
6
|
commitMs: number;
|
|
@@ -51,4 +49,5 @@ export interface RetentionResult {
|
|
|
51
49
|
* to run on the every-2-min cron. Returns the counts removed per table.
|
|
52
50
|
*/
|
|
53
51
|
export declare function sweepRetention({ tokenUsageRepository, rateLimitRepository, commitRepository, llmCallMetricRepository, agentContextSnapshotRepository, agentSearchQueryRepository, pipelineScheduleRepository, provisioningLogRepository, passwordResetTokenRepository, clock, policy, }: RetentionDeps): Promise<RetentionResult>;
|
|
52
|
+
export {};
|
|
54
53
|
//# sourceMappingURL=retention.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retention.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/workflows/retention.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,8BAA8B,EAC9B,0BAA0B,EAC1B,KAAK,EACL,0BAA0B,EAC1B,uBAAuB,EACvB,4BAA4B,EAC5B,0BAA0B,EAC1B,yBAAyB,EACzB,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"retention.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/workflows/retention.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,8BAA8B,EAC9B,0BAA0B,EAC1B,KAAK,EACL,0BAA0B,EAC1B,uBAAuB,EACvB,4BAA4B,EAC5B,0BAA0B,EAC1B,yBAAyB,EACzB,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,qBAAqB,CAAA;AAY5B,wFAAwF;AACxF,UAAU,eAAe;IACvB,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;IAChB,gBAAgB,EAAE,MAAM,CAAA;IACxB;;;;;OAKG;IACH,iBAAiB,EAAE,MAAM,CAAA;CAC1B;AAED,MAAM,WAAW,aAAa;IAC5B,oBAAoB,EAAE,oBAAoB,CAAA;IAC1C,mBAAmB,EAAE,mBAAmB,CAAA;IACxC,gBAAgB,EAAE,0BAA0B,CAAA;IAC5C,uBAAuB,EAAE,uBAAuB,CAAA;IAChD,oFAAoF;IACpF,8BAA8B,EAAE,8BAA8B,CAAA;IAC9D,iFAAiF;IACjF,0BAA0B,EAAE,0BAA0B,CAAA;IACtD,4FAA4F;IAC5F,0BAA0B,CAAC,EAAE,0BAA0B,CAAA;IACvD,+FAA+F;IAC/F,yBAAyB,CAAC,EAAE,yBAAyB,CAAA;IACrD,mFAAmF;IACnF,4BAA4B,CAAC,EAAE,4BAA4B,CAAA;IAC3D,KAAK,EAAE,KAAK,CAAA;IACZ,MAAM,EAAE,eAAe,CAAA;CACxB;AAED,mDAAmD;AACnD,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,MAAM,CAAA;IACf,cAAc,EAAE,MAAM,CAAA;IACtB,qBAAqB,EAAE,MAAM,CAAA;IAC7B,kBAAkB,EAAE,MAAM,CAAA;IAC1B,YAAY,EAAE,MAAM,CAAA;IACpB,eAAe,EAAE,MAAM,CAAA;IACvB,mBAAmB,EAAE,MAAM,CAAA;CAC5B;AAYD;;;;GAIG;AACH,wBAAsB,cAAc,CAAC,EACnC,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EAChB,uBAAuB,EACvB,8BAA8B,EAC9B,0BAA0B,EAC1B,0BAA0B,EAC1B,yBAAyB,EACzB,4BAA4B,EAC5B,KAAK,EACL,MAAM,GACP,EAAE,aAAa,GAAG,OAAO,CAAC,eAAe,CAAC,CAkC1C"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Recurring-pipeline run history is kept ~1 week (the inspector's window). */
|
|
2
|
-
|
|
2
|
+
const SCHEDULE_RUN_RETENTION_MS = 7 * 24 * 60 * 60 * 1000;
|
|
3
3
|
/** Delete rows older than `now - windowMs`, treating a non-positive window as "disabled". */
|
|
4
4
|
async function prune(windowMs, now, del) {
|
|
5
5
|
if (windowMs <= 0)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retention.js","sourceRoot":"","sources":["../../../src/infrastructure/workflows/retention.ts"],"names":[],"mappings":"AAaA,+EAA+E;AAC/E,MAAM,
|
|
1
|
+
{"version":3,"file":"retention.js","sourceRoot":"","sources":["../../../src/infrastructure/workflows/retention.ts"],"names":[],"mappings":"AAaA,+EAA+E;AAC/E,MAAM,yBAAyB,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAA;AAwDzD,6FAA6F;AAC7F,KAAK,UAAU,KAAK,CAClB,QAAgB,EAChB,GAAW,EACX,GAAwC;IAExC,IAAI,QAAQ,IAAI,CAAC;QAAE,OAAO,CAAC,CAAA;IAC3B,OAAO,GAAG,CAAC,GAAG,GAAG,QAAQ,CAAC,CAAA;AAC5B,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,EACnC,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EAChB,uBAAuB,EACvB,8BAA8B,EAC9B,0BAA0B,EAC1B,0BAA0B,EAC1B,yBAAyB,EACzB,4BAA4B,EAC5B,KAAK,EACL,MAAM,GACQ;IACd,MAAM,GAAG,GAAG,KAAK,CAAC,GAAG,EAAE,CAAA;IACvB,OAAO;QACL,UAAU,EAAE,MAAM,KAAK,CAAC,MAAM,CAAC,YAAY,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,EAAE,CACtD,oBAAoB,CAAC,eAAe,CAAC,CAAC,CAAC,CACxC;QACD,UAAU,EAAE,MAAM,KAAK,CAAC,MAAM,CAAC,WAAW,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,mBAAmB,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;QAC/F,OAAO,EAAE,MAAM,KAAK,CAAC,MAAM,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,gBAAgB,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;QACtF,cAAc,EAAE,MAAM,KAAK,CAAC,MAAM,CAAC,gBAAgB,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,EAAE,CAC9D,uBAAuB,CAAC,eAAe,CAAC,CAAC,CAAC,CAC3C;QACD,+EAA+E;QAC/E,qBAAqB,EAAE,MAAM,KAAK,CAAC,MAAM,CAAC,gBAAgB,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,EAAE,CACrE,8BAA8B,CAAC,eAAe,CAAC,CAAC,CAAC,CAClD;QACD,wEAAwE;QACxE,kBAAkB,EAAE,MAAM,KAAK,CAAC,MAAM,CAAC,gBAAgB,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,EAAE,CAClE,0BAA0B,CAAC,eAAe,CAAC,CAAC,CAAC,CAC9C;QACD,YAAY,EAAE,0BAA0B;YACtC,CAAC,CAAC,MAAM,KAAK,CAAC,yBAAyB,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,EAAE,CAChD,0BAA0B,CAAC,eAAe,CAAC,CAAC,CAAC,CAC9C;YACH,CAAC,CAAC,CAAC;QACL,eAAe,EAAE,yBAAyB;YACxC,CAAC,CAAC,MAAM,KAAK,CAAC,MAAM,CAAC,iBAAiB,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,EAAE,CAC/C,yBAAyB,CAAC,eAAe,CAAC,CAAC,CAAC,CAC7C;YACH,CAAC,CAAC,CAAC;QACL,4DAA4D;QAC5D,mBAAmB,EAAE,4BAA4B;YAC/C,CAAC,CAAC,MAAM,4BAA4B,CAAC,aAAa,CAAC,GAAG,CAAC;YACvD,CAAC,CAAC,CAAC;KACN,CAAA;AACH,CAAC"}
|
|
@@ -3,8 +3,6 @@ import type { WorkflowSleepDuration } from 'cloudflare:workers';
|
|
|
3
3
|
export interface DurableSleeper {
|
|
4
4
|
sleep(name: string, duration: WorkflowSleepDuration): Promise<void>;
|
|
5
5
|
}
|
|
6
|
-
/** How many times to (re-)attempt the per-wake DI construction before giving up. */
|
|
7
|
-
export declare const WORKFLOW_BUILD_ATTEMPTS = 3;
|
|
8
6
|
/**
|
|
9
7
|
* Assemble a workflow's per-wake runtime (DI container + config), retrying a THROWING build a
|
|
10
8
|
* few times with durable sleeps in between.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/workflows/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA;AAE/D,uGAAuG;AACvG,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,qBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACpE;
|
|
1
|
+
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/workflows/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA;AAE/D,uGAAuG;AACvG,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,qBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACpE;AAOD;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,oBAAoB,CAAC,CAAC,EAC1C,KAAK,EAAE,MAAM,CAAC,EACd,IAAI,EAAE,cAAc,EACpB,KAAK,EAAE,MAAM,EACb,QAAQ,GAAE,MAAgC,GACzC,OAAO,CAAC,CAAC,CAAC,CAaZ"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** How many times to (re-)attempt the per-wake DI construction before giving up. */
|
|
2
|
-
|
|
2
|
+
const WORKFLOW_BUILD_ATTEMPTS = 3;
|
|
3
3
|
/** Durable pause between construction attempts (a wake blip usually clears in seconds). */
|
|
4
4
|
const BUILD_RETRY_DELAY = '5 seconds';
|
|
5
5
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../../src/infrastructure/workflows/runtime.ts"],"names":[],"mappings":"AAOA,oFAAoF;AACpF,MAAM,
|
|
1
|
+
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../../src/infrastructure/workflows/runtime.ts"],"names":[],"mappings":"AAOA,oFAAoF;AACpF,MAAM,uBAAuB,GAAG,CAAC,CAAA;AACjC,2FAA2F;AAC3F,MAAM,iBAAiB,GAA0B,WAAW,CAAA;AAE5D;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,KAAK,UAAU,oBAAoB,CACxC,KAAc,EACd,IAAoB,EACpB,KAAa,EACb,QAAQ,GAAW,uBAAuB;IAE1C,IAAI,OAAgB,CAAA;IACpB,KAAK,IAAI,OAAO,GAAG,CAAC,EAAE,OAAO,GAAG,QAAQ,EAAE,OAAO,EAAE,EAAE,CAAC;QACpD,IAAI,CAAC;YACH,OAAO,KAAK,EAAE,CAAA;QAChB,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,OAAO,GAAG,GAAG,CAAA;YACb,IAAI,OAAO,GAAG,QAAQ,GAAG,CAAC,EAAE,CAAC;gBAC3B,MAAM,IAAI,CAAC,KAAK,CAAC,GAAG,KAAK,gBAAgB,OAAO,EAAE,EAAE,iBAAiB,CAAC,CAAA;YACxE,CAAC;QACH,CAAC;IACH,CAAC;IACD,MAAM,OAAO,CAAA;AACf,CAAC"}
|
|
@@ -10,7 +10,7 @@ import type { Workflow } from '@cloudflare/workers-types';
|
|
|
10
10
|
*/
|
|
11
11
|
export type InstanceState = 'alive' | 'terminal' | 'missing';
|
|
12
12
|
/** Tells the sweeper the state of a run's durable instance. */
|
|
13
|
-
|
|
13
|
+
interface WorkflowLookup {
|
|
14
14
|
instanceState(runId: string): Promise<InstanceState>;
|
|
15
15
|
}
|
|
16
16
|
/** WorkflowLookup over a Cloudflare Workflows binding. */
|
|
@@ -76,4 +76,5 @@ export interface SweepResult {
|
|
|
76
76
|
* Pure orchestration over its ports so it is unit-testable with fakes.
|
|
77
77
|
*/
|
|
78
78
|
export declare function sweepStuckRuns({ agentRunRepository, instanceState, redrive, finalizeOrphan, failStalled, clock, leaseMs, hardStallMs, orphanedSince, }: SweepDeps): Promise<SweepResult>;
|
|
79
|
+
export {};
|
|
79
80
|
//# sourceMappingURL=sweeper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sweeper.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/workflows/sweeper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,kBAAkB,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;AACjF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AAEzD;;;;;;;GAOG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,CAAA;AAE5D,+DAA+D;AAC/D,
|
|
1
|
+
{"version":3,"file":"sweeper.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/workflows/sweeper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,kBAAkB,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;AACjF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AAEzD;;;;;;;GAOG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,CAAA;AAE5D,+DAA+D;AAC/D,UAAU,cAAc;IACtB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAAA;CACrD;AAED,0DAA0D;AAC1D,qBAAa,eAAgB,YAAW,cAAc;IACxC,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAArC,YAA6B,QAAQ,EAAE,QAAQ,EAAI;IAE7C,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAqBzD;CACF;AAED,MAAM,WAAW,SAAS;IACxB,kBAAkB,EAAE,kBAAkB,CAAA;IACtC,gEAAgE;IAChE,aAAa,CAAC,GAAG,EAAE,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC,CAAA;IACvD,4EAA4E;IAC5E,OAAO,CAAC,GAAG,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IACxC;;;;OAIG;IACH,cAAc,CAAC,GAAG,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAC/C;;;;OAIG;IACH,WAAW,CAAC,GAAG,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAC5C,KAAK,EAAE,KAAK,CAAA;IACZ,yEAAyE;IACzE,OAAO,EAAE,MAAM,CAAA;IACf,6FAA6F;IAC7F,WAAW,EAAE,MAAM,CAAA;IACnB;;;;;;;;;;OAUG;IACH,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACpC;AAED,qCAAqC;AACrC,MAAM,WAAW,WAAW;IAC1B,+CAA+C;IAC/C,QAAQ,EAAE,MAAM,CAAA;IAChB,sEAAsE;IACtE,SAAS,EAAE,MAAM,CAAA;IACjB,6EAA6E;IAC7E,OAAO,EAAE,MAAM,CAAA;CAChB;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,cAAc,CAAC,EACnC,kBAAkB,EAClB,aAAa,EACb,OAAO,EACP,cAAc,EACd,WAAW,EACX,KAAK,EACL,OAAO,EACP,WAAW,EACX,aAAyC,GAC1C,EAAE,SAAS,GAAG,OAAO,CAAC,WAAW,CAAC,CAiDlC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cat-factory/worker",
|
|
3
|
-
"version": "0.78.
|
|
3
|
+
"version": "0.78.9",
|
|
4
4
|
"description": "Reusable Cloudflare Worker library (Hono + D1) exposing the Agent Architecture Board core: the `createApp()` Hono factory, the default fetch/scheduled/queue handler, and the Durable Object + Workflow classes. Deployments (see deploy/backend) supply the wrangler.toml + config and re-export these.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -42,21 +42,21 @@
|
|
|
42
42
|
"pino": "^10.3.1",
|
|
43
43
|
"valibot": "^1.4.2",
|
|
44
44
|
"workers-ai-provider": "^3.3.1",
|
|
45
|
-
"@cat-factory/agents": "0.
|
|
46
|
-
"@cat-factory/caching": "0.6.
|
|
47
|
-
"@cat-factory/consensus": "0.10.
|
|
48
|
-
"@cat-factory/contracts": "0.121.
|
|
49
|
-
"@cat-factory/eks": "0.1.
|
|
50
|
-
"@cat-factory/gates": "0.5.
|
|
51
|
-
"@cat-factory/gitlab": "0.7.
|
|
52
|
-
"@cat-factory/
|
|
53
|
-
"@cat-factory/
|
|
54
|
-
"@cat-factory/observability-langfuse": "0.7.
|
|
55
|
-
"@cat-factory/orchestration": "0.100.
|
|
56
|
-
"@cat-factory/
|
|
57
|
-
"@cat-factory/
|
|
58
|
-
"@cat-factory/
|
|
59
|
-
"@cat-factory/spend": "0.11.
|
|
45
|
+
"@cat-factory/agents": "0.50.0",
|
|
46
|
+
"@cat-factory/caching": "0.6.17",
|
|
47
|
+
"@cat-factory/consensus": "0.10.17",
|
|
48
|
+
"@cat-factory/contracts": "0.121.2",
|
|
49
|
+
"@cat-factory/eks": "0.1.40",
|
|
50
|
+
"@cat-factory/gates": "0.5.2",
|
|
51
|
+
"@cat-factory/gitlab": "0.7.40",
|
|
52
|
+
"@cat-factory/kernel": "0.113.0",
|
|
53
|
+
"@cat-factory/integrations": "0.78.8",
|
|
54
|
+
"@cat-factory/observability-langfuse": "0.7.172",
|
|
55
|
+
"@cat-factory/orchestration": "0.100.2",
|
|
56
|
+
"@cat-factory/provider-cloudflare": "0.7.188",
|
|
57
|
+
"@cat-factory/server": "0.104.2",
|
|
58
|
+
"@cat-factory/prompt-fragments": "0.13.5",
|
|
59
|
+
"@cat-factory/spend": "0.11.23"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@cloudflare/vitest-pool-workers": "^0.18.0",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"typescript": "7.0.1-rc",
|
|
65
65
|
"vitest": "^4.1.9",
|
|
66
66
|
"wrangler": "^4.107.0",
|
|
67
|
-
"@cat-factory/conformance": "0.10.
|
|
67
|
+
"@cat-factory/conformance": "0.10.73"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|
|
70
70
|
"build": "tsc -b tsconfig.build.json",
|