@usine/orchestrator 0.1.0 → 0.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/README.md +44 -21
- package/dist/board/items.d.ts +18 -0
- package/dist/board/items.d.ts.map +1 -0
- package/dist/board/items.js +46 -0
- package/dist/board/items.js.map +1 -0
- package/dist/board/projection.d.ts +6 -5
- package/dist/board/projection.d.ts.map +1 -1
- package/dist/board/projection.js +25 -65
- package/dist/board/projection.js.map +1 -1
- package/dist/board/tasks.d.ts +8 -0
- package/dist/board/tasks.d.ts.map +1 -0
- package/dist/board/tasks.js +86 -0
- package/dist/board/tasks.js.map +1 -0
- package/dist/credentials.d.ts +6 -6
- package/dist/credentials.d.ts.map +1 -1
- package/dist/credentials.js +6 -6
- package/dist/credentials.js.map +1 -1
- package/dist/exe-dev.d.ts +5 -4
- package/dist/exe-dev.d.ts.map +1 -1
- package/dist/exe-dev.js +5 -4
- package/dist/exe-dev.js.map +1 -1
- package/dist/idle-triggers.d.ts +1 -1
- package/dist/idle-triggers.d.ts.map +1 -1
- package/dist/idle-triggers.js +3 -1
- package/dist/idle-triggers.js.map +1 -1
- package/dist/label-reconciler.d.ts +30 -0
- package/dist/label-reconciler.d.ts.map +1 -0
- package/dist/label-reconciler.js +119 -0
- package/dist/label-reconciler.js.map +1 -0
- package/dist/local.d.ts +17 -12
- package/dist/local.d.ts.map +1 -1
- package/dist/local.js +20 -13
- package/dist/local.js.map +1 -1
- package/dist/operator/attempt.d.ts +66 -0
- package/dist/operator/attempt.d.ts.map +1 -0
- package/dist/operator/attempt.js +58 -0
- package/dist/operator/attempt.js.map +1 -0
- package/dist/operator/board.d.ts +119 -0
- package/dist/operator/board.d.ts.map +1 -0
- package/dist/operator/board.js +101 -0
- package/dist/operator/board.js.map +1 -0
- package/dist/operator/http.d.ts +114 -0
- package/dist/operator/http.d.ts.map +1 -0
- package/dist/operator/http.js +139 -0
- package/dist/operator/http.js.map +1 -0
- package/dist/operator/need.d.ts +66 -0
- package/dist/operator/need.d.ts.map +1 -0
- package/dist/operator/need.js +70 -0
- package/dist/operator/need.js.map +1 -0
- package/dist/operator/operator.d.ts +64 -0
- package/dist/operator/operator.d.ts.map +1 -0
- package/dist/operator/{service.js → operator.js} +147 -32
- package/dist/operator/operator.js.map +1 -0
- package/dist/operator/overview.d.ts +51 -0
- package/dist/operator/overview.d.ts.map +1 -0
- package/dist/operator/overview.js +48 -0
- package/dist/operator/overview.js.map +1 -0
- package/dist/operator/projection.d.ts +9 -9
- package/dist/operator/projection.d.ts.map +1 -1
- package/dist/operator/projection.js +18 -10
- package/dist/operator/projection.js.map +1 -1
- package/dist/operator/run.d.ts +38 -0
- package/dist/operator/run.d.ts.map +1 -0
- package/dist/operator/run.js +41 -0
- package/dist/operator/run.js.map +1 -0
- package/dist/operator/transcript.d.ts +57 -0
- package/dist/operator/transcript.d.ts.map +1 -0
- package/dist/operator/transcript.js +59 -0
- package/dist/operator/transcript.js.map +1 -0
- package/dist/orchestrator.d.ts +3 -2
- package/dist/orchestrator.d.ts.map +1 -1
- package/dist/orchestrator.js +1 -1
- package/dist/orchestrator.js.map +1 -1
- package/dist/polling/cycle.d.ts +51 -0
- package/dist/polling/cycle.d.ts.map +1 -0
- package/dist/polling/cycle.js +44 -0
- package/dist/polling/cycle.js.map +1 -0
- package/dist/polling/hints.d.ts +20 -0
- package/dist/polling/hints.d.ts.map +1 -0
- package/dist/polling/hints.js +54 -0
- package/dist/polling/hints.js.map +1 -0
- package/dist/polling/loop-evaluation.d.ts +21 -0
- package/dist/polling/loop-evaluation.d.ts.map +1 -0
- package/dist/polling/loop-evaluation.js +131 -0
- package/dist/polling/loop-evaluation.js.map +1 -0
- package/dist/polling/polling.d.ts +36 -0
- package/dist/polling/polling.d.ts.map +1 -0
- package/dist/polling/polling.js +296 -0
- package/dist/polling/polling.js.map +1 -0
- package/dist/polling/repository-sync.d.ts +45 -0
- package/dist/polling/repository-sync.d.ts.map +1 -0
- package/dist/polling/repository-sync.js +169 -0
- package/dist/polling/repository-sync.js.map +1 -0
- package/dist/polling-triggers.d.ts +3 -39
- package/dist/polling-triggers.d.ts.map +1 -1
- package/dist/polling-triggers.js +3 -393
- package/dist/polling-triggers.js.map +1 -1
- package/dist/schedule-triggers.d.ts +17 -15
- package/dist/schedule-triggers.d.ts.map +1 -1
- package/dist/schedule-triggers.js +53 -43
- package/dist/schedule-triggers.js.map +1 -1
- package/dist/scheduler.d.ts +5 -5
- package/dist/scheduler.d.ts.map +1 -1
- package/dist/scheduler.js +28 -43
- package/dist/scheduler.js.map +1 -1
- package/dist/trigger-submission.d.ts +33 -24
- package/dist/trigger-submission.d.ts.map +1 -1
- package/dist/trigger-submission.js +32 -29
- package/dist/trigger-submission.js.map +1 -1
- package/package.json +50 -14
- package/dist/index.d.ts +0 -11
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -11
- package/dist/index.js.map +0 -1
- package/dist/operator/model.d.ts +0 -280
- package/dist/operator/model.d.ts.map +0 -1
- package/dist/operator/model.js +0 -242
- package/dist/operator/model.js.map +0 -1
- package/dist/operator/service.d.ts +0 -36
- package/dist/operator/service.d.ts.map +0 -1
- package/dist/operator/service.js.map +0 -1
|
@@ -1,53 +1,62 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { ConfigFileError } from "@usine/config/file";
|
|
2
|
+
import type { LoadedInstance } from "@usine/config/instance";
|
|
3
|
+
import type { LoopFile } from "@usine/config/loop";
|
|
4
|
+
import type { ManagedRepo } from "@usine/config/factory";
|
|
5
|
+
import { Agent } from "@usine/core/agent";
|
|
6
|
+
import { ModelId } from "@usine/core/agent/brain";
|
|
7
|
+
import { AttemptTask } from "@usine/core/attempt";
|
|
8
|
+
import { DedupKey } from "@usine/core/event";
|
|
9
|
+
import { CycleGeneration } from "@usine/core/cycle-budget";
|
|
10
|
+
import { ItemKey } from "@usine/core/item";
|
|
11
|
+
import { RepositoryRevision } from "@usine/core/repository";
|
|
12
|
+
import { Submission, type SubmissionResult } from "@usine/engine/engine";
|
|
4
13
|
import { type DateTime, Effect, Option, Schema } from "effect";
|
|
14
|
+
/** Issue and schedule Attempts resolve the remote's default branch at prepare time. */
|
|
15
|
+
export declare const DEFAULT_BRANCH_REVISION: string & import("effect/Brand").Brand<"RepositoryRevision">;
|
|
5
16
|
export interface ResolvedLoop {
|
|
6
|
-
readonly agent: Agent
|
|
17
|
+
readonly agent: Agent;
|
|
7
18
|
readonly loop: LoopFile;
|
|
8
|
-
readonly parentModel: Option.Option<
|
|
19
|
+
readonly parentModel: Option.Option<ModelId>;
|
|
9
20
|
}
|
|
10
21
|
declare const LoopAgentResolutionError_base: Schema.Class<LoopAgentResolutionError, Schema.TaggedStruct<"LoopAgentResolutionError", {
|
|
11
22
|
readonly loop: Schema.brand<Schema.NonEmptyString, "LoopName">;
|
|
12
23
|
readonly agent: Schema.brand<Schema.String, "AgentName">;
|
|
13
24
|
readonly message: Schema.NonEmptyString;
|
|
14
25
|
}>, import("effect/Cause").YieldableError>;
|
|
15
|
-
/**
|
|
26
|
+
/** The agent a loaded loop names is no longer in the roster. */
|
|
16
27
|
export declare class LoopAgentResolutionError extends LoopAgentResolutionError_base {
|
|
17
28
|
}
|
|
18
|
-
/**
|
|
29
|
+
/** Resolves one loop's roster agent and effective parent model. */
|
|
19
30
|
export declare const resolveTriggerLoop: (instance: LoadedInstance, loop: LoopFile) => Effect.Effect<{
|
|
20
|
-
agent: Agent
|
|
31
|
+
agent: Agent;
|
|
21
32
|
loop: LoopFile;
|
|
22
33
|
parentModel: Option.Option<string & import("effect/Brand").Brand<"ModelId">>;
|
|
23
34
|
}, LoopAgentResolutionError, never>;
|
|
24
35
|
/**
|
|
25
|
-
*
|
|
26
|
-
* loops
|
|
27
|
-
*
|
|
28
|
-
*
|
|
36
|
+
* Resolves every loaded loop's agent. `InstanceFolder.load` already quarantines
|
|
37
|
+
* loops that name unknown agents, so a miss here means a hand-assembled
|
|
38
|
+
* instance drifted: the loop is skipped with a log each cycle and its siblings
|
|
39
|
+
* keep running.
|
|
29
40
|
*/
|
|
30
41
|
export declare const resolveTriggerLoops: (instance: LoadedInstance) => Effect.Effect<ResolvedLoop[], never, never>;
|
|
31
42
|
interface TriggerSubmissionOptions {
|
|
32
|
-
readonly agent: Agent
|
|
33
|
-
readonly dedupKey:
|
|
34
|
-
readonly
|
|
43
|
+
readonly agent: Agent;
|
|
44
|
+
readonly dedupKey: DedupKey;
|
|
45
|
+
readonly cycleGeneration: CycleGeneration;
|
|
46
|
+
readonly itemKey: ItemKey;
|
|
35
47
|
readonly loop: LoopFile;
|
|
36
48
|
readonly payload: Schema.Json;
|
|
37
49
|
readonly receivedAt: DateTime.Utc;
|
|
38
50
|
readonly repository: ManagedRepo;
|
|
39
|
-
readonly
|
|
40
|
-
readonly
|
|
51
|
+
readonly revision: RepositoryRevision;
|
|
52
|
+
readonly task: AttemptTask;
|
|
53
|
+
readonly parentModel: Option.Option<ModelId>;
|
|
41
54
|
}
|
|
42
|
-
/**
|
|
55
|
+
/** Builds the Submission every trigger stream hands to the engine. */
|
|
43
56
|
export declare const triggerSubmission: (options: TriggerSubmissionOptions) => Submission;
|
|
44
|
-
/**
|
|
45
|
-
* What each submission outcome contributes to its log line: the run for a
|
|
46
|
-
* claim, the ignore reason for a superseded or revoked Event — never a
|
|
47
|
-
* sentinel value.
|
|
48
|
-
*/
|
|
57
|
+
/** The log fields for a submission outcome: the run id for a claim, the reason for an ignore. */
|
|
49
58
|
export declare const submissionLogFields: (submission: SubmissionResult) => Record<string, string>;
|
|
50
|
-
/**
|
|
59
|
+
/** Log fields for a config failure met while triggering. */
|
|
51
60
|
export declare const configFileErrorLogFields: (error: ConfigFileError) => {
|
|
52
61
|
configFile: string & import("effect/Brand").Brand<"InstancePath">;
|
|
53
62
|
configStage: "expression" | "frontmatter" | "read" | "reference" | "schema" | "yaml";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trigger-submission.d.ts","sourceRoot":"","sources":["../src/trigger-submission.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"trigger-submission.d.ts","sourceRoot":"","sources":["../src/trigger-submission.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,KAAK,EAAiC,MAAM,mBAAmB,CAAC;AACzE,OAAO,EAAa,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAS,QAAQ,EAAW,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACzE,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,EAAS,MAAM,EAAU,MAAM,EAAE,MAAM,QAAQ,CAAC;AAE9E,uFAAuF;AACvF,eAAO,MAAM,uBAAuB,6DAAkC,CAAC;AAEvE,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IACxB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;CAC9C;;;;;;AAED,gEAAgE;AAChE,qBAAa,wBAAyB,SAAQ,6BAM5C;CAAG;AAEL,mEAAmE;AACnE,eAAO,MAAM,kBAAkB;;;;mCA8B7B,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,2EAkB9B,CAAC;AAEH,UAAU,wBAAwB;IAChC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;IACtB,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC5B,QAAQ,CAAC,eAAe,EAAE,eAAe,CAAC;IAC1C,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IACxB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC;IAC9B,QAAQ,CAAC,UAAU,EAAE,QAAQ,CAAC,GAAG,CAAC;IAClC,QAAQ,CAAC,UAAU,EAAE,WAAW,CAAC;IACjC,QAAQ,CAAC,QAAQ,EAAE,kBAAkB,CAAC;IACtC,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;CAC9C;AAED,sEAAsE;AACtE,eAAO,MAAM,iBAAiB,YAAa,wBAAwB,KAAG,UAoBlE,CAAC;AAEL,iGAAiG;AACjG,eAAO,MAAM,mBAAmB,eAAgB,gBAAgB,KAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAMpF,CAAC;AAEL,4DAA4D;AAC5D,eAAO,MAAM,wBAAwB,UAAW,eAAe;;;;;;;CAQ3D,CAAC"}
|
|
@@ -1,20 +1,23 @@
|
|
|
1
|
-
import {} from "@usine/
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Agent, resolveParentModel, AgentName } from "@usine/core/agent";
|
|
2
|
+
import { BrainSpec, ModelId } from "@usine/core/agent/brain";
|
|
3
|
+
import { AttemptTask } from "@usine/core/attempt";
|
|
4
|
+
import { Event, DedupKey, EventId } from "@usine/core/event";
|
|
5
|
+
import { CycleGeneration } from "@usine/core/cycle-budget";
|
|
6
|
+
import { ItemKey } from "@usine/core/item";
|
|
7
|
+
import { LoopName } from "@usine/core/loop";
|
|
8
|
+
import { RepositoryRevision } from "@usine/core/repository";
|
|
9
|
+
import { Submission } from "@usine/engine/engine";
|
|
4
10
|
import { Effect, Match, Option, Result, Schema } from "effect";
|
|
5
|
-
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
*/
|
|
9
|
-
const DEFAULT_BRANCH_REVISION = Repository.Revision.make("HEAD");
|
|
10
|
-
/** A loaded loop lost the roster member its authored agent name refers to. */
|
|
11
|
+
/** Issue and schedule Attempts resolve the remote's default branch at prepare time. */
|
|
12
|
+
export const DEFAULT_BRANCH_REVISION = RepositoryRevision.make("HEAD");
|
|
13
|
+
/** The agent a loaded loop names is no longer in the roster. */
|
|
11
14
|
export class LoopAgentResolutionError extends Schema.TaggedError("@usine/orchestrator/LoopAgentResolutionError")("LoopAgentResolutionError", {
|
|
12
|
-
loop:
|
|
13
|
-
agent:
|
|
15
|
+
loop: LoopName,
|
|
16
|
+
agent: AgentName,
|
|
14
17
|
message: Schema.NonEmptyString,
|
|
15
18
|
}) {
|
|
16
19
|
}
|
|
17
|
-
/**
|
|
20
|
+
/** Resolves one loop's roster agent and effective parent model. */
|
|
18
21
|
export const resolveTriggerLoop = Effect.fn("TriggerRouting.resolveLoop")(function* (instance, loop) {
|
|
19
22
|
yield* Effect.annotateCurrentSpan({ loop: loop.name, agent: loop.agent });
|
|
20
23
|
const roster = new Map(instance.agents.map((agent) => [agent.name, agent]));
|
|
@@ -26,27 +29,28 @@ export const resolveTriggerLoop = Effect.fn("TriggerRouting.resolveLoop")(functi
|
|
|
26
29
|
message: `Loop ${loop.name} references missing Agent ${loop.agent}`,
|
|
27
30
|
});
|
|
28
31
|
}
|
|
29
|
-
const agent = new Agent
|
|
32
|
+
const agent = new Agent({
|
|
30
33
|
name: loaded.name,
|
|
31
|
-
brain: new
|
|
34
|
+
brain: new BrainSpec({
|
|
32
35
|
harness: loaded.harness,
|
|
33
36
|
model: loaded.model,
|
|
34
37
|
effort: loaded.effort,
|
|
35
38
|
}),
|
|
36
39
|
parentModel: loaded.parentModel,
|
|
40
|
+
parentEffort: loaded.parentEffort,
|
|
37
41
|
persona: loaded.persona,
|
|
38
42
|
});
|
|
39
43
|
return {
|
|
40
44
|
agent,
|
|
41
45
|
loop,
|
|
42
|
-
parentModel:
|
|
46
|
+
parentModel: resolveParentModel(agent, instance.config.settings.parentModel),
|
|
43
47
|
};
|
|
44
48
|
});
|
|
45
49
|
/**
|
|
46
|
-
*
|
|
47
|
-
* loops
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
+
* Resolves every loaded loop's agent. `InstanceFolder.load` already quarantines
|
|
51
|
+
* loops that name unknown agents, so a miss here means a hand-assembled
|
|
52
|
+
* instance drifted: the loop is skipped with a log each cycle and its siblings
|
|
53
|
+
* keep running.
|
|
50
54
|
*/
|
|
51
55
|
export const resolveTriggerLoops = Effect.fn("TriggerRouting.resolveLoops")(function* (instance) {
|
|
52
56
|
const resolved = [];
|
|
@@ -65,35 +69,34 @@ export const resolveTriggerLoops = Effect.fn("TriggerRouting.resolveLoops")(func
|
|
|
65
69
|
}
|
|
66
70
|
return resolved;
|
|
67
71
|
});
|
|
68
|
-
/**
|
|
72
|
+
/** Builds the Submission every trigger stream hands to the engine. */
|
|
69
73
|
export const triggerSubmission = (options) => new Submission({
|
|
70
|
-
event: new Event
|
|
71
|
-
id:
|
|
74
|
+
event: new Event({
|
|
75
|
+
id: EventId.make(options.dedupKey),
|
|
72
76
|
dedupKey: options.dedupKey,
|
|
73
77
|
payload: options.payload,
|
|
74
78
|
receivedAt: options.receivedAt,
|
|
75
79
|
}),
|
|
76
80
|
itemKey: options.itemKey,
|
|
81
|
+
cycleGeneration: options.cycleGeneration,
|
|
77
82
|
loop: options.loop.name,
|
|
78
83
|
step: options.loop.step,
|
|
79
84
|
approval: options.loop.approval,
|
|
85
|
+
cycleLimit: options.loop.trigger.on === "schedule" ? Option.none() : Option.some(options.loop.maxCycles),
|
|
80
86
|
repository: options.repository.name,
|
|
81
|
-
revision:
|
|
87
|
+
revision: options.revision,
|
|
82
88
|
task: options.task,
|
|
83
89
|
agent: options.agent,
|
|
84
90
|
parentModel: options.parentModel,
|
|
85
91
|
});
|
|
86
|
-
/**
|
|
87
|
-
* What each submission outcome contributes to its log line: the run for a
|
|
88
|
-
* claim, the ignore reason for a superseded or revoked Event — never a
|
|
89
|
-
* sentinel value.
|
|
90
|
-
*/
|
|
92
|
+
/** The log fields for a submission outcome: the run id for a claim, the reason for an ignore. */
|
|
91
93
|
export const submissionLogFields = (submission) => Match.valueTags(submission, {
|
|
92
94
|
Claimed: ({ runId }) => ({ runId }),
|
|
93
95
|
Queued: () => ({}),
|
|
94
96
|
Ignored: ({ reason }) => ({ reason }),
|
|
97
|
+
CycleBlocked: ({ ask }) => ({ askId: ask.id, reason: "cycle-budget-exhausted" }),
|
|
95
98
|
});
|
|
96
|
-
/**
|
|
99
|
+
/** Log fields for a config failure met while triggering. */
|
|
97
100
|
export const configFileErrorLogFields = (error) => Option.match(error.expression, {
|
|
98
101
|
onNone: () => ({ configFile: error.file, configStage: error.stage }),
|
|
99
102
|
onSome: (expression) => ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trigger-submission.js","sourceRoot":"","sources":["../src/trigger-submission.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"trigger-submission.js","sourceRoot":"","sources":["../src/trigger-submission.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACzE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE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AC,KAAK;IACpB,WAAW,EAAE,OAAO,CAAC,WAAW;CACjC,CAAC,CAAC;AAEL,iGAAiG;AACjG,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,UAA4B,EAA0B,EAAE,CAC1F,KAAK,CAAC,SAAS,CAAC,UAAU,EAAE;IAC1B,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC;IACnC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC;IAClB,OAAO,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC;IACrC,YAAY,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,wBAAwB,EAAE,CAAC;CACjF,CAAC,CAAC;AAEL,4DAA4D;AAC5D,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,KAAsB,EAAE,EAAE,CACjE,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,UAAU,EAAE;IAC7B,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,UAAU,EAAE,KAAK,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC;IACpE,MAAM,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;QACvB,UAAU,EAAE,KAAK,CAAC,IAAI;QACtB,WAAW,EAAE,KAAK,CAAC,KAAK;QACxB,UAAU;KACX,CAAC;CACH,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@usine/orchestrator",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "The embeddable usine composition: the full engine as an Effect layer, startable in-process.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -14,17 +14,53 @@
|
|
|
14
14
|
"type": "module",
|
|
15
15
|
"sideEffects": false,
|
|
16
16
|
"exports": {
|
|
17
|
-
"
|
|
18
|
-
"types": "./dist/
|
|
19
|
-
"default": "./dist/
|
|
17
|
+
"./board/projection": {
|
|
18
|
+
"types": "./dist/board/projection.d.ts",
|
|
19
|
+
"default": "./dist/board/projection.js"
|
|
20
20
|
},
|
|
21
|
-
"./
|
|
22
|
-
"types": "./dist/
|
|
23
|
-
"default": "./dist/
|
|
21
|
+
"./credentials": {
|
|
22
|
+
"types": "./dist/credentials.d.ts",
|
|
23
|
+
"default": "./dist/credentials.js"
|
|
24
24
|
},
|
|
25
25
|
"./exe-dev": {
|
|
26
26
|
"types": "./dist/exe-dev.d.ts",
|
|
27
27
|
"default": "./dist/exe-dev.js"
|
|
28
|
+
},
|
|
29
|
+
"./idle-triggers": {
|
|
30
|
+
"types": "./dist/idle-triggers.d.ts",
|
|
31
|
+
"default": "./dist/idle-triggers.js"
|
|
32
|
+
},
|
|
33
|
+
"./label-reconciler": {
|
|
34
|
+
"types": "./dist/label-reconciler.d.ts",
|
|
35
|
+
"default": "./dist/label-reconciler.js"
|
|
36
|
+
},
|
|
37
|
+
"./local": {
|
|
38
|
+
"types": "./dist/local.d.ts",
|
|
39
|
+
"default": "./dist/local.js"
|
|
40
|
+
},
|
|
41
|
+
"./orchestrator": {
|
|
42
|
+
"types": "./dist/orchestrator.d.ts",
|
|
43
|
+
"default": "./dist/orchestrator.js"
|
|
44
|
+
},
|
|
45
|
+
"./polling-triggers": {
|
|
46
|
+
"types": "./dist/polling-triggers.d.ts",
|
|
47
|
+
"default": "./dist/polling-triggers.js"
|
|
48
|
+
},
|
|
49
|
+
"./schedule-triggers": {
|
|
50
|
+
"types": "./dist/schedule-triggers.d.ts",
|
|
51
|
+
"default": "./dist/schedule-triggers.js"
|
|
52
|
+
},
|
|
53
|
+
"./scheduler": {
|
|
54
|
+
"types": "./dist/scheduler.d.ts",
|
|
55
|
+
"default": "./dist/scheduler.js"
|
|
56
|
+
},
|
|
57
|
+
"./operator": {
|
|
58
|
+
"types": "./dist/operator/operator.d.ts",
|
|
59
|
+
"default": "./dist/operator/operator.js"
|
|
60
|
+
},
|
|
61
|
+
"./operator/http": {
|
|
62
|
+
"types": "./dist/operator/http.d.ts",
|
|
63
|
+
"default": "./dist/operator/http.js"
|
|
28
64
|
}
|
|
29
65
|
},
|
|
30
66
|
"publishConfig": {
|
|
@@ -32,13 +68,13 @@
|
|
|
32
68
|
},
|
|
33
69
|
"dependencies": {
|
|
34
70
|
"@effect/platform-node": "4.0.0-rc.111",
|
|
35
|
-
"@usine/config": "0.
|
|
36
|
-
"@usine/core": "0.
|
|
37
|
-
"@usine/engine": "0.
|
|
38
|
-
"@usine/
|
|
39
|
-
"@usine/
|
|
40
|
-
"@usine/github": "0.1.
|
|
41
|
-
"@usine/run-host": "0.
|
|
71
|
+
"@usine/config": "0.2.0",
|
|
72
|
+
"@usine/core": "0.2.0",
|
|
73
|
+
"@usine/engine": "0.2.0",
|
|
74
|
+
"@usine/executor": "0.2.0",
|
|
75
|
+
"@usine/expression": "0.2.0",
|
|
76
|
+
"@usine/github": "0.1.1",
|
|
77
|
+
"@usine/run-host": "0.2.0"
|
|
42
78
|
},
|
|
43
79
|
"devDependencies": {
|
|
44
80
|
"@effect/vitest": "4.0.0-rc.111",
|
package/dist/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/** @usine/orchestrator — embeddable trigger-to-run and worker composition. */
|
|
2
|
-
export * from "./operator/model.ts";
|
|
3
|
-
export * from "./operator/service.ts";
|
|
4
|
-
export { labelMutationForBoardMove, projectBoard } from "./board/projection.ts";
|
|
5
|
-
export * from "./orchestrator.ts";
|
|
6
|
-
export { idleTriggersLayer } from "./idle-triggers.ts";
|
|
7
|
-
export { PollCycle, PollingTriggers, RepositoryPollFailure } from "./polling-triggers.ts";
|
|
8
|
-
export { ScheduleAgentFailure, ScheduleCronFailure, ScheduleCycle, ScheduleFailure, ScheduleTickFailure, ScheduleTriggers, } from "./schedule-triggers.ts";
|
|
9
|
-
export { stepExecutorLayer, UnsupportedWorkerError } from "./scheduler.ts";
|
|
10
|
-
export { gitHubCredentialLayer } from "./credentials.ts";
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,yBAAyB,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAChF,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC1F,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,aAAa,EACb,eAAe,EACf,mBAAmB,EACnB,gBAAgB,GACjB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC"}
|
package/dist/index.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/** @usine/orchestrator — embeddable trigger-to-run and worker composition. */
|
|
2
|
-
export * from "./operator/model.js";
|
|
3
|
-
export * from "./operator/service.js";
|
|
4
|
-
export { labelMutationForBoardMove, projectBoard } from "./board/projection.js";
|
|
5
|
-
export * from "./orchestrator.js";
|
|
6
|
-
export { idleTriggersLayer } from "./idle-triggers.js";
|
|
7
|
-
export { PollCycle, PollingTriggers, RepositoryPollFailure } from "./polling-triggers.js";
|
|
8
|
-
export { ScheduleAgentFailure, ScheduleCronFailure, ScheduleCycle, ScheduleFailure, ScheduleTickFailure, ScheduleTriggers, } from "./schedule-triggers.js";
|
|
9
|
-
export { stepExecutorLayer, UnsupportedWorkerError } from "./scheduler.js";
|
|
10
|
-
export { gitHubCredentialLayer } from "./credentials.js";
|
|
11
|
-
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,yBAAyB,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAChF,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC1F,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,aAAa,EACb,eAAe,EACf,mBAAmB,EACnB,gBAAgB,GACjB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC"}
|