@h-rig/task-sources-plugin 0.0.6-alpha.156 → 0.0.6-alpha.158
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/src/control-plane/native/github-token-env.d.ts +3 -0
- package/dist/src/control-plane/native/github-token-env.js +26 -0
- package/dist/src/control-plane/native/native-git.d.ts +18 -0
- package/dist/src/control-plane/native/native-git.js +291 -0
- package/dist/src/control-plane/native/runtime-binary-build.d.ts +9 -0
- package/dist/src/control-plane/native/runtime-binary-build.js +107 -0
- package/dist/src/control-plane/native/task-ops.d.ts +52 -0
- package/dist/src/control-plane/native/task-ops.js +3192 -0
- package/dist/src/control-plane/native/task-state.d.ts +30 -0
- package/dist/src/control-plane/native/task-state.js +944 -0
- package/dist/src/control-plane/native/utils.d.ts +7 -0
- package/dist/src/control-plane/native/utils.js +110 -0
- package/dist/src/control-plane/native/validator-binaries.d.ts +3 -0
- package/dist/src/control-plane/native/validator-binaries.js +175 -0
- package/dist/src/control-plane/native/validator.d.ts +44 -0
- package/dist/src/control-plane/native/validator.js +979 -0
- package/dist/src/control-plane/state-sync/index.d.ts +4 -0
- package/dist/src/control-plane/state-sync/index.js +1205 -0
- package/dist/src/control-plane/state-sync/native-git.d.ts +1 -0
- package/dist/src/control-plane/state-sync/native-git.js +281 -0
- package/dist/src/control-plane/state-sync/read.d.ts +46 -0
- package/dist/src/control-plane/state-sync/read.js +564 -0
- package/dist/src/control-plane/state-sync/reconcile.d.ts +28 -0
- package/dist/src/control-plane/state-sync/reconcile.js +260 -0
- package/dist/src/control-plane/state-sync/repo.d.ts +1 -0
- package/dist/src/control-plane/state-sync/repo.js +42 -0
- package/dist/src/control-plane/state-sync/types.d.ts +28 -0
- package/dist/src/control-plane/state-sync/types.js +111 -0
- package/dist/src/control-plane/state-sync/write.d.ts +83 -0
- package/dist/src/control-plane/state-sync/write.js +1165 -0
- package/dist/src/control-plane/task-data-service.d.ts +17 -0
- package/dist/src/control-plane/task-data-service.js +3653 -0
- package/dist/src/control-plane/task-fields.d.ts +1 -0
- package/dist/src/control-plane/task-fields.js +6 -0
- package/dist/src/control-plane/task-io-service.d.ts +6 -0
- package/dist/src/control-plane/task-io-service.js +108 -0
- package/dist/src/control-plane/task-source-bootstrap.d.ts +1 -0
- package/dist/src/control-plane/task-source-bootstrap.js +6 -0
- package/dist/src/control-plane/task-source.d.ts +2 -0
- package/dist/src/control-plane/task-source.js +6 -0
- package/dist/src/control-plane/tasks/legacy-task-config-source.d.ts +19 -0
- package/dist/src/control-plane/tasks/legacy-task-config-source.js +124 -0
- package/dist/src/control-plane/tasks/plugin-task-source.d.ts +30 -0
- package/dist/src/control-plane/tasks/plugin-task-source.js +99 -0
- package/dist/src/control-plane/tasks/source-aware-task-config-source.d.ts +28 -0
- package/dist/src/control-plane/tasks/source-aware-task-config-source.js +642 -0
- package/dist/src/control-plane/tasks/source-lifecycle.d.ts +56 -0
- package/dist/src/control-plane/tasks/source-lifecycle.js +834 -0
- package/dist/src/plugin.d.ts +1 -1
- package/dist/src/plugin.js +3927 -64
- package/package.json +57 -4
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { TaskBrowserConfig } from "@rig/contracts";
|
|
2
|
+
import { type SyncedTrackerSnapshot, type TaskStateMetadata } from "../state-sync";
|
|
3
|
+
export type TaskConfigEntry = {
|
|
4
|
+
title?: string;
|
|
5
|
+
status?: string;
|
|
6
|
+
role?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
acceptance_criteria?: string;
|
|
9
|
+
scope?: string[];
|
|
10
|
+
validation?: string[];
|
|
11
|
+
browser?: TaskBrowserConfig;
|
|
12
|
+
repo_pins?: Record<string, string>;
|
|
13
|
+
criticality?: "core" | "high" | "normal";
|
|
14
|
+
queue_weight?: number;
|
|
15
|
+
creates_repo?: boolean;
|
|
16
|
+
auto_synced?: boolean;
|
|
17
|
+
};
|
|
18
|
+
export type SessionState = {
|
|
19
|
+
activeTaskIds?: string[];
|
|
20
|
+
};
|
|
21
|
+
export declare function readTaskConfig(projectRoot: string): Record<string, TaskConfigEntry>;
|
|
22
|
+
export declare function readSourceTaskConfig(projectRoot: string): Record<string, TaskConfigEntry>;
|
|
23
|
+
export declare function readValidationDescriptions(projectRoot: string): Record<string, string>;
|
|
24
|
+
export declare function readSourceValidationDescriptions(projectRoot: string): Record<string, string>;
|
|
25
|
+
export declare function currentTaskId(projectRoot: string): string;
|
|
26
|
+
export declare function readSourceTaskStateMetadata(projectRoot: string, taskId: string, lifecycleStatus: unknown, snapshot?: SyncedTrackerSnapshot): TaskStateMetadata | null;
|
|
27
|
+
export declare function lookupTask(projectRoot: string, input: string): string;
|
|
28
|
+
export declare function ensureArtifactAlias(projectRoot: string, id: string): void;
|
|
29
|
+
export declare function artifactDirForId(projectRoot: string, id: string): string;
|
|
30
|
+
export declare function synchronizeSourceTaskConfig(projectRoot: string): Record<string, unknown>;
|