### Install copy-anything Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/copy-anything/README.md Install the copy-anything package using npm. ```bash npm i copy-anything ``` -------------------------------- ### Install speakingurl with Component Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/speakingurl/README.md Install the speakingurl package using Component. ```shell component install pid/speakingurl ``` -------------------------------- ### Install MiniSearch with npm Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/minisearch/README.md Install the MiniSearch library using npm. ```bash npm install minisearch ``` -------------------------------- ### Install oniguruma-to-es Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/oniguruma-to-es/README.md Install the library using npm. ```sh npm install oniguruma-to-es ``` -------------------------------- ### Install MiniSearch with yarn Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/minisearch/README.md Install the MiniSearch library using yarn. ```bash yarn add minisearch ``` -------------------------------- ### Install speakingurl with yarn Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/speakingurl/README.md Install the speakingurl package using yarn. ```shell yarn add speakingurl --dev ``` -------------------------------- ### Install Next.js SWC Plugin Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/superjson/README.md Install the next-superjson-plugin using yarn. ```sh yarn add next-superjson-plugin ``` -------------------------------- ### Basic Focus Trap Initialization and Control Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/focus-trap/README.md Shows how to create a focus trap, set up activation and deactivation event listeners, and attach event listeners to buttons for manual control. This example uses the default behavior demo setup. ```javascript const { createFocusTrap } = require('../../index'); const container = document.getElementById('default'); const focusTrap = createFocusTrap('#default', { onActivate: () => container.classList.add('is-active'), onDeactivate: () => container.classList.remove('is-active'), }); document .getElementById('activate-default') .addEventListener('click', focusTrap.activate); document .getElementById('deactivate-default') .addEventListener('click', focusTrap.deactivate); ``` -------------------------------- ### Install unist-util-visit with npm Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/unist-util-visit/readme.md Install the unist-util-visit package using npm for Node.js environments. ```sh npm install unist-util-visit ``` -------------------------------- ### Install @jridgewell/sourcemap-codec Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/@jridgewell/sourcemap-codec/README.md Install the package using npm. ```bash npm install @jridgewell/sourcemap-codec ``` -------------------------------- ### Install @vueuse/integrations Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/@vueuse/integrations/README.md Install the @vueuse/integrations package using npm. ```bash npm i @vueuse/integrations ``` -------------------------------- ### Install mdast-util-to-hast Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/mdast-util-to-hast/readme.md Install the package using npm or yarn. ```bash npm install mdast-util-to-hast ``` -------------------------------- ### Install zwitch with npm Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/zwitch/readme.md Install the zwitch package using npm for Node.js environments. ```sh npm install zwitch ``` -------------------------------- ### Install Regex+ using npm Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/regex/README.md Install the Regex+ library using npm. This command downloads and installs the package into your project's node_modules directory. ```sh npm install regex ``` -------------------------------- ### Install Project Dependencies Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/mark.js/CONTRIBUTING.md Run this command after cloning or downloading the repository to install all necessary development dependencies. ```bash $ npm install ``` -------------------------------- ### Install speakingurl with Bower Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/speakingurl/README.md Install the speakingurl package using Bower. ```shell bower install --save speakingurl ``` -------------------------------- ### Install Development Dependencies Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/mitt/README.md Install the necessary tools and dependencies for development using npm. ```bash npm install ``` -------------------------------- ### Install Next.js Babel Plugin Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/superjson/README.md Install the babel-plugin-superjson-next using yarn. ```sh yarn add babel-plugin-superjson-next ``` -------------------------------- ### Install Algolia Autocomplete Preset Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/@algolia/autocomplete-preset-algolia/README.md Install the @algolia/autocomplete-preset-algolia package using Yarn or npm. ```sh yarn add @algolia/autocomplete-preset-algolia # or npm install @algolia/autocomplete-preset-algolia ``` -------------------------------- ### Install estree-walker Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/estree-walker/README.md Install the estree-walker package using npm. ```bash npm i estree-walker ``` -------------------------------- ### Install Project Dependencies Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs/en/sop/setup.md Upgrade pip and install all required Python packages listed in requirements.txt. ```bash pip install --upgrade pip pip install -r requirements.txt ``` -------------------------------- ### Install @algolia/client-insights with Yarn Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/@algolia/client-insights/README.md Install the client using Yarn. Ensure you are using version 5.52.1. ```bash yarn add @algolia/client-insights@5.52.1 ``` -------------------------------- ### Install html-void-elements with npm Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/html-void-elements/readme.md Install the package using npm for Node.js environments. ```sh npm install html-void-elements ``` -------------------------------- ### Install Web Bluetooth Types Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/@types/web-bluetooth/README.md Install the type definitions for the Web Bluetooth API using npm. ```bash npm install --save @types/web-bluetooth ``` -------------------------------- ### Install @docsearch/js Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/@docsearch/js/README.md Install the @docsearch/js package using either Yarn or npm. ```sh yarn add @docsearch/js@3 # or npm install @docsearch/js@3 ``` -------------------------------- ### Install unist-util-is with npm Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/unist-util-is/readme.md Install the unist-util-is package using npm for Node.js environments. ```sh npm install unist-util-is ``` -------------------------------- ### Install perfect-debounce Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/perfect-debounce/README.md Install the perfect-debounce package using npm, yarn, or pnpm. ```sh # npm npm install perfect-debounce # yarn yarn add perfect-debounce # pnpm pnpm add perfect-debounce ``` -------------------------------- ### Install unist-util-visit-parents with npm Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/unist-util-visit-parents/readme.md Install the package using npm for Node.js environments (version 16+). ```sh npm install unist-util-visit-parents ``` -------------------------------- ### Install @algolia/client-insights with pnpm Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/@algolia/client-insights/README.md Install the client using pnpm. Ensure you are using version 5.52.1. ```bash pnpm add @algolia/client-insights@5.52.1 ``` -------------------------------- ### Install @algolia/client-insights with npm Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/@algolia/client-insights/README.md Install the client using npm. Ensure you are using version 5.52.1. ```bash npm install @algolia/client-insights@5.52.1 ``` -------------------------------- ### Install @babel/helper-string-parser with npm Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/@babel/helper-string-parser/README.md Install the package using npm. This command adds the package as a dependency to your project. ```sh npm install --save @babel/helper-string-parser ``` -------------------------------- ### Install micromark-util-sanitize-uri with npm Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/micromark-util-sanitize-uri/readme.md Install the package using npm for Node.js environments. ```sh npm install micromark-util-sanitize-uri ``` -------------------------------- ### Install @types/unist Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/@types/unist/README.md Install the unist type definitions using npm. ```bash npm install --save @types/unist ``` -------------------------------- ### Install entities Package Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/entities/readme.md Install the 'entities' package using npm. This is the first step before using the library in your project. ```bash npm install entities ``` -------------------------------- ### Install @algolia/client-query-suggestions with pnpm Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/@algolia/client-query-suggestions/README.md Install the package using pnpm. This is an alternative package manager for JavaScript. ```bash pnpm add @algolia/client-query-suggestions@5.52.1 ``` -------------------------------- ### Install Algolia Autocomplete Core Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/@algolia/autocomplete-core/README.md Install the @algolia/autocomplete-core package using either yarn or npm. ```sh yarn add @algolia/autocomplete-core # or npm install @algolia/autocomplete-core ``` -------------------------------- ### Install hast-util-to-html with npm Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/hast-util-to-html/readme.md Install the hast-util-to-html package using npm for Node.js environments. ```sh npm install hast-util-to-html ``` -------------------------------- ### Install unist-util-stringify-position with npm Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/unist-util-stringify-position/readme.md Install the package in Node.js version 16 or later using npm. ```sh npm install unist-util-stringify-position ``` -------------------------------- ### Install speakingurl with npm Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/speakingurl/README.md Install the speakingurl package using npm for Node.js projects. ```shell npm install speakingurl --save ``` -------------------------------- ### Install @babel/helper-string-parser with yarn Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/@babel/helper-string-parser/README.md Install the package using yarn. This command adds the package as a dependency to your project. ```sh yarn add @babel/helper-string-parser ``` -------------------------------- ### Install is-what with npm Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/is-what/README.md Install the 'is-what' package using npm for your Node.js project. ```bash npm i is-what ``` -------------------------------- ### Install stringify-entities with npm Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/stringify-entities/readme.md Install the stringify-entities package using npm for Node.js environments. ```sh npm install stringify-entities ``` -------------------------------- ### Install @algolia/recommend with pnpm Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/@algolia/recommend/README.md Install the @algolia/recommend package using pnpm. This is an alternative package manager for JavaScript. ```bash pnpm add @algolia/recommend@5.52.1 ``` -------------------------------- ### Install Mitt using npm Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/mitt/README.md Install the mitt package using npm for use in your project. ```sh npm install --save mitt ``` -------------------------------- ### Install @algolia/client-abtesting with npm Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/@algolia/client-abtesting/README.md Install the @algolia/client-abtesting package using npm. This is a standard package manager for Node.js projects. ```bash npm install @algolia/client-abtesting@5.52.1 ``` -------------------------------- ### Install @algolia/client-query-suggestions with npm Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/@algolia/client-query-suggestions/README.md Install the package using npm. This is another common method for managing JavaScript dependencies. ```bash npm install @algolia/client-query-suggestions@5.52.1 ``` -------------------------------- ### Install magic-string with npm Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/magic-string/README.md Install the magic-string package for use in Node.js environments using npm. ```bash npm i magic-string ``` -------------------------------- ### Create and Use VFile Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/vfile/readme.md Demonstrates creating a VFile instance, accessing its properties like path and dirname, modifying basename, and observing history. It also shows how to attach a message with location, source, and rule ID. ```js import {VFile} from 'vfile' const file = new VFile({ path: '~/example.txt', value: 'Alpha *braavo* charlie.' }) console.log(file.path) // => '~/example.txt' console.log(file.dirname) // => '~' file.extname = '.md' console.log(file.basename) // => 'example.md' file.basename = 'index.text' console.log(file.history) // => ['~/example.txt', '~/example.md', '~/index.text'] file.message('Unexpected unknown word `braavo`, did you mean `bravo`?', { place: {line: 1, column: 8}, source: 'spell', ruleId: 'typo' }) console.log(file.messages) ``` -------------------------------- ### Get position, start, and end points of a Markdown AST Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/unist-util-position/readme.md Demonstrates how to use `position`, `pointStart`, and `pointEnd` to get positional information from a Markdown AST generated by `mdast-util-from-markdown`. ```js import {fromMarkdown} from 'mdast-util-from-markdown' import {pointEnd, pointStart, position} from 'unist-util-position' const tree = fromMarkdown('# foo\n\n* bar\n') console.log(position(tree)) console.log(pointStart(tree)) console.log(pointEnd(tree)) ``` ```js {start: {line: 1, column: 1, offset: 0}, end: {line: 4, column: 1, offset: 13}} {line: 1, column: 1, offset: 0} {line: 4, column: 1, offset: 13} ``` -------------------------------- ### Install micromark-util-types with esm.sh Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/micromark-util-types/readme.md Install the package using esm.sh for Deno. This allows importing types directly. ```js import type {Point, /* … */} from 'https://esm.sh/micromark-util-types@1' ``` -------------------------------- ### pointStart(node) Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/unist-util-position/readme.md Get the starting point of a given node. Returns the point if valid, otherwise undefined. ```APIDOC ## pointStart(node) ### Description Get the starting point of `node`. ### Parameters #### Path Parameters * **node** (`Node`) - Description: node ### Returns - **Point** (`Point` or `undefined`) - Description: Point, if valid ``` -------------------------------- ### Create VFile Instances Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/vfile/readme.md Demonstrates various ways to instantiate a VFile, including with no options, a string, a Uint8Array, a path object, and an object with custom properties. ```js new VFile() new VFile('console.log("alpha");') new VFile(new Uint8Array([0x65, 0x78, 0x69, 0x74, 0x20, 0x31])) new VFile({path: path.join('path', 'to', 'readme.md')}) new VFile({stem: 'readme', extname: '.md', dirname: path.join('path', 'to')}) new VFile({other: 'properties', are: 'copied', ov: {e: 'r'}}) ``` -------------------------------- ### pointStart(node) Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/unist-util-position/readme.md Gets the start position of a node. This is useful when you need to know where a node begins in the source. ```APIDOC ## pointStart(node) ### Description Gets the start position of a node. This is useful when you need to know where a node begins in the source. ### Parameters #### Path Parameters - **node** (Node) - Required - The unist node to get the start position from. ### Returns - (Point) - The start point of the node. ``` -------------------------------- ### Install focus-trap via npm Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/focus-trap/README.md Install the focus-trap package using npm. This is the standard method for Node.js projects. ```bash npm install focus-trap ``` -------------------------------- ### Install @babel/parser with yarn Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/@babel/parser/README.md Use this command to install @babel/parser as a development dependency using yarn. ```sh yarn add @babel/parser --dev ``` -------------------------------- ### Install @algolia/client-query-suggestions with Yarn Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/@algolia/client-query-suggestions/README.md Install the package using Yarn. This is a common method for managing JavaScript dependencies. ```bash yarn add @algolia/client-query-suggestions@5.52.1 ``` -------------------------------- ### Create and Use a Hookable Instance Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/hookable/README.md Demonstrates creating a hookable instance and registering/calling a simple hook. ```javascript import { createHooks } from 'hookable' // Create a hookable instance const hooks = createHooks() // Hook on 'hello' hooks.hook('hello', () => { console.log('Hello World' )}) // Call 'hello' hook hooks.callHook('hello') ``` -------------------------------- ### Install @docsearch/css with Yarn or npm Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/@docsearch/css/README.md Install the @docsearch/css package using either Yarn or npm for project integration. ```bash yarn add @docsearch/css@3 # or npm install @docsearch/css@3 ``` -------------------------------- ### Setup Python Virtual Environment Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs/en/sop/setup.md Create and activate a dedicated Python virtual environment for the project dependencies. ```bash python3 -m venv venv source venv/bin/activate ``` -------------------------------- ### Basic JavaScript Usage Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/mitt/README.md Demonstrates how to create an emitter, listen for specific and all events, emit events, and manage handler references for listening and unlistening. ```javascript import mitt from 'mitt' const emitter = mitt() // listen to an event emitter.on('foo', e => console.log('foo', e) ) // listen to all events emitter.on('*', (type, e) => console.log(type, e) ) // fire an event emitter.emit('foo', { a: 'b' }) // clearing all events emitter.all.clear() // working with handler references: function onFoo() {} emitter.on('foo', onFoo) // listen emitter.off('foo', onFoo) // unlisten ``` -------------------------------- ### Install unist-util-position with npm Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/unist-util-position/readme.md Install the package for use in Node.js environments. Requires Node.js version 16 or later. ```sh npm install unist-util-position ``` -------------------------------- ### Basic Vue App Initialization Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/@vue/runtime-dom/README.md Demonstrates how to create a simple Vue application and mount it to the DOM using `createApp` and `h` from `@vue/runtime-dom`. This is the fundamental setup for any Vue application targeting the browser. ```javascript import { h, createApp } from '@vue/runtime-dom' const RootComponent = { render() { return h('div', 'hello world') }, } createApp(RootComponent).mount('#app') ``` -------------------------------- ### Build and Compile Project Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/mark.js/CONTRIBUTING.md Execute this command to lint, test, compile the project, and generate API documentation. Ensure this is run after making code changes. ```bash $ npm run build ``` -------------------------------- ### Initialize and Mark Text with mark.js Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/mark.js/test/manual.html Loads an HTML fixture, initializes mark.js, marks 'lorem' with debug and done callbacks, and logs performance. ```javascript console.log(Mark); const $ctx = $("#context"); $ctx.load("fixtures/basic/main.html", function() { let start = new Date(), instance = new Mark($ctx.get()); console.log(instance); instance.mark("lorem", { debug: true, done: function(counter) { const end = new Date(), time = end.getTime() - start.getTime(); console.log("Time elapsed: " + time + "ms.", "Elements: " + counter); setTimeout(function() { start = new Date(); instance.unmark({ debug: true, done: function() { const end = new Date(), time = end.getTime() - start.getTime(); console.log("Time elapsed: " + time + "ms."); } }); }, 2000); } }); }); ``` -------------------------------- ### Install CSSType with npm Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/csstype/README.md Installs the CSSType package using npm. ```sh $ npm install csstype ``` -------------------------------- ### Install micromark-util-symbol with npm Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/micromark-util-symbol/readme.md Install the package using npm for Node.js environments. ```sh npm install micromark-util-symbol ``` -------------------------------- ### Create and Log a VFileMessage Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/vfile-message/readme.md Demonstrates how to create a new VFileMessage instance with a reason and options, then log it to the console. ```js import {VFileMessage} from 'vfile-message' const message = new VFileMessage( 'Unexpected unknown word `braavo`, did you mean `bravo`?', {place: {column: 8, line: 1}, ruleId: 'typo', source: 'spell'} ) console.log(message) ``` -------------------------------- ### Install micromark-util-encode with npm Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/micromark-util-encode/readme.md Install the package using npm for Node.js environments. ```sh npm install micromark-util-encode ``` -------------------------------- ### Install hast-util-whitespace with npm Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/hast-util-whitespace/readme.md Install the package using npm for Node.js environments. ```sh npm install hast-util-whitespace ``` -------------------------------- ### Install character-entities-legacy with npm Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/character-entities-legacy/readme.md Install the package using npm for Node.js environments. ```sh npm install character-entities-legacy ``` -------------------------------- ### WebSocket Server Example Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/birpc/README.md Illustrates setting up a birpc server with WebSocket connections. Handles incoming messages and defines server-side functions. ```typescript import type { ClientFunctions } from './types' import { WebSocketServer } from 'ws' const serverFunctions: ServerFunctions = { hi(name: string) { return `Hi ${name} from server` } } const wss = new WebSocketServer() wss.on('connection', (ws) => { const rpc = createBirpc( serverFunctions, { post: data => ws.send(data), on: fn => ws.on('message', fn), serialize: v => JSON.stringify(v), deserialize: v => JSON.parse(v), }, ) await rpc.hey('Server') // Hey Server from client }) ``` -------------------------------- ### Install source-map-js with npm Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/source-map-js/README.md Install the source-map-js library using npm for Node.js projects. ```bash $ npm install source-map-js ``` -------------------------------- ### WebSocket Client Example Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/birpc/README.md Demonstrates how to set up a birpc client using WebSocket. Requires custom serializers/deserializers. ```typescript import type { ServerFunctions } from './types' const ws = new WebSocket('ws://url') const clientFunctions: ClientFunctions = { hey(name: string) { return `Hey ${name} from client` } } const rpc = createBirpc( clientFunctions, { post: data => ws.send(data), on: fn => ws.on('message', fn), // these are required when using WebSocket serialize: v => JSON.stringify(v), deserialize: v => JSON.parse(v), }, ) await rpc.hi('Client') // Hi Client from server ``` -------------------------------- ### Install vfile-message with npm Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/vfile-message/readme.md Install the vfile-message package using npm for Node.js environments. ```sh npm install vfile-message ``` -------------------------------- ### Navigate to Project Directory Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/mitt/README.md Change the current directory to the cloned mitt repository. ```bash cd mitt ``` -------------------------------- ### Use Mitt UMD build from unpkg Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/mitt/README.md Include the mitt UMD build from a CDN like unpkg in an HTML file. The library will be available on `window.mitt`. ```html ``` -------------------------------- ### Install regex-recursion via npm Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/regex-recursion/README.md Install the necessary packages for using regex-recursion in your project. ```sh npm install regex regex-recursion ``` -------------------------------- ### Install dequal with npm Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/dequal/readme.md Install the dequal package using npm for use in your project. ```bash $ npm install --save dequal ``` -------------------------------- ### Install @babel/types with yarn Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/@babel/types/README.md Install the @babel/types package as a development dependency using yarn. ```sh yarn add @babel/types --dev ``` -------------------------------- ### Install @babel/types with npm Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/@babel/types/README.md Install the @babel/types package as a development dependency using npm. ```sh npm install --save-dev @babel/types ``` -------------------------------- ### Install Tabbable via npm Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/tabbable/README.md Install the tabbable library using npm. A polyfill for CSS.escape might be needed for very old browsers with radio buttons containing special characters in their name attributes. ```bash npm install tabbable ``` -------------------------------- ### Clone Repository and Navigate Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs/en/sop/setup.md Clone the AI Workflow Orchestrator repository and change the directory to the project root. ```bash git clone https://github.com/kiza101288/ai-workflow-orchestrator.git cd ai-workflow-orchestrator ``` -------------------------------- ### Install @babel/parser with npm Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/@babel/parser/README.md Use this command to install @babel/parser as a development dependency using npm. ```sh npm install --save-dev @babel/parser ``` -------------------------------- ### Basic AST Traversal with unist-util-visit Source: https://github.com/kizabgd123/ai-workflow-orchestrator/blob/main/docs-site/node_modules/unist-util-visit/readme.md Demonstrates how to use `visit` to traverse a Markdown AST and log node values and their parent types. This is useful for inspecting or transforming AST structures. ```javascript import {fromMarkdown} from 'mdast-util-from-markdown' import {visit} from 'unist-util-visit' const tree = fromMarkdown('Some *emphasis*, **strong**, and `code`.') visit(tree, 'text', function (node, index, parent) { console.log([node.value, parent ? parent.type : index]) }) ``` ```js [ 'Some ', 'paragraph' ] [ 'emphasis', 'emphasis' ] [ ', ', 'paragraph' ] [ 'strong', 'strong' ] [ ', and ', 'paragraph' ] [ '.', 'paragraph' ] ```