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/[email protected] Transitive: environment, filesystem, network, shell +72 6.04 MB aws-sdk-bot
npm/@aws-sdk/[email protected] Transitive: environment, filesystem, network, shell +75 5.42 MB aws-sdk-bot
npm/@aws-sdk/[email protected] Transitive: environment, filesystem, network, shell +92 7.39 MB aws-sdk-bot
npm/@aws-sdk/[email protected] Transitive: environment, filesystem, network +35 1.53 MB aws-sdk-bot
npm/@babel/[email protected] environment Transitive: filesystem, unsafe +111 9.38 MB nicolo-ribaudo
npm/@babel/[email protected] Transitive: environment, filesystem, unsafe +41 8.25 MB nicolo-ribaudo
npm/@clerk/[email protected] environment Transitive: filesystem, network +54 9.33 MB nikosdouvlis
npm/@clerk/[email protected] Transitive: environment, network +30 10.5 MB nikosdouvlis
npm/@influxdata/[email protected] network 0 995 kB mrpowersj
npm/@sentry/[email protected] environment, filesystem, network, shell, unsafe +4 6.06 MB sentry-bot
npm/@tanstack/[email protected] Transitive: environment +1 4.09 MB tannerlinsley
npm/@ts-rest/[email protected] network 0 68.3 kB oliverbutler
npm/@ts-rest/[email protected] network 0 75.3 kB oliverbutler
npm/@ts-rest/[email protected] None 0 23.2 kB oliverbutler
npm/@ts-rest/[email protected] Transitive: environment +3 3.69 MB oliverbutler
npm/@types/[email protected] None 0 79.9 kB types
npm/@types/[email protected] None +1 3.84 MB types
npm/@types/[email protected] None +1 4.01 MB types
npm/@types/[email protected] None +1 3.84 MB types
npm/@types/[email protected] None 0 33.3 kB types
npm/@types/[email protected] None 0 196 kB types
npm/@types/[email protected] None +3 1.63 MB types
npm/[email protected] environment Transitive: filesystem, shell +10 2.66 MB ai
npm/[email protected] None 0 4.84 MB kossnocorp
npm/[email protected] environment, filesystem Transitive: eval, shell, unsafe +98 10.8 MB eslintbot
npm/[email protected] network Transitive: environment +20 927 kB auth0-oss
npm/[email protected] None 0 21.4 MB ericfennis
npm/[email protected] environment, eval, unsafe Transitive: filesystem +8 2.53 MB kriszyp
npm/[email protected] environment, filesystem, network, shell, unsafe +25 1.15 GB vercel-release-bot
npm/[email protected] environment, filesystem +3 374 kB ai
npm/[email protected] environment +3 4.62 MB gnoff
npm/[email protected] network 0 898 kB bluebill1049
npm/[email protected] None +2 1.54 MB timolins
npm/[email protected] Transitive: environment +5 169 kB chenckang
npm/[email protected] Transitive: environment +17 10.9 MB mhnpd
npm/[email protected] None +25 9.78 MB simmerer
npm/[email protected] environment +2 337 kB gnoff
npm/[email protected] environment +39 11 MB ckifer
npm/[email protected] None +2 969 kB dcas
npm/[email protected] None 0 18.1 kB thejameskyle
npm/[email protected] environment, filesystem Transitive: network, shell, unsafe +102 14.4 MB adamwathan
npm/[email protected] None 0 32 MB typescript-bot
npm/[email protected] None 0 252 kB emilkowalski
npm/[email protected] None 0 628 kB colinmcd94

🚮 Removed packages: npm/@differentialhq/[email protected], npm/@differentialhq/[email protected], npm/@inquirer/[email protected], npm/@ts-rest/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected]

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/[email protected]
  • 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/[email protected] or ignore all packages with @SocketSecurity ignore-all

@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