Skip to content
Closed
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/docker-smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ jobs:

- name: Build and start stack
run: |
SIGNET_HTTP_PORT=8080 SIGNET_HTTPS_PORT=8443 docker compose -f deploy/docker/compose.yml up -d --build
SIGNET_HTTP_PORT=8080 SIGNET_HTTPS_PORT=8443 docker compose -f deploy/docker/compose.yml up -d --build || {
docker compose -f deploy/docker/compose.yml logs signet 2>&1 || true
exit 1
}

- name: Wait for proxy readiness
run: |
Expand Down
46 changes: 46 additions & 0 deletions docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -1786,6 +1786,51 @@ and source chunk embeddings. Source files are not modified.
}
```

### POST /api/sources/github

Add or update a GitHub source. Queues an async sync that indexes issues, pull
requests, discussions, and/or docs from one or more repos into the knowledge
graph and embedding store. Requires `admin` permission.

**Request body**

```json
{
"name": "Signet Issues",
"tokenRef": "GITHUB_TOKEN",
"repos": ["Signet-AI/signetai"],
"resourceTypes": ["issues", "pulls", "discussions", "docs"],
"state": "all",
"includeComments": true,
"labels": ["bug", "feature"],
"maxItemsPerRepo": 500,
"docPaths": ["README.md", "CHANGELOG.md"]
}
```

**Response**

```json
{
"source": { "id": "github:abc123def456", "kind": "github" },
"created": true
}
```

### DELETE /api/sources/:sourceId

Remove a source config and purge Signet-owned source artifacts, graph rows,
and source chunk embeddings. Source files are not modified.

**Response**

```json
{
"source": { "id": "obsidian:abc123", "kind": "obsidian" },
"purged": 150
}
```

### POST /api/sources/pick-directory

Best-effort local directory picker used by dashboard/browser flows. It returns
Expand Down Expand Up @@ -4489,6 +4534,7 @@ silently disappear from the API reference.
| GET | `/api/sources` | platform/daemon/src/routes/sources-routes.ts |
| POST | `/api/sources/pick-directory` | platform/daemon/src/routes/sources-routes.ts |
| POST | `/api/sources/obsidian` | platform/daemon/src/routes/sources-routes.ts |
| POST | `/api/sources/github` | platform/daemon/src/routes/sources-routes.ts |
| DELETE | `/api/sources/:sourceId` | platform/daemon/src/routes/sources-routes.ts |
| GET | `/api/knowledge/entities` | platform/daemon/src/routes/knowledge-routes.ts |
| POST | `/api/knowledge/entities/:id/pin` | platform/daemon/src/routes/knowledge-routes.ts |
Expand Down
6 changes: 6 additions & 0 deletions platform/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,18 +221,24 @@ export type {
WorkspaceSourceRepoSyncResult,
} from "./workspace-source-repo";
export {
addGitHubSource,
addObsidianSource,
DEFAULT_GITHUB_DOC_PATHS,
DEFAULT_GITHUB_RESOURCE_TYPES,
DEFAULT_OBSIDIAN_EXCLUDE_GLOBS,
getAgentsDir,
getSourcesConfigPath,
loadSourcesConfig,
markSourceIndexed,
parseGitHubSettings,
removeSource,
saveSourcesConfig,
} from "./sources-config";
export type {
AddGitHubSourceInput,
AddObsidianSourceInput,
AddSourceResult,
GitHubSourceSettings,
RemoveSourceResult,
SignetSourceEntry,
SignetSourceKind,
Expand Down
Loading
Loading