@intelligo-dev/executions 1.0.0-beta.2 → 1.0.0-beta.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/dist/index.d.ts +9 -9
- package/dist/index.js +4 -4
- package/dist/lifecycle.d.ts +1 -1
- package/dist/lifecycle.js +1 -1
- package/dist/queries.js +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -12,18 +12,18 @@
|
|
|
12
12
|
* settleUsage: billingSettlementPort,
|
|
13
13
|
* });
|
|
14
14
|
*/
|
|
15
|
-
export { createExecutions } from "./lifecycle";
|
|
16
|
-
export type { Executions, ExecutionStatus, ExecutionRun, ReconcileResult, BeginExecutionInput, CompleteExecutionInput, } from "./lifecycle";
|
|
17
|
-
export type { ExecutionPorts, EntitlementDecision, EntitlementRequest, UsageSettlement, SettlementResult, SettlementQuery, } from "./ports";
|
|
18
|
-
export { listExecutions, getExecutionByRequestId, summarizeExecutions, findStaleExecutions, summarizeExecutionsByDay, } from "./queries";
|
|
19
|
-
export type { ListExecutionsOptions } from "./queries";
|
|
20
|
-
export { executions } from "./db/schema";
|
|
21
|
-
export type { Execution, InsertExecution } from "./db/schema";
|
|
15
|
+
export { createExecutions } from "./lifecycle.js";
|
|
16
|
+
export type { Executions, ExecutionStatus, ExecutionRun, ReconcileResult, BeginExecutionInput, CompleteExecutionInput, } from "./lifecycle.js";
|
|
17
|
+
export type { ExecutionPorts, EntitlementDecision, EntitlementRequest, UsageSettlement, SettlementResult, SettlementQuery, } from "./ports.js";
|
|
18
|
+
export { listExecutions, getExecutionByRequestId, summarizeExecutions, findStaleExecutions, summarizeExecutionsByDay, } from "./queries.js";
|
|
19
|
+
export type { ListExecutionsOptions } from "./queries.js";
|
|
20
|
+
export { executions } from "./db/schema.js";
|
|
21
|
+
export type { Execution, InsertExecution } from "./db/schema.js";
|
|
22
22
|
/**
|
|
23
23
|
* Model registry and cost accounting. Also reachable as
|
|
24
24
|
* `@intelligo-dev/executions/pricing`, which is the import to use from
|
|
25
25
|
* anything that reaches a browser — this barrel pulls in the database.
|
|
26
26
|
*/
|
|
27
|
-
export { MODEL_CONFIGS, MODEL_OUTPUT_BUDGET, DEFAULT_BILLING_MARGIN, DEFAULT_USD_TO_MNT_RATE, calculateCost, calculateChargedMnt, estimateWorstCaseChargedMnt, } from "./pricing";
|
|
28
|
-
export type { ModelId, ChargedAmount } from "./pricing";
|
|
27
|
+
export { MODEL_CONFIGS, MODEL_OUTPUT_BUDGET, DEFAULT_BILLING_MARGIN, DEFAULT_USD_TO_MNT_RATE, calculateCost, calculateChargedMnt, estimateWorstCaseChargedMnt, } from "./pricing.js";
|
|
28
|
+
export type { ModelId, ChargedAmount } from "./pricing.js";
|
|
29
29
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
* settleUsage: billingSettlementPort,
|
|
13
13
|
* });
|
|
14
14
|
*/
|
|
15
|
-
export { createExecutions } from "./lifecycle";
|
|
16
|
-
export { listExecutions, getExecutionByRequestId, summarizeExecutions, findStaleExecutions, summarizeExecutionsByDay, } from "./queries";
|
|
17
|
-
export { executions } from "./db/schema";
|
|
15
|
+
export { createExecutions } from "./lifecycle.js";
|
|
16
|
+
export { listExecutions, getExecutionByRequestId, summarizeExecutions, findStaleExecutions, summarizeExecutionsByDay, } from "./queries.js";
|
|
17
|
+
export { executions } from "./db/schema.js";
|
|
18
18
|
/**
|
|
19
19
|
* Model registry and cost accounting. Also reachable as
|
|
20
20
|
* `@intelligo-dev/executions/pricing`, which is the import to use from
|
|
21
21
|
* anything that reaches a browser — this barrel pulls in the database.
|
|
22
22
|
*/
|
|
23
|
-
export { MODEL_CONFIGS, MODEL_OUTPUT_BUDGET, DEFAULT_BILLING_MARGIN, DEFAULT_USD_TO_MNT_RATE, calculateCost, calculateChargedMnt, estimateWorstCaseChargedMnt, } from "./pricing";
|
|
23
|
+
export { MODEL_CONFIGS, MODEL_OUTPUT_BUDGET, DEFAULT_BILLING_MARGIN, DEFAULT_USD_TO_MNT_RATE, calculateCost, calculateChargedMnt, estimateWorstCaseChargedMnt, } from "./pricing.js";
|
|
24
24
|
//# sourceMappingURL=index.js.map
|
package/dist/lifecycle.d.ts
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
* abort, error) and must be able to fire whichever arrives first
|
|
23
23
|
* without racing.
|
|
24
24
|
*/
|
|
25
|
-
import type { ExecutionPorts } from "./ports";
|
|
25
|
+
import type { ExecutionPorts } from "./ports.js";
|
|
26
26
|
/**
|
|
27
27
|
* Row lifecycle. `settling` is non-terminal and deliberate: it marks
|
|
28
28
|
* the window where usage is being charged, so a second complete() or a
|
package/dist/lifecycle.js
CHANGED
|
@@ -26,7 +26,7 @@ import { db } from "@intelligo-dev/core/db";
|
|
|
26
26
|
import { createLogger } from "@intelligo-dev/core/logger";
|
|
27
27
|
import { recordAuditEvent } from "@intelligo-dev/audit";
|
|
28
28
|
import { and, eq } from "drizzle-orm";
|
|
29
|
-
import { executions } from "./db/schema";
|
|
29
|
+
import { executions } from "./db/schema.js";
|
|
30
30
|
const log = createLogger("Executions");
|
|
31
31
|
function errorMessage(error) {
|
|
32
32
|
return error instanceof Error ? error.message : String(error);
|
package/dist/queries.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { db } from "@intelligo-dev/core/db";
|
|
6
6
|
import { and, desc, eq, gte, inArray, lt, lte, sql } from "drizzle-orm";
|
|
7
|
-
import { executions } from "./db/schema";
|
|
7
|
+
import { executions } from "./db/schema.js";
|
|
8
8
|
export async function listExecutions(options = {}) {
|
|
9
9
|
const filters = [
|
|
10
10
|
options.workspaceId
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intelligo-dev/executions",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.3",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"drizzle-orm": "^0.45.1",
|
|
31
|
-
"@intelligo-dev/audit": "1.0.0-beta.
|
|
32
|
-
"@intelligo-dev/core": "1.0.0-beta.
|
|
31
|
+
"@intelligo-dev/audit": "1.0.0-beta.3",
|
|
32
|
+
"@intelligo-dev/core": "1.0.0-beta.3"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/node": "^22.0.0",
|
|
@@ -46,6 +46,6 @@
|
|
|
46
46
|
"scripts": {
|
|
47
47
|
"type-check": "tsc --noEmit",
|
|
48
48
|
"lint": "eslint .",
|
|
49
|
-
"build": "tsc -p tsconfig.build.json"
|
|
49
|
+
"build": "tsc -p tsconfig.build.json && node ../../scripts/fix-esm-extensions.mjs dist"
|
|
50
50
|
}
|
|
51
51
|
}
|