@processfocus/runtime-local 0.1.0-next.3 → 0.1.0-next.4
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 +3 -0
- package/dist/authentication-server.mjs +3 -3
- package/dist/{chunk-bg5r4wpv.js → chunk-3wzp2sax.js} +168 -117
- package/dist/{chunk-cbd36jq1.js → chunk-5kjvzbwr.js} +1 -1
- package/dist/{chunk-727y6qkb.js → chunk-egeb4821.js} +2 -2
- package/dist/{chunk-d4ctj079.js → chunk-q5v72erd.js} +2 -2
- package/dist/{chunk-04r0t2mb.js → chunk-wvbz0nmd.js} +97 -49
- package/dist/{chunk-r5s2v669.js → chunk-y8fnwbx0.js} +512 -480
- package/dist/dashboard-source/apps/frontend/app/(protected)/connected-apps/disconnect-form.tsx +57 -0
- package/dist/dashboard-source/apps/frontend/app/(protected)/connected-apps/page.tsx +97 -0
- package/dist/dashboard-source/apps/frontend/app/(protected)/lists/[...listPath]/list-page-client.tsx +26 -1
- package/dist/dashboard-source/apps/frontend/app/(protected)/lists/[...listPath]/page.tsx +11 -12
- package/dist/dashboard-source/apps/frontend/app/(protected)/lists/components/list-create-form.tsx +7 -5
- package/dist/dashboard-source/apps/frontend/app/api/dev/import-events/route.ts +69 -1
- package/dist/dashboard-source/apps/frontend/app/app-shell.tsx +4 -3
- package/dist/dashboard-source/apps/frontend/app/mcp/[[...endpoint]]/route.ts +0 -3
- package/dist/dashboard-source/apps/frontend/components/Header.tsx +10 -0
- package/dist/dashboard-source/apps/frontend/lib/collections/collection-provider-factory.tsx +3 -2
- package/dist/dashboard-source/apps/frontend/lib/collections/graphql-stream.ts +21 -1
- package/dist/dashboard-source/apps/frontend/lib/dev/import-completed-query-invalidation.tsx +66 -9
- package/dist/dashboard-source/apps/frontend/lib/dev/import-completed-refresh.ts +10 -6
- package/dist/dashboard-source/apps/frontend/lib/generated/gql/gql.ts +3 -3
- package/dist/dashboard-source/apps/frontend/lib/generated/gql/graphql.ts +2 -3
- package/dist/dashboard-source/apps/frontend/lib/mcp/oauth.ts +61 -72
- package/dist/dashboard-source/apps/frontend/lib/mcp/origin.ts +20 -12
- package/dist/dashboard-source/apps/frontend/lib/mcp/store.ts +80 -166
- package/dist/dashboard-source/apps/frontend/lib/mcp/todos.ts +42 -19
- package/dist/dashboard-source/apps/frontend/package.json +2 -3
- package/dist/dashboard-source/modules/shadcn-components/src/lib/date-time-display.tsx +3 -2
- package/dist/dashboard-source.json +2 -3
- package/dist/graphql-server.mjs +34 -7
- package/dist/job-worker-supervisor.mjs +3 -3
- package/dist/job-worker.mjs +5 -5
- package/dist/main.mjs +7 -2
- package/dist/resources/graphql-schema/system.graphql +1 -0
- package/package.json +3 -4
|
@@ -10,11 +10,11 @@ import {
|
|
|
10
10
|
TypedSqliteDrizzleLayer,
|
|
11
11
|
SqliteAuditPersistenceLive,
|
|
12
12
|
makeLocalSqlClientLayer
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-wvbz0nmd.js";
|
|
14
14
|
import {
|
|
15
15
|
PortFileContentJson,
|
|
16
16
|
decodePortFromFileContent
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-5kjvzbwr.js";
|
|
18
18
|
// src/server-utils.ts
|
|
19
19
|
import { readFileSync, writeFileSync } from "fs";
|
|
20
20
|
import { Data, Effect, Schema } from "effect";
|
|
@@ -2468,6 +2468,7 @@ __export(exports_src, {
|
|
|
2468
2468
|
invitationRole: () => invitationRole,
|
|
2469
2469
|
invitationRoleRelations: () => invitationRoleRelations,
|
|
2470
2470
|
jobQueue: () => jobQueue,
|
|
2471
|
+
mcpOauthRecord: () => mcpOauthRecord,
|
|
2471
2472
|
notStartedJob: () => notStartedJob,
|
|
2472
2473
|
oauthClient: () => oauthClient,
|
|
2473
2474
|
oauthClientRelations: () => oauthClientRelations,
|
|
@@ -38609,6 +38610,23 @@ var oauthStorage = sqliteTable("pf_oauth_storage", {
|
|
|
38609
38610
|
keyidxIdx: uniqueIndex("pf_oauth_storage_keyidx_idx").on(table.oauthKey),
|
|
38610
38611
|
updatedAtIdIdx: index("pf_oauth_storage_updated_at_id_idx").on(table.updatedAt, table.id)
|
|
38611
38612
|
}));
|
|
38613
|
+
var mcpOauthRecord = sqliteTable("pf_mcp_oauth_record", {
|
|
38614
|
+
id: text4("id", { length: 41 }).primaryKey().$defaultFn(() => `mco-${ulid()}`),
|
|
38615
|
+
mcpPartition: text4("mcp_partition", { length: 2048 }).notNull(),
|
|
38616
|
+
mcpRecordKey: text4("mcp_record_key", { length: 64 }).notNull(),
|
|
38617
|
+
mcpRevision: text4("mcp_revision", { length: 36 }).notNull(),
|
|
38618
|
+
keyValue: jsonColumn("key_value").notNull(),
|
|
38619
|
+
keyExpiry: effectDateTime("key_expiry"),
|
|
38620
|
+
createdAt: effectDateTime("created_at").notNull().default(sql`(julianday('now'))`),
|
|
38621
|
+
updatedAt: effectDateTime("updated_at").notNull().default(sql`(julianday('now'))`),
|
|
38622
|
+
createdBy: text4("created_by", { length: 256 }).notNull().default("SYSTEM"),
|
|
38623
|
+
updatedBy: text4("updated_by", { length: 256 }).notNull().default("SYSTEM"),
|
|
38624
|
+
_deleted: integer("_deleted", { mode: "boolean" }).notNull().default(false)
|
|
38625
|
+
}, (table) => ({
|
|
38626
|
+
expiryidxIdx: index("pf_mcp_oauth_record_expiryidx_idx").on(table.keyExpiry).where(sql`_deleted = 0`),
|
|
38627
|
+
partitionkeyidxIdx: uniqueIndex("pf_mcp_oauth_record_partitionkeyidx_idx").on(table.mcpPartition, table.mcpRecordKey).where(sql`_deleted = 0`),
|
|
38628
|
+
updatedAtIdIdx: index("pf_mcp_oauth_record_updated_at_id_idx").on(table.updatedAt, table.id)
|
|
38629
|
+
}));
|
|
38612
38630
|
var oauthProvider = sqliteTable("pf_oauth_provider", {
|
|
38613
38631
|
id: text4("id", { length: 41 }).primaryKey().$defaultFn(() => `opr-${ulid()}`),
|
|
38614
38632
|
providerName: text4("provider_name", { length: 64 }).notNull(),
|
|
@@ -39690,48 +39708,78 @@ function calculateFormComplexity(formFields) {
|
|
|
39690
39708
|
return "Complex";
|
|
39691
39709
|
}
|
|
39692
39710
|
|
|
39693
|
-
import { Context as Context48,
|
|
39711
|
+
import { Context as Context48, Schema as Schema27 } from "effect";
|
|
39712
|
+
var partition = Schema27.String.check(Schema27.isMaxLength(2048));
|
|
39713
|
+
var key = Schema27.String.check(Schema27.isMaxLength(64));
|
|
39714
|
+
var revision = Schema27.String.check(Schema27.isMaxLength(36));
|
|
39715
|
+
var McpOAuthOperation = Schema27.Union([
|
|
39716
|
+
Schema27.Struct({ op: Schema27.Literal("get"), partition, key }),
|
|
39717
|
+
Schema27.Struct({
|
|
39718
|
+
op: Schema27.Literal("list"),
|
|
39719
|
+
partition,
|
|
39720
|
+
after: Schema27.optional(key)
|
|
39721
|
+
}),
|
|
39722
|
+
Schema27.Struct({
|
|
39723
|
+
op: Schema27.Literal("put"),
|
|
39724
|
+
partition,
|
|
39725
|
+
key,
|
|
39726
|
+
value: Schema27.Record(Schema27.String, Schema27.Json),
|
|
39727
|
+
expires: Schema27.optional(Schema27.Int),
|
|
39728
|
+
previous: Schema27.optional(revision)
|
|
39729
|
+
}),
|
|
39730
|
+
Schema27.Struct({
|
|
39731
|
+
op: Schema27.Literal("remove"),
|
|
39732
|
+
partition,
|
|
39733
|
+
key,
|
|
39734
|
+
previous: revision
|
|
39735
|
+
})
|
|
39736
|
+
]);
|
|
39694
39737
|
|
|
39695
|
-
class
|
|
39738
|
+
class McpOAuthRecords extends Context48.Service()("processfocus:internal-tag/graphql-db-operations/McpOAuthRecords") {
|
|
39696
39739
|
}
|
|
39697
39740
|
|
|
39698
|
-
|
|
39699
|
-
}
|
|
39741
|
+
import { Context as Context49, Data as Data39 } from "effect";
|
|
39700
39742
|
|
|
39701
|
-
|
|
39743
|
+
class StepNotFoundError extends Data39.TaggedError("StepNotFoundError") {
|
|
39744
|
+
}
|
|
39702
39745
|
|
|
39703
|
-
class
|
|
39746
|
+
class ProcessExecutionOperations extends Context49.Service()("processfocus:internal-tag/graphql-db-operations/ProcessExecutionOperations") {
|
|
39704
39747
|
}
|
|
39705
39748
|
|
|
39706
39749
|
import { Context as Context50 } from "effect";
|
|
39707
39750
|
|
|
39708
|
-
class
|
|
39751
|
+
class FlowQueries extends Context50.Service()("processfocus:internal-tag/graphql-db-operations/FlowQueries") {
|
|
39709
39752
|
}
|
|
39710
39753
|
|
|
39711
39754
|
import { Context as Context51 } from "effect";
|
|
39712
39755
|
|
|
39713
|
-
class
|
|
39756
|
+
class OAuthClientQueries extends Context51.Service()("processfocus:internal-tag/graphql-db-operations/OAuthClientQueries") {
|
|
39714
39757
|
}
|
|
39715
39758
|
|
|
39716
39759
|
import { Context as Context52 } from "effect";
|
|
39717
39760
|
|
|
39718
|
-
class
|
|
39761
|
+
class OrgQueries extends Context52.Service()("processfocus:internal-tag/graphql-db-operations/OrgQueries") {
|
|
39719
39762
|
}
|
|
39720
39763
|
|
|
39721
|
-
|
|
39764
|
+
import { Context as Context53 } from "effect";
|
|
39765
|
+
|
|
39766
|
+
class ProcessQueries extends Context53.Service()("processfocus:internal-tag/graphql-db-operations/ProcessQueries") {
|
|
39722
39767
|
}
|
|
39723
39768
|
|
|
39724
|
-
|
|
39769
|
+
class ProcessCollectionQueries extends Context53.Service()("processfocus:internal-tag/graphql-db-operations/ProcessCollectionQueries") {
|
|
39770
|
+
}
|
|
39725
39771
|
|
|
39726
|
-
|
|
39772
|
+
import { Context as Context54 } from "effect";
|
|
39773
|
+
|
|
39774
|
+
class ProviderUserQueries extends Context54.Service()("processfocus:internal-tag/graphql-db-operations/ProviderUserQueries") {
|
|
39727
39775
|
}
|
|
39728
39776
|
|
|
39729
|
-
import { Context as
|
|
39777
|
+
import { Context as Context55, Data as Data40 } from "effect";
|
|
39730
39778
|
|
|
39731
39779
|
class ProcessNotFoundError extends Data40.TaggedError("ProcessNotFoundError") {
|
|
39732
39780
|
}
|
|
39733
39781
|
|
|
39734
|
-
class WorkflowQueries extends
|
|
39782
|
+
class WorkflowQueries extends Context55.Service()("processfocus:internal-tag/graphql-db-operations/WorkflowQueries") {
|
|
39735
39783
|
}
|
|
39736
39784
|
|
|
39737
39785
|
var FLOW_EXECUTION_QUEUE = "flow-execution";
|
|
@@ -39749,12 +39797,12 @@ var returnedRow = (rows) => {
|
|
|
39749
39797
|
return row === undefined ? Effect76.die("Database write returned no row") : Effect76.succeed(row);
|
|
39750
39798
|
};
|
|
39751
39799
|
|
|
39752
|
-
import { Context as
|
|
39800
|
+
import { Context as Context56 } from "effect";
|
|
39753
39801
|
|
|
39754
|
-
class ScheduledFlowOperations extends
|
|
39802
|
+
class ScheduledFlowOperations extends Context56.Service()("processfocus:internal-tag/graphql-db-operations/ScheduledFlowOperations") {
|
|
39755
39803
|
}
|
|
39756
39804
|
|
|
39757
|
-
import { Context as
|
|
39805
|
+
import { Context as Context57, Data as Data41 } from "effect";
|
|
39758
39806
|
|
|
39759
39807
|
class TodoNotFoundError extends Data41.TaggedError("TodoNotFoundError") {
|
|
39760
39808
|
}
|
|
@@ -39762,37 +39810,37 @@ class TodoNotFoundError extends Data41.TaggedError("TodoNotFoundError") {
|
|
|
39762
39810
|
class InvalidProcessStateError extends Data41.TaggedError("InvalidProcessStateError") {
|
|
39763
39811
|
}
|
|
39764
39812
|
|
|
39765
|
-
class StepCompletionOperations extends
|
|
39813
|
+
class StepCompletionOperations extends Context57.Service()("processfocus:internal-tag/graphql-db-operations/StepCompletionOperations") {
|
|
39766
39814
|
}
|
|
39767
39815
|
|
|
39768
|
-
import { Context as
|
|
39816
|
+
import { Context as Context58 } from "effect";
|
|
39769
39817
|
var collectRolePathsToTry = (stepRoleInfo) => [stepRoleInfo.rolePath, ...stepRoleInfo.supportingRolePaths ?? []].filter(Boolean);
|
|
39770
39818
|
|
|
39771
|
-
class StepRoleQueries extends
|
|
39819
|
+
class StepRoleQueries extends Context58.Service()("processfocus:internal-tag/graphql-db-operations/StepRoleQueries") {
|
|
39772
39820
|
}
|
|
39773
39821
|
|
|
39774
|
-
import { Context as
|
|
39822
|
+
import { Context as Context59 } from "effect";
|
|
39775
39823
|
|
|
39776
|
-
class SystemUserOperations extends
|
|
39824
|
+
class SystemUserOperations extends Context59.Service()("processfocus:internal-tag/graphql-db-operations/SystemUserOperations") {
|
|
39777
39825
|
}
|
|
39778
39826
|
|
|
39779
|
-
import { Context as
|
|
39827
|
+
import { Context as Context60 } from "effect";
|
|
39780
39828
|
|
|
39781
|
-
class TodoQueries extends
|
|
39829
|
+
class TodoQueries extends Context60.Service()("processfocus:internal-tag/graphql-db-operations/TodoQueries") {
|
|
39782
39830
|
}
|
|
39783
39831
|
|
|
39784
|
-
import { Context as
|
|
39785
|
-
var DelegationAudit =
|
|
39786
|
-
version:
|
|
39787
|
-
ownerUserId:
|
|
39788
|
-
ownerEmail:
|
|
39789
|
-
delegationId:
|
|
39790
|
-
generationId:
|
|
39791
|
-
name:
|
|
39832
|
+
import { Context as Context61, Effect as Effect77, Option as Option24, Schema as Schema28 } from "effect";
|
|
39833
|
+
var DelegationAudit = Schema28.Struct({
|
|
39834
|
+
version: Schema28.Literal(1),
|
|
39835
|
+
ownerUserId: Schema28.String,
|
|
39836
|
+
ownerEmail: Schema28.String,
|
|
39837
|
+
delegationId: Schema28.String,
|
|
39838
|
+
generationId: Schema28.String,
|
|
39839
|
+
name: Schema28.String
|
|
39792
39840
|
});
|
|
39793
39841
|
var delegationAuditPrefix = "pf:delegation:";
|
|
39794
39842
|
var encodeDelegationAudit = (actor) => delegationAuditPrefix + JSON.stringify(actor);
|
|
39795
|
-
var decodeDelegationAudit = (by) => by.startsWith(delegationAuditPrefix) ?
|
|
39843
|
+
var decodeDelegationAudit = (by) => by.startsWith(delegationAuditPrefix) ? Schema28.decodeUnknownOption(Schema28.fromJsonString(DelegationAudit))(by.slice(delegationAuditPrefix.length)) : Option24.none();
|
|
39796
39844
|
var delegationAuditLabel = (by) => Option24.match(decodeDelegationAudit(by), {
|
|
39797
39845
|
onNone: () => {
|
|
39798
39846
|
return;
|
|
@@ -39800,7 +39848,7 @@ var delegationAuditLabel = (by) => Option24.match(decodeDelegationAudit(by), {
|
|
|
39800
39848
|
onSome: (actor) => `${actor.ownerEmail}/${actor.name}`
|
|
39801
39849
|
});
|
|
39802
39850
|
|
|
39803
|
-
class UserDetails extends
|
|
39851
|
+
class UserDetails extends Context61.Service()("processfocus:internal-tag/graphql-db-operations/UserDetails") {
|
|
39804
39852
|
}
|
|
39805
39853
|
var getUserDetails = () => UserDetails;
|
|
39806
39854
|
var withUserDetailsScope = (effect) => Effect77.gen(function* () {
|
|
@@ -40527,7 +40575,7 @@ import { Session as TursoSession } from "@tursodatabase/serverless";
|
|
|
40527
40575
|
import * as Cause3 from "effect/Cause";
|
|
40528
40576
|
import * as Clock12 from "effect/Clock";
|
|
40529
40577
|
import * as Config6 from "effect/Config";
|
|
40530
|
-
import * as
|
|
40578
|
+
import * as Context62 from "effect/Context";
|
|
40531
40579
|
import * as Duration6 from "effect/Duration";
|
|
40532
40580
|
import * as Effect81 from "effect/Effect";
|
|
40533
40581
|
import * as Exit2 from "effect/Exit";
|
|
@@ -40539,7 +40587,7 @@ import * as Redacted4 from "effect/Redacted";
|
|
|
40539
40587
|
import * as Ref3 from "effect/Ref";
|
|
40540
40588
|
import * as Reactivity from "effect/reactivity/Reactivity";
|
|
40541
40589
|
import * as Schedule3 from "effect/Schedule";
|
|
40542
|
-
import * as
|
|
40590
|
+
import * as Schema29 from "effect/Schema";
|
|
40543
40591
|
import * as Semaphore from "effect/Semaphore";
|
|
40544
40592
|
import * as Stream7 from "effect/Stream";
|
|
40545
40593
|
import * as Client from "effect/sql/SqlClient";
|
|
@@ -40555,9 +40603,9 @@ var isRetryableSqlLockError = (error) => isSqlLockError(error) && !isSqlWriteWri
|
|
|
40555
40603
|
var AuthTokenConfig = Config6.Redacted("TURSO_AUTH_TOKEN").pipe(Config6.orElse(() => Config6.succeed(undefined)));
|
|
40556
40604
|
var ConcurrentTransactionsConfig = Config6.String("TURSO_CONCURRENT_TX").pipe(Config6.map((value) => value === "1"), Config6.orElse(() => Config6.succeed(false)));
|
|
40557
40605
|
var ConnectionInfoLayer = Layer20.effect(DatabaseConnectionInfo, DatabasePathConfig.pipe(Config6.map(normalizeDatabasePath)));
|
|
40558
|
-
var TursoCloudTransaction =
|
|
40606
|
+
var TursoCloudTransaction = Context62.Service("processfocus:internal-tag/layer-turso-cloud/TursoCloudTransaction");
|
|
40559
40607
|
|
|
40560
|
-
class TursoCloudBatch extends
|
|
40608
|
+
class TursoCloudBatch extends Context62.Service()("processfocus:internal-tag/layer-turso-cloud/TursoCloudBatch") {
|
|
40561
40609
|
}
|
|
40562
40610
|
var resultRows = (result) => result.rows.map((row) => Object.fromEntries(result.columns.map((column, i) => [column, row[i]])));
|
|
40563
40611
|
var resultValues = (result) => result.rows;
|
|
@@ -40604,10 +40652,10 @@ var makeSqlError = (message, cause) => new SqlError2({
|
|
|
40604
40652
|
})
|
|
40605
40653
|
});
|
|
40606
40654
|
var isHttpNotFound = (cause) => causeChainIncludes(cause, (message) => message.includes("HTTP error! status: 404"));
|
|
40607
|
-
var partialReadBatch =
|
|
40608
|
-
batchIndex:
|
|
40609
|
-
batchResults:
|
|
40610
|
-
rows:
|
|
40655
|
+
var partialReadBatch = Schema29.Struct({
|
|
40656
|
+
batchIndex: Schema29.Number,
|
|
40657
|
+
batchResults: Schema29.Array(Schema29.NullOr(Schema29.Struct({
|
|
40658
|
+
rows: Schema29.Array(Schema29.Array(Schema29.Unknown))
|
|
40611
40659
|
})))
|
|
40612
40660
|
});
|
|
40613
40661
|
var closeSession = (sdk) => Effect81.tryPromise({
|
|
@@ -40889,7 +40937,7 @@ var makeClient = (url, authToken, concurrentTransactionsEnabled, options) => Eff
|
|
|
40889
40937
|
return results.slice(offset).map((result) => result.rows.map((row) => Array.from(row)));
|
|
40890
40938
|
},
|
|
40891
40939
|
catch: (cause) => {
|
|
40892
|
-
const partial =
|
|
40940
|
+
const partial = Schema29.decodeUnknownOption(partialReadBatch)(cause);
|
|
40893
40941
|
if (Option27.isSome(partial)) {
|
|
40894
40942
|
const { batchIndex, batchResults } = partial.value;
|
|
40895
40943
|
if (initialize && batchResults[0])
|
|
@@ -41099,7 +41147,7 @@ var makeBaseTursoCloudLive = (options) => Layer20.effectContext(Effect81.gen(fun
|
|
|
41099
41147
|
const authToken = options?.authToken ?? (yield* AuthTokenConfig);
|
|
41100
41148
|
const concurrentTransactionsEnabled = yield* ConcurrentTransactionsConfig;
|
|
41101
41149
|
const { batch, readBatch, client } = yield* makeClient(normalizedPath, authToken, concurrentTransactionsEnabled, options);
|
|
41102
|
-
return
|
|
41150
|
+
return Context62.make(Client.SqlClient, client).pipe(Context62.add(TursoCloudBatch, batch), Context62.add(SqlReadBatch, readBatch));
|
|
41103
41151
|
})).pipe(Layer20.provide(Reactivity.layer));
|
|
41104
41152
|
var makeTursoCloudLive = (options) => makeBaseTursoCloudLive(options).pipe(Layer20.provideMerge(ConnectionInfoLayer));
|
|
41105
41153
|
var TursoCloudLive = makeTursoCloudLive();
|
|
@@ -41108,7 +41156,7 @@ import { mkdirSync } from "fs";
|
|
|
41108
41156
|
import { dirname } from "path";
|
|
41109
41157
|
import * as Cause4 from "effect/Cause";
|
|
41110
41158
|
import * as Config7 from "effect/Config";
|
|
41111
|
-
import * as
|
|
41159
|
+
import * as Context63 from "effect/Context";
|
|
41112
41160
|
import * as Effect82 from "effect/Effect";
|
|
41113
41161
|
import * as Exit3 from "effect/Exit";
|
|
41114
41162
|
import * as Layer21 from "effect/Layer";
|
|
@@ -41134,7 +41182,7 @@ var toTursoDatabasePath = (path) => {
|
|
|
41134
41182
|
|
|
41135
41183
|
var ATTR_DB_SYSTEM_NAME2 = "db.system.name";
|
|
41136
41184
|
var ConnectionInfoLayer2 = Layer21.effect(DatabaseConnectionInfo, DatabasePathConfig.pipe(Config7.map(normalizeDatabasePath)));
|
|
41137
|
-
var TursoTransaction =
|
|
41185
|
+
var TursoTransaction = Context63.Service("processfocus:internal-tag/layer-turso-local/TursoTransaction");
|
|
41138
41186
|
var ensureParentDirectory = (path) => {
|
|
41139
41187
|
if (path === ":memory:") {
|
|
41140
41188
|
return;
|
|
@@ -41313,7 +41361,7 @@ var makeClient2 = (path, options) => Effect82.gen(function* () {
|
|
|
41313
41361
|
compiler,
|
|
41314
41362
|
spanAttributes
|
|
41315
41363
|
}), {
|
|
41316
|
-
transactionService:
|
|
41364
|
+
transactionService: Context63.Service(TursoTransaction.key),
|
|
41317
41365
|
withTransaction: withTransactionCommitCallbacks(TursoTransaction.key, withTransaction)
|
|
41318
41366
|
});
|
|
41319
41367
|
});
|
|
@@ -41321,7 +41369,7 @@ var makeBaseTursoLive = (options) => Layer21.effectContext(Effect82.gen(function
|
|
|
41321
41369
|
const dbPath = yield* DatabasePathConfig;
|
|
41322
41370
|
const normalizedPath = normalizeDatabasePath(dbPath);
|
|
41323
41371
|
const client = yield* makeClient2(toTursoDatabasePath(normalizedPath), options);
|
|
41324
|
-
return
|
|
41372
|
+
return Context63.make(Client2.SqlClient, client);
|
|
41325
41373
|
})).pipe(Layer21.provide(Reactivity2.layer));
|
|
41326
41374
|
var makeTursoLive = (options) => makeBaseTursoLive(options).pipe(Layer21.provideMerge(ConnectionInfoLayer2));
|
|
41327
41375
|
var TursoLive = makeTursoLive();
|
|
@@ -41331,4 +41379,4 @@ var makeLocalSqlClientLayer = (options) => Layer22.unwrap(Effect83.gen(function*
|
|
|
41331
41379
|
return isLocalFilePath(databasePath) ? makeTursoLive(options) : makeTursoCloudLive();
|
|
41332
41380
|
}));
|
|
41333
41381
|
|
|
41334
|
-
export { RUNTIME_ARTIFACT_FORMAT, RUNTIME_ARTIFACT_VERSION, DocumentStoreError, FileNotFoundError, DocumentStoreService, hasInvalidDownloadFilename, sanitizeDownloadFilename, formatContentDisposition, ExecutorError, ExecutorHost, FileResolutionHost, QueueStatsError, EnqueueError, ClaimError, AcknowledgeError, JobNotFoundError, StaleJobClaimError, DEFAULT_VISIBILITY_TIMEOUT, DEFAULT_MAX_RETRIES, validateQueueName, closeQueue, QueueService, AwaitingJobTrigger, jobHandler, makeJobDispatcher, isJobAttemptCurrent, EmailSender, NotificationDeliveryConfig, Runtime, WebhookCallbackError, WebhookCallbackHost, parseServerPluginRegistrations, dispatchServerPluginWebhook, makeServerPluginJobLayer, AuthenticationDatabase, createAuthenticationFetchHandler, jwtVerify, createRemoteJWKSet, DEFAULT_AUTH_PORT, getFrontendJwtIssuer, getIssuerUrl, ProviderUserSessionSchema, subjects, encodeWorkloadAudit, workloadAuditLabel, DelegationDatabase, DelegationIdentityFacts, InvalidDelegationSession, makeDelegationCredentialChecker, makeDelegationExchange, DelegationCredentialServiceLive, require_assertString, require_checkHost, require_merge, require_isFQDN, require_isIP, require_isEmail, require_tslib, captureAudit, AuditPersistence, Audit, makeAudit, withConcurrentTransaction, getTransactionMode, DatabaseConnectionInfo, formatSqlError, immediateTransactionRequested, withImmediateTransaction, LOCAL_SQLITE_BUSY_TIMEOUT_MS, withReadSnapshot, DatabasePathConfig, causeChainIncludes, isSqlLockError, getTursoHttpStatus, TransactionCommitCallbacks, AuthorizationService, DeploymentExecutionAccess, WorkloadDatabaseUploadAccess, CurrentPrincipal, PolicyLoadError, SchemaLoadError, PolicyParseError, SchemaParseError, AuthorizationError, PolicyRevisionUnavailable, ActivePolicyRevision, PolicyRevisionPublisher, DelegationPrincipal, ProviderUserPrincipal, Application, FormField, Step, PublicLinkPrincipal, Execution, RoleRef, ServiceAccountPrincipal, GraphQLField, ListRef, FileRef, ProcessRef, captureRoleAuthority, providerUserAuthorityVersion, prepareRoleSwitch, checkProviderUserAssignments, checkWorkloadDeploymentAuthority, buildFrontendClients, createAuthenticationServer, AuthenticationDelegationIdentityFactsLive, policyRevisionFromFile, sql, TableAliasProxyHandler, aliasedTable, eq, ne, and, or, not, gt, lt, lte, inArray, notInArray, isNull, isNotNull, notExists, like, asc, desc, batchSqliteReads, count, countDistinct, max, auditEvent, orgUnit, process2, processVisibility, role, phase, roleResponsibility, step, stepSupportingRole, flow, externalParticipant, processState, processExecution, toDo, publicCompletionInvitationAttempt, scheduledFlow, taskDeadline, user, providerUser, providerUserRole, userSettings, permittedRole, permittedClientRole, invitation, invitationRole, oauthStorage, oauthProvider, oauthClient, jobQueue, completedJob, weeklySchedule, calendarPeriod, dateException, holidayInstance, documentStore, file, stepDocumentStore, stepItsCanStartProcess, TypedSqliteDrizzle, TypedSqliteDrizzleLayer, SqliteAuditPersistenceLive, UpdateDeletedDocumentError, NoProviderUserID, ProviderUserNotFound, NotAuthorized, ProcessStateNotFound, PublicCompletionInvitationNotFound, MissingGeneratedSchemaError, InputValidationError, ExecutionIdConflictError, StepCompletionConflictError, DocumentStoreNotFoundError, ListNotFoundError, ExportRowLimitError, ExportNonScalarError, AuthorizedPageTimeoutError, AwsRoleProofStore, BusinessCalendarQueries, hasCalendarConfigured, buildCalendarConfig, CleanupOperations, getStartedSystemStepCompletedJobId, CompletedJobOperations, deepMerge, DraftProcessExecutionQueries, DEFAULT_DURATION_SAMPLE_SIZE, ExecutionDurationQueries, ExecutionQueries, InvalidExternalParticipantEmail, normalizeExternalParticipantEmail, ExternalParticipantOperations, FileOperations, InvitationLifecycleStatus, InvitationSource, RegistrationLinkStatus, defaultNotificationPreferences, parseNotificationPreferences, serializeNotificationPreferences, SettingsQueries, normalizeTaggedErrors, mapNotificationRecipientRow, FlowExecutionOperations, calculateFormComplexity, StepNotFoundError, ProcessExecutionOperations, FlowQueries, OAuthClientQueries, OrgQueries, ProcessQueries, ProcessCollectionQueries, ProviderUserQueries, ProcessNotFoundError, WorkflowQueries, FLOW_EXECUTION_QUEUE, TODO_EVENT_QUEUE, PROCESS_EVENT_QUEUE, PROCESS_IMPORT_OUTBOX_QUEUE, EXECUTION_EVENT_QUEUE, SYSTEM_STEP_EXECUTION_QUEUE, NOTIFICATION_DELIVERY_QUEUE, UPLOAD_COMPLETE_QUEUE, returnedRow, ScheduledFlowOperations, TodoNotFoundError, InvalidProcessStateError, StepCompletionOperations, collectRolePathsToTry, StepRoleQueries, SystemUserOperations, TodoQueries, encodeDelegationAudit, decodeDelegationAudit, delegationAuditLabel, UserDetails, getUserDetails, withUserDetailsScope, SqliteDelegationDatabaseLive, retryTransientSqliteError, removeExpiredOAuthStorage, SqliteAuthenticationDatabaseLive, SqliteOpenAuthStorageServiceLive, makeLocalSqlClientLayer };
|
|
41382
|
+
export { RUNTIME_ARTIFACT_FORMAT, RUNTIME_ARTIFACT_VERSION, DocumentStoreError, FileNotFoundError, DocumentStoreService, hasInvalidDownloadFilename, sanitizeDownloadFilename, formatContentDisposition, ExecutorError, ExecutorHost, FileResolutionHost, QueueStatsError, EnqueueError, ClaimError, AcknowledgeError, JobNotFoundError, StaleJobClaimError, DEFAULT_VISIBILITY_TIMEOUT, DEFAULT_MAX_RETRIES, validateQueueName, closeQueue, QueueService, AwaitingJobTrigger, jobHandler, makeJobDispatcher, isJobAttemptCurrent, EmailSender, NotificationDeliveryConfig, Runtime, WebhookCallbackError, WebhookCallbackHost, parseServerPluginRegistrations, dispatchServerPluginWebhook, makeServerPluginJobLayer, AuthenticationDatabase, createAuthenticationFetchHandler, jwtVerify, createRemoteJWKSet, DEFAULT_AUTH_PORT, getFrontendJwtIssuer, getIssuerUrl, ProviderUserSessionSchema, subjects, encodeWorkloadAudit, workloadAuditLabel, DelegationDatabase, DelegationIdentityFacts, InvalidDelegationSession, makeDelegationCredentialChecker, makeDelegationExchange, DelegationCredentialServiceLive, require_assertString, require_checkHost, require_merge, require_isFQDN, require_isIP, require_isEmail, require_tslib, captureAudit, AuditPersistence, Audit, makeAudit, withConcurrentTransaction, getTransactionMode, DatabaseConnectionInfo, formatSqlError, immediateTransactionRequested, withImmediateTransaction, LOCAL_SQLITE_BUSY_TIMEOUT_MS, withReadSnapshot, DatabasePathConfig, causeChainIncludes, isSqlLockError, getTursoHttpStatus, TransactionCommitCallbacks, AuthorizationService, DeploymentExecutionAccess, WorkloadDatabaseUploadAccess, CurrentPrincipal, PolicyLoadError, SchemaLoadError, PolicyParseError, SchemaParseError, AuthorizationError, PolicyRevisionUnavailable, ActivePolicyRevision, PolicyRevisionPublisher, DelegationPrincipal, ProviderUserPrincipal, Application, FormField, Step, PublicLinkPrincipal, Execution, RoleRef, ServiceAccountPrincipal, GraphQLField, ListRef, FileRef, ProcessRef, captureRoleAuthority, providerUserAuthorityVersion, prepareRoleSwitch, checkProviderUserAssignments, checkWorkloadDeploymentAuthority, buildFrontendClients, createAuthenticationServer, AuthenticationDelegationIdentityFactsLive, policyRevisionFromFile, sql, TableAliasProxyHandler, aliasedTable, eq, ne, and, or, not, gt, lt, lte, inArray, notInArray, isNull, isNotNull, notExists, like, asc, desc, batchSqliteReads, count, countDistinct, max, auditEvent, orgUnit, process2, processVisibility, role, phase, roleResponsibility, step, stepSupportingRole, flow, externalParticipant, processState, processExecution, toDo, publicCompletionInvitationAttempt, scheduledFlow, taskDeadline, user, providerUser, providerUserRole, userSettings, permittedRole, permittedClientRole, invitation, invitationRole, oauthStorage, mcpOauthRecord, oauthProvider, oauthClient, jobQueue, completedJob, weeklySchedule, calendarPeriod, dateException, holidayInstance, documentStore, file, stepDocumentStore, stepItsCanStartProcess, TypedSqliteDrizzle, TypedSqliteDrizzleLayer, SqliteAuditPersistenceLive, UpdateDeletedDocumentError, NoProviderUserID, ProviderUserNotFound, NotAuthorized, ProcessStateNotFound, PublicCompletionInvitationNotFound, MissingGeneratedSchemaError, InputValidationError, ExecutionIdConflictError, StepCompletionConflictError, DocumentStoreNotFoundError, ListNotFoundError, ExportRowLimitError, ExportNonScalarError, AuthorizedPageTimeoutError, AwsRoleProofStore, BusinessCalendarQueries, hasCalendarConfigured, buildCalendarConfig, CleanupOperations, getStartedSystemStepCompletedJobId, CompletedJobOperations, deepMerge, DraftProcessExecutionQueries, DEFAULT_DURATION_SAMPLE_SIZE, ExecutionDurationQueries, ExecutionQueries, InvalidExternalParticipantEmail, normalizeExternalParticipantEmail, ExternalParticipantOperations, FileOperations, InvitationLifecycleStatus, InvitationSource, RegistrationLinkStatus, defaultNotificationPreferences, parseNotificationPreferences, serializeNotificationPreferences, SettingsQueries, normalizeTaggedErrors, mapNotificationRecipientRow, FlowExecutionOperations, calculateFormComplexity, McpOAuthOperation, McpOAuthRecords, StepNotFoundError, ProcessExecutionOperations, FlowQueries, OAuthClientQueries, OrgQueries, ProcessQueries, ProcessCollectionQueries, ProviderUserQueries, ProcessNotFoundError, WorkflowQueries, FLOW_EXECUTION_QUEUE, TODO_EVENT_QUEUE, PROCESS_EVENT_QUEUE, PROCESS_IMPORT_OUTBOX_QUEUE, EXECUTION_EVENT_QUEUE, SYSTEM_STEP_EXECUTION_QUEUE, NOTIFICATION_DELIVERY_QUEUE, UPLOAD_COMPLETE_QUEUE, returnedRow, ScheduledFlowOperations, TodoNotFoundError, InvalidProcessStateError, StepCompletionOperations, collectRolePathsToTry, StepRoleQueries, SystemUserOperations, TodoQueries, encodeDelegationAudit, decodeDelegationAudit, delegationAuditLabel, UserDetails, getUserDetails, withUserDetailsScope, SqliteDelegationDatabaseLive, retryTransientSqliteError, removeExpiredOAuthStorage, SqliteAuthenticationDatabaseLive, SqliteOpenAuthStorageServiceLive, makeLocalSqlClientLayer };
|