Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Prompt demo UI and CLI command #222

Merged
merged 11 commits into from
May 8, 2024
Merged

feat: Prompt demo UI and CLI command #222

merged 11 commits into from
May 8, 2024

Conversation

johnjcsmith
Copy link
Collaborator

Admin UI and CLI command for issuing cluster tasks.

Currently prepends functions executed as part of a task execution with a taskId in order to correlate them and demonstrate function calls.

In the future this should be moved into a seperate property.

image image

@johnjcsmith johnjcsmith changed the title Prompt UI feat: Prompt UI and CLI command May 8, 2024
@johnjcsmith johnjcsmith changed the title feat: Prompt UI and CLI command feat: Prompt demo UI and CLI command May 8, 2024
@johnjcsmith johnjcsmith requested a review from nadeesha May 8, 2024 08:07
@johnjcsmith johnjcsmith marked this pull request as ready for review May 8, 2024 08:07
return;
}

const clusterResult = await client.getClusterDetailsForUser({
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is really just to demo as it will only show recent job executions and files them on the FE for now.

@@ -958,11 +959,12 @@ export const router = s.router(contract, {

const { executeTaskForCluster } = require("./agents/agent");

const result = await executeTaskForCluster({ clusterId }, task);
const taskId = ulid();
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably store a record of these task runs for future reference, etc.

Copy link

socket-security bot commented May 8, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@aws-sdk/client-cloudformation@3.535.0 Transitive: environment, filesystem, network, shell +72 6.04 MB aws-sdk-bot
npm/@aws-sdk/client-lambda@3.521.0 Transitive: environment, filesystem, network, shell +75 5.42 MB aws-sdk-bot
npm/@aws-sdk/client-s3@3.521.0 Transitive: environment, filesystem, network, shell +92 7.39 MB aws-sdk-bot
npm/@aws-sdk/s3-request-presigner@3.521.0 Transitive: environment, filesystem, network +35 1.53 MB aws-sdk-bot
npm/@babel/preset-env@7.22.10 environment Transitive: filesystem, unsafe +111 9.38 MB nicolo-ribaudo
npm/@babel/preset-typescript@7.22.11 Transitive: environment, filesystem, unsafe +41 8.25 MB nicolo-ribaudo
npm/@clerk/clerk-sdk-node@4.13.6 environment Transitive: filesystem, network +54 9.33 MB nikosdouvlis
npm/@clerk/nextjs@4.29.3 Transitive: environment, network +30 10.5 MB nikosdouvlis
npm/@influxdata/influxdb-client@1.33.2 network 0 995 kB mrpowersj
npm/@sentry/node@7.93.0 environment, filesystem, network, shell, unsafe +4 6.06 MB sentry-bot
npm/@tanstack/react-table@8.11.6 Transitive: environment +1 4.09 MB tannerlinsley
npm/@ts-rest/core@3.27.0 network 0 68.3 kB oliverbutler
npm/@ts-rest/core@3.30.5 network 0 75.3 kB oliverbutler
npm/@ts-rest/fastify@3.27.0 None 0 23.2 kB oliverbutler
npm/@ts-rest/react-query@3.30.5 Transitive: environment +3 3.69 MB oliverbutler
npm/@types/jest@29.5.4 None 0 79.9 kB types
npm/@types/jsonwebtoken@9.0.2 None +1 3.84 MB types
npm/@types/node@20.10.5 None +1 4.01 MB types
npm/@types/pg@8.10.2 None +1 3.84 MB types
npm/@types/react-dom@18.2.18 None 0 33.3 kB types
npm/@types/react-syntax-highlighter@15.5.13 None 0 196 kB types
npm/@types/react@18.2.45 None +3 1.63 MB types
npm/autoprefixer@10.4.16 environment Transitive: filesystem, shell +10 2.66 MB ai
npm/date-fns@3.2.0 None 0 4.84 MB kossnocorp
npm/eslint@8.56.0 environment, filesystem Transitive: eval, shell, unsafe +98 10.8 MB eslintbot
npm/jwks-rsa@3.1.0 network Transitive: environment +20 927 kB auth0-oss
npm/lucide-react@0.309.0 None 0 21.4 MB ericfennis
npm/msgpackr@1.10.1 environment, eval, unsafe Transitive: filesystem +8 2.53 MB kriszyp
npm/next@14.0.4 environment, filesystem, network, shell, unsafe +25 1.15 GB vercel-release-bot
npm/postcss@8.4.32 environment, filesystem +3 374 kB ai
npm/react-dom@18.2.0 environment +3 4.62 MB gnoff
npm/react-hook-form@7.51.0 network 0 898 kB bluebill1049
npm/react-hot-toast@2.4.1 None +2 1.54 MB timolins
npm/react-json-pretty@2.2.0 Transitive: environment +5 169 kB chenckang
npm/react-loader-spinner@6.1.6 Transitive: environment +17 10.9 MB mhnpd
npm/react-syntax-highlighter@15.5.0 None +25 9.78 MB simmerer
npm/react@18.2.0 environment +2 337 kB gnoff
npm/recharts@2.12.2 environment +39 11 MB ckifer
npm/tailwind-merge@2.2.0 None +2 969 kB dcas
npm/tailwindcss-animate@1.0.7 None 0 18.1 kB thejameskyle
npm/tailwindcss@3.4.0 environment, filesystem Transitive: network, shell, unsafe +102 14.4 MB adamwathan
npm/typescript@5.3.3 None 0 32 MB typescript-bot
npm/vaul@0.8.9 None 0 252 kB emilkowalski
npm/zod@3.22.4 None 0 628 kB colinmcd94

🚮 Removed packages: npm/@differentialhq/core@3.1.4, npm/@differentialhq/core@3.18.0, npm/@inquirer/prompts@4.3.3, npm/@ts-rest/core@3.44.1, npm/@types/debug@4.1.12, npm/@types/detective@5.1.5, npm/@types/jest@29.5.12, npm/@types/yargs@17.0.32, npm/acorn-walk@8.3.2, npm/acorn@8.11.3, npm/conventional-changelog-cli@4.1.0, npm/detective@5.2.1

View full report↗︎

Copy link

socket-security bot commented May 8, 2024

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package NoteSource
Telemetry npm/next@14.0.4
  • Note: Can be disabled by setting the environment variable NEXT_TELEMETRY_DISABLED=1 . See https://nextjs.org/telemetry for more information

View full report↗︎

Next steps

What is telemetry?

This package contains telemetry which tracks how it is used.

Most telemetry comes with settings to disable it. Consider disabling telemetry if you do not want to be tracked.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/foo@1.0.0 or ignore all packages with @SocketSecurity ignore-all

  • @SocketSecurity ignore npm/next@14.0.4

@nadeesha nadeesha merged commit 4cab4ca into main May 8, 2024
6 of 7 checks passed
@nadeesha nadeesha deleted the prompt-ui branch May 8, 2024 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants