target-supabase-sdk 0.3.1 → 0.3.3
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 +2 -2
- package/dist/browser.js +2 -3
- package/dist/browser.js.map +1 -1
- package/dist/chunks/{config-aBbuDpyt.js → config-BfWyCqKZ.js} +22 -42
- package/dist/chunks/config-BfWyCqKZ.js.map +1 -0
- package/dist/chunks/{enable-BTFwzWHc.js → enable-BPzz7a9r.js} +36 -3
- package/dist/chunks/enable-BPzz7a9r.js.map +1 -0
- package/dist/chunks/{task-queue-D8CraGI8.js → task-queue-C1eVq9St.js} +18 -20
- package/dist/chunks/{task-queue-D8CraGI8.js.map → task-queue-C1eVq9St.js.map} +1 -1
- package/dist/config/config.api.d.ts.map +1 -1
- package/dist/core.api.d.ts +15 -5
- package/dist/core.api.d.ts.map +1 -1
- package/dist/core.interface.d.ts +5 -0
- package/dist/core.interface.d.ts.map +1 -1
- package/dist/core.schema.d.ts +7 -0
- package/dist/core.schema.d.ts.map +1 -1
- package/dist/node.d.ts +0 -3
- package/dist/node.d.ts.map +1 -1
- package/dist/node.js +12 -186
- package/dist/node.js.map +1 -1
- package/dist/parcel/parcel.api.d.ts.map +1 -1
- package/dist/preload.js +2 -3
- package/dist/preload.js.map +1 -1
- package/dist/service/service.api.d.ts.map +1 -1
- package/dist/shared/log/index.d.ts +1 -1
- package/dist/shared/log/index.d.ts.map +1 -1
- package/dist/shared/log/spool/batch-timestamp.d.ts +3 -0
- package/dist/shared/log/spool/batch-timestamp.d.ts.map +1 -0
- package/dist/shared/log/spool/file.d.ts +1 -1
- package/dist/shared/log/spool/file.d.ts.map +1 -1
- package/dist/task/task.api.d.ts +1 -1
- package/dist/task/task.api.d.ts.map +1 -1
- package/dist/task/task.interface.d.ts +2 -1
- package/dist/task/task.interface.d.ts.map +1 -1
- package/dist/trigger/trigger-node.d.ts +1 -1
- package/dist/trigger/trigger.interface.d.ts +0 -42
- package/dist/trigger/trigger.interface.d.ts.map +1 -1
- package/package.json +1 -2
- package/src/core.api.ts +32 -12
- package/src/core.interface.ts +5 -0
- package/src/core.schema.ts +2 -0
- package/src/node.ts +0 -3
- package/src/shared/log/README.md +4 -1
- package/src/shared/log/index.ts +1 -1
- package/src/shared/log/spool/batch-timestamp.ts +14 -0
- package/src/shared/log/spool/file.ts +5 -14
- package/src/task/task-node.ts +1 -1
- package/src/task/task-post.api.ts +1 -1
- package/src/task/task-queue.ts +2 -2
- package/src/task/task.api.ts +15 -13
- package/src/task/task.interface.ts +2 -1
- package/src/trigger/trigger-node.ts +1 -1
- package/src/trigger/trigger.interface.ts +0 -52
- package/dist/chunks/config-aBbuDpyt.js.map +0 -1
- package/dist/chunks/enable-BTFwzWHc.js.map +0 -1
- package/dist/trigger/trigger.api.d.ts +0 -145
- package/dist/trigger/trigger.api.d.ts.map +0 -1
- package/dist/trigger/trigger.utils.d.ts +0 -6
- package/dist/trigger/trigger.utils.d.ts.map +0 -1
- package/src/trigger/trigger.api.ts +0 -171
- package/src/trigger/trigger.utils.ts +0 -56
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.api.d.ts","sourceRoot":"","sources":["../../src/config/config.api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAkB,KAAK,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAIjE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;EAYvB,CAAC;AAEN,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAkB/D,+EAA+E;AAC/E,eAAO,MAAM,SAAS;;;;UAaW,MAAM;;;;;;
|
|
1
|
+
{"version":3,"file":"config.api.d.ts","sourceRoot":"","sources":["../../src/config/config.api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAkB,KAAK,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAIjE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;EAYvB,CAAC;AAEN,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAkB/D,+EAA+E;AAC/E,eAAO,MAAM,SAAS;;;;UAaW,MAAM;;;;;;YAvB1B,CAAC;;;;;;;;;YAAD,CAAC;;;UAuBmB,MAAM;;;;;;YAvB1B,CAAC;;;;;;;;;YAAD,CAAC;;EA0CZ,CAAC"}
|
package/dist/core.api.d.ts
CHANGED
|
@@ -118,6 +118,8 @@ export interface UpdateTargetRowSnapshot<D> {
|
|
|
118
118
|
tagList: string[];
|
|
119
119
|
details: D;
|
|
120
120
|
extra?: string;
|
|
121
|
+
/** Present when the row has a top-level status; domain APIs narrow the type. */
|
|
122
|
+
status?: unknown;
|
|
121
123
|
}
|
|
122
124
|
/**
|
|
123
125
|
* Narrow patch returned by `updateTarget` updateFn.
|
|
@@ -127,12 +129,14 @@ export type UpdateTargetPatch<D> = {
|
|
|
127
129
|
tagList?: string[];
|
|
128
130
|
details?: D;
|
|
129
131
|
extra?: string;
|
|
132
|
+
/** Set or clear top-level status (`null` writes SQL NULL). */
|
|
133
|
+
status?: unknown;
|
|
130
134
|
};
|
|
131
135
|
/**
|
|
132
|
-
* Read-modify-write mutable Target columns (`tagList` / `details` / `extra`
|
|
133
|
-
* DB-level optimistic locking. Does not write `name` / `value` / `category`.
|
|
136
|
+
* Read-modify-write mutable Target columns (`tagList` / `details` / `extra` / optional `status`)
|
|
137
|
+
* with optional DB-level optimistic locking. Does not write `name` / `value` / `category`.
|
|
134
138
|
*
|
|
135
|
-
* Prefer this when the update may touch `tagList` (and optionally `details`/`extra`) in one UPDATE.
|
|
139
|
+
* Prefer this when the update may touch `tagList` (and optionally `details`/`extra`/`status`) in one UPDATE.
|
|
136
140
|
* For details-only flows, {@link updateTargetDetails} remains the thinner API.
|
|
137
141
|
*/
|
|
138
142
|
export interface UpdateTargetParams<D> {
|
|
@@ -188,12 +192,18 @@ export interface UpdateTargetDetailsParams<D> {
|
|
|
188
192
|
* Optional `target.extra` derived from existing details (written together with details).
|
|
189
193
|
*/
|
|
190
194
|
updateExtraFn?: (existing: D) => string;
|
|
195
|
+
/**
|
|
196
|
+
* Optional top-level `status` patch in the same UPDATE as `details`.
|
|
197
|
+
* Return `undefined` to leave the column unchanged; `null` writes SQL NULL.
|
|
198
|
+
*/
|
|
199
|
+
updateStatusFn?: (snapshot: UpdateTargetRowSnapshot<D>) => unknown;
|
|
191
200
|
/**
|
|
192
201
|
* Optimistic lock conditions applied on UPDATE (not on the prior SELECT).
|
|
193
202
|
*
|
|
194
203
|
* Replaces the removed `beforeUpdateValidator`: validators ran in app code between read and
|
|
195
204
|
* write and could not prevent concurrent overwrites. These filters become part of the UPDATE
|
|
196
|
-
* WHERE clause (via `applyQueryFilters`), e.g. `{ field: "
|
|
205
|
+
* WHERE clause (via `applyQueryFilters`), e.g. `{ field: "status", operator: "eq", value: "TODO" }`
|
|
206
|
+
* (or legacy `{ field: "details->>status", … }` until domain migration completes).
|
|
197
207
|
*
|
|
198
208
|
* If no row matches after UPDATE:
|
|
199
209
|
* - empty locks → not-found (`UPDATE_TARGET_NOT_FOUND_MESSAGE`)
|
|
@@ -202,7 +212,7 @@ export interface UpdateTargetDetailsParams<D> {
|
|
|
202
212
|
*/
|
|
203
213
|
optimisticLockFilterList?: QueryFilter[];
|
|
204
214
|
}
|
|
205
|
-
export declare const updateTargetDetails: <T, D>({ id, updateFn, updateExtraFn, optimisticLockFilterList, }: UpdateTargetDetailsParams<D>) => Promise<T>;
|
|
215
|
+
export declare const updateTargetDetails: <T, D>({ id, updateFn, updateExtraFn, updateStatusFn, optimisticLockFilterList, }: UpdateTargetDetailsParams<D>) => Promise<T>;
|
|
206
216
|
export declare const OPTIMISTIC_LOCK_ERROR_CODE: "OPTIMISTIC_LOCK";
|
|
207
217
|
export declare function isOptimisticLockError(error: unknown): boolean;
|
|
208
218
|
export declare function isOptimisticLockResponse(error: {
|
package/dist/core.api.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.api.d.ts","sourceRoot":"","sources":["../src/core.api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,KAAK,EAAY,OAAO,EAAE,MAAM,KAAK,CAAC;AAC7C,OAAO,EAAoB,KAAK,WAAW,EAAE,KAAK,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACrG,OAAO,EAAE,KAAK,iBAAiB,EAA2B,MAAM,eAAe,CAAC;AAChF,OAAO,EAAE,KAAK,aAAa,EAAuB,MAAM,cAAc,CAAC;AAGvE,YAAY,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,YAAY,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EACH,cAAc,EACd,uBAAuB,EACvB,iBAAiB,EACjB,mBAAmB,EACnB,iBAAiB,GACpB,MAAM,eAAe,CAAC;AAEvB,eAAO,MAAM,yBAAyB,MAAM,CAAC;AAE7C,uDAAuD;AACvD,eAAO,MAAM,yBAAyB,MAA4B,CAAC;AAKnE,MAAM,MAAM,mBAAmB,GAAG,sBAAsB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;AA2F7F,MAAM,WAAW,YAAY;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,eAAe;IAC5B,UAAU,CAAC,EAAE,WAAW,EAAE,CAAC;IAC3B,OAAO,CAAC,EAAE,YAAY,CAAC;CAC1B;AAED,eAAO,MAAM,SAAS,uBAA8B;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,WAAW,EAAE,CAAA;CAAE,iEAW7F,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C;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CACpB,4DA4CA,CAAC;AAEF,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,aAAa,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,CAAC,IAC1F,CAAC,MAAM,CAAC,YAAY,EAAE,CAAC,KAAK,CAAC,eAChB,CAAC,KAAG,CAAC,CAK7B;AAeD,2FAA2F;AAC3F,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,OAAO,EAAE,MAAM,EAAE,CAAC,EAAE,UAAU,SAAW,IAE1E,CAAC,MAAM,CAAC,YAAY,cAAQ,KAAK,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,gCACzB,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAQ/C"}
|
package/dist/core.interface.d.ts
CHANGED
|
@@ -8,6 +8,11 @@ export interface Target {
|
|
|
8
8
|
extra?: string;
|
|
9
9
|
details?: unknown;
|
|
10
10
|
created_at: string;
|
|
11
|
+
/**
|
|
12
|
+
* Optional row lifecycle — semantics and TypeScript narrowing are defined per domain
|
|
13
|
+
* (e.g. task / node ). Omitted or null for targets that do not use status.
|
|
14
|
+
*/
|
|
15
|
+
status?: unknown;
|
|
11
16
|
}
|
|
12
17
|
/** Target row before persistence — no `id` or `created_at`. */
|
|
13
18
|
export type TargetDraft<T extends Target> = Omit<T, "id" | "created_at">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.interface.d.ts","sourceRoot":"","sources":["../src/core.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,WAAW,MAAM;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,KAAK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,MAAM,GAAG,gBAAgB,CAAC,CAAC,CAAC;mBAU9C,MAAM,GAAG;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,cAAc,CAAA;KAAE,GAAG;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,eAC5E,UAAU,SAChB,MAAM,GACd,gBAAgB;CA8BtB,CAAC"}
|
package/dist/core.schema.d.ts
CHANGED
|
@@ -26,11 +26,14 @@ export declare const postTargetPayloadSchema: z.ZodObject<{
|
|
|
26
26
|
tagList: z.ZodArray<z.ZodString, "many">;
|
|
27
27
|
extra: z.ZodOptional<z.ZodString>;
|
|
28
28
|
details: z.ZodOptional<z.ZodUnknown>;
|
|
29
|
+
/** Optional; domain-specific. Omit on create when unused (DB NULL). */
|
|
30
|
+
status: z.ZodOptional<z.ZodUnknown>;
|
|
29
31
|
}, "strip", z.ZodTypeAny, {
|
|
30
32
|
value: string;
|
|
31
33
|
name: string;
|
|
32
34
|
category: string;
|
|
33
35
|
tagList: string[];
|
|
36
|
+
status?: unknown;
|
|
34
37
|
extra?: string | undefined;
|
|
35
38
|
details?: unknown;
|
|
36
39
|
}, {
|
|
@@ -38,6 +41,7 @@ export declare const postTargetPayloadSchema: z.ZodObject<{
|
|
|
38
41
|
name: string;
|
|
39
42
|
category: string;
|
|
40
43
|
tagList: string[];
|
|
44
|
+
status?: unknown;
|
|
41
45
|
extra?: string | undefined;
|
|
42
46
|
details?: unknown;
|
|
43
47
|
}>;
|
|
@@ -47,6 +51,7 @@ export declare const targetDraftSchema: z.ZodObject<{
|
|
|
47
51
|
tagList: z.ZodArray<z.ZodString, "many">;
|
|
48
52
|
extra: z.ZodOptional<z.ZodString>;
|
|
49
53
|
details: z.ZodOptional<z.ZodUnknown>;
|
|
54
|
+
status: z.ZodOptional<z.ZodUnknown>;
|
|
50
55
|
} & {
|
|
51
56
|
name: z.ZodString;
|
|
52
57
|
value: z.ZodString;
|
|
@@ -56,6 +61,7 @@ export declare const targetDraftSchema: z.ZodObject<{
|
|
|
56
61
|
name: string;
|
|
57
62
|
category: string;
|
|
58
63
|
tagList: string[];
|
|
64
|
+
status?: unknown;
|
|
59
65
|
extra?: string | undefined;
|
|
60
66
|
details?: unknown;
|
|
61
67
|
}, {
|
|
@@ -63,6 +69,7 @@ export declare const targetDraftSchema: z.ZodObject<{
|
|
|
63
69
|
name: string;
|
|
64
70
|
category: string;
|
|
65
71
|
tagList: string[];
|
|
72
|
+
status?: unknown;
|
|
66
73
|
extra?: string | undefined;
|
|
67
74
|
details?: unknown;
|
|
68
75
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.schema.d.ts","sourceRoot":"","sources":["../src/core.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,2FAA2F;AAC3F,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;EAYzB,CAAC;AAEN,mEAAmE;AACnE,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"core.schema.d.ts","sourceRoot":"","sources":["../src/core.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,2FAA2F;AAC3F,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;EAYzB,CAAC;AAEN,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;IAOhC,uEAAuE;;;;;;;;;;;;;;;;;;EAEzE,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,2FAA2F;AAC3F,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;EAI5B,CAAC;AAEH,wBAAgB,cAAc,CAAC,KAAK,EAAE,QAAQ,GAAG,MAAM,CAEtD;AAED,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,OAAO,EACjD,MAAM,EAAE,CAAC,EACT,KAAK,EAAE,OAAO,GACf;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAM/D"}
|
package/dist/node.d.ts
CHANGED
|
@@ -54,11 +54,8 @@ export { POST_TASK_DEFAULT_MAX_ATTEMPTS, postTaskWithRetry } from "./task/task-p
|
|
|
54
54
|
export { postTaskWithValidation } from "./task/task-post-validated.api";
|
|
55
55
|
export type { TaskRepoValidationFailureReason, ValidateTaskRepoAndParamsInput, ValidateTaskRepoAndParamsResult, } from "./task/task-repo-validation";
|
|
56
56
|
export { TaskRepoValidation, validateTaskRepoAndParams, } from "./task/task-repo-validation";
|
|
57
|
-
export * from "./trigger/trigger.api";
|
|
58
57
|
export { LOG_TOPIC_TRIGGER, TRIGGER_LOOP_INTERVAL_MS, TRIGGER_RUNNER_DEFAULT_RETRY_COUNT, TRIGGER_RUNNER_DEFAULT_RETRY_DELAY_MS, } from "./trigger/trigger.constant";
|
|
59
58
|
export type { RegisterTriggerRunnerOptions, TriggerNodeOptions, TriggerRunnerContext, TriggerRunnerFn, } from "./trigger/trigger.interface";
|
|
60
|
-
export * from "./trigger/trigger.interface";
|
|
61
|
-
export { buildDailyFireKey, buildFireKey, isDailyScheduleDue, isTriggerDue } from "./trigger/trigger.utils";
|
|
62
59
|
export { TriggerManager } from "./trigger/trigger-manager";
|
|
63
60
|
export { TriggerNode } from "./trigger/trigger-node";
|
|
64
61
|
//# sourceMappingURL=node.d.ts.map
|
package/dist/node.d.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AAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,YAAY,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAChE,YAAY,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACpG,OAAO,EAAE,8BAA8B,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/F,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,YAAY,EACR,+BAA+B,EAC/B,8BAA8B,EAC9B,+BAA+B,GAClC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACH,kBAAkB,EAClB,yBAAyB,GAC5B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACH,iBAAiB,EACjB,wBAAwB,EACxB,kCAAkC,EAClC,qCAAqC,GACxC,MAAM,4BAA4B,CAAC;AACpC,YAAY,EACR,4BAA4B,EAC5B,kBAAkB,EAClB,oBAAoB,EACpB,eAAe,GAClB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC"}
|
package/dist/node.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { M as MAX_POLL_TARGET_LIST_SIZE, W as validateWithSchema, f as createLogger, z as pollTargetList, k as generateResponse, g as createTarget, w as logManager,
|
|
3
|
-
export { B as BaseValidator, C as CREATE_TARGET_ALREADY_EXISTS_MESSAGE, a as CategoryList, L as LOG_BATCH_LIST_VALUE, b as LOG_MIN_LEVEL_ENV_KEY, d as MAX_TARGET_LIST_PAGE_SIZE, O as OPTIMISTIC_LOCK_ERROR_CODE, e as OPTIMISTIC_LOCK_FAILED_MESSAGE, P as PostListValidator, S as StatusCode, U as UPDATE_TARGET_NOT_FOUND_MESSAGE, h as deleteTarget, X as envBool,
|
|
2
|
+
import { M as MAX_POLL_TARGET_LIST_SIZE, W as validateWithSchema, f as createLogger, z as pollTargetList, k as generateResponse, g as createTarget, w as logManager, a2 as createScope, c as LogLevel, a3 as patchScope, K as supabase, a4 as readEnv, a5 as requireEnv, J as scanTargetList, a6 as withModule, Z as resolveLogSpoolConfig, a1 as logSpoolConfigFromEnv, $ as LOG_SPOOL_SERVICE_ID_ENV, l as getPossibleTarget, E as postTarget, q as isCreateTargetAlreadyExistsError, m as getTarget, Q as updateTarget, t as isOptimisticLockResponse } from './chunks/config-BfWyCqKZ.js';
|
|
3
|
+
export { B as BaseValidator, C as CREATE_TARGET_ALREADY_EXISTS_MESSAGE, a as CategoryList, L as LOG_BATCH_LIST_VALUE, b as LOG_MIN_LEVEL_ENV_KEY, d as MAX_TARGET_LIST_PAGE_SIZE, O as OPTIMISTIC_LOCK_ERROR_CODE, e as OPTIMISTIC_LOCK_FAILED_MESSAGE, P as PostListValidator, S as StatusCode, U as UPDATE_TARGET_NOT_FOUND_MESSAGE, h as deleteTarget, X as envBool, a7 as envInt, a8 as envMs, a9 as envNumber, aa as envPort, i as formatLogSpoolBatchTimestamp, j as formatZodError, n as getTargetList, o as getTargetTotalCount, p as handleSupabaseError, r as isDevEnvironment, s as isOptimisticLockError, u as logDev, v as logDevGroup, x as logMinLevelFromEnv, y as patchTarget, A as postListCreate, D as postLogListCreate, F as postTargetPayloadSchema, G as queryFilterSchema, H as resolveLogMinLevel, I as safeParseWithSchema, N as targetDraftSchema, R as updateTargetCategory, T as updateTargetDetails, V as validateWith } from './chunks/config-BfWyCqKZ.js';
|
|
4
|
+
import { bT as getErrorMessage, bU as LOG_TOPIC_NODE, bv as requireNodeServiceIdFromEnv, bd as postRegisterNode, aT as patchChangeNodeStatus, n as NodeStatus, b2 as patchStopNode, a$ as patchNodeHeartBeat, bN as sha256Hex, E as EMPTY_REGISTRY_SLOT_RUNTIME_STATE, bD as runRegistrySlotGuardCheck, br as registrySlotRuntimePatchFromGuardResult, c as CategoryNode, a8 as evaluateBusyNodeLiveness, aL as nodesForTaskLiveness, b1 as patchServiceRuntime, aE as isLogEntry, N as NodeKind, X as claimServiceRegistrySlot, q as ServiceRegistryError, ab as fetchWithRetry, aH as isRetryableHttpStatus, aa as fetchBinaryWithRetry, aG as isOpaqueChunkUrl, e as CategoryRepo, aA as isHttpUrl, az as isFeedValue, bV as isFeedIngestSource, bW as resolveFeedOriginalStorageProvider, a9 as feedLinkDedupFilters, B as buildFeedLinkDraft, b as CategoryLink, bX as buildFeedTagList, i as IDEA_IMAGE_TEMP_DIR, au as guessMediaMime, M as MEDIA_CONTENT_HASH_ALGORITHM, aF as isMediaValue, aK as mediaLinkDedupFilters, Q as buildMediaLinkDraft, R as ResultCode, bY as LOG_TOPIC_TASK, s as TASK_REPO_USAGE, ao as getScanRemoteRepoValues, aX as patchClaimTask, bZ as CRITICAL_UNKNOWN_TASK_TRACE_ID, aV as patchChangeTaskStatus, u as TaskStatusAction, b_ as toError, bl as postTaskSchema, b$ as createTaskRow } from './chunks/task-queue-C1eVq9St.js';
|
|
5
|
+
export { A as ApiMethod, C as CategoryConfig, a as CategoryExtraction, d as CategoryParcel, f as CategoryService, g as CategoryTask, D as DEFAULT_SYSTEM_REGISTRY_SEED_SLOTS, c0 as FEED_INGEST_SOURCES, F as FEED_VALUES, I as IDEA_IMAGE_LINK_NAME, h as IDEA_IMAGE_TAG_RAW, j as IDEA_LINK_VALUE, L as LINK_MANIFEST_VERSION, k as LIST_MANIFEST_VERSION, l as MEDIA_CONTENT_HASH_PREFIX_LENGTH, m as MEDIA_VALUES, P as POST_TASK_DEFAULT_MAX_ATTEMPTS, o as ParcelManager, p as PostLinkValidator, S as ServiceLifecycleStatus, r as ServiceSlotStatus, T as TARGET_SYSTEM_REGISTRY_KEY, t as TaskStatus, v as apiDetailsSchema, w as appendSystemRegistryEmptySlots, x as assertRegistrySlotAvailable, y as assertRegistrySlotOwner, z as buildEmptyServiceSlots, G as buildFeedLinkName, H as buildIdeaImageLinkDraft, J as buildIdeaLinkDraft, K as buildLinkTargetDraft, O as buildListTargetDraft, U as buildMediaNameFromLocator, V as buildReviewLinkDraft, W as buildSystemRegistryConfigDetails, Y as classifyNetworkError, Z as countTasksByType, _ as createActiveServiceLifecycle, $ as createClaimedRegistrySlotRuntimeState, a0 as createStorageProviderRegistry, a1 as createUploadTracker, a2 as decodeLogBatch, a3 as decodeLogBatchList, a4 as defaultL3ServiceDetails, a5 as deleteParcel, a6 as deleteParcelSchema, a7 as escapeIlikePattern, ac as fieldDefinitionSchema, ad as flattenLogBatch, ae as flattenLogBatches, af as formatNetworkError, ag as getApi, ah as getApiSchema, ai as getConfig, aj as getConfigSchema, ak as getExtraction, al as getExtractionSchema, am as getParcel, an as getParcelSchema, ap as getScanRemoteRepoValuesSchema, aq as getService, ar as getServiceSchema, as as getTargetSystemRegistry, at as getValueAtPath, av as ideaCreateSchema, aw as ideaLinkValueFilters, ax as ideaUpdateSchema, ay as installChunkFetchRegistry, aB as isIdeaImageLinkName, aC as isLocalFilesystemPath, aD as isLogBatchList, aI as linkDedupFilters, aJ as linkTargetDraftBuildInputSchema, aM as normalizeStringList, aN as parcelDetailsSchema, aO as parseIdeaOriginal, aP as parseLogBatchMeta, aQ as parseProviderPrefixedUrl, aR as parseServiceSlot, aS as parseServiceSlots, aU as patchChangeNodeStatusSchema, aW as patchChangeTaskStatusSchema, aY as patchClaimTaskSchema, aZ as patchExtractionObjects, a_ as patchExtractionObjectsSchema, b0 as patchNodeHeartBeatSchema, b3 as patchStopNodeSchema, b4 as patchTaskProgress, b5 as patchTaskProgressSchema, b6 as postApi, b7 as postApiSchema, b8 as postExtraction, b9 as postExtractionSchema, ba as postLinkCreate, bb as postParcel, bc as postParcelSchema, be as postRegisterNodeSchema, bf as postService, bg as postServiceInstance, bh as postServiceSchema, bi as postSystemRegistryConfig, bj as postSystemRegistryConfigSchema, bk as postTask, bm as postTaskWithRetry, bn as publishParcel, bo as registerProviderChunkResolver, bp as registerService, bq as registerServiceAtStartup, bs as releaseSystemRegistrySlots, bt as releaseSystemRegistrySlotsByServiceId, bu as requestHasBody, bw as resetSystemRegistryConfig, bx as resetSystemRegistryConfigSchema, by as resolveActiveRegistryServiceId, bz as resolveFetchUrl, bA as restoreParcel, bB as restoreParcelById, bC as reviewLinksForNameFilters, bE as sanitizeFileName, bF as sanitizeParcelFileName, bG as scanExtractionList, bH as scanExtractionListSchema, bI as schemaDefinitionSchema, bJ as serviceDetailsSchema, bK as serviceLifecycleSchema, bL as serviceNodeSnapshotSchema, bM as serviceRuntimeSchema, bO as summarizeTaskQueue, bP as systemRegistrySeedSlotSchema, bQ as toPostgrestTextArrayLiteral, bR as unregisterService, bS as unregisterServiceAtShutdown } from './chunks/task-queue-C1eVq9St.js';
|
|
6
|
+
import { l as loadEnvFiles, b as resolveLogSpoolSpawnEnvForLabel, c as resolveLogSpoolRoot, d as resolveAllLogSpoolProcessRoles, e as logSpoolProcessDir, s as spoolLogger, f as parseLogSpoolBatchFilename, g as buildLogListDraft, h as postLogBatch, a as logSpoolEnabledFromEnv, i as ensureLogSpoolFromEnv, j as shutdownLogSpoolFromEnv, k as getLogSpoolStats } from './chunks/enable-BPzz7a9r.js';
|
|
7
|
+
export { C as CLI_PROD_FLAG, S as SERVICE_ENV_PROFILE_ENV_KEY, n as SERVICE_ENV_PROFILE_PROD, o as buildLogSpoolSpawnEnv, q as envProfileFromProcess, t as resolveDefaultEnvFiles, r as resolveProjectRootByPackageName, u as resolveProjectRootFromModule, v as validateLogSpoolPreloadEnv } from './chunks/enable-BPzz7a9r.js';
|
|
4
8
|
import { randomBytes, createHash } from 'node:crypto';
|
|
5
|
-
import { bT as getErrorMessage, bU as LOG_TOPIC_NODE, bv as requireNodeServiceIdFromEnv, bd as postRegisterNode, aT as patchChangeNodeStatus, n as NodeStatus, b2 as patchStopNode, a$ as patchNodeHeartBeat, bN as sha256Hex, E as EMPTY_REGISTRY_SLOT_RUNTIME_STATE, bD as runRegistrySlotGuardCheck, br as registrySlotRuntimePatchFromGuardResult, c as CategoryNode, a8 as evaluateBusyNodeLiveness, aL as nodesForTaskLiveness, b1 as patchServiceRuntime, aE as isLogEntry, N as NodeKind, X as claimServiceRegistrySlot, q as ServiceRegistryError, ab as fetchWithRetry, aH as isRetryableHttpStatus, aa as fetchBinaryWithRetry, aG as isOpaqueChunkUrl, e as CategoryRepo, aA as isHttpUrl, az as isFeedValue, bV as isFeedIngestSource, bW as resolveFeedOriginalStorageProvider, a9 as feedLinkDedupFilters, B as buildFeedLinkDraft, b as CategoryLink, bX as buildFeedTagList, i as IDEA_IMAGE_TEMP_DIR, au as guessMediaMime, M as MEDIA_CONTENT_HASH_ALGORITHM, aF as isMediaValue, aK as mediaLinkDedupFilters, Q as buildMediaLinkDraft, R as ResultCode, bY as LOG_TOPIC_TASK, s as TASK_REPO_USAGE, ao as getScanRemoteRepoValues, aX as patchClaimTask, bZ as CRITICAL_UNKNOWN_TASK_TRACE_ID, aV as patchChangeTaskStatus, u as TaskStatusAction, b_ as toError, bl as postTaskSchema, b$ as createTaskRow, t as TaskStatus } from './chunks/task-queue-D8CraGI8.js';
|
|
6
|
-
export { A as ApiMethod, C as CategoryConfig, a as CategoryExtraction, d as CategoryParcel, f as CategoryService, g as CategoryTask, D as DEFAULT_SYSTEM_REGISTRY_SEED_SLOTS, c0 as FEED_INGEST_SOURCES, F as FEED_VALUES, I as IDEA_IMAGE_LINK_NAME, h as IDEA_IMAGE_TAG_RAW, j as IDEA_LINK_VALUE, L as LINK_MANIFEST_VERSION, k as LIST_MANIFEST_VERSION, l as MEDIA_CONTENT_HASH_PREFIX_LENGTH, m as MEDIA_VALUES, P as POST_TASK_DEFAULT_MAX_ATTEMPTS, o as ParcelManager, p as PostLinkValidator, S as ServiceLifecycleStatus, r as ServiceSlotStatus, T as TARGET_SYSTEM_REGISTRY_KEY, v as apiDetailsSchema, w as appendSystemRegistryEmptySlots, x as assertRegistrySlotAvailable, y as assertRegistrySlotOwner, z as buildEmptyServiceSlots, G as buildFeedLinkName, H as buildIdeaImageLinkDraft, J as buildIdeaLinkDraft, K as buildLinkTargetDraft, O as buildListTargetDraft, U as buildMediaNameFromLocator, V as buildReviewLinkDraft, W as buildSystemRegistryConfigDetails, Y as classifyNetworkError, Z as countTasksByType, _ as createActiveServiceLifecycle, $ as createClaimedRegistrySlotRuntimeState, a0 as createStorageProviderRegistry, a1 as createUploadTracker, a2 as decodeLogBatch, a3 as decodeLogBatchList, a4 as defaultL3ServiceDetails, a5 as deleteParcel, a6 as deleteParcelSchema, a7 as escapeIlikePattern, ac as fieldDefinitionSchema, ad as flattenLogBatch, ae as flattenLogBatches, af as formatNetworkError, ag as getApi, ah as getApiSchema, ai as getConfig, aj as getConfigSchema, ak as getExtraction, al as getExtractionSchema, am as getParcel, an as getParcelSchema, ap as getScanRemoteRepoValuesSchema, aq as getService, ar as getServiceSchema, as as getTargetSystemRegistry, at as getValueAtPath, av as ideaCreateSchema, aw as ideaLinkValueFilters, ax as ideaUpdateSchema, ay as installChunkFetchRegistry, aB as isIdeaImageLinkName, aC as isLocalFilesystemPath, aD as isLogBatchList, aI as linkDedupFilters, aJ as linkTargetDraftBuildInputSchema, aM as normalizeStringList, aN as parcelDetailsSchema, aO as parseIdeaOriginal, aP as parseLogBatchMeta, aQ as parseProviderPrefixedUrl, aR as parseServiceSlot, aS as parseServiceSlots, aU as patchChangeNodeStatusSchema, aW as patchChangeTaskStatusSchema, aY as patchClaimTaskSchema, aZ as patchExtractionObjects, a_ as patchExtractionObjectsSchema, b0 as patchNodeHeartBeatSchema, b3 as patchStopNodeSchema, b4 as patchTaskProgress, b5 as patchTaskProgressSchema, b6 as postApi, b7 as postApiSchema, b8 as postExtraction, b9 as postExtractionSchema, ba as postLinkCreate, bb as postParcel, bc as postParcelSchema, be as postRegisterNodeSchema, bf as postService, bg as postServiceInstance, bh as postServiceSchema, bi as postSystemRegistryConfig, bj as postSystemRegistryConfigSchema, bk as postTask, bm as postTaskWithRetry, bn as publishParcel, bo as registerProviderChunkResolver, bp as registerService, bq as registerServiceAtStartup, bs as releaseSystemRegistrySlots, bt as releaseSystemRegistrySlotsByServiceId, bu as requestHasBody, bw as resetSystemRegistryConfig, bx as resetSystemRegistryConfigSchema, by as resolveActiveRegistryServiceId, bz as resolveFetchUrl, bA as restoreParcel, bB as restoreParcelById, bC as reviewLinksForNameFilters, bE as sanitizeFileName, bF as sanitizeParcelFileName, bG as scanExtractionList, bH as scanExtractionListSchema, bI as schemaDefinitionSchema, bJ as serviceDetailsSchema, bK as serviceLifecycleSchema, bL as serviceNodeSnapshotSchema, bM as serviceRuntimeSchema, bO as summarizeTaskQueue, bP as systemRegistrySeedSlotSchema, bQ as toPostgrestTextArrayLiteral, bR as unregisterService, bS as unregisterServiceAtShutdown } from './chunks/task-queue-D8CraGI8.js';
|
|
7
|
-
import { l as loadEnvFiles, b as resolveLogSpoolSpawnEnvForLabel, c as resolveLogSpoolRoot, d as resolveAllLogSpoolProcessRoles, e as logSpoolProcessDir, s as spoolLogger, f as buildLogListDraft, g as postLogBatch, a as logSpoolEnabledFromEnv, h as ensureLogSpoolFromEnv, i as shutdownLogSpoolFromEnv, j as getLogSpoolStats } from './chunks/enable-BTFwzWHc.js';
|
|
8
|
-
export { C as CLI_PROD_FLAG, S as SERVICE_ENV_PROFILE_ENV_KEY, k as SERVICE_ENV_PROFILE_PROD, n as buildLogSpoolSpawnEnv, o as envProfileFromProcess, q as resolveDefaultEnvFiles, r as resolveProjectRootByPackageName, t as resolveProjectRootFromModule, v as validateLogSpoolPreloadEnv } from './chunks/enable-BTFwzWHc.js';
|
|
9
9
|
import { readFile, unlink, mkdir, writeFile, rename, access, stat, readdir, constants } from 'node:fs/promises';
|
|
10
10
|
import { dirname, resolve, join, isAbsolute } from 'node:path';
|
|
11
11
|
import { spawn } from 'node:child_process';
|
|
@@ -26,17 +26,17 @@ var CommandType;
|
|
|
26
26
|
})(CommandType || (CommandType = {}));
|
|
27
27
|
|
|
28
28
|
const nodeIdSchema = z.string().trim().min(1);
|
|
29
|
-
const traceIdSchema
|
|
29
|
+
const traceIdSchema = z.string().trim().min(1).optional();
|
|
30
30
|
// ─── Zod schemas ─────────────────────────────────────────────────────────────
|
|
31
31
|
const postCommandSchema = z.object({
|
|
32
32
|
nodeId: nodeIdSchema,
|
|
33
33
|
command: z.nativeEnum(CommandType),
|
|
34
|
-
traceId: traceIdSchema
|
|
34
|
+
traceId: traceIdSchema,
|
|
35
35
|
});
|
|
36
36
|
const getPollCommandListSchema = z.object({
|
|
37
37
|
nodeId: nodeIdSchema,
|
|
38
38
|
size: z.number().int().min(1).max(MAX_POLL_TARGET_LIST_SIZE).optional(),
|
|
39
|
-
traceId: traceIdSchema
|
|
39
|
+
traceId: traceIdSchema,
|
|
40
40
|
});
|
|
41
41
|
// ─── Helpers ─────────────────────────────────────────────────────────────────
|
|
42
42
|
function commandNodeFilter(nodeId) {
|
|
@@ -2076,7 +2076,7 @@ function registerCollectLogRunner(options) {
|
|
|
2076
2076
|
* Main loop: commands → heartbeat → {@link TriggerManager.tick}.
|
|
2077
2077
|
*
|
|
2078
2078
|
* Register runners via {@link TriggerManager.registerRunner} before {@link start}.
|
|
2079
|
-
*
|
|
2079
|
+
* In-process interval runners only (no `category=trigger` Target rows).
|
|
2080
2080
|
*
|
|
2081
2081
|
* Deploy **one** TriggerNode per logical scheduler — multiple processes duplicate runner work.
|
|
2082
2082
|
*/
|
|
@@ -4703,7 +4703,7 @@ class TaskNode extends BaseNodeRuntime {
|
|
|
4703
4703
|
taskId: task.id,
|
|
4704
4704
|
taskName: task.name,
|
|
4705
4705
|
taskTypeKey: task.value,
|
|
4706
|
-
taskStatus: task.
|
|
4706
|
+
taskStatus: task.status,
|
|
4707
4707
|
},
|
|
4708
4708
|
});
|
|
4709
4709
|
const prepareLogger = createLogger({ scope: withModule(taskScope, "prepareTask") });
|
|
@@ -4906,179 +4906,5 @@ const postTaskWithValidation = validateWithSchema(postTaskSchema, "postTaskSchem
|
|
|
4906
4906
|
return createTaskRow({ name, value, params, taskStatus, tagList, extra, traceParentId, taskTraceId }, logger);
|
|
4907
4907
|
});
|
|
4908
4908
|
|
|
4909
|
-
|
|
4910
|
-
(function (CategoryTrigger) {
|
|
4911
|
-
CategoryTrigger["TRIGGER"] = "trigger";
|
|
4912
|
-
})(CategoryTrigger || (CategoryTrigger = {}));
|
|
4913
|
-
var TriggerStatus;
|
|
4914
|
-
(function (TriggerStatus) {
|
|
4915
|
-
TriggerStatus["ENABLED"] = "ENABLED";
|
|
4916
|
-
TriggerStatus["DISABLED"] = "DISABLED";
|
|
4917
|
-
TriggerStatus["PAUSED"] = "PAUSED";
|
|
4918
|
-
})(TriggerStatus || (TriggerStatus = {}));
|
|
4919
|
-
|
|
4920
|
-
const TRIGGER_STATUS_FIELD = "details->>status";
|
|
4921
|
-
const traceIdSchema = z.string().trim().min(1).optional();
|
|
4922
|
-
const dailyScheduleSchema = z.object({
|
|
4923
|
-
kind: z.literal("daily"),
|
|
4924
|
-
hour: z.number().int().min(0).max(23),
|
|
4925
|
-
minute: z.number().int().min(0).max(59),
|
|
4926
|
-
});
|
|
4927
|
-
const postTaskActionSchema = z.object({
|
|
4928
|
-
kind: z.literal("post_task"),
|
|
4929
|
-
taskTypeKey: z.string().trim().min(1),
|
|
4930
|
-
taskParams: z.unknown(),
|
|
4931
|
-
taskName: z.string().trim().min(1).optional(),
|
|
4932
|
-
taskStatus: z.enum([TaskStatus.OPEN, TaskStatus.TODO]).optional(),
|
|
4933
|
-
});
|
|
4934
|
-
const postTriggerSchema = z.object({
|
|
4935
|
-
name: z.string().trim().min(1),
|
|
4936
|
-
value: z.string().trim().min(1),
|
|
4937
|
-
status: z.nativeEnum(TriggerStatus).optional().default(TriggerStatus.ENABLED),
|
|
4938
|
-
schedule: dailyScheduleSchema,
|
|
4939
|
-
action: postTaskActionSchema,
|
|
4940
|
-
tagList: z.array(z.string()).optional().default([]),
|
|
4941
|
-
traceId: traceIdSchema,
|
|
4942
|
-
});
|
|
4943
|
-
const scanEnabledTriggersSchema = z.object({
|
|
4944
|
-
traceId: traceIdSchema,
|
|
4945
|
-
});
|
|
4946
|
-
const patchTriggerFiredSchema = z.object({
|
|
4947
|
-
triggerId: z.string().trim().min(1),
|
|
4948
|
-
fireKey: z.string().trim().min(1),
|
|
4949
|
-
expectedLastFireKey: z.string().nullable().optional(),
|
|
4950
|
-
traceId: traceIdSchema,
|
|
4951
|
-
});
|
|
4952
|
-
function enabledTriggerFilter() {
|
|
4953
|
-
return [{ field: TRIGGER_STATUS_FIELD, operator: "eq", value: TriggerStatus.ENABLED }];
|
|
4954
|
-
}
|
|
4955
|
-
/**
|
|
4956
|
-
* List all ENABLED triggers. Due-check is in-memory on the caller:
|
|
4957
|
-
* filter with `isTriggerDue`, then `patchTriggerFired` with `buildFireKey`
|
|
4958
|
-
* (both from `trigger.utils`, exported on `/node`).
|
|
4959
|
-
* Do not call this from TriggerNode (local interval runners only).
|
|
4960
|
-
*/
|
|
4961
|
-
const scanEnabledTriggers = validateWithSchema(scanEnabledTriggersSchema, "scanEnabledTriggersSchema")(async ({ traceId }) => {
|
|
4962
|
-
const logger = createLogger({ module: "scanEnabledTriggers", traceId });
|
|
4963
|
-
try {
|
|
4964
|
-
const { data: triggerList } = await scanTargetList({
|
|
4965
|
-
category: CategoryTrigger.TRIGGER,
|
|
4966
|
-
filterList: enabledTriggerFilter(),
|
|
4967
|
-
orderBy: { field: "created_at", ascending: true },
|
|
4968
|
-
});
|
|
4969
|
-
const rows = triggerList ?? [];
|
|
4970
|
-
logger.debug("已掃描 ENABLED Trigger", {
|
|
4971
|
-
topic: "trigger",
|
|
4972
|
-
data: { count: rows.length },
|
|
4973
|
-
});
|
|
4974
|
-
return generateResponse.success(rows);
|
|
4975
|
-
}
|
|
4976
|
-
catch (error) {
|
|
4977
|
-
const message = error instanceof Error ? error.message : String(error);
|
|
4978
|
-
return generateResponse.error(message);
|
|
4979
|
-
}
|
|
4980
|
-
});
|
|
4981
|
-
/** Create a trigger row (scheduler / admin). */
|
|
4982
|
-
const postTrigger = validateWithSchema(postTriggerSchema, "postTriggerSchema")(async ({ name, value, status, schedule, action, tagList, traceId }) => {
|
|
4983
|
-
const logger = createLogger({ module: "postTrigger", traceId });
|
|
4984
|
-
const details = {
|
|
4985
|
-
manifestVersion: 0,
|
|
4986
|
-
status,
|
|
4987
|
-
schedule: schedule,
|
|
4988
|
-
action: action,
|
|
4989
|
-
lastFiredAt: null,
|
|
4990
|
-
lastFireKey: null,
|
|
4991
|
-
};
|
|
4992
|
-
const result = await createTarget({
|
|
4993
|
-
payload: { name, value, status, schedule, action, tagList, traceId },
|
|
4994
|
-
createFn: () => ({
|
|
4995
|
-
name,
|
|
4996
|
-
value,
|
|
4997
|
-
category: CategoryTrigger.TRIGGER,
|
|
4998
|
-
tagList,
|
|
4999
|
-
details,
|
|
5000
|
-
}),
|
|
5001
|
-
});
|
|
5002
|
-
logger.info("Trigger 已創建", {
|
|
5003
|
-
topic: "trigger",
|
|
5004
|
-
data: { triggerId: result.data?.id, triggerKey: value, status },
|
|
5005
|
-
});
|
|
5006
|
-
return result;
|
|
5007
|
-
});
|
|
5008
|
-
/**
|
|
5009
|
-
* Mark trigger as fired for `fireKey`.
|
|
5010
|
-
* When `expectedLastFireKey` is set, uses optimistic lock on that field.
|
|
5011
|
-
*/
|
|
5012
|
-
const patchTriggerFired = validateWithSchema(patchTriggerFiredSchema, "patchTriggerFiredSchema")(async ({ triggerId, fireKey, expectedLastFireKey, traceId }) => {
|
|
5013
|
-
const logger = createLogger({ module: "patchTriggerFired", traceId });
|
|
5014
|
-
const now = Date.now();
|
|
5015
|
-
try {
|
|
5016
|
-
const optimisticLockFilterList = expectedLastFireKey != null && expectedLastFireKey !== ""
|
|
5017
|
-
? [{ field: "details->>lastFireKey", operator: "eq", value: expectedLastFireKey }]
|
|
5018
|
-
: [];
|
|
5019
|
-
const data = await updateTargetDetails({
|
|
5020
|
-
id: triggerId,
|
|
5021
|
-
optimisticLockFilterList,
|
|
5022
|
-
updateFn: (current) => ({
|
|
5023
|
-
...current,
|
|
5024
|
-
lastFireKey: fireKey,
|
|
5025
|
-
lastFiredAt: now,
|
|
5026
|
-
}),
|
|
5027
|
-
});
|
|
5028
|
-
logger.success("Trigger 觸發記錄已更新", {
|
|
5029
|
-
topic: "trigger",
|
|
5030
|
-
data: { triggerId, fireKey },
|
|
5031
|
-
});
|
|
5032
|
-
return generateResponse.success(data);
|
|
5033
|
-
}
|
|
5034
|
-
catch (error) {
|
|
5035
|
-
const message = error instanceof Error ? error.message : String(error);
|
|
5036
|
-
logger.warn("Trigger 觸發記錄更新失敗", {
|
|
5037
|
-
topic: "trigger",
|
|
5038
|
-
data: { triggerId, fireKey, error: message },
|
|
5039
|
-
});
|
|
5040
|
-
return generateResponse.error(message);
|
|
5041
|
-
}
|
|
5042
|
-
});
|
|
5043
|
-
|
|
5044
|
-
function parseUtcDateParts(now) {
|
|
5045
|
-
return {
|
|
5046
|
-
year: now.getUTCFullYear(),
|
|
5047
|
-
month: now.getUTCMonth() + 1,
|
|
5048
|
-
day: now.getUTCDate(),
|
|
5049
|
-
hour: now.getUTCHours(),
|
|
5050
|
-
minute: now.getUTCMinutes(),
|
|
5051
|
-
};
|
|
5052
|
-
}
|
|
5053
|
-
function buildDailyFireKey(_schedule, now) {
|
|
5054
|
-
const { year, month, day } = parseUtcDateParts(now);
|
|
5055
|
-
const yyyy = String(year).padStart(4, "0");
|
|
5056
|
-
const mm = String(month).padStart(2, "0");
|
|
5057
|
-
const dd = String(day).padStart(2, "0");
|
|
5058
|
-
return `daily:${yyyy}-${mm}-${dd}`;
|
|
5059
|
-
}
|
|
5060
|
-
function isDailyScheduleDue(schedule, now, lastFireKey) {
|
|
5061
|
-
const parts = parseUtcDateParts(now);
|
|
5062
|
-
if (parts.hour !== schedule.hour || parts.minute !== schedule.minute) {
|
|
5063
|
-
return false;
|
|
5064
|
-
}
|
|
5065
|
-
const fireKey = buildDailyFireKey(schedule, now);
|
|
5066
|
-
return lastFireKey !== fireKey;
|
|
5067
|
-
}
|
|
5068
|
-
function isTriggerDue(trigger, now = new Date()) {
|
|
5069
|
-
const { schedule, lastFireKey } = trigger.details;
|
|
5070
|
-
if (schedule.kind !== "daily") {
|
|
5071
|
-
throw new Error(`Unsupported trigger schedule kind: ${String(schedule.kind)}`);
|
|
5072
|
-
}
|
|
5073
|
-
return isDailyScheduleDue(schedule, now, lastFireKey);
|
|
5074
|
-
}
|
|
5075
|
-
function buildFireKey(trigger, now = new Date()) {
|
|
5076
|
-
const { schedule } = trigger.details;
|
|
5077
|
-
if (schedule.kind !== "daily") {
|
|
5078
|
-
throw new Error(`Unsupported trigger schedule kind: ${String(schedule.kind)}`);
|
|
5079
|
-
}
|
|
5080
|
-
return buildDailyFireKey(schedule, now);
|
|
5081
|
-
}
|
|
5082
|
-
|
|
5083
|
-
export { BaseNodeRuntime, COLLECT_LOG_RUNNER_KEY, CategoryCommand, CategoryLink, CategoryNode, CategoryRepo, CategoryTrigger, CommandType, EMPTY_REGISTRY_SLOT_RUNTIME_STATE, IDEA_IMAGE_TEMP_DIR, IDEA_TEMP_DOWNLOAD_PATH_SUFFIX, LOG_SPOOL_SERVICE_ID_ENV, LOG_TOPIC_TRIGGER, LogLevel, MAX_POLL_TARGET_LIST_SIZE, MEDIA_CONTENT_HASH_ALGORITHM, ManagedChildProcesses, NodeKind, NodeStatus, PROVIDER_TELEGRAM, RepoManager, ResultCode, SERVICE_GUARD_RUNNER_KEY, ServiceGuardNode, ServiceRegistryError, TASK_LOCAL_PACKAGE_CONFIG_FILENAME, TASK_REPO_SCRIPT_CATEGORY, TASK_REPO_USAGE, TASK_RUNNER_CONFIG_DIR, TASK_RUNNER_ROOT_CONFIG_FILENAME, TASK_RUNNER_ROOT_CONFIG_LEGACY_RELATIVE_PATH, TASK_RUNNER_ROOT_CONFIG_RELATIVE_PATH, TRIGGER_LOOP_INTERVAL_MS, TRIGGER_RUNNER_DEFAULT_RETRY_COUNT, TRIGGER_RUNNER_DEFAULT_RETRY_DELAY_MS, TaskManager, TaskNode, TaskRepoValidation, TaskStatus, TaskStatusAction, TriggerManager, TriggerNode, TriggerStatus, applyRegistrySlotGuardStep, buildDailyFireKey, buildFeedLinkDraft, buildFireKey, buildIdeaPasteRelativePath, buildIdeaTempDownloadLocator, buildMediaLinkDraft, buildNodeImportArgs, callTelegramApi, checkFeedLocalAvailability, checkFeedOssAvailability, checkMediaAvailability, claimServiceRegistrySlot, createFeed, createJsonFileStateStore, createL3ChildLauncher, createLogSpoolCoordinator, createLogger, createManagedChildProcesses, createPathsExistCheck, createRequiredEnvCheck, createServiceHost, createServiceRuntimeStateStore, createSupabaseReachableCheck, createTarget, createTelegramStorageProvider, downloadTelegramChunk, enableLogSpoolFromEnvInChild, encodeTelegramChunkUrl, ensureLogSpoolFromEnv, evaluateBusyNodeLiveness, feedLinkDedupFilters, fetchBinaryWithRetry, fetchWithRetry, findMediaLink, generateResponse, getConfigFileDir, getLogSpoolStats, getMainLogSpoolWriterStats, getPollCommandList, getPollCommandListSchema, getPossibleTarget, getScanRemoteRepoValues, getTarget, guardRetryAfterSec, guessMediaMime, hashIdeaPasteImage, importJsConfigModule, initSupabaseFromStandardEnv, isChildProcessRunning, isCreateTargetAlreadyExistsError, isDailyScheduleDue, isFeedIngestSource, isFeedValue, isGuardAvailable, isHttpUrl, isLogEntry, isLogSpoolEnabled, isMediaValue, isOpaqueChunkUrl, isOptimisticLockResponse, isRetryableHttpStatus, isTriggerDue, loadCachedJsConfigModule, loadEnvFiles, logManager, logSpoolEnabledFromEnv, markWorkerSpawned, mediaLinkDedupFilters, nodeBufferToArrayBuffer, nodesForTaskLiveness, parseIdeaTempDownloadLocator, parseTelegramChunkUrl, patchChangeNodeStatus, patchChangeTaskStatus, patchClaimTask, patchNodeHeartBeat, patchServiceRuntime, patchStopNode, patchTriggerFired, patchTriggerFiredSchema, pathExists, pollTargetList, pollUntil, postCommand, postCommandSchema, postRegisterNode, postTarget, postTaskSchema, postTaskWithValidation, postTrigger, postTriggerSchema, probeMediaOriginal, publicBaseUrlFromEnv, readAndVerifySourceFile, readEnv, registerCollectLogRunner, registerFeed, registerMediaLink, registerServiceGuardRunner, registrySlotRuntimePatchFromGuardResult, requireEnv, requireNodeServiceIdFromEnv, resolveFirstExistingPath, resolveLogSpoolRoot, resolvePathFromBaseDir, resolvePathFromConfigFile, resolvePathFromCwd, resolveTelegramStorageOptions, runCollectLogTick, runReadinessChecks, runReadinessGate, runRegistrySlotGuardCheck, runServiceGuardTick, runSingleProcessService, scanEnabledTriggers, scanEnabledTriggersSchema, scanTargetList, sha256Hex, shutdownLogSpool, shutdownLogSpoolFromEnv, spawnTsxChild, supabase, telegramDownloadBinary, telegramFileDownloadUrl, toFileImportHref, updateTarget, updateTargetDetails, validateTaskRepoAndParams, validateWithSchema, waitForServiceReady };
|
|
4909
|
+
export { BaseNodeRuntime, COLLECT_LOG_RUNNER_KEY, CategoryCommand, CategoryLink, CategoryNode, CategoryRepo, CommandType, EMPTY_REGISTRY_SLOT_RUNTIME_STATE, IDEA_IMAGE_TEMP_DIR, IDEA_TEMP_DOWNLOAD_PATH_SUFFIX, LOG_SPOOL_SERVICE_ID_ENV, LOG_TOPIC_TRIGGER, LogLevel, MAX_POLL_TARGET_LIST_SIZE, MEDIA_CONTENT_HASH_ALGORITHM, ManagedChildProcesses, NodeKind, NodeStatus, PROVIDER_TELEGRAM, RepoManager, ResultCode, SERVICE_GUARD_RUNNER_KEY, ServiceGuardNode, ServiceRegistryError, TASK_LOCAL_PACKAGE_CONFIG_FILENAME, TASK_REPO_SCRIPT_CATEGORY, TASK_REPO_USAGE, TASK_RUNNER_CONFIG_DIR, TASK_RUNNER_ROOT_CONFIG_FILENAME, TASK_RUNNER_ROOT_CONFIG_LEGACY_RELATIVE_PATH, TASK_RUNNER_ROOT_CONFIG_RELATIVE_PATH, TRIGGER_LOOP_INTERVAL_MS, TRIGGER_RUNNER_DEFAULT_RETRY_COUNT, TRIGGER_RUNNER_DEFAULT_RETRY_DELAY_MS, TaskManager, TaskNode, TaskRepoValidation, TaskStatusAction, TriggerManager, TriggerNode, applyRegistrySlotGuardStep, buildFeedLinkDraft, buildIdeaPasteRelativePath, buildIdeaTempDownloadLocator, buildMediaLinkDraft, buildNodeImportArgs, callTelegramApi, checkFeedLocalAvailability, checkFeedOssAvailability, checkMediaAvailability, claimServiceRegistrySlot, createFeed, createJsonFileStateStore, createL3ChildLauncher, createLogSpoolCoordinator, createLogger, createManagedChildProcesses, createPathsExistCheck, createRequiredEnvCheck, createServiceHost, createServiceRuntimeStateStore, createSupabaseReachableCheck, createTarget, createTelegramStorageProvider, downloadTelegramChunk, enableLogSpoolFromEnvInChild, encodeTelegramChunkUrl, ensureLogSpoolFromEnv, evaluateBusyNodeLiveness, feedLinkDedupFilters, fetchBinaryWithRetry, fetchWithRetry, findMediaLink, generateResponse, getConfigFileDir, getLogSpoolStats, getMainLogSpoolWriterStats, getPollCommandList, getPollCommandListSchema, getPossibleTarget, getScanRemoteRepoValues, getTarget, guardRetryAfterSec, guessMediaMime, hashIdeaPasteImage, importJsConfigModule, initSupabaseFromStandardEnv, isChildProcessRunning, isCreateTargetAlreadyExistsError, isFeedIngestSource, isFeedValue, isGuardAvailable, isHttpUrl, isLogEntry, isLogSpoolEnabled, isMediaValue, isOpaqueChunkUrl, isOptimisticLockResponse, isRetryableHttpStatus, loadCachedJsConfigModule, loadEnvFiles, logManager, logSpoolEnabledFromEnv, markWorkerSpawned, mediaLinkDedupFilters, nodeBufferToArrayBuffer, nodesForTaskLiveness, parseIdeaTempDownloadLocator, parseTelegramChunkUrl, patchChangeNodeStatus, patchChangeTaskStatus, patchClaimTask, patchNodeHeartBeat, patchServiceRuntime, patchStopNode, pathExists, pollTargetList, pollUntil, postCommand, postCommandSchema, postRegisterNode, postTarget, postTaskSchema, postTaskWithValidation, probeMediaOriginal, publicBaseUrlFromEnv, readAndVerifySourceFile, readEnv, registerCollectLogRunner, registerFeed, registerMediaLink, registerServiceGuardRunner, registrySlotRuntimePatchFromGuardResult, requireEnv, requireNodeServiceIdFromEnv, resolveFirstExistingPath, resolveLogSpoolRoot, resolvePathFromBaseDir, resolvePathFromConfigFile, resolvePathFromCwd, resolveTelegramStorageOptions, runCollectLogTick, runReadinessChecks, runReadinessGate, runRegistrySlotGuardCheck, runServiceGuardTick, runSingleProcessService, scanTargetList, sha256Hex, shutdownLogSpool, shutdownLogSpoolFromEnv, spawnTsxChild, supabase, telegramDownloadBinary, telegramFileDownloadUrl, toFileImportHref, updateTarget, validateTaskRepoAndParams, validateWithSchema, waitForServiceReady };
|
|
5084
4910
|
//# sourceMappingURL=node.js.map
|