orc-ai 0.1.58 → 0.1.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/README.md +31 -7
  2. package/dist/index.js +911 -866
  3. package/dist/skills/orc-platform/references/packages.md +14 -2
  4. package/dist/skills/orc-platform/references/scratchpads.md +18 -0
  5. package/dist/skills/orc-platform/references/work.md +4 -2
  6. package/dist/web/assets/{Agents-D27cFUEA.js → Agents-DBN_IKhQ.js} +1 -1
  7. package/dist/web/assets/Attention-Col9bpvb.js +2 -0
  8. package/dist/web/assets/{Audit-B_gGOPkj.js → Audit-DDhPMP5V.js} +1 -1
  9. package/dist/web/assets/{ChatUiRenderer-BPpURuVx.js → ChatUiRenderer-Bflvv2nP.js} +1 -1
  10. package/dist/web/assets/{ConfirmDialog-C2YawyrD.js → ConfirmDialog-DOSTWblx.js} +1 -1
  11. package/dist/web/assets/{Dashboard-BRZnk9jo.js → Dashboard-CXREcWFQ.js} +1 -1
  12. package/dist/web/assets/{DocumentWorkspace-CWds93dV.js → DocumentWorkspace-DVnU3uMP.js} +1 -1
  13. package/dist/web/assets/{FileEditor-D6zu8wfD.js → FileEditor-YLZReqhf.js} +1 -1
  14. package/dist/web/assets/{FormDialog-B4dHT0EU.js → FormDialog-CelnA8hT.js} +1 -1
  15. package/dist/web/assets/IntegrationCallback-elv3Aqfs.js +1 -0
  16. package/dist/web/assets/{JobWebhooks-w0zf145U.js → JobWebhooks-BvKIhaAK.js} +1 -1
  17. package/dist/web/assets/Jobs-TFiqlEzO.js +1 -0
  18. package/dist/web/assets/Knowledge-Dz9v7lfr.js +1 -0
  19. package/dist/web/assets/Markdown-CtVGTUZH.js +2 -0
  20. package/dist/web/assets/MarkdownEditor-CSloDLyL.js +2 -0
  21. package/dist/web/assets/{MarkdownRenderer-CcEdwuXc.js → MarkdownRenderer-B6SKIKVL.js} +4 -4
  22. package/dist/web/assets/NativeFolderField-DwXF9tJW.js +1 -0
  23. package/dist/web/assets/{PackageCatalog-DQ2LGqP6.js → PackageCatalog-DSwcvJsN.js} +2 -2
  24. package/dist/web/assets/{PackageRunDialog-CJlf2SDk.js → PackageRunDialog-HoczGux2.js} +1 -1
  25. package/dist/web/assets/{Pager-BcUl3gur.js → Pager-D-y150yZ.js} +1 -1
  26. package/dist/web/assets/Projects-D5da4x_q.js +3 -0
  27. package/dist/web/assets/{ResponsiveFilters-BIAzZYPs.js → ResponsiveFilters-CQ42T3S8.js} +1 -1
  28. package/dist/web/assets/{ResumeActions-DeFvdt0w.js → ResumeActions-DYiHEYFy.js} +1 -1
  29. package/dist/web/assets/Rules-CYG1JoBH.js +18 -0
  30. package/dist/web/assets/{ScratchpadDiagramEditor-BBZp2r4T.js → ScratchpadDiagramEditor-Dcfngku2.js} +1 -1
  31. package/dist/web/assets/Scratchpads-uSMao0H4.js +10 -0
  32. package/dist/web/assets/Sessions-BWh81qh3.js +3 -0
  33. package/dist/web/assets/Settings-w_H15X7M.js +14 -0
  34. package/dist/web/assets/Skills-CmcTt8ye.js +8 -0
  35. package/dist/web/assets/{SourceEditor-BxZThgbw.js → SourceEditor-DNHVu9ux.js} +3 -3
  36. package/dist/web/assets/{TagInput-XEuKQyEW.js → TagInput-BmRYPN4B.js} +1 -1
  37. package/dist/web/assets/TaskDetailSheet-DfK_DtzG.js +1 -0
  38. package/dist/web/assets/{Tasks-CVTOsbin.js → Tasks-CbOw64sI.js} +7 -7
  39. package/dist/web/assets/Terminals-DP3MyIBo.js +3 -0
  40. package/dist/web/assets/{ViewHeader-DO7vPcJo.js → ViewHeader-BtTaSrXy.js} +1 -1
  41. package/dist/web/assets/{Webhooks-Bv56gSJT.js → Webhooks-CP-m_Dos.js} +1 -1
  42. package/dist/web/assets/{badge-CczwlQze.js → badge-CpU0J4qt.js} +1 -1
  43. package/dist/web/assets/check-N8fVGVDO.js +1 -0
  44. package/dist/web/assets/chevron-down-wgh-M0zj.js +1 -0
  45. package/dist/web/assets/circle-alert-OZ-kwnCD.js +1 -0
  46. package/dist/web/assets/{circle-check-B_-siEWc.js → circle-check-DQM5o2QS.js} +1 -1
  47. package/dist/web/assets/client-BnTXPI20.js +1 -0
  48. package/dist/web/assets/{dialog-C7wt3DcD.js → dialog-D86vkhdt.js} +1 -1
  49. package/dist/web/assets/{download-B0FkIRZc.js → download-6d5_Jyox.js} +1 -1
  50. package/dist/web/assets/{highlighted-body-JLMTFACH-BBFDZ7y-.js → highlighted-body-JLMTFACH-C0zXH1C-.js} +1 -1
  51. package/dist/web/assets/{index-CW6MPUmg.js → index-D5qFuDmc.js} +84 -30
  52. package/dist/web/assets/index-z4BVJQry.css +1 -0
  53. package/dist/web/assets/{link-2-CE3Sblf0.js → link-2-Ced5Jr2w.js} +1 -1
  54. package/dist/web/assets/{list-CSWWmpsk.js → list-OJI1AaZs.js} +1 -1
  55. package/dist/web/assets/{maximize-2-CN8Tztng.js → maximize-2-Daih3Vv7.js} +1 -1
  56. package/dist/web/assets/mermaid-WFAXDIZX-BTh2e4d1.js +1 -0
  57. package/dist/web/assets/{save-DWlDLKMf.js → save-CnCcteVb.js} +1 -1
  58. package/dist/web/assets/{scratchpad-kinds-oL8wP6N-.js → scratchpad-kinds-vQJshqz1.js} +1 -1
  59. package/dist/web/assets/{scratchpad-routes-BBSS02R-.js → scratchpad-routes-D8SCEha7.js} +1 -1
  60. package/dist/web/assets/{upload-Dj3lbGL_.js → upload-BLDr7Cwk.js} +1 -1
  61. package/dist/web/assets/useIntegrations-CkfXwYNs.js +1 -0
  62. package/dist/web/assets/{useJobs-lhzWAkUN.js → useJobs-BNj4dd9l.js} +1 -1
  63. package/dist/web/assets/{useMemories-76m7jnqk.js → useMemories-BpfvcV2g.js} +1 -1
  64. package/dist/web/assets/{useSessions-gfliXBHJ.js → useSessions-n-bp8ic5.js} +1 -1
  65. package/dist/web/assets/{x-vKt_RFSV.js → x-CIaAKXRo.js} +1 -1
  66. package/dist/web/index.html +11 -12
  67. package/package.json +1 -1
  68. package/dist/web/assets/Attention-BJbqpb7f.js +0 -2
  69. package/dist/web/assets/IntegrationCallback-DXHVQyoB.js +0 -1
  70. package/dist/web/assets/Jobs-C4kTYZ1i.js +0 -1
  71. package/dist/web/assets/Knowledge-DTR8awQt.js +0 -1
  72. package/dist/web/assets/Markdown-jyKqps5-.js +0 -2
  73. package/dist/web/assets/MarkdownEditor-CAarVxut.js +0 -2
  74. package/dist/web/assets/Projects-UxsjM8nv.js +0 -3
  75. package/dist/web/assets/Rules-JudIF10K.js +0 -18
  76. package/dist/web/assets/Scratchpads-CuiHUvqt.js +0 -10
  77. package/dist/web/assets/Sessions-gUIgUH8Q.js +0 -3
  78. package/dist/web/assets/Settings-Dpv6LLHW.js +0 -14
  79. package/dist/web/assets/Skills-DrtlJ2sW.js +0 -8
  80. package/dist/web/assets/TaskDetailSheet-DNa_jxf_.js +0 -1
  81. package/dist/web/assets/Terminals-CMc4N4V-.js +0 -3
  82. package/dist/web/assets/check-DZNzZAdD.js +0 -1
  83. package/dist/web/assets/chevron-down-DjliQtS1.js +0 -1
  84. package/dist/web/assets/client-ByMuVs3d.js +0 -1
  85. package/dist/web/assets/index-Ci_YnsZ9.css +0 -1
  86. package/dist/web/assets/mermaid-WFAXDIZX-lXnJlkT4.js +0 -1
  87. package/dist/web/assets/schemas-BQZhekae.js +0 -55
  88. package/dist/web/assets/useIntegrations-Dmrd-_Pu.js +0 -1
package/README.md CHANGED
@@ -491,6 +491,17 @@ orc mem history ulid-ids # every change, with before/after
491
491
  orc mem revert ulid-ids <change-id> --expected-change-id <latest-change-id> -r "Undo mistaken edit"
492
492
  ```
493
493
 
494
+ Memories move both ways between ORC and native agent memory. **Memories → Import / export** (with a project selected) or `orc mem import|export` reads and writes Claude Code memory files (`~/.claude/projects/<project>/memory/*.md` with `name`/`description` frontmatter and a `MEMORY.md` index), Codex notes (`$CODEX_HOME/memories/extensions/ad_hoc/notes`, which Codex consolidates into its generated memory; plain notes import with their leading heading, or else their first sentence, as the description; generated Codex summaries are never touched), or any folder of memory files. The project's Claude memory folder is the default. Dedup ignores whitespace and case, and treats a near copy (a few characters different) as the same memory: it is never imported or exported as new, and the dialog names the match. Similar items are flagged with their match and score. An existing memory or file is replaced only when you select it; imports keep memory history, and exports keep a backup.
495
+
496
+ ```bash
497
+ orc mem sources # Claude and Codex memory folders; * marks this project's
498
+ orc mem import # preview this project's Claude memory folder
499
+ orc mem import --all # import every new memory
500
+ orc mem import ./notes --replace api-port
501
+ orc mem export --dry-run # compare with the folder
502
+ orc mem export ./memory -n ulid-ids --overwrite ulid-ids
503
+ ```
504
+
494
505
  ### Knowledge bases
495
506
 
496
507
  Knowledge bases hold human reference documents for agents to search and cite. A knowledge base belongs to a project or is global. Add documents by uploading files (PDF, Word, PowerPoint, Excel, HTML, CSV, Markdown, text), writing Markdown in the dashboard, or registering a folder whose files are copied in. ORC never writes the folder: a copy follows its file on each scan until it is edited in ORC, and a file deleted from the folder keeps its copy. Documents have folders, labels and `[[links]]` with backlinks.
@@ -827,9 +838,22 @@ orc skill import vercel-labs/agent-skills --skill web-design-guidelines
827
838
  orc skill sync web-design-guidelines
828
839
  ```
829
840
 
841
+ **Skills → Import / export** also moves skills between ORC and local agents. **Import from local agents** copies skill folders from agent folders such as `~/.claude/skills` and `~/.codex/skills`, or any folder of skill folders. **Export to agents** writes ORC skills as native skill folders (`SKILL.md` plus supporting files) into an existing agent skills folder, a project checkout or any folder. A project's checkout is its folder (scope) or the git repo of its local agent sessions, with worktrees folded into the main checkout; both dialogs list each one's repo-level skill folders (`.claude/skills`, `.agents/skills` for Codex and shared agents, `.gemini/skills`, `.cursor/skills`, `.opencode/skills`). Dedup ignores whitespace and case and compares content, not just names: a copy under another name or a near copy (a one-letter edit) is flagged with its match and is not imported or exported as new. Imports never replace an ORC skill. Exports replace an existing folder only when you select it, keep a backup, and never write through a symlinked folder.
842
+
843
+ ```bash
844
+ orc skill local # scan agent skill folders
845
+ orc skill local --path ./shared-skills --all
846
+ orc skill local claude -s pdf-tools
847
+ orc skill export-to claude my-workflow --dry-run
848
+ orc skill export-to ./exported my-workflow --overwrite my-workflow
849
+ orc skill project-folders --project orc
850
+ orc skill export-to claude my-workflow --project orc # <repo>/.claude/skills
851
+ orc skill local agents --project orc --all # <repo>/.agents/skills
852
+ ```
853
+
830
854
  Imported skills remain editable: open the skill, choose `SKILL.md` or a supporting text file, then **Edit** and **Save changes**. **Sync from GitHub** fetches the source again and compares each file against its last imported version. Local edits are kept when upstream has not changed that file. If both sides changed the same file, the whole sync pauses and lists conflicts. **Review override → Replace listed files** requires confirmation and replaces only those conflicts with upstream versions; unrelated local edits remain. If the local files or upstream commit changed since review, ORC requires a new sync check. Sync retains the previous folder under `~/.orc/skill-sync-backups/`; import provenance and upstream baselines live under `~/.orc/skill-imports/`. These backups are retained until manually removed. Private repositories and non-GitHub sources are not supported by this importer.
831
855
 
832
- The dashboard can import a skill folder or add supporting files individually, then open each file from the detail sheet. API `POST /api/skills` and MCP `skill_create` accept optional `files: [{ path, content, encoding? }]` alongside `name` and the full `SKILL.md` `content`. Encoding defaults to `utf8`. Bundles allow 512 supporting files, 8 MiB per file and 16 MiB total. Paths must stay inside the skill folder; symlinks are excluded and cannot be read. The legacy `references` inventory is retained for existing clients. Worker prompts include the skill's entry path and file inventory so relative links resolve from the skill directory.
856
+ The dashboard can import a skill folder or add supporting files individually, then open each file from the detail sheet. API `POST /api/skills` and MCP `skill_create` accept optional `files: [{ path, content, encoding? }]` alongside `name` and the full `SKILL.md` `content`. Encoding defaults to `utf8`. Bundles allow 512 supporting files, 8 MiB per file and 16 MiB total. To change a supporting text file of an existing user skill, or add one, use MCP `skill_file_write`, API `PUT /api/skills/{name}/file` or `orc skill file <name> <path> -f <local-file> [--new]`: pass the current file text as the expected content (null / `--new` to add a file) so stale edits are rejected; every write is audited. These write the installed file for every scope; `SKILL.md` instructions change through `skill_update` / `orc skill update`. Paths must stay inside the skill folder; symlinks are excluded and cannot be read. The legacy `references` inventory is retained for existing clients. Worker prompts include the skill's entry path and file inventory so relative links resolve from the skill directory.
833
857
 
834
858
  ### Shared agents and portable packages
835
859
 
@@ -856,7 +880,7 @@ The same profile instructions and relative file locations reach every backend. P
856
880
 
857
881
  The dashboard's **Packages** page imports OpenAPM and portable Agent Plugins v1.0.0 folders, inspects/exports their files, and saves reusable agent setups. **Run with → Open in ORC terminal** prepares the selected packages through Microsoft APM or Vercel skills, then opens the coding agent. Deployment persists in the chosen project; normal upstream trust and authentication prompts remain. Whole portable plugins activate through APM/Copilot; skills-only plugins can use Vercel with Claude, Codex or Copilot. See [Reusable agent packages](docs/agent-packages.md) for requirements and supported combinations.
858
882
 
859
- The **Agents** page creates/reads specialist profiles. API `/api/agents` and `/api/agent-packages`, SDK clients, CLI, and MCP all access the same files. MCP tools are `agent_list`, `agent_read`, `agent_create`, `agent_package_list`, `agent_package_read`, and `agent_package_import`. Package agent IDs are namespaced as `<package>/<file-stem>`.
883
+ The **Agents** page creates/reads specialist profiles. API `/api/agents` and `/api/agent-packages`, SDK clients, CLI, and MCP all access the same files. MCP tools are `agent_list`, `agent_read`, `agent_create`, `agent_update`, `agent_delete`, `agent_package_list`, `agent_package_read`, `agent_package_import`, `agent_package_update`, and `agent_package_delete`; updates and deletes require the raw content or package revision you last read. Package agent IDs are namespaced as `<package>/<file-stem>`.
860
884
 
861
885
  ## MCP tools
862
886
 
@@ -875,9 +899,9 @@ Tools are available to any connected agent. Start every session with `context`.
875
899
  | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
876
900
  | **Project** | `project_list` |
877
901
  | **Memory** | `context`, `memory_list`, `memory_read`, `memory_create`, `memory_update`, `memory_delete`, `memory_history`, `memory_revert` |
878
- | **Task** | `task_list`, `task_get`, `task_create`, `task_update`, `task_batch_create` |
902
+ | **Task** | `task_list`, `task_get`, `task_create`, `task_update`, `task_batch_create`, `task_link` |
879
903
  | **Skill** | `skill_list`, `skill_read`, `skill_create` |
880
- | **Agent** | `agent_list`, `agent_read`, `agent_create`, `agent_package_list`, `agent_package_read`, `agent_package_import` |
904
+ | **Agent** | `agent_list`, `agent_read`, `agent_create`, `agent_update`, `agent_delete`, `agent_package_list`, `agent_package_read`, `agent_package_import`, `agent_package_update`, `agent_package_delete` |
881
905
  | **Flow** | `flow_report`, `flow_status`, `flow_list`, `flow_read`, `flow_create`, `flow_attach` |
882
906
  | **Knowledge** | `kb_list`, `kb_search`, `kb_evidence`, `kb_read`, `kb_documents`, `kb_write`, `kb_maintenance` |
883
907
  | **Search** | `search` |
@@ -919,7 +943,7 @@ and selectable.
919
943
  | `POST` | `/knowledge/update` | Re-index collections |
920
944
  | `GET` | `/knowledge/status` | Index status |
921
945
  | `GET/POST` | `/jobs` | CRUD jobs |
922
- | `POST` | `/jobs/{id}/trigger` | Trigger a job |
946
+ | `POST` | `/jobs/{id}/trigger` | Trigger a job; `?sync=true` waits and returns output |
923
947
  | `GET` | `/jobs/{id}/runs` | Run history |
924
948
  | `GET` | `/jobs/{id}/runs/{runId}/logs` | Run logs |
925
949
  | `GET` | `/skills` | Skill templates |
@@ -948,10 +972,10 @@ orc doctor Check which agent backends are usable here
948
972
 
949
973
  orc project list|add|show|use|update|archive
950
974
  orc task list|add|show|update|done|review|approve|reject|delete
951
- orc mem list|show|add|edit|delete|history|revert
975
+ orc mem list|show|add|edit|delete|history|revert|sources|import|export
952
976
  orc job list|add|run|runs
953
977
  orc session list|show|log
954
- orc skill list|show
978
+ orc skill list|show|local|export-to
955
979
  orc flow list|show|validate|create|attach|status|resume|halt
956
980
  orc kb search|get|collections|add|remove|update|status
957
981
  ```