Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions apps/event-worker/src/workers/resource-scan/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { ResourceToInsert } from "@ctrlplane/job-dispatch";
import type { ResourceToInsert } from "@ctrlplane/events";
import type { Job } from "bullmq";

import { eq, takeFirstOrNull } from "@ctrlplane/db";
Expand All @@ -10,8 +10,12 @@ import {
resourceProviderGoogle,
workspace,
} from "@ctrlplane/db/schema";
import { Channel, createWorker, getQueue } from "@ctrlplane/events";
import { handleResourceProviderScan } from "@ctrlplane/job-dispatch";
import {
Channel,
createWorker,
getQueue,
handleResourceProviderScan,
} from "@ctrlplane/events";
import { logger } from "@ctrlplane/logger";

import { getEksResources } from "./aws/eks.js";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { ResourceToInsert } from "@ctrlplane/job-dispatch";
import type { ResourceToInsert } from "@ctrlplane/events";

const convertToTypedValue = (
stringValue: string,
Expand Down
2 changes: 1 addition & 1 deletion apps/pty-proxy/src/controller/agent-socket.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { ResourceToInsert } from "@ctrlplane/job-dispatch";
import type { ResourceToInsert } from "@ctrlplane/events";
import type {
SessionCreate,
SessionDelete,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
resourceProvider,
workspace,
} from "@ctrlplane/db/schema";
import { handleResourceProviderScan } from "@ctrlplane/job-dispatch";
import { handleResourceProviderScan } from "@ctrlplane/events";
import { Permission } from "@ctrlplane/validators/auth";

import { authn, authz } from "~/app/api/v1/auth";
Expand Down
1 change: 1 addition & 0 deletions packages/events/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"dependencies": {
"@ctrlplane/db": "workspace:*",
"@ctrlplane/logger": "workspace:*",
"@ctrlplane/rule-engine": "workspace:*",
"@ctrlplane/validators": "workspace:*",
"@t3-oss/env-core": "catalog:",
"bullmq": "catalog:",
Expand Down
1 change: 1 addition & 0 deletions packages/events/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@ export const getQueue = <T extends keyof ChannelMap>(name: T) => {

export * from "./types.js";
export * from "./redis.js";
export * from "./resource-provider-scan/handle-provider-scan.js";
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ import type { InsertResource } from "@ctrlplane/db/schema";

import { and, eq, inArray, upsertResources } from "@ctrlplane/db";
import * as schema from "@ctrlplane/db/schema";
import { Channel, getQueue } from "@ctrlplane/events";
import { logger } from "@ctrlplane/logger";
import { getAffectedVariables } from "@ctrlplane/rule-engine";

import { getQueue } from "../index.js";
import { Channel } from "../types.js";
import { groupResourcesByHook } from "./group-resources-by-hook.js";

const log = logger.child({ label: "upsert-resources" });
Expand Down
1 change: 0 additions & 1 deletion packages/job-dispatch/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ export * from "./job-update.js";
export * from "./job-dispatch.js";

export * from "./events/index.js";
export * from "./resource/index.js";
2 changes: 0 additions & 2 deletions packages/job-dispatch/src/resource/index.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/rule-engine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
},
"dependencies": {
"@ctrlplane/db": "workspace:*",
"@ctrlplane/events": "workspace:*",
"@ctrlplane/logger": "workspace:*",
"@ctrlplane/validators": "workspace:*",
"@date-fns/tz": "^1.2.0",
Expand Down
6 changes: 3 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading