Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

382 B
Raw Blame
// Safari invokes this only after the user selects Cindy in the share sheet.
// Keep the page untouched. Include the selected passage, never form fields.
var ExtensionPreprocessingJS = {
  run: function (args) {
    args.completionFunction({
      title: document.title || '',
      url: document.location.href,
      selection: String(window.getSelection() || ''),
    });
  },
};