把这份指南发给你的 OpenClaw,它会引导你选择最适合的多 Agent 架构。
当用户把这份文档发给你时,请按照以下流程引导他们选择合适的多 Agent 架构配置。
| name: "Deploy Dev" | |
| run-name: "Deploy Dev" | |
| on: | |
| push: | |
| branches: | |
| - "master" | |
| - "main" | |
| env: |
| # System | |
| .DS_Store | |
| # IDE or eidtor | |
| .idea/ | |
| .code/ | |
| # Dependency directories | |
| node_modules/ |
Workplaces may enforce TOTP 2FA to be enabled Office 365 accounts, which require the Microsoft Authenticator app to be installed.
Regular TOTP applications (such as Aegis, Authy, or LastPass) cannot be used as Microsoft uses a proprietary scheme called phonefactor. Furthermore, the application requires Google Services Framework (GSF) to be installed (likely to provide device notifications), and will refuse to work when it is not present on the device.
Forunately, after the registration is complete, the underlying mechanism the app uses to generate TOTP codes is regular otpauth, and its secrets can be exported with a little bit of effort.
| wget https://www.python.org/ftp/python/2.7.18/Python-2.7.18.tgz | |
| tar xzf Python-2.7.18.tgz | |
| cd Python-2.7.18 | |
| sudo ./configure --enable-optimizations | |
| sudo make altinstall | |
| sudo ln -s "/usr/local/bin/python2.7" "/usr/bin/python" |
AWS 的数据传输类型大致有如下三类:
每个区域从 AWS 到 Internet 的数据传输费率都不一样,基本是 下行免费,上行收费,费率算总量
https://aws.amazon.com/cn/ec2/pricing/on-demand/ ---> 数据传输部分
| export interface Cache { | |
| addValue(key: any, value: any, ttl?: number): void | Promise<void>; | |
| getValue(key: any): Promise<T>; | |
| hasExpired(key: string): boolean | Promise<boolean>; | |
| deleteValue(key: string): T | Promise<T>; | |
| } | |
| export class MemoryCache extends Map implements Cache { | |
| addValue(key: any, value: any, ttl?: number) { | |
| if (typeof ttl !== 'number') { |
| export type Callback = (...args: any[]) => any; | |
| export class Callbacks { | |
| #callbacks: Map<string, Callback[]>; | |
| constructor() { | |
| this.#callbacks = new Map(); | |
| } | |
| add(name: string, fn: any) { |
| version: '2.1' | |
| services: | |
| kafka-ui: | |
| container_name: kafka-ui | |
| image: provectuslabs/kafka-ui:latest | |
| ports: | |
| - "9888:8080" | |
| environment: | |
| DYNAMIC_CONFIG_ENABLED: "true" |
| import crypto from 'crypto'; | |
| export default class AESCipher { | |
| #key: Buffer; | |
| constructor(key: string) { | |
| const hash = crypto.createHash('sha256'); | |
| hash.update(key); | |
| this.#key = hash.digest(); | |
| } |