Coder Social home page Coder Social logo

onepointai / onepoint Goto Github PK

View Code? Open in Web Editor NEW
299.0 6.0 39.0 10.32 MB

An AI assistant tool that integrates coding, writing, and reading functions. For better alternatives see https://monica.im/desktop

Home Page: https://www.1ptai.com/

License: MIT License

JavaScript 8.62% TypeScript 90.88% HTML 0.35% Shell 0.15%
ai electron chatgpt all-in-one macos toolkit react webscraper coding reading

onepoint's Introduction

onepoint

English | 中文

more than just chat

Onepoint is an open-source AI assistant based on Electron, designed to create the ultimate desktop productivity tool. Its initial goal was to develop a smart floating window similar to Apple's intelligent assistant that does not take up desktop space or system performance and can be quickly accessed through global hotkeys for user convenience.

With ChatGPT technology, users can continuously train onepoint to generate and reconstruct content with greater accuracy (onpoint), thereby improving efficiency. Onepoint currently supports various editing scenarios such as VSCode, Pages, Microsoft Word, Email etc, as well as reading scenarios like Safari and Chrome, achieving true full-scene intelligent coverage.


01 Features


Basical

  • Provide quick and concise functional access points that act globally and allow for immediate use.
  • Support one-click code writing and refactoring capabilities for multiple IDEs.
  • Translation and document writing assistant, supporting content summarization and output in various text editing scenarios.

Advanced

  • Reading assistant supporting content summarization and output on browsers such as Safari and Chrome.
  • Support for third-party device (such as Xiao Ai) voice output.
  • Personalized prompts and custom character presets.
  • Advanced question requesting parameter settings.

More

  • Plugin market support.
  • Local data storage and export.
  • Account balance inquiry.
  • Multi-language support.

02 Screenshots

Detail

Minimal Mode

History Mode

Code Assistant

Plugin List

Setting Page

Account Page

Custom Prompts



03 Getting Started

Please go to the official website to download and try out the tool.

If you encounter any bugs or have other feature requests, please feel free to submit an issue or related PR. You will not only receive our appreciation 👍 but also have the chance to receive a personalized avatar image, which will be gifted to your wallet for free in the form of an NFT (Detail in README of contributors).


04 Development

Welcome to submit a Pull Request (PR) or provide constructive feedback for us. Let's do something interesting together.

> git clone [email protected]:onepointAI/onepoint.git
> cd onepoint
> yarn
> yarn start

05 Vision & Roadmap

In the long term, we hope to develop onepoint into a personalized intelligent assistant tool that extends the capabilities of various editing and reading software. At the same time, we aim to enrich its functionality through scalable plugin mechanisms, making it not only a tool but also an entry point that can help or inspire you in front of your screen.

  • 🚗 High availability, fast access with good user experience, elegant interface and interaction, and high performance.
  • 💻 Personalized service, providing users with tuning mechanisms to customize their personal intelligent assistants.
  • 🔧 Efficient output, not to replace certain tools but to complement and enhance the capabilities of existing editors.
  • 📖 Reading assistance, summarizing and organizing reading scenarios to improve the speed of information acquisition.
  • 🎈 Creative play, providing plugin mechanisms as an entry point to meet various scenarios and providing an NFT ecosystem with a harmonious technical community atmosphere.
  • 🤖 Model Training, providing ability to train models with custom datasets(LLMs).

06 QA

Q1: Can onepoint be used on the Windows platform?

Basic abilities such as chatting and switching roles can be used normally, but others such as IDE code selection and application, and browser content acquisition require native capabilities (applescript is used on the Mac platform), which is not yet supported on Windows. In the future, vbscript will be considered to implement similar capabilities.

Q2: How to use code helpers or web scraping tools?

First, you need to click on the icon on the left to select and switch to the corresponding mode (such as code refactoring, summarization, etc.), and then select a piece of code in the IDE or focus the mouse on the current browser. Use command + k to globally call up onepoint. At this time, it will display whether to make changes to the application, choose yes.

Q3: What are the limitations of web scraping?

Currently, there is a character limit of 4000 for web page crawling (excluding line breaks, carriage returns, and HTML tags) to achieve faster speed. In the future, the ability to segment long web pages with context will be used to summarize their contents.


Contributors

License

MIT License

onepoint's People

Contributors

boxizen avatar peterdavehello avatar zcf0508 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

onepoint's Issues

贡献者须知

01 发现任务

image

仓库下有打了 help wanted 的 label 的 issue,是经过团队筛选认为当前优先级比较高、能够复现的 Bug 或是正招募贡献者参与的 feature,看官们可以点击该标签筛选出所有 help wanted 的 issue,当前优先级较高的 issue 主要围绕了如下所示的 用户体验项目基建特性支持三个维度,欢迎各位领取开发

image

02 提交PR

02-1 Fork 仓库

image

02-2 同步代码

建议在每次提交本地代码之前都从上游仓库同步最新代码,否则可能需要额外处理很多冲突。GitHub 提供了在页面上操作同步上游仓库的功能:

image

但推荐在 clone 仓库至本地后通过添加 upstream 的方式来关联远端上游仓库:

$ git remote add upstream https://github.com/onepointAI/onepoint.git
$ git remote -v
> origin    [email protected]:${USER}/${PROJECT}.git (fetch)
> origin    [email protected]:${USER}/${PROJECT}.git (push)
> upstream    https://github.com/onepointAI/onepoint.git (fetch)
> upstream    https://github.com/onepointAI/onepoint.git (push)

这样可直接本地通过如下方式将 upstream 官方仓库的改动同步到本地:

git fetch upstream
git rebase upstream/main

02-3 创建分支

同步官方仓库代码之后,请从 main 分支创建新的 feat/fix 分支:

git checkout main
git checkout -b feat/xxx

02-4 开发与提交

本地开发的时候注释与文字用英语哈,因为后续要做i18n,英语的话方便后面做映射~

本地开发完成后,需要执行 yarn formatyarn format-check 保证结果通过(你不执行husky也会在你commit前默认执行的嘿嘿)。

另 commit-msg 请遵循 Angular Commit 规范,如下:

feat:新功能
fix:修补 bug
docs:文档类变动
style:样式
refactor:重构
test:增加测试
chore:构建过程或辅助工具的变动

02-5 发起PR

在你主页 fork 的项目中发起 PR

03 开发者激励

提交 PR 后团队会跟进合并请求,当所有 Review 与 CI 通过后你将在项目主页上看到自己靓靓的照片 🎉

同时,项目方有发行OnePoint NFT,团队会在每个周期(项目初期约定为一周)定时统计开发者的贡献量,为其量身定制 AVATAR NFT 一枚并免费赠与,NFT 形象如下,根据你所提供的照片定制:

image

Project Infrastructure 项目基础建设

English

  • Platform support
    • MacOS
    • Windows
  • Support for NPM plugin marketplace, to expand user-defined third-party modules
  • Download and update feature
  • Performance optimization
    • Package volume(delete useless deps)
    • Loading speed
    • Memory usage
  • Support for i18n

中文

  • 平台支持
    • MacOS
    • Windows
  • 插件市场支持,用于扩展第三方自定义的插件模块
  • electron 下载与更新能力支持
  • 性能优化
    • 包体积(删除无用依赖)
    • 加载速度
    • 内存占用
  • i18n 支持

Basic Experience Promotion 基础体验提升

English

  • User experience promotion
  • Supplements to setting and detail page
  • Support for stream response
  • Custom Prompt and advanced request settings
  • Preservation of contextual content
  • Implements of tray
  • Improved response speed
  • Improved loading speed, cache image locally

中文

  • 用户交互体验提升
  • 设置与详情页补充
  • 流式响应支持与用户问答优化
  • 用户自定义Prompt以及精细化请求支持
  • 上下文问答内容保存,提升Chat的交互体验(能记住上下文)
  • 系统托盘实现
  • 提升问答响应时间
  • 提升软件加载速度,本地缓存静态图片

README of contributors

01 Discover Tasks

image

There are issues labeled help wanted in the repository, which have been screened by the team and deemed high-priority bugs that can be reproduced or features where contributors are actively sought.

Readers can click on this label to filter out all the help wanted issues. High-priority issues mainly revolve around three dimensions: user experience, project infrastructure, and feature support. We welcome everyone to take on these development tasks.

image

02 PR

02-1 Fork

image

02-2 Sync Code

It is recommended to sync the latest code from the upstream repository before each local code submission, otherwise there may be a lot of conflicts that need to be dealt with. GitHub provides a feature on the webpage to perform upstream syncing operations.

image

However, it's recommended to link the remote upstream repository by adding it after cloning the repository to the local machine, as follows:

$ git remote add upstream https://github.com/onepointAI/onepoint.git
$ git remote -v
> origin    [email protected]:${USER}/${PROJECT}.git (fetch)
> origin    [email protected]:${USER}/${PROJECT}.git (push)
> upstream    https://github.com/onepointAI/onepoint.git (fetch)
> upstream    https://github.com/onepointAI/onepoint.git (push)

In this way, you can directly sync the changes from the upstream repository to your local machine by using the following method:

git fetch upstream
git rebase upstream/main

02-3 Create Branch

Checkout a new feat/fix branch from main after syncing the code from remote repository:

git checkout main
git checkout -b feat/xxx

02-4 Commit

The translation of this sentence is: "After local development is completed, you need to execute yarn format and yarn format-check to ensure that the results pass (even if you don't execute husky, it will be executed by default before commit lol).

Also, please follow the Angular Commit Guidelines for commit messages, as follows:

feat:new feature
fix:fix bugs
docs:changes of document
style:style fix or add
refactor:refactor the code
test:add tests
chore:changes of cicd

02-5 Fianlly

Create a pull request in the project you forked on your homepage.

03 Incentives for developers

After submitting a PR, the team will follow up on the merge request. Once all reviews and CI are passed, you will see your beautiful photo on the project homepage 🎉

Additionally, the project issued OnePoint NFT, and the team will regularly (initially once a week) calculate the developer's contribution and tailor an AVATAR NFT for them, which will be given away for free. The NFT's appearance is shown below and will be customized based on the photo you provide:

image

还会更新吗

有问题想请教,但是看到一段时间没更新了。。

大佬,我这边windows电脑提示安装失败,以下是日志,麻烦您看下

2312> 2023-03-16 01:35:47> Program: Starting Squirrel Updater: --install . 2312> 2023-03-16 01:35:47> Program: Starting install, writing to C:\Users\eva\AppData\Local\SquirrelTemp 2312> 2023-03-16 01:35:47> Program: About to install to: C:\Users\eva\AppData\Local\Discord 2312> 2023-03-16 01:35:47> SingleGlobalInstance: Grabbing lockfile with timeout of 00:00:10 2312> 2023-03-16 01:35:47> CheckForUpdateImpl: Reading RELEASES file from C:\Users\eva\AppData\Local\SquirrelTemp 2312> 2023-03-16 01:35:47> CheckForUpdateImpl: Remote version 1.0.9011 differs from local 2312> 2023-03-16 01:35:47> CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch 2312> 2023-03-16 01:35:47> ApplyReleasesImpl: Writing files to app directory: C:\Users\eva\AppData\Local\Discord\app-1.0.9011 2312> 2023-03-16 01:35:51> ApplyReleasesImpl: Moving file C:\Users\eva\AppData\Local\Discord\app-1.0.9011\lib\net45\d3dcompiler_47.dll to C:\Users\eva\AppData\Local\Discord\app-1.0.9011\d3dcompiler_47.dll 2312> 2023-03-16 01:35:51> ApplyReleasesImpl: Moving file C:\Users\eva\AppData\Local\Discord\app-1.0.9011\lib\net45\chrome_100_percent.pak to C:\Users\eva\AppData\Local\Discord\app-1.0.9011\chrome_100_percent.pak 2312> 2023-03-16 01:35:51> ApplyReleasesImpl: Moving file C:\Users\eva\AppData\Local\Discord\app-1.0.9011\lib\net45\chrome_200_percent.pak to C:\Users\eva\AppData\Local\Discord\app-1.0.9011\chrome_200_percent.pak 2312> 2023-03-16 01:35:51> ApplyReleasesImpl: Moving file C:\Users\eva\AppData\Local\Discord\app-1.0.9011\lib\net45\app.ico to C:\Users\eva\AppData\Local\Discord\app-1.0.9011\app.ico 2312> 2023-03-16 01:35:51> ApplyReleasesImpl: Moving file C:\Users\eva\AppData\Local\Discord\app-1.0.9011\lib\net45\Discord.exe to C:\Users\eva\AppData\Local\Discord\app-1.0.9011\Discord.exe 2312> 2023-03-16 01:35:51> ApplyReleasesImpl: Moving file C:\Users\eva\AppData\Local\Discord\app-1.0.9011\lib\net45\ffmpeg.dll to C:\Users\eva\AppData\Local\Discord\app-1.0.9011\ffmpeg.dll 2312> 2023-03-16 01:35:51> ApplyReleasesImpl: Moving file C:\Users\eva\AppData\Local\Discord\app-1.0.9011\lib\net45\icudtl.dat to C:\Users\eva\AppData\Local\Discord\app-1.0.9011\icudtl.dat 2312> 2023-03-16 01:35:51> ApplyReleasesImpl: Moving file C:\Users\eva\AppData\Local\Discord\app-1.0.9011\lib\net45\installer.db to C:\Users\eva\AppData\Local\Discord\app-1.0.9011\installer.db 2312> 2023-03-16 01:35:51> ApplyReleasesImpl: Moving file C:\Users\eva\AppData\Local\Discord\app-1.0.9011\lib\net45\libEGL.dll to C:\Users\eva\AppData\Local\Discord\app-1.0.9011\libEGL.dll 2312> 2023-03-16 01:35:51> ApplyReleasesImpl: Moving file C:\Users\eva\AppData\Local\Discord\app-1.0.9011\lib\net45\libGLESv2.dll to C:\Users\eva\AppData\Local\Discord\app-1.0.9011\libGLESv2.dll 2312> 2023-03-16 01:35:51> ApplyReleasesImpl: Moving file C:\Users\eva\AppData\Local\Discord\app-1.0.9011\lib\net45\resources.pak to C:\Users\eva\AppData\Local\Discord\app-1.0.9011\resources.pak 2312> 2023-03-16 01:35:51> ApplyReleasesImpl: Moving file C:\Users\eva\AppData\Local\Discord\app-1.0.9011\lib\net45\snapshot_blob.bin to C:\Users\eva\AppData\Local\Discord\app-1.0.9011\snapshot_blob.bin 2312> 2023-03-16 01:35:51> ApplyReleasesImpl: Moving file C:\Users\eva\AppData\Local\Discord\app-1.0.9011\lib\net45\updater.node to C:\Users\eva\AppData\Local\Discord\app-1.0.9011\updater.node 2312> 2023-03-16 01:35:51> ApplyReleasesImpl: Moving file C:\Users\eva\AppData\Local\Discord\app-1.0.9011\lib\net45\vk_swiftshader.dll to C:\Users\eva\AppData\Local\Discord\app-1.0.9011\vk_swiftshader.dll 2312> 2023-03-16 01:35:51> ApplyReleasesImpl: Moving file C:\Users\eva\AppData\Local\Discord\app-1.0.9011\lib\net45\vulkan-1.dll to C:\Users\eva\AppData\Local\Discord\app-1.0.9011\vulkan-1.dll 2312> 2023-03-16 01:35:51> ApplyReleasesImpl: Moving file C:\Users\eva\AppData\Local\Discord\app-1.0.9011\lib\net45\vk_swiftshader_icd.json to C:\Users\eva\AppData\Local\Discord\app-1.0.9011\vk_swiftshader_icd.json 2312> 2023-03-16 01:35:51> ApplyReleasesImpl: Moving file C:\Users\eva\AppData\Local\Discord\app-1.0.9011\lib\net45\v8_context_snapshot.bin to C:\Users\eva\AppData\Local\Discord\app-1.0.9011\v8_context_snapshot.bin 2312> 2023-03-16 01:35:51> ApplyReleasesImpl: Squirrel Enabled Apps: [C:\Users\eva\AppData\Local\Discord\app-1.0.9011\Discord.exe] 2312> 2023-03-16 01:35:52> Utility: Process Started: C:\Users\eva\AppData\Local\Discord\app-1.0.9011\Discord.exe --squirrel-install 1.0.9011, pid 24604 2312> 2023-03-16 01:35:53> Utility: Received exitcode 0 from process C:\Users\eva\AppData\Local\Discord\app-1.0.9011\Discord.exe 2312> 2023-03-16 01:35:53> ApplyReleasesImpl: ran C:\Users\eva\AppData\Local\Discord\app-1.0.9011\Discord.exe, pid 12808 2312> 2023-03-16 01:35:53> ApplyReleasesImpl: Starting fixPinnedExecutables 2312> 2023-03-16 01:35:53> ApplyReleasesImpl: fixPinnedExecutables: newCurrentFolder: app-1.0.9011 2312> 2023-03-16 01:35:53> ApplyReleasesImpl: fixPinnedExecutables: enumerating path C:\Users\eva\AppData\Roaming\Microsoft\Windows\Start Menu failed: System.UnauthorizedAccessException: 对路径“C:\Users\eva\AppData\Roaming\Microsoft\Windows\Start Menu\程序”的访问被拒绝。 在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) 在 System.IO.FileSystemEnumerableIterator1.AddSearchableDirsToStack(SearchData localSearchData)
在 System.IO.FileSystemEnumerableIterator1.MoveNext() 在 System.Collections.Generic.List1..ctor(IEnumerable1 collection) 在 System.IO.DirectoryInfo.InternalGetFiles(String searchPattern, SearchOption searchOption) 在 System.IO.DirectoryInfo.GetFiles(String searchPattern, SearchOption searchOption) 在 Squirrel.UpdateManager.ApplyReleasesImpl.fixPinnedExecutables(SemanticVersion newCurrentVersion) 2312> 2023-03-16 01:35:53> ApplyReleasesImpl: Updating shortcut C:\Users\eva\Desktop\Discord.lnk 2312> 2023-03-16 01:35:53> ApplyReleasesImpl: Fixing up tray icons 2312> 2023-03-16 01:35:53> ApplyReleasesImpl: cleanDeadVersions: for version 1.0.9011 2312> 2023-03-16 01:35:53> ApplyReleasesImpl: cleanDeadVersions: exclude current version folder app-1.0.9011 2023-04-18 09:34:46> Program: Starting Squirrel Updater: --install . 2023-04-18 09:34:46> Program: Starting install, writing to C:\Users\eva\AppData\Local\SquirrelTemp 2023-04-18 09:34:46> Program: About to install to: C:\Users\eva\AppData\Local\slack 2023-04-18 09:34:46> CheckForUpdateImpl: Couldn't write out staging user ID, this user probably shouldn't get beta anything: System.IO.DirectoryNotFoundException: 未能找到路径“C:\Users\eva\AppData\Local\slack\packages\.betaId”的一部分。 在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) 在 System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) 在 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) 在 System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost) 在 System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost) 在 System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost) 在 System.IO.File.WriteAllText(String path, String contents, Encoding encoding) 在 Squirrel.UpdateManager.CheckForUpdateImpl.getOrCreateStagedUserId() 2023-04-18 09:34:46> CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: 未能找到路径“C:\Users\eva\AppData\Local\slack\packages\RELEASES”的一部分。 在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) 在 System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) 在 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) 在 Squirrel.Utility.LoadLocalReleases(String localReleaseFile) 在 Squirrel.UpdateManager.CheckForUpdateImpl.<CheckForUpdate>d__2.MoveNext() 2023-04-18 09:34:46> CheckForUpdateImpl: Reading RELEASES file from C:\Users\eva\AppData\Local\SquirrelTemp 2023-04-18 09:34:46> CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch 2023-04-18 09:34:46> ApplyReleasesImpl: Writing files to app directory: C:\Users\eva\AppData\Local\slack\app-4.31.155 2023-04-18 09:34:48> LogHost: Rigging execution stub for lib/net45/slack_ExecutionStub.exe to C:\Users\eva\AppData\Local\slack\slack.exe 2023-04-18 09:34:49> ApplyReleasesImpl: Squirrel Enabled Apps: [C:\Users\eva\AppData\Local\slack\app-4.31.155\slack.exe] 2023-04-18 09:34:49> ApplyReleasesImpl: Starting fixPinnedExecutables 2023-04-18 09:34:49> ApplyReleasesImpl: Examining Pin: ChatGPT Next Web.lnk 2023-04-18 09:34:49> ApplyReleasesImpl: Examining Pin: Chat酱.lnk 2023-04-18 09:34:49> ApplyReleasesImpl: Examining Pin: File Explorer.lnk 2023-04-18 09:34:49> ApplyReleasesImpl: Examining Pin: Microsoft Edge.lnk 2023-04-18 09:34:49> ApplyReleasesImpl: Examining Pin: OneNote.lnk 2023-04-18 09:34:49> ApplyReleasesImpl: Examining Pin: Outlook.lnk 2023-04-18 09:34:49> ApplyReleasesImpl: Fixing up tray icons 2023-04-18 09:34:49> ApplyReleasesImpl: cleanDeadVersions: for version 4.31.155 2023-04-18 09:34:49> ApplyReleasesImpl: cleanDeadVersions: exclude folder app-4.31.155

New Feature Development 新特性研发

English

  • Support for picture interaction, and file module
  • Scrapping and summarize of web content
  • Support for siri-tts
  • Support for typing effect in the editor or IDE
  • NFT market
  • Custom Model Training

中文

  • 图片交互,文件模块支持
  • 网页内容提取与总结
  • siri-tts 语音输出插件支持
  • 实现IDE与其他文本编辑器的打字效果
  • NFT市场
  • 自定义模型训练

read ECONNRESET

image

我下载后,只配置了key。其他还需要设置什么,使用一直提示 read ECONNRESET

read ECONNRESET

设置api key, 输入消息后 , 报错 read ECONNRESET

UnhandledPromiseRejectionWarning

/src/electron/apis/prompt.ts

(node:58102) UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_ARG_TYPE]: The "chunk" argument must be of type string or an instance of Buffer or Uint8Array. Received an instance of Error
    at new NodeError (node:internal/errors:399:5)
    at write_ (node:_http_outgoing:862:11)
    at ServerResponse.write (node:_http_outgoing:827:15)
    at ServerResponse.write (/Users/*/Desktop/Projects/onepoint/.webpack/main/index.js:14265:18)
    at _callee$ (/Users/*/Desktop/Projects/onepoint/.webpack/main/index.js:80110:15)
    at tryCatch (/Users/*/Desktop/Projects/onepoint/.webpack/main/index.js:80013:1357)
    at Generator.<anonymous> (/Users/*/Desktop/Projects/onepoint/.webpack/main/index.js:80013:4235)
    at Generator.throw (/Users/*/Desktop/Projects/onepoint/.webpack/main/index.js:80013:2208)
    at asyncGeneratorStep (/Users/*/Desktop/Projects/onepoint/.webpack/main/index.js:82113:24)
    at _throw (/Users/*/Desktop/Projects/onepoint/.webpack/main/index.js:82135:9)
(Use `Electron --trace-warnings ...` to show where the warning was created)
(node:61451) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)

good job

搞的非常不错,可以接入Python完成文档或者ppt的制作工作

yarn start 报错,无法启动窗口

启动后弹出一瞬间窗口后关闭,命令行报错:

onepoint listening on port 4000!
[61056:1114/112028.790:ERROR:CONSOLE(1)] "Uncaught (in promise) TypeError: Failed to fetch", source: devtools://devtools/bundled/panels/elements/elements.js (1)
[63372:1114/112055.196:ERROR:ssl_client_socket_impl.cc(992)] handshake failed; returned -1, SSL error code 1, net_error -101
[63372:1114/112058.542:ERROR:ssl_client_socket_impl.cc(992)] handshake failed; returned -1, SSL error code 1, net_error -101

9000端口报错:

asset index.js 3.82 MiB [emitted] (name: main) 1 related asset
asset native_modules/electron-log-preload.js 2.02 KiB [emitted] (auxiliary name: main)
runtime modules 2.25 KiB 7 modules
modules by path ./node_modules/ 3.1 MiB
  javascript modules 2.56 MiB 570 modules
  json modules 552 KiB 21 modules
modules by path ./src/ 220 KiB
  modules by path ./src/electron/ 212 KiB 26 modules
  modules by path ./src/app/*.ts 2.39 KiB 2 modules
  modules by path ./src/locales/*.json 5.06 KiB 2 modules
  ./src/i18n.ts 687 bytes [built] [code generated]
  ./src/@types/index.ts 289 bytes [built] [code generated]
+ 22 modules

WARNING in ./src/electron/client/store.ts 23:19-30
export 'map' (imported as 'prompts') was not found in '../prompt/prompts.json' (possible exports: 0, 1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 2, 3, 4, 5, 6, 7, 8, 9)
 @ ./src/electron/server.ts 15:0-62 27:13-28 30:15-26
 @ ./src/electron/main.ts 14:0-19

webpack 5.79.0 compiled with 1 warning in 5483 ms

Issue after yarn start

I can't proceed and showed this issue up.

An unhandled rejection has occurred inside Forge:
Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
at getElectronPath (E:\CHATGPT-AI-Marketing-Tools-CMD\onepoint\node_modules\electron\index.js:17:11)
at Object. (E:\CHATGPT-AI-Marketing-Tools-CMD\onepoint\node_modules\electron\index.js:21:18)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Module._load (node:internal/modules/cjs/loader:1023:12)
at Module.require (node:internal/modules/cjs/loader:1235:19)
at require (node:internal/modules/helpers:176:18)
at locateElectronExecutable (E:\CHATGPT-AI-Marketing-Tools-CMD\onepoint\node_modules@electron-forge\core\dist\util\electron-executable.js:34:28)
at async forgeSpawn (E:\CHATGPT-AI-Marketing-Tools-CMD\onepoint\node_modules@electron-forge\core\dist\api\start.js:104:32)
at async forgeSpawnWrapper (E:\CHATGPT-AI-Marketing-Tools-CMD\onepoint\node_modules@electron-forge\core\dist\api\start.js:138:25)
at async exports.default (E:\CHATGPT-AI-Marketing-Tools-CMD\onepoint\node_modules@electron-forge\core\dist\api\start.js:170:21)
at async E:\CHATGPT-AI-Marketing-Tools-CMD\onepoint\node_modules@electron-forge\cli\dist\electron-forge-start.js:57:21
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.