@sqaoss/flowy 1.10.0 → 1.12.0
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.
- package/README.md +41 -2
- package/package.json +4 -2
- package/server/src/contract.test.ts +16 -5
- package/server/src/index.errors.test.ts +6 -3
- package/server/src/index.ts +10 -1
- package/server/src/resolvers.test.ts +215 -16
- package/server/src/resolvers.ts +76 -8
- package/server/src/schema.ts +16 -1
- package/skills/using-flowy/SKILL.md +17 -0
- package/src/commands/backup.test.ts +252 -0
- package/src/commands/backup.ts +145 -0
- package/src/commands/search.test.ts +90 -0
- package/src/commands/search.ts +19 -3
- package/src/commands/status.test.ts +71 -0
- package/src/commands/status.ts +18 -4
- package/src/index.test.ts +18 -0
- package/src/index.ts +3 -0
- package/src/util/operations.ts +10 -2
package/src/util/operations.ts
CHANGED
|
@@ -116,10 +116,18 @@ export const TASK_DEPS = `query TaskDeps($id: String!) {
|
|
|
116
116
|
}
|
|
117
117
|
}`
|
|
118
118
|
|
|
119
|
-
/**
|
|
119
|
+
/**
|
|
120
|
+
* search.ts — full-text search with optional type/status/limit filters.
|
|
121
|
+
* Returns a SearchResult envelope (F32): `nodes` is the page capped at `limit`,
|
|
122
|
+
* `truncated` flags that more matches exist than were returned, and `total` is
|
|
123
|
+
* the unbounded match count — so the CLI can show a truncation marker instead
|
|
124
|
+
* of silently dropping rows at the default cap.
|
|
125
|
+
*/
|
|
120
126
|
export const SEARCH = `query Search($query: String!, $type: String, $status: String, $limit: Int) {
|
|
121
127
|
search(query: $query, type: $type, status: $status, limit: $limit) {
|
|
122
|
-
id type title description status
|
|
128
|
+
nodes { id type title description status }
|
|
129
|
+
truncated
|
|
130
|
+
total
|
|
123
131
|
}
|
|
124
132
|
}`
|
|
125
133
|
|