@hachej/boring-automation 0.1.71 → 0.1.80
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/LICENSE +21 -0
- package/README.md +14 -1
- package/dist/front/index.d.ts +29 -2
- package/dist/front/index.js +954 -26
- package/dist/server/index.d.ts +122 -13
- package/dist/server/index.js +780 -60
- package/dist/shared/index.d.ts +90 -54
- package/dist/shared/index.js +124 -18
- package/package.json +17 -15
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 boringdata
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -2,4 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
Trusted Boring workspace plugin for scheduled prompt automations.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Current local CLI support includes:
|
|
6
|
+
|
|
7
|
+
- single-workspace file-backed automation metadata and canonical Markdown prompts;
|
|
8
|
+
- automation and prompt management UI/routes;
|
|
9
|
+
- executor-owned manual **Run now** operations through the host's existing workspace agent runtime;
|
|
10
|
+
- read-only run history linked to normal Pi sessions;
|
|
11
|
+
- partial live usage totals when the provider emits usage events;
|
|
12
|
+
- deterministic current-minute cron evaluation invoked through the local loopback due endpoint.
|
|
13
|
+
|
|
14
|
+
Executable model values use explicit `provider:model-id` syntax. Legacy unqualified values remain editable but fail safely when run until corrected.
|
|
15
|
+
|
|
16
|
+
Execution is currently composed for trusted local CLI folder mode. Scheduling has no background timer: user-owned cron/systemd may invoke `POST /api/v1/boring-automation/due` once per minute while the CLI server is running. Missed minutes are not backfilled.
|
|
17
|
+
|
|
18
|
+
Hosted persistence infrastructure is now available as an explicit deployment migration callback (`runBoringAutomationMigrations`) and an actor-bound `PostgresAutomationStore`. Full-app route/executor composition and authenticated hosted triggers remain separate follow-up work; hosted execution is not activated by this infrastructure alone.
|
package/dist/front/index.d.ts
CHANGED
|
@@ -1,7 +1,34 @@
|
|
|
1
1
|
import { BoringFrontFactoryWithId } from '@hachej/boring-workspace/plugin';
|
|
2
|
-
|
|
2
|
+
import { Automation, AutomationCreate, AutomationPatch, AutomationRun } from '../shared/index.js';
|
|
3
|
+
export { AUTOMATION_SCHEDULE_ERRORS, AutomationCreateInput, AutomationCreateSchema, AutomationPatchInput, AutomationPatchSchema, AutomationRunBegin, AutomationRunBeginInput, AutomationRunBeginSchema, AutomationRunLifecyclePatch, AutomationRunLifecyclePatchInput, AutomationRunLifecyclePatchSchema, AutomationRunStatus, AutomationRunStatusSchema, AutomationRunTrigger, AutomationRunTriggerSchema, AutomationScheduleDecision, AutomationScheduleDueDecision, AutomationScheduleDueReason, AutomationScheduleSkipDecision, AutomationScheduleSkipReason, AutomationScheduleValidationResult, BORING_AUTOMATION_ERROR_CODES, BORING_AUTOMATION_PLUGIN_ID, BORING_AUTOMATION_PLUGIN_LABEL, BORING_AUTOMATION_ROUTE_PREFIX, BoringAutomationErrorCode, EvaluateAutomationScheduleInput, EvaluateAutomationScheduleResult, IdParamsSchema, PromptUpdateSchema, evaluateAutomationSchedule, isValidFiveFieldCron, isValidIanaTimeZone, validateAutomationSchedule } from '../shared/index.js';
|
|
3
4
|
import 'zod';
|
|
4
5
|
|
|
6
|
+
declare class AutomationClientError extends Error {
|
|
7
|
+
readonly code: string;
|
|
8
|
+
readonly statusCode: number;
|
|
9
|
+
constructor(code: string, message: string, statusCode?: number);
|
|
10
|
+
}
|
|
11
|
+
interface AutomationClientOptions {
|
|
12
|
+
apiBaseUrl?: string;
|
|
13
|
+
headers?: Record<string, string>;
|
|
14
|
+
onAuthError?: (statusCode: number) => void;
|
|
15
|
+
apiTimeout?: number;
|
|
16
|
+
}
|
|
17
|
+
interface AutomationClientRequestOptions {
|
|
18
|
+
signal?: AbortSignal;
|
|
19
|
+
}
|
|
20
|
+
declare function createAutomationClient(options?: AutomationClientOptions): {
|
|
21
|
+
listAutomations(requestOptions?: AutomationClientRequestOptions): Promise<Automation[]>;
|
|
22
|
+
createAutomation(input: AutomationCreate): Promise<Automation>;
|
|
23
|
+
getAutomation(id: string, requestOptions?: AutomationClientRequestOptions): Promise<Automation>;
|
|
24
|
+
updateAutomation(id: string, patch: AutomationPatch): Promise<Automation>;
|
|
25
|
+
deleteAutomation(id: string): Promise<void>;
|
|
26
|
+
getPrompt(id: string, requestOptions?: AutomationClientRequestOptions): Promise<string>;
|
|
27
|
+
updatePrompt(id: string, prompt: string): Promise<void>;
|
|
28
|
+
runNow(id: string): Promise<AutomationRun>;
|
|
29
|
+
listRuns(id: string, requestOptions?: AutomationClientRequestOptions): Promise<AutomationRun[]>;
|
|
30
|
+
};
|
|
31
|
+
|
|
5
32
|
declare const boringAutomationPlugin: BoringFrontFactoryWithId;
|
|
6
33
|
|
|
7
|
-
export { boringAutomationPlugin, boringAutomationPlugin as default };
|
|
34
|
+
export { Automation, AutomationClientError, AutomationCreate, AutomationPatch, AutomationRun, boringAutomationPlugin, createAutomationClient, boringAutomationPlugin as default };
|