@h-rig/standard-plugin 0.0.6-alpha.18 → 0.0.6-alpha.181

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.
@@ -0,0 +1,29 @@
1
+ import { type DocsDriftPluginOptions } from "@rig/docs-drift-plugin/plugin";
2
+ import { type StandardTaskSourcesPluginOptions } from "@rig/task-sources-plugin/plugin";
3
+ import type { RigPlugin } from "@rig/core/config";
4
+ export type StandardPluginsOptions = {
5
+ readonly taskSources?: StandardTaskSourcesPluginOptions | undefined;
6
+ readonly drift?: DocsDriftPluginOptions | undefined;
7
+ };
8
+ /**
9
+ * Author-facing options for the default `standard()` collection. The GitHub
10
+ * task-source knobs live at the top level (where rig.config authors expect
11
+ * them); `drift` configures the docs-drift plugin. Everything maps down into
12
+ * the discrete-plugin `standardPlugins()` collection below.
13
+ */
14
+ export interface StandardOptions extends StandardTaskSourcesPluginOptions {
15
+ readonly drift?: DocsDriftPluginOptions | undefined;
16
+ }
17
+ /**
18
+ * The default export consumed by generated rig.config files:
19
+ *
20
+ * import standard from "@rig/standard-plugin";
21
+ * export default defineConfig({ plugins: [standard({ githubUserId, ... })] });
22
+ *
23
+ * It returns the discrete-plugin COLLECTION (not a fat aggregate plugin) — the
24
+ * config author drops it into `plugins`, and defineConfig flattens the bundle
25
+ * into the explicit plugin list. This is the single seam that keeps
26
+ * `@rig/standard-plugin` an inert collection rather than a behavioural unit.
27
+ */
28
+ export default function standard(options?: StandardOptions): readonly RigPlugin[];
29
+ export declare function standardPlugins(options?: StandardPluginsOptions): readonly RigPlugin[];
@@ -0,0 +1,84 @@
1
+ // @bun
2
+ // packages/standard-plugin/src/bundle.ts
3
+ import { createBlockerClassifierPlugin } from "@rig/blocker-classifier-plugin/plugin";
4
+ import { createDoctorPlugin } from "@rig/doctor-plugin/plugin";
5
+ import { createGuardPlugin } from "@rig/guard-plugin/plugin";
6
+ import { createDefaultLifecyclePlugin } from "@rig/lifecycle-plugin/plugin";
7
+ import { createDependencyGraphPlugin } from "@rig/dependency-graph-plugin/plugin";
8
+ import { createPlanningPlugin } from "@rig/planning-plugin/plugin";
9
+ import { createPromptPlugin } from "@rig/prompt-plugin/plugin";
10
+ import { createSupervisorPlugin } from "@rig/supervisor-plugin/plugin";
11
+ import { createRunReadModelPlugin } from "@rig/run-read-model-plugin/plugin";
12
+ import { createRunControlPlugin } from "@rig/run-control-plugin/plugin";
13
+ import { createRunWorkerPlugin } from "@rig/run-worker/plugin";
14
+ import { createStandardDocsDriftPlugin } from "@rig/docs-drift-plugin/plugin";
15
+ import { createMemoryPlugin } from "@rig/memory-plugin/plugin";
16
+ import { createProviderPlugin } from "@rig/provider-plugin/plugin";
17
+ import { createIsolationPlugin } from "@rig/isolation-plugin/plugin";
18
+ import { createBrowserPlugin } from "@rig/browser-plugin/plugin";
19
+ import { createRigHostPlugin } from "@rig/rig-host/plugin";
20
+ import { createCockpitPlugin } from "@rig/cockpit-plugin/plugin";
21
+ import { createNativeToolchainPlugin } from "@rig/native-toolchain-plugin/plugin";
22
+ import { createReposPlugin } from "@rig/repos-plugin/plugin";
23
+ import { createGitHubProviderPlugin } from "@rig/github-provider-plugin/plugin";
24
+ import { createInitPlugin } from "@rig/init-plugin/plugin";
25
+ import { createPrReviewPlugin } from "@rig/pr-review-plugin/plugin";
26
+ import { createTransportPlugin } from "@rig/transport-plugin/plugin";
27
+ import { createSchedulerPlugin } from "@rig/scheduler-plugin/plugin";
28
+ import { createWorkspacePlugin } from "@rig/workspace-plugin/plugin";
29
+ import { createNotificationsPlugin } from "@rig/notifications-plugin/plugin";
30
+ import { standardCliSurfacePlugin } from "@rig/cli-surface-plugin/plugin";
31
+ import {
32
+ createStandardProductEntrypointPlugin
33
+ } from "@rig/product-entrypoint-plugin/plugin";
34
+ import { createStandardTaskCliPlugin } from "@rig/task-cli-plugin/plugin";
35
+ import { createTaskIoPlugin } from "@rig/task-io-plugin/plugin";
36
+ import { createTaskStatePlugin } from "@rig/task-state-plugin/plugin";
37
+ import {
38
+ createStandardTaskSourcesPlugin
39
+ } from "@rig/task-sources-plugin/plugin";
40
+ function standard(options = {}) {
41
+ const { drift, ...taskSources } = options;
42
+ return standardPlugins({ taskSources, drift });
43
+ }
44
+ function standardPlugins(options = {}) {
45
+ return [
46
+ createDefaultLifecyclePlugin(),
47
+ createRunReadModelPlugin(),
48
+ createRunControlPlugin(),
49
+ createDependencyGraphPlugin(),
50
+ createBlockerClassifierPlugin(),
51
+ createDoctorPlugin(),
52
+ createGuardPlugin(),
53
+ createPlanningPlugin(),
54
+ createPromptPlugin(),
55
+ createSupervisorPlugin(),
56
+ createMemoryPlugin(),
57
+ createProviderPlugin(),
58
+ createIsolationPlugin(),
59
+ createBrowserPlugin(),
60
+ createRigHostPlugin(),
61
+ createNativeToolchainPlugin(),
62
+ createReposPlugin(),
63
+ createGitHubProviderPlugin(),
64
+ createInitPlugin(),
65
+ createPrReviewPlugin(),
66
+ createTransportPlugin(),
67
+ createSchedulerPlugin(),
68
+ createWorkspacePlugin(),
69
+ createNotificationsPlugin(),
70
+ standardCliSurfacePlugin,
71
+ createCockpitPlugin(),
72
+ createRunWorkerPlugin(),
73
+ createTaskStatePlugin(),
74
+ createStandardTaskSourcesPlugin(options.taskSources),
75
+ createTaskIoPlugin(),
76
+ createStandardTaskCliPlugin(),
77
+ createStandardDocsDriftPlugin(options.drift),
78
+ createStandardProductEntrypointPlugin()
79
+ ];
80
+ }
81
+ export {
82
+ standardPlugins,
83
+ standard as default
84
+ };
@@ -0,0 +1,2 @@
1
+ export { default, standardPlugins } from "./bundle";
2
+ export type { StandardOptions, StandardPluginsOptions } from "./bundle";