@activade/open-workflows 1.0.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.
@@ -0,0 +1,24 @@
1
+ import { type WorkflowType } from './templates';
2
+ export interface InstallResult {
3
+ type: 'workflow' | 'skill' | 'config' | 'auth';
4
+ name: string;
5
+ status: 'created' | 'skipped' | 'error';
6
+ path: string;
7
+ message: string;
8
+ }
9
+ export interface InstallOptions {
10
+ workflows: WorkflowType[];
11
+ cwd?: string;
12
+ useOAuth?: boolean;
13
+ }
14
+ export declare function installWorkflows(options: InstallOptions): InstallResult[];
15
+ export declare function installAuthWorkflow(options: {
16
+ cwd?: string;
17
+ }): InstallResult;
18
+ export declare function installSkills(options: {
19
+ cwd?: string;
20
+ }): InstallResult[];
21
+ export declare function createOpencodeConfig(cwd?: string): {
22
+ created: boolean;
23
+ path: string;
24
+ };
@@ -0,0 +1 @@
1
+ export declare const AUTH_WORKFLOW = "name: OpenCode Auth Refresh\n\non:\n schedule:\n - cron: '0 3 * * *'\n workflow_dispatch:\n\njobs:\n refresh:\n runs-on: ubuntu-latest\n steps:\n - id: cache\n uses: actions/cache@v4\n with:\n path: ~/.local/share/opencode/auth.json\n key: opencode-auth\n\n - if: steps.cache.outputs.cache-hit != 'true'\n name: Restore auth from secret\n run: |\n mkdir -p ~/.local/share/opencode\n echo '${{ secrets.OPENCODE_AUTH }}' > ~/.local/share/opencode/auth.json\n\n - name: Install OpenCode\n run: curl -fsSL https://opencode.ai/install | bash\n\n - name: Refresh OAuth token\n run: opencode models\n";
@@ -0,0 +1 @@
1
+ export declare const DOC_SYNC: (useOAuth: boolean) => string;
@@ -0,0 +1,7 @@
1
+ export { AUTH_WORKFLOW } from './auth';
2
+ export { PR_REVIEW } from './pr-review';
3
+ export { ISSUE_LABEL } from './issue-label';
4
+ export { DOC_SYNC } from './doc-sync';
5
+ export { RELEASE } from './release';
6
+ export type WorkflowType = 'review' | 'label' | 'doc-sync' | 'release';
7
+ export declare const WORKFLOW_FILE_MAP: Record<WorkflowType, string>;
@@ -0,0 +1 @@
1
+ export declare const ISSUE_LABEL: (useOAuth: boolean) => string;
@@ -0,0 +1 @@
1
+ export declare const PR_REVIEW: (useOAuth: boolean) => string;
@@ -0,0 +1 @@
1
+ export declare const RELEASE: (useOAuth: boolean) => string;
@@ -0,0 +1,3 @@
1
+ export declare const CACHE_RESTORE_STEP = "\n - name: Restore OpenCode auth\n uses: actions/cache/restore@v4\n with:\n path: ~/.local/share/opencode/auth.json\n key: opencode-auth\n";
2
+ export declare const ENV_API_KEY = "\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}";
3
+ export declare const ENV_OAUTH = "\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}";
@@ -0,0 +1,3 @@
1
+ import type { Plugin } from '@opencode-ai/plugin';
2
+ export declare const plugin: Plugin;
3
+ export default plugin;