YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
update cli
Louis Beaumontbdb399ab0069
diff --git a/screenpipe-js/cli/dist/index.js b/screenpipe-js/cli/dist/index.jsindex 87391fa42..92e4c8900 100755--- a/screenpipe-js/cli/dist/index.js+++ b/screenpipe-js/cli/dist/index.js@@ -12891,7 +12891,7 @@ var require_sbcs_data_generated = __commonJS((exports, module) => {csibm863: "cp863",cp864: {type: "_sbcs",- chars: `\x00\x01\x02\x03\x04\x05\x06\x07\b+ chars: `\x00\x01\x02\x03\x04\x05\x06\x07\b\t\v\f\r\x0E\x0F\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F !"#$٪&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~°·∙√▒─│┼┤┬├┴┐┌└┘β∞φ±½¼≈«»ﻷﻸ��ﻻﻼ� ﺂ£¤ﺄ��ﺎﺏﺕﺙ،ﺝﺡﺥ٠١٢٣٤٥٦٧٨٩ﻑ؛ﺱﺵﺹ؟¢ﺀﺁﺃﺅﻊﺋﺍﺑﺓﺗﺛﺟﺣﺧﺩﺫﺭﺯﺳﺷﺻﺿﻁﻅﻋﻏ¦¬÷×ﻉـﻓﻗﻛﻟﻣﻧﻫﻭﻯﻳﺽﻌﻎﻍﻡﹽّﻥﻩﻬﻰﻲﻐﻕﻵﻶﻝﻙﻱ■�`},ibm864: "cp864",@@ -13030,7 +13030,7 @@ var require_sbcs_data_generated = __commonJS((exports, module) => {},tcvn: {type: "_sbcs",- chars: `\x00ÚỤ\x03ỪỬỮ\x07\b+ chars: `\x00ÚỤ\x03ỪỬỮ\x07\b\t\v\f\r\x0E\x0F\x10ỨỰỲỶỸÝỴ\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÀẢÃÁẠẶẬÈẺẼÉẸỆÌỈĨÍỊÒỎÕÓỌỘỜỞỠỚỢÙỦŨ ĂÂÊÔƠƯĐăâêôơưđẶ̀̀̉̃́àảãáạẲằẳẵắẴẮẦẨẪẤỀặầẩẫấậèỂẻẽéẹềểễếệìỉỄẾỒĩíịòỔỏõóọồổỗốộờởỡớợùỖủũúụừửữứựỳỷỹýỵỐ`},georgianacademy: {@@ -13047,17 +13047,17 @@ var require_sbcs_data_generated = __commonJS((exports, module) => {},viscii: {type: "_sbcs",- chars: `\x00\x01Ẳ\x03\x04ẴẪ\x07\b+ chars: `\x00\x01Ẳ\x03\x04ẴẪ\x07\b\t\v\f\r\x0E\x0F\x10\x11\x12\x13Ỷ\x15\x16\x17\x18Ỹ\x1A\x1B\x1C\x1DỴ\x1F !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ẠẮẰẶẤẦẨẬẼẸẾỀỂỄỆỐỒỔỖỘỢỚỜỞỊỎỌỈỦŨỤỲÕắằặấầẩậẽẹếềểễệốồổỗỠƠộờởịỰỨỪỬơớƯÀÁÂÃẢĂẳẵÈÉÊẺÌÍĨỳĐứÒÓÔạỷừửÙÚỹỵÝỡưàáâãảăữẫèéêẻìíĩỉđựòóôõỏọụùúũủýợỮ`},iso646cn: {type: "_sbcs",- chars: `\x00\x01\x02\x03\x04\x05\x06\x07\b+ chars: `\x00\x01\x02\x03\x04\x05\x06\x07\b\t\v\f\r\x0E\x0F\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F !"#¥%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}‾��������������������������������������������������������������������������������������������������������������������������������`},iso646jp: {type: "_sbcs",- chars: `\x00\x01\x02\x03\x04\x05\x06\x07\b+ chars: `\x00\x01\x02\x03\x04\x05\x06\x07\b\t\v\f\r\x0E\x0F\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[¥]^_\`abcdefghijklmnopqrstuvwxyz{|}‾��������������������������������������������������������������������������������������������������������������������������������`},hproman8: {@@ -64123,8 +64123,8 @@ var throwOnStrictDeadlockError = (isSubprocess) => {This can be fixed by both sending a message and listening to incoming messages at the same time:const [receivedMessage] = await Promise.all([- ${getMethodName("getOneMessage", isSubprocess)},- ${getMethodName("sendMessage", isSubprocess, "message, {strict: true}")},+\t${getMethodName("getOneMessage", isSubprocess)},+\t${getMethodName("sendMessage", isSubprocess, "message, {strict: true}")},]);`);};var getStrictResponseError = (error, isSubprocess) => new Error(`${getMethodName("sendMessage", isSubprocess)} failed when sending an acknowledgment response to the ${getOtherProcessName(isSubprocess)}.`, { cause: error });@@ -69315,10 +69315,14 @@ var addComponentCommand = new Command().name("add").description("add components}const result = preFlightAdd(opts.cwd);if (result?.errors[ERRORS.MISSING_DIR_OR_EMPTY_PIPE]) {- logger.warn("you need to create a pipe first. run bunx @screenpipe/dev create or visit https://docs.screenpi.pe/docs/plugins for more information.");+ logger.warn("you need to create a pipe first. run bunx --bun @screenpipe/dev@latest pipe create or visit https://docs.screenpi.pe/docs/plugins for more information.");process.exit(1);}- await addComponents(components, { silent: opts.silent, cwd: opts.cwd, overwrite: opts.overwrite });+ await addComponents(components, {+ silent: opts.silent,+ cwd: opts.cwd,+ overwrite: opts.overwrite+ });} catch (error) {logger.break();handleError(error);diff --git a/screenpipe-js/cli/package.json b/screenpipe-js/cli/package.jsonindex 11d9cfde9..0dca700a9 100644--- a/screenpipe-js/cli/package.json+++ b/screenpipe-js/cli/package.json@@ -1,6 +1,6 @@{"name": "@screenpipe/dev",- "version": "1.1.5-beta.2",+ "version": "1.1.6","description": "screenpipe development CLI","type": "module","main": "dist/index.js",diff --git a/screenpipe-js/cli/src/commands/components/README.md b/screenpipe-js/cli/src/commands/components/README.mdindex 0422ce0c2..a019a1dcc 100644--- a/screenpipe-js/cli/src/commands/components/README.md+++ b/screenpipe-js/cli/src/commands/components/README.md@@ -9,19 +9,19 @@ a cli for adding screenpipe components to your project.use the `add` command to adds a component to your project and install all required dependencies.```bash-bunx screenpipe-cli add [component]+bunx --bun @screenpipe/dev@latest components add [component]```### Example```bash-bunx screenpipe-cli add use-health+bunx --bun @screenpipe/dev@latest components use-health```you can also run the command without any arguments to view a list of all available components:```bash-bunx screenpipe-cli add+bunx --bun @screenpipe/dev@latest components add```### Registrydiff --git a/screenpipe-js/cli/src/commands/components/commands/add/add.ts b/screenpipe-js/cli/src/commands/components/commands/add/add.tsindex 03faf3a04..be1511dda 100644--- a/screenpipe-js/cli/src/commands/components/commands/add/add.ts+++ b/screenpipe-js/cli/src/commands/components/commands/add/add.ts@@ -8,35 +8,45 @@ import { Command } from "commander";export const addComponentCommand = new Command().name("add").description("add components and dependencies to your pipe")- .argument('[components...]', 'List of components by name')- .option('--path <path>', 'The path to add the component to.')- .option('--silent', 'Mute output.', false)- .option('--overwrite', 'Overwrite existing files.', false)- .option('--cwd <cwd>', 'The working directory. Defaults to the current directory.', process.cwd())+ .argument("[components...]", "List of components by name")+ .option("--path <path>", "The path to add the component to.")+ .option("--silent", "Mute output.", false)+ .option("--overwrite", "Overwrite existing files.", false)+ .option(+ "--cwd <cwd>",+ "The working directory. Defaults to the current directory.",+ process.cwd()+ ).action(async (comps, opts) => {try {- let components+ let components;// If there are no components, ask the user which ones they want.if (!comps?.length) {- components = await promptForRegistryComponents()+ components = await promptForRegistryComponents();} else {- components = [comps]+ components = [comps];}// Before addig check a few things- const result = preFlightAdd(opts.cwd)+ const result = preFlightAdd(opts.cwd);// If the current directory is not a pipe, create oneif (result?.errors[ERRORS.MISSING_DIR_OR_EMPTY_PIPE]) {- logger.warn('you need to create a pipe first. run bunx @screenpipe/dev create or visit https://docs.screenpi.pe/docs/plugins for more information.')- process.exit(1)+ logger.warn(+ "you need to create a pipe first. run bunx --bun @screenpipe/dev@latest pipe create or visit https://docs.screenpi.pe/docs/plugins for more information."+ );+ process.exit(1);}// Add components to the directory- await addComponents(components, {silent: opts.silent, cwd: opts.cwd, overwrite: opts.overwrite})+ await addComponents(components, {+ silent: opts.silent,+ cwd: opts.cwd,+ overwrite: opts.overwrite,+ });} catch (error) {- logger.break()- handleError(error)+ logger.break();+ handleError(error);}- })+ });