Add endpoint to create new Collectives
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 70/100
調査の方向性
既存のツール ex_app/lib/all_tools/collectives.py を参照して、Collectives OCS エンドポイントを呼び出すパターンを確認してください。新しい create_collective ツールは、名前とオプションの絵文字を付けて /ocs/v2.php/apps/collectives/api/v1.0/collectives に POST リクエストを行う必要があります。Collectives アプリの appinfo/routes.php で正確なエンドポイント定義を確認してください。ツールがユーザーの確認を要求するようにしてください。エージェントを実行し、UI に新しいコレクティブが表示されることを確認してテストしてください。
索引モデルが issue の本文から書いたものです。
説明
How to use GitHub
- Please use the 👍 reaction to show that you are interested into the same feature.
- Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
- Subscribe to receive notifications on status change and new comments.
Feature request
Which Nextcloud Version are you currently using: 34.0.4 (Context Agent 2.8.0, Collectives 4.6.1)
Is your feature request related to a problem? Please describe.
The Context Agent can't create a new collective, it can only work with the existing ones.
#159 added page tools in ex_app/lib/all_tools/collectives.py (list collectives, and create, edit, move and trash pages), but all of them need an existing collective_id. So a request like "create a collective for project X and add a few pages" can't be done from start to finish. A person has to create the collective in the UI first.
Describe the solution you'd like
Add a create_collective tool to collectives.py that wraps the Collectives OCS endpoint POST /ocs/v2.php/apps/collectives/api/v1.0/collectives (collective#create in the Collectives appinfo/routes.php). It should take a name and an optional emoji, and return the new collective's id.
Because creating a collective also creates a team (circle), the tool should probably be marked as needing user confirmation, like other tools that create shared resources.
Optional, maybe as a follow-up:
- a way to give the collective's team to an existing group or team (e.g. through the existing circles tools), so the result can be shared right away
trash_collective, wrappingDELETE /collectives/{id}, with confirmation
Describe alternatives you've considered
- Creating the collective by hand in the Collectives UI.
- Having the agent write Markdown files into a normal shared folder. The result isn't a collective, so pages, backlinks and the Collectives UI don't apply.
- Creating the collective directly on the filesystem. I tested this:
create_folder("/.Collectives/Test Colectivo Demo")andupload_file(".../Readme.md")both returned{"status":"success"}. But the folder never showed up in.Collectives/, a PROPFIND on it returned404 Not Found, and no new collective appeared in search. So the files tools report success for writes that are silently dropped, and the agent can't tell that nothing was created. That's probably worth a separate bug report.
Additional context
- Related: #159 (Collectives page tools)
- The Collectives create endpoint: https://github.com/nextcloud/collectives/blob/main/appinfo/routes.php
- 主要言語
- Python
- スター
- 26
- フォーク
- 18
- 平均マージ
- 2日 1時間
- マージ済み PR(30日)
- 5
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nextcloud/context_agent のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
nextcloud/context_agent#242 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
find_person_in_contacts fails with Niquests content argument and cannot serialize vCard Addressオープンbug
難易度 2/5 半日 初心者へのやさしさ 76/100
nextcloud/context_agent#217 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
Context Agent can stop claiming tasks while /trigger still returns 200対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンbug
難易度 4/5 3〜5日 初心者へのやさしさ 57/100
nextcloud/context_agent#266 ·
メンテナーはふだん 1 日以内に返信
-
Multi-stage image on python:3.13-slim-trixie, frpc 0.71.0対応中かも @WSHAPER が 1 日前に担当しました。 オープンpriority high
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
nextcloud/context_agent#261 ·
メンテナーはふだん 1 日以内に返信
-
enhancement priority normal
難易度 3/5 1〜2日 初心者へのやさしさ 62/100
nextcloud/context_agent#256 ·
メンテナーはふだん 1 日以内に返信
nextcloud/context_agent の issue をすべて見る
似ている issue
-
[Bug]: LangGraph Store sync put bypasses namespace validation対応中かも @ktz03 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
volcengine/OpenViking#6050 ·
メンテナーはふだん 1 日以内に返信
-
[Bug]: Streamed /v1/chat/completions sends unredacted agent error text (keys) in the final chunk対応中かも @rodricksz4h5 が今日担当しました。 オープンarea/streaming comp/gateway P2 type/security
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
NousResearch/hermes-agent#138245 ·
メンテナーはふだん 1 日以内に返信
-
[oblt-aw][autodoc] Update user onboarding guide for mandatory trigger CODEOWNERS step対応中かも @github-actions が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
correction metadata
難易度 2/5 1時間未満 初心者へのやさしさ 68/100
acl-org/acl-anthology#10378 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
cloudtrail_multi_region_enabled_logging_management_events fails when the advanced event selector has a custom name対応中かも @12YYCCYY16 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
prowler-cloud/prowler#13033 ·
メンテナーはふだん 1 日以内に返信