things-api 0.14.0 → 0.16.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 +4 -4
- package/dist/audit/schema.d.ts +8 -0
- package/dist/audit/schema.js.map +1 -1
- package/dist/cli/commands/area.js +1 -1
- package/dist/cli/commands/install-skill.js +9 -2
- package/dist/cli/commands/install-skill.js.map +1 -1
- package/dist/cli/commands/project.js +1 -1
- package/dist/cli/commands/project.js.map +1 -1
- package/dist/cli/commands/reads.js +73 -4
- package/dist/cli/commands/reads.js.map +1 -1
- package/dist/cli/commands/repeat-flags.d.ts +11 -1
- package/dist/cli/commands/repeat-flags.js +23 -0
- package/dist/cli/commands/repeat-flags.js.map +1 -1
- package/dist/cli/commands/todo.js +50 -3
- package/dist/cli/commands/todo.js.map +1 -1
- package/dist/cli/commands/writes.js +202 -61
- package/dist/cli/commands/writes.js.map +1 -1
- package/dist/cli/glyphs.js +9 -10
- package/dist/cli/glyphs.js.map +1 -1
- package/dist/cli/help.js +18 -13
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/read-driver.d.ts +9 -3
- package/dist/cli/read-driver.js +3 -1
- package/dist/cli/read-driver.js.map +1 -1
- package/dist/cli/render.d.ts +33 -2
- package/dist/cli/render.js +60 -9
- package/dist/cli/render.js.map +1 -1
- package/dist/cli/skill.d.ts +24 -0
- package/dist/cli/skill.js +40 -0
- package/dist/cli/skill.js.map +1 -1
- package/dist/client.d.ts +88 -15
- package/dist/client.js +31 -5
- package/dist/client.js.map +1 -1
- package/dist/contracts.d.ts +13 -2
- package/dist/contracts.js +1 -1
- package/dist/contracts.js.map +1 -1
- package/dist/index.d.ts +5 -4
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/mcp/server.js +187 -36
- package/dist/mcp/server.js.map +1 -1
- package/dist/model/entities.d.ts +97 -40
- package/dist/model/entities.js +0 -4
- package/dist/model/entities.js.map +1 -1
- package/dist/model/mappers.js +24 -43
- package/dist/model/mappers.js.map +1 -1
- package/dist/read/area-view.js +6 -6
- package/dist/read/area-view.js.map +1 -1
- package/dist/read/detail.js +51 -3
- package/dist/read/detail.js.map +1 -1
- package/dist/read/filter-contract.d.ts +1 -1
- package/dist/read/filter-contract.js +3 -0
- package/dist/read/filter-contract.js.map +1 -1
- package/dist/read/log-boundary.d.ts +46 -2
- package/dist/read/log-boundary.js +43 -2
- package/dist/read/log-boundary.js.map +1 -1
- package/dist/read/predicates.d.ts +13 -0
- package/dist/read/predicates.js +13 -0
- package/dist/read/predicates.js.map +1 -1
- package/dist/read/project-view.js +5 -5
- package/dist/read/project-view.js.map +1 -1
- package/dist/read/queries.d.ts +12 -0
- package/dist/read/queries.js +14 -0
- package/dist/read/queries.js.map +1 -1
- package/dist/read/search-rank.js +2 -2
- package/dist/read/search-rank.js.map +1 -1
- package/dist/read/shape.d.ts +30 -26
- package/dist/read/shape.js +130 -101
- package/dist/read/shape.js.map +1 -1
- package/dist/read/snapshot.js +2 -2
- package/dist/read/snapshot.js.map +1 -1
- package/dist/read/stage.d.ts +36 -18
- package/dist/read/stage.js +30 -13
- package/dist/read/stage.js.map +1 -1
- package/dist/read/views.d.ts +62 -0
- package/dist/read/views.js +134 -14
- package/dist/read/views.js.map +1 -1
- package/dist/surface-copy.d.ts +2 -2
- package/dist/surface-copy.js +2 -2
- package/dist/write/batch.d.ts +28 -3
- package/dist/write/batch.js +162 -46
- package/dist/write/batch.js.map +1 -1
- package/dist/write/clear-reminder.js +3 -1
- package/dist/write/clear-reminder.js.map +1 -1
- package/dist/write/clone.d.ts +4 -0
- package/dist/write/clone.js +531 -0
- package/dist/write/clone.js.map +1 -0
- package/dist/write/commands.js +196 -29
- package/dist/write/commands.js.map +1 -1
- package/dist/write/guards.d.ts +1 -1
- package/dist/write/guards.js +44 -12
- package/dist/write/guards.js.map +1 -1
- package/dist/write/make-repeating-project.d.ts +2 -3
- package/dist/write/make-repeating-project.js +2 -73
- package/dist/write/make-repeating-project.js.map +1 -1
- package/dist/write/move.js +53 -1
- package/dist/write/move.js.map +1 -1
- package/dist/write/operations.d.ts +134 -11
- package/dist/write/operations.js +5 -1
- package/dist/write/operations.js.map +1 -1
- package/dist/write/pipeline.d.ts +38 -0
- package/dist/write/pipeline.js +71 -6
- package/dist/write/pipeline.js.map +1 -1
- package/dist/write/pre-state.d.ts +41 -0
- package/dist/write/pre-state.js +71 -8
- package/dist/write/pre-state.js.map +1 -1
- package/dist/write/preserve-modified.d.ts +55 -0
- package/dist/write/preserve-modified.js +106 -0
- package/dist/write/preserve-modified.js.map +1 -0
- package/dist/write/promote-clone.d.ts +32 -0
- package/dist/write/promote-clone.js +620 -0
- package/dist/write/promote-clone.js.map +1 -0
- package/dist/write/reorder.js +49 -2
- package/dist/write/reorder.js.map +1 -1
- package/dist/write/resolution-timestamps.js +29 -7
- package/dist/write/resolution-timestamps.js.map +1 -1
- package/dist/write/reversibility.js +32 -14
- package/dist/write/reversibility.js.map +1 -1
- package/dist/write/scope-guard.js +2 -0
- package/dist/write/scope-guard.js.map +1 -1
- package/dist/write/undo.d.ts +12 -2
- package/dist/write/undo.js +145 -22
- package/dist/write/undo.js.map +1 -1
- package/dist/write/vectors/applescript.js +9 -0
- package/dist/write/vectors/applescript.js.map +1 -1
- package/dist/write/vectors/simulator.js +242 -10
- package/dist/write/vectors/simulator.js.map +1 -1
- package/dist/write/vectors/ui-certification.d.ts +1 -1
- package/dist/write/vectors/ui-certification.js +10 -3
- package/dist/write/vectors/ui-certification.js.map +1 -1
- package/dist/write/verify/delta.d.ts +55 -10
- package/dist/write/verify/delta.js +73 -10
- package/dist/write/verify/delta.js.map +1 -1
- package/package.json +1 -1
- package/schema/envelope.schema.json +25 -0
- package/skills/things-cli/SKILL.md +10 -7
- package/skills/things-cli/references/banner.md +1 -1
- package/skills/things-cli/references/contracts.md +17 -9
- package/skills/things-cli/references/{model.md → data-model.md} +5 -2
- package/skills/things-cli/references/ordering.md +2 -0
|
@@ -5,10 +5,32 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { DatabaseSync } from "node:sqlite";
|
|
7
7
|
import type { AnyTask, TaskType } from "../../model/entities.ts";
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* A JSON-serializable predicate an assertion may check IN PLACE OF equality.
|
|
10
|
+
* `arrived-on-or-before` holds iff the decoded value is a NON-NULL ISO date on
|
|
11
|
+
* or before `date` (day-precision `YYYY-MM-DD` string compare, which is
|
|
12
|
+
* chronological). It exists for the symbolic `when: today` UPDATE verify (field
|
|
13
|
+
* bug §0½.8): the app PRESERVES an item's already-arrived historical `startDate`
|
|
14
|
+
* rather than rewriting the storage byte to today (arrived-date law), so exact
|
|
15
|
+
* `startDate == today` false-fails a write that succeeded. The predicate accepts
|
|
16
|
+
* any preserved arrived date while still REJECTING an undated deadline-only pull
|
|
17
|
+
* (null `startDate`). Equality stays the check for adds and explicit ISO dates.
|
|
18
|
+
*/
|
|
19
|
+
export type FieldPredicate = {
|
|
20
|
+
predicate: "arrived-on-or-before";
|
|
21
|
+
date: string;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Dotted path into a decoded entity (see getField for computed paths) checked
|
|
25
|
+
* either by exact equality (`equals`) or by a {@link FieldPredicate}
|
|
26
|
+
* (`satisfies`) — exactly one is set. `equals` is the default/common form; every
|
|
27
|
+
* existing assertion uses it.
|
|
28
|
+
*/
|
|
9
29
|
export interface FieldAssertion {
|
|
10
30
|
field: string;
|
|
11
|
-
equals
|
|
31
|
+
equals?: unknown;
|
|
32
|
+
/** When present, the field is checked by this predicate instead of `equals`. */
|
|
33
|
+
satisfies?: FieldPredicate;
|
|
12
34
|
}
|
|
13
35
|
export interface CreateProbe {
|
|
14
36
|
title: string;
|
|
@@ -159,6 +181,21 @@ export type DeltaSpec = {
|
|
|
159
181
|
} | {
|
|
160
182
|
mode: "trash-emptied";
|
|
161
183
|
}
|
|
184
|
+
/**
|
|
185
|
+
* `log-now` (AppleScript `log completed now`): moves resolved-but-unlogged items
|
|
186
|
+
* into the Logbook by advancing `TMSettings.manualLogDate`. Verified as a delta
|
|
187
|
+
* on the singleton — NOT on task rows (the log-move sweep mutates zero rows,
|
|
188
|
+
* plog1/A28/LOGNOW). `pending` is the pre-op count of resolvable items (the
|
|
189
|
+
* result's disclosed "how many logged"); `manualLogDatePre` the pre-op stamp.
|
|
190
|
+
* When `pending > 0` the stamp must advance; when `pending == 0` it is a clean
|
|
191
|
+
* no-op (satisfied unconditionally — the verb advances only when there is
|
|
192
|
+
* something to log).
|
|
193
|
+
*/
|
|
194
|
+
| {
|
|
195
|
+
mode: "logged-now";
|
|
196
|
+
pending: number;
|
|
197
|
+
manualLogDatePre: number | null;
|
|
198
|
+
}
|
|
162
199
|
/**
|
|
163
200
|
* Ordering: the given uuids must read back in strictly ascending rank on
|
|
164
201
|
* the named key (todayIndex for Today/Evening scopes, index elsewhere;
|
|
@@ -239,6 +276,8 @@ export interface VerifyReader {
|
|
|
239
276
|
}[];
|
|
240
277
|
rankOf(uuid: string, key: "index" | "todayIndex" | "area-index"): number | null;
|
|
241
278
|
trashedCount(): number;
|
|
279
|
+
/** The current `TMSettings.manualLogDate` (epoch seconds), or null — the `log-now` verify oracle. */
|
|
280
|
+
manualLogDate(): number | null;
|
|
242
281
|
findCreated(probe: CreateProbe): AnyTask[];
|
|
243
282
|
/**
|
|
244
283
|
* Non-trashed rows of the given DB type (0=to-do, 1=project, 2=heading)
|
|
@@ -266,19 +305,25 @@ export interface VerifyReader {
|
|
|
266
305
|
}
|
|
267
306
|
/**
|
|
268
307
|
* `now`/`zone` supply the evaluation clock the reader hands to `byUuid` (and thus
|
|
269
|
-
* `
|
|
270
|
-
* SAME injected clock the write planner used — never the wall
|
|
271
|
-
* pinned `THINGS_NOW` (consumer-timezone / bench fence), an
|
|
272
|
-
* item dated pinned-today would otherwise be judged
|
|
273
|
-
* reader and lose its
|
|
274
|
-
* regression from the #211
|
|
275
|
-
* pure verify-reader tests and ordering call sites are
|
|
308
|
+
* the `today`/`evening` markers) so a verified read-after-write gates Today
|
|
309
|
+
* placement on the SAME injected clock the write planner used — never the wall
|
|
310
|
+
* clock. Under a pinned `THINGS_NOW` (consumer-timezone / bench fence), an
|
|
311
|
+
* `evening`/`today` item dated pinned-today would otherwise be judged
|
|
312
|
+
* future-dated by a real-clock reader and lose its markers, failing the delta
|
|
313
|
+
* assertion (bench-caught regression from the #211 clock gate). Defaults to the
|
|
314
|
+
* host clock so the pure verify-reader tests and ordering call sites are
|
|
315
|
+
* unaffected.
|
|
276
316
|
*/
|
|
277
317
|
export declare function createDbReader(db: DatabaseSync, now?: Date, zone?: string): VerifyReader;
|
|
278
318
|
/**
|
|
279
319
|
* Resolve an assertion path against a decoded entity. Computed paths:
|
|
280
320
|
* `tags` → sorted direct-tag titles; `checklistTitles` → checklist titles
|
|
281
|
-
* in order;
|
|
321
|
+
* in order; the derivation-substrate names ({@link DERIVED_ASSERT_FIELDS}) read
|
|
322
|
+
* from the nested `derived` bag; otherwise a dotted walk (`area.uuid`,
|
|
323
|
+
* `project.title`, …). NOTE: the write-verify `reminder` assertion resolves to
|
|
324
|
+
* the RAW stored byte `derived.reminder` (NOT the live-gated top-level
|
|
325
|
+
* `reminder`) — a write must be verified against the byte the app actually
|
|
326
|
+
* stored/cleared, which survives a stale schedule (§9n).
|
|
282
327
|
*/
|
|
283
328
|
export declare function getField(entity: AnyTask, path: string): unknown;
|
|
284
329
|
/**
|
|
@@ -26,13 +26,14 @@ function containerKey(task) {
|
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
28
|
* `now`/`zone` supply the evaluation clock the reader hands to `byUuid` (and thus
|
|
29
|
-
* `
|
|
30
|
-
* SAME injected clock the write planner used — never the wall
|
|
31
|
-
* pinned `THINGS_NOW` (consumer-timezone / bench fence), an
|
|
32
|
-
* item dated pinned-today would otherwise be judged
|
|
33
|
-
* reader and lose its
|
|
34
|
-
* regression from the #211
|
|
35
|
-
* pure verify-reader tests and ordering call sites are
|
|
29
|
+
* the `today`/`evening` markers) so a verified read-after-write gates Today
|
|
30
|
+
* placement on the SAME injected clock the write planner used — never the wall
|
|
31
|
+
* clock. Under a pinned `THINGS_NOW` (consumer-timezone / bench fence), an
|
|
32
|
+
* `evening`/`today` item dated pinned-today would otherwise be judged
|
|
33
|
+
* future-dated by a real-clock reader and lose its markers, failing the delta
|
|
34
|
+
* assertion (bench-caught regression from the #211 clock gate). Defaults to the
|
|
35
|
+
* host clock so the pure verify-reader tests and ordering call sites are
|
|
36
|
+
* unaffected.
|
|
36
37
|
*/
|
|
37
38
|
export function createDbReader(db, now = new Date(), zone) {
|
|
38
39
|
return {
|
|
@@ -61,6 +62,10 @@ export function createDbReader(db, now = new Date(), zone) {
|
|
|
61
62
|
const row = db.prepare("SELECT COUNT(*) AS n FROM TMTask WHERE trashed = 1").get();
|
|
62
63
|
return row.n;
|
|
63
64
|
},
|
|
65
|
+
manualLogDate() {
|
|
66
|
+
const row = db.prepare("SELECT manualLogDate FROM TMSettings").get();
|
|
67
|
+
return row?.manualLogDate ?? null;
|
|
68
|
+
},
|
|
64
69
|
findCreated(probe) {
|
|
65
70
|
const excluded = new Set(probe.excludeUuids ?? []);
|
|
66
71
|
// The time-bound is dropped to 0 ONLY for a backdated create (add --created-at):
|
|
@@ -127,12 +132,40 @@ export function createDbReader(db, now = new Date(), zone) {
|
|
|
127
132
|
},
|
|
128
133
|
};
|
|
129
134
|
}
|
|
135
|
+
/**
|
|
136
|
+
* The internal derivation-substrate field names an assertion may reference by
|
|
137
|
+
* their bare (stable) schedule-vocabulary name — they live on the entity's
|
|
138
|
+
* nested `derived` bag (one-vocabulary Batch 2), so {@link getField} reads them
|
|
139
|
+
* from there. The Today placement axis is the presence-keyed `today`/`evening`
|
|
140
|
+
* markers (`todaySection` was deleted); `reminder` resolves to the RAW stored
|
|
141
|
+
* byte on the substrate, the write engine's prediction/verification target.
|
|
142
|
+
*/
|
|
143
|
+
const DERIVED_ASSERT_FIELDS = new Set([
|
|
144
|
+
"start",
|
|
145
|
+
"logged",
|
|
146
|
+
"trashed",
|
|
147
|
+
"today",
|
|
148
|
+
"evening",
|
|
149
|
+
"reminder",
|
|
150
|
+
]);
|
|
130
151
|
/**
|
|
131
152
|
* Resolve an assertion path against a decoded entity. Computed paths:
|
|
132
153
|
* `tags` → sorted direct-tag titles; `checklistTitles` → checklist titles
|
|
133
|
-
* in order;
|
|
154
|
+
* in order; the derivation-substrate names ({@link DERIVED_ASSERT_FIELDS}) read
|
|
155
|
+
* from the nested `derived` bag; otherwise a dotted walk (`area.uuid`,
|
|
156
|
+
* `project.title`, …). NOTE: the write-verify `reminder` assertion resolves to
|
|
157
|
+
* the RAW stored byte `derived.reminder` (NOT the live-gated top-level
|
|
158
|
+
* `reminder`) — a write must be verified against the byte the app actually
|
|
159
|
+
* stored/cleared, which survives a stale schedule (§9n).
|
|
134
160
|
*/
|
|
135
161
|
export function getField(entity, path) {
|
|
162
|
+
// The substrate fields (start/logged/trashed/today/evening/reminder) live on
|
|
163
|
+
// `entity.derived` — read them there under their stable schedule-vocabulary
|
|
164
|
+
// name (a heading carries no substrate, so it has none). `reminder` here is
|
|
165
|
+
// the RAW byte, the write engine's prediction/verification target.
|
|
166
|
+
if (DERIVED_ASSERT_FIELDS.has(path) && "derived" in entity) {
|
|
167
|
+
return entity.derived[path];
|
|
168
|
+
}
|
|
136
169
|
// Day-precision views of the stored timestamps (backdating asserts these;
|
|
137
170
|
// Date objects never compare === so the raw fields are not assertable).
|
|
138
171
|
if (path === "stoppedDate" && "stopped" in entity) {
|
|
@@ -167,6 +200,22 @@ function valuesEqual(a, b) {
|
|
|
167
200
|
return JSON.stringify(a) === JSON.stringify(b);
|
|
168
201
|
return a === b || (a === undefined && b === null) || (a === null && b === undefined);
|
|
169
202
|
}
|
|
203
|
+
/** Evaluate a {@link FieldPredicate} against a decoded field value. */
|
|
204
|
+
function predicateHolds(pred, actual) {
|
|
205
|
+
switch (pred.predicate) {
|
|
206
|
+
case "arrived-on-or-before":
|
|
207
|
+
// Non-null ISO date on or before the reference day. `YYYY-MM-DD` string
|
|
208
|
+
// ordering is chronological, so a lexicographic <= is a day compare; a
|
|
209
|
+
// null/undefined (undated) value is not a string and correctly fails.
|
|
210
|
+
return typeof actual === "string" && actual <= pred.date;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
/** Does a decoded field value satisfy an assertion (predicate form or equality)? */
|
|
214
|
+
function assertionHolds(assertion, actual) {
|
|
215
|
+
if (assertion.satisfies !== undefined)
|
|
216
|
+
return predicateHolds(assertion.satisfies, actual);
|
|
217
|
+
return valuesEqual(actual, assertion.equals);
|
|
218
|
+
}
|
|
170
219
|
function checkAssertions(entity, assertions) {
|
|
171
220
|
const observed = {};
|
|
172
221
|
if (entity === null)
|
|
@@ -175,7 +224,7 @@ function checkAssertions(entity, assertions) {
|
|
|
175
224
|
for (const a of assertions) {
|
|
176
225
|
const actual = getField(entity, a.field);
|
|
177
226
|
observed[a.field] = actual === undefined ? null : actual;
|
|
178
|
-
if (!
|
|
227
|
+
if (!assertionHolds(a, actual))
|
|
179
228
|
pass = false;
|
|
180
229
|
}
|
|
181
230
|
return { pass, observed };
|
|
@@ -513,7 +562,7 @@ export function evaluateDelta(spec, reader, pre) {
|
|
|
513
562
|
for (const a of spec.assert) {
|
|
514
563
|
const actual = fields?.[a.field];
|
|
515
564
|
observed[a.field] = actual === undefined ? null : actual;
|
|
516
|
-
if (!
|
|
565
|
+
if (!assertionHolds(a, actual))
|
|
517
566
|
pass = false;
|
|
518
567
|
}
|
|
519
568
|
// TMArea/TMTag carry no modification date: movement = any asserted
|
|
@@ -537,6 +586,20 @@ export function evaluateDelta(spec, reader, pre) {
|
|
|
537
586
|
observed: { trashedCount: remaining },
|
|
538
587
|
};
|
|
539
588
|
}
|
|
589
|
+
case "logged-now": {
|
|
590
|
+
const current = reader.manualLogDate();
|
|
591
|
+
const advanced = current !== null && (spec.manualLogDatePre === null || current > spec.manualLogDatePre);
|
|
592
|
+
// pending>0: the boundary MUST advance (manualLogDate stamped ~the completion
|
|
593
|
+
// instant). pending==0: a clean no-op — `log completed now` advances only when
|
|
594
|
+
// there are pending completions, so an unchanged stamp is the correct outcome.
|
|
595
|
+
const satisfied = spec.pending > 0 ? advanced : true;
|
|
596
|
+
return {
|
|
597
|
+
satisfied,
|
|
598
|
+
movement: advanced,
|
|
599
|
+
assertedMovement: advanced,
|
|
600
|
+
observed: { logged: spec.pending, manualLogDate: current },
|
|
601
|
+
};
|
|
602
|
+
}
|
|
540
603
|
default: {
|
|
541
604
|
const exhaustive = spec;
|
|
542
605
|
throw new Error(`unknown delta mode: ${JSON.stringify(exhaustive)}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delta.js","sourceRoot":"","sources":["../../../src/write/verify/delta.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AA0G9C;;;GAGG;AACH,MAAM,UAAU,yBAAyB,CAAC,IAAa;IACrD,OAAO;QACL,KAAK,EAAE,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK;QAChD,IAAI,EAAE,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE;QAC7E,SAAS,EAAE,YAAY,CAAC,IAAI,CAAC;QAC7B,eAAe,EAAE,IAAI,CAAC,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE;KACzF,CAAC;AACJ,CAAC;AAED,2EAA2E;AAC3E,SAAS,QAAQ,CAA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AAC,CAAC;IACnC,MAAM,MAAM,GAAG,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAClC,IAAI,MAAM,KAAK,SAAS;QAAE,OAAO,GAAG,KAAK,IAAI,CAAC,CAAC,eAAe;IAC9D,IAAI,GAAG,KAAK,IAAI,IAAI,MAAM,KAAK,IAAI;QAAE,OAAO,IAAI,CAAC,CAAC,eAAe;IACjE,OAAO,GAAG,KAAK,MAAM,CAAC;AACxB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "things-api",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "Typed TypeScript library + CLI for Things 3 (Cultured Code) — verified writes, audit trail, schema-drift detection",
|
|
5
5
|
"homepage": "https://github.com/mikegreiling/things-api#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
"trash",
|
|
51
51
|
"changes",
|
|
52
52
|
"search",
|
|
53
|
+
"deadlines",
|
|
53
54
|
"projects",
|
|
54
55
|
"areas",
|
|
55
56
|
"tags",
|
|
@@ -158,6 +159,10 @@
|
|
|
158
159
|
"additionalProperties": false,
|
|
159
160
|
"description": "Whole-view aggregate counts (ADDITIVE). Present ONLY on the `today` view: the app's sidebar count split — `dueOrOverdue` (open members whose deadline is due or overdue) vs. `other` (the rest). A convenience aggregate an agent would otherwise recompute over the rows; it lives here so `data` stays pure domain rows. Both counts are OPEN members only, and a `0` is meaningful."
|
|
160
161
|
},
|
|
162
|
+
"logging": {
|
|
163
|
+
"$ref": "#/definitions/LogState",
|
|
164
|
+
"description": "The Logbook's log-move cadence fact (ADDITIVE). Present ONLY on the `logbook` view: the \"Move completed items to Logbook\" setting in Cultured Code's own words (`cadence` ∈ Immediately | Daily | Manually) plus — under Manually only — `lastLoggedAt`, the ISO-8601 instant of the last explicit log. A whole-view fact an agent would otherwise have no way to read; it lives here so `data` stays pure logged rows (the `meta.counts` precedent). Absent for every other view."
|
|
165
|
+
},
|
|
161
166
|
"scope": {
|
|
162
167
|
"type": "object",
|
|
163
168
|
"properties": {
|
|
@@ -204,6 +209,26 @@
|
|
|
204
209
|
"additionalProperties": false,
|
|
205
210
|
"description": "The single truncation-metadata shape for every read (the `meta.truncation` field). `shown` items were returned of `total` that matched after all filters; `limit` is the effective cap (null when the caller asked for all rows, and always null on a grouped view whose caps are per-block); `truncated` is the UNIVERSAL completeness check — true exactly when anything was dropped (`shown < total`, or any block hid rows). The dropped remainder is `total - shown`.\n\nThis is the WHOLE-VIEW rollup only. Per-bucket completeness rides INLINE on the data records (read-shape v2 R1): each `children`/`sections`/`projects` bucket carries its own `total`, present iff it was capped. The pre-v2 `blocks[]` descriptor-join sidecar is RETIRED from the wire entirely (doctrine v2 PR 5) — the per-block detail the TTY renderers need is internal render plumbing ( {@link GroupBlock } ), never serialized."
|
|
206
211
|
},
|
|
212
|
+
"LogState": {
|
|
213
|
+
"type": "object",
|
|
214
|
+
"properties": {
|
|
215
|
+
"cadence": {
|
|
216
|
+
"$ref": "#/definitions/LogCadence"
|
|
217
|
+
},
|
|
218
|
+
"lastLoggedAt": {
|
|
219
|
+
"type": "string",
|
|
220
|
+
"description": "ISO-8601 instant of the last explicit log — present under Daily and Manually."
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
"required": ["cadence"],
|
|
224
|
+
"additionalProperties": false,
|
|
225
|
+
"description": "A VIEW-LEVEL fact about the Logbook: the log-move cadence in Cultured Code's own Settings words, plus — under Daily and Manually — the instant of the last explicit log (`TMSettings.manualLogDate`), as an ISO-8601 string (an INSTANT, so a consumer renders its calendar day in their own zone; the wire carries the exact instant). Rides `meta.logging` on the wire (never a data row) — the `meta.counts` precedent for a whole-view aggregate."
|
|
226
|
+
},
|
|
227
|
+
"LogCadence": {
|
|
228
|
+
"type": "string",
|
|
229
|
+
"enum": ["Immediately", "Daily", "Manually"],
|
|
230
|
+
"description": "The Cultured Code words for the \"Move completed items to Logbook\" cadence — the exact Settings-dropdown labels (`logInterval` 0=Immediately · 1=Daily · 4=Manually; there is NO weekly/monthly in Things 3.22.x, oddities §8c). Kept in the app's own vocabulary so consumer copy never invents a lifecycle word."
|
|
231
|
+
},
|
|
207
232
|
"ErrorEnvelope": {
|
|
208
233
|
"type": "object",
|
|
209
234
|
"properties": {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: things-cli
|
|
3
3
|
description: Read and manage a user's tasks in the Things 3 app (macOS) through the `things` CLI — list views like Today/Inbox/Upcoming, search, and create, edit, schedule, complete, move, or organize to-dos, projects, areas, headings, and tags. Use whenever the user asks about their tasks, to-dos, projects, or anything in Things.
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.16.0
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# Things CLI
|
|
@@ -10,6 +10,8 @@ version: 0.14.0
|
|
|
10
10
|
|
|
11
11
|
`things --help` is the one-screen index; `things <group> --help` lists a group's verbs and flags (always current for the binary you invoke); `things help <topic>` opens a contract guide — topics: `agent`, `filters`, `ids`, `move`, `output`, `repeating`, `writes`.
|
|
12
12
|
|
|
13
|
+
**This skill's reference files** are exactly `data-model`, `contracts`, `ordering`, `errors`, `banner`, `gui` (all `references/*.md`) — do not guess other names. Read *shapes* (every view's JSON, `stage`/`when`, the compact/full tiers) live in `data-model`; the envelope, exit codes, undo, batch, and recurrence in `contracts`; move/reorder axes in `ordering`; the error contract in `errors`. There is no `reads`/`writes`/`recurrence`/`safety` file. Most tasks need only this page — open a reference only when a link below sends you there.
|
|
14
|
+
|
|
13
15
|
## Data model (read this first)
|
|
14
16
|
|
|
15
17
|
- **To-do** — the basic item: title, notes, an optional **checklist** (sub-steps), tags, schedule, deadline, reminder. Has at most ONE container — loose in an **area**, directly in a **project**, or under a **heading** inside a project — or **none at all** (standalone to-dos are normal, like standalone projects).
|
|
@@ -24,11 +26,11 @@ version: 0.14.0
|
|
|
24
26
|
|
|
25
27
|
Reads decompose an item's position onto two derived, presence-keyed words (they REPLACED the old `start`/`logged`/`trashed`/`todaySection` fields):
|
|
26
28
|
|
|
27
|
-
- **`stage`** — the sidebar BUCKET: `inbox | upcoming | anytime | someday | logbook | trash`. Read view membership off it directly (a completed row is `logbook`, a trashed row `trash`, regardless of any other hint). Dropped inside a section that already states it; present in mixed lists, `search`, `changes`, and `detail`.
|
|
29
|
+
- **`stage`** — the sidebar BUCKET: `inbox | upcoming | anytime | someday | logbook | trash`. Read view membership off it directly (a completed row is `logbook`, a trashed row `trash`, regardless of any other hint). Dropped inside a section that already states it; present in mixed lists, `search`, `changes`, `deadlines`, and `detail`.
|
|
28
30
|
- **`when`** — the TIME POSITION: `today | evening | a future ISO date`, or absent. `evening` implies today; someday is a bucket (→ `stage`), never a `when`. A due deadline pulls an undated row into Today (`when: "today"`); the app re-files it into Anytime, so it derives `stage: "anytime"` (it leaves the Inbox/Someday list).
|
|
29
31
|
- **`provisional: true`** marks a Today member the app has not yet materialized (the "N new to-dos" banner / `•` pip); see [references/banner.md](references/banner.md).
|
|
30
32
|
|
|
31
|
-
**Absence is meaningful.** In the compact list tier a field at its default is omitted (no `status` = open, no `when` = not in Today), and inside a single-container node an item omits ancestry the node already states (absent `project`/`area` there = inherited). Full rules and the compact/full tiers: [references/model.md](references/model.md).
|
|
33
|
+
**Absence is meaningful.** In the compact list tier a field at its default is omitted (no `status` = open, no `when` = not in Today), and inside a single-container node an item omits ancestry the node already states (absent `project`/`area` there = inherited). Full rules and the compact/full tiers: [references/data-model.md](references/data-model.md).
|
|
32
34
|
|
|
33
35
|
## Referring to items
|
|
34
36
|
|
|
@@ -40,19 +42,20 @@ Commands take a `<ref>`: a UUID, a unique UUID prefix (≥ 6 chars), a Things sh
|
|
|
40
42
|
|
|
41
43
|
These hold regardless of the binary version; see [references/contracts.md](references/contracts.md) for the full text.
|
|
42
44
|
|
|
43
|
-
- **JSON envelope**: every `--json` response is `{ apiVersion, ok, kind, data, meta }`. Read results from `.data` (`.data.items`/`.data.sections`/`.data.item`/`.data.view`/`.data.children` per `kind`; `today` is `.data.children.{today,evening}.items` with its count on `meta.counts`), never `.items`; UUIDs are `.uuid`, not `.id`. Check `meta.truncation.truncated` before concluding "no match" or "that's everything". List/search rows are compact summaries whose `tags` may be incomplete — use `things show <ref> --json` for effective tags, checklist, notes, and placement.
|
|
45
|
+
- **JSON envelope**: every `--json` response is `{ apiVersion, ok, kind, data, meta }`. Read results from `.data` (`.data.items`/`.data.sections`/`.data.item`/`.data.view`/`.data.children` per `kind`; `today` is `.data.children.{today,evening}.items` with its count on `meta.counts`; the `logbook` view carries the log-move cadence on `meta.logging = {cadence, lastLoggedAt?}` — CC's Settings words `Immediately|Daily|Manually`, `lastLoggedAt` under Daily and Manually), never `.items`; UUIDs are `.uuid`, not `.id`. Check `meta.truncation.truncated` before concluding "no match" or "that's everything". List/search rows are compact summaries whose `tags` may be incomplete — use `things show <ref> --json` for effective tags, checklist, notes, and placement.
|
|
44
46
|
- **Exit codes**: `0` landed and checked · `2` usage · `3` verify-failed · `4` blocked · `5` drift-blocked · `6` unsupported · `7` environment (`1` is an internal bug). Nonzero means the change did NOT stick; the message names the fix.
|
|
45
47
|
- **Previews, undo & idempotency**: `--dry-run` is universal — accepted by every command, it guarantees nothing changes: on a read it returns the normal output unchanged, on a write it shows the exact plan without executing; `things undo` reverses recent changes made through this tool (each reversible write returns an `undoToken`); a single mutation may carry `--op-id <key>` so an ambiguous resubmission is recognized as already applied (the variadic `move`/`reorder` refuse it — use `things batch` with a per-line `opId`).
|
|
48
|
+
- **Timeline-silent mutations** (`--preserve-modified`, MCP `preserve_modified`): a universal write flag that keeps a change off the modification-date timeline. Some writes (applying/removing a tag, editing a field, resolving an item) re-stamp each edited item's modification date — the key `things changes --since <moment>` and any watch/sync process sort on. `--preserve-modified` captures each PRE-EXISTING edited item's modification date before the write and restores it (to the whole second) afterward, so the edit does not surface as a new change. It is the enabler for a mass retro-tag or bulk cleanup that must not flood `changes`. A pure create (`add`) is a no-op; the restore is best-effort (a failure is reported per item, the change itself stands) and the result carries `preservedModified: <n>`. **Safe against a synced (Things Cloud) store** — the restored modification date syncs to the other devices and survives the round-trip, so the item stays off the timeline on every device (SYNC2B); the only edge is a genuinely concurrent edit to the same item on another device, which re-dates it via Things Cloud's per-attribute merge (fails safe — the edit resurfaces, never silently hidden).
|
|
46
49
|
- **Preconditions**: referenced containers and tags must already exist — create nested structures outside-in and reuse each returned UUID.
|
|
47
50
|
- If the user requests a JSON reply schema, return exactly that object after the read or checked write.
|
|
48
51
|
|
|
49
52
|
## Reading
|
|
50
53
|
|
|
51
|
-
Views and lookups — pass `--json` whenever you will act on the output: `things today | inbox | upcoming | anytime | someday | logbook | trash`, `things show <ref>` (full detail incl. notes + checklist + effective tags), `things projects [ref]`, `things areas [ref]`, `things tags`, `things search <words>`, `things changes --since <moment>`. Compact rows carry `hasNotes`, `checklist:{open,total}` (to-dos), and `todos:{open,total}` (projects); `--full` (or `show`) adds the full `notes`, `startDate`, and checklist `items`. A `search` hit carries `match:{field,text}` provenance when it matched something other than the title. Filters (`--tag`, `--untagged`, `--overdue`, `--limit N`, `--all`, …) compose with AND — see `things help filters`. The reserved read-only ref `loose` addresses the area-less items as a pseudo-area (`areas loose`, `area show loose`, `--area loose`) and wins over any real area named "Loose"; every write verb refuses it.
|
|
54
|
+
Views and lookups — pass `--json` whenever you will act on the output: `things today | inbox | upcoming | anytime | someday | logbook | trash`, `things show <ref>` (full detail incl. notes + checklist + effective tags), `things projects [ref]`, `things areas [ref]`, `things tags`, `things search <words>`, `things changes --since <moment>`. `things deadlines` is the deadline horizon — every item (to-dos AND projects) that HAS a deadline, in deadline order, most-overdue first; it is a derived query view, NOT reorderable, and repeating items appear at their next occurrence's projected deadline. Scope it with `--today` (only what's due in Today), `--overdue` (only items already past their deadline), and `--project`/`--area`/`--tag`. Compact rows carry `hasNotes`, `checklist:{open,total}` (to-dos), and `todos:{open,total}` (projects); `--full` (or `show`) adds the full `notes`, `startDate`, and checklist `items`. A `search` hit carries `match:{field,text}` provenance when it matched something other than the title. Filters (`--tag`, `--untagged`, `--overdue`, `--limit N`, `--all`, …) compose with AND — see `things help filters`. The reserved read-only ref `loose` addresses the area-less items as a pseudo-area (`areas loose`, `area show loose`, `--area loose`) and wins over any real area named "Loose"; every write verb refuses it.
|
|
52
55
|
|
|
53
56
|
## Writing
|
|
54
57
|
|
|
55
|
-
Namespaced verb families — run `things <group> --help` for the verbs and `things <group> <verb> --help` for exact flags: `things todo …` (add/update/complete/cancel/reopen/move/delete/restore/tags/checklist/make-repeating), `things project …` (add/update/move/complete/… plus the heading verbs), `things area …`, `things tag …`, plus `things batch` (JSONL — chain created uuids across lines with `tempId`/`$ref`, retry safely with `opId`, undo the whole run with its `undoToken`), `things undo`, and `things
|
|
58
|
+
Namespaced verb families — run `things <group> --help` for the verbs and `things <group> <verb> --help` for exact flags: `things todo …` (add/update/complete/cancel/reopen/move/delete/restore/tags/checklist/make-repeating/add-repeating/clone), `things project …` (add/update/move/complete/… plus add-repeating/make-repeating, clone and the heading verbs), `things area …`, `things tag …`, plus `things batch` (JSONL — chain created uuids across lines with `tempId`/`$ref`, retry safely with `opId`, undo the whole run with its `undoToken`), `things undo`, `things reorder`, and `things log-now` (move completed items into the Logbook now; reports how many moved, a clean no-op when none are pending, and cannot be undone).
|
|
56
59
|
|
|
57
60
|
**Scheduling is an update, not a move**: `things todo update <ref> --when today|evening|anytime|someday|YYYY-MM-DD` schedules or parks an item; `move` changes its CONTAINER only.
|
|
58
61
|
|
|
@@ -66,7 +69,7 @@ Namespaced verb families — run `things <group> --help` for the verbs and `thin
|
|
|
66
69
|
|
|
67
70
|
## Going deeper
|
|
68
71
|
|
|
69
|
-
- [references/model.md](references/model.md) — the full data model, `stage`/`when` derivation, the compact/full tiers, view membership, and filters.
|
|
72
|
+
- [references/data-model.md](references/data-model.md) — the full data model, `stage`/`when` derivation, the compact/full tiers, view membership, and filters.
|
|
70
73
|
- [references/contracts.md](references/contracts.md) — the JSON envelope, exit codes, safety/undo/idempotency, batch chaining, and recurrence.
|
|
71
74
|
- [references/ordering.md](references/ordering.md) — move vs reorder in depth: axes, gates, caps, automatic fallbacks, placement guarantees, and the one dead class (templates).
|
|
72
75
|
- [references/errors.md](references/errors.md) — the error contract: the candidate shape, dead-row hints, hazard acknowledgments, and the error-code registry.
|
|
@@ -11,7 +11,7 @@ When items arrive in Today on their own, Things shows a yellow "You have N new t
|
|
|
11
11
|
- `provisional` reuses the same Today markers `when` does, so it can never disagree with the ★ the row would render.
|
|
12
12
|
- **The pip is Today-view-only.** In the app's Anytime list the same provisional row shows the ordinary Today ★ and no pip. So the TTY renders `•` only in `things today` (Today and This Evening sections); the wire `provisional` field is present on every surface, but the `•` glyph is not.
|
|
13
13
|
|
|
14
|
-
**A provisional row is already a full Today member** — visible, sortable, and mutable through every ordinary write. Model it as `stage: "anytime"` + `when: "today"` + `provisional: true`: at pull time the app re-files a deadline-pulled Inbox/Someday row into Anytime (
|
|
14
|
+
**A provisional row is already a full Today member** — visible, sortable, and mutable through every ordinary write. Model it as `stage: "anytime"` + `when: "today"` + `provisional: true`: at pull time the app re-files a deadline-pulled Inbox/Someday row into Anytime (RS8/BANNER1b), so it is EXCLUDED from the Inbox/Someday lists and INCLUDED in Anytime even though the user never chose to leave those buckets — the derived stage reflects where the app actually shows it.
|
|
15
15
|
|
|
16
16
|
## There is no `today ok` — dismissing the banner is a data mutation
|
|
17
17
|
|
|
@@ -29,13 +29,19 @@ A nonzero exit is informative, not a dead end — it means the write did not sil
|
|
|
29
29
|
## Safety & recovery
|
|
30
30
|
|
|
31
31
|
- `--dry-run` previews the exact plan (operation, target, expected change) for ANY write without executing — use it for anything destructive, bulk, or unfamiliar.
|
|
32
|
-
- `things undo` reverses recent changes made through this tool (its own audit trail, not arbitrary app history). Prefer a targeted fix when you know it; undo is the safety net.
|
|
32
|
+
- `things undo` reverses recent changes made through this tool (its own audit trail, not arbitrary app history). Prefer a targeted fix when you know it; undo is the safety net. `--last N` / `--by <actor>` select the N newest NOT-YET-undone changes: an already-undone change is SKIPPED, so running `undo --last N` again walks progressively DEEPER into history (it does not re-select what you just undid). An IRREVERSIBLE change (a permanent delete, or one whose prior state is unknown) is the exception — it is NOT skipped: it still counts toward N and is reported every pass, so you always SEE it rather than silently reaching past it to undo something older. Use `--txn <undoToken>` to target one exact change surgically (immune to interleaving; re-running it on an already-undone change reports that loudly).
|
|
33
33
|
- To-do/project deletes are TRASHES: `todo delete` moves to Trash and is restorable (`todo restore`). Emptying the trash is permanent and requires explicit user intent — don't do it unless asked. AREAS are the exception — an area does not go to the Trash, so deleting one is permanent (`--dangerously-permanent`), and a non-empty area also needs `--allow-non-empty` (see [errors.md](errors.md)).
|
|
34
|
+
- **Deleting a repeating TEMPLATE** (the hidden rule, `projectIsTemplate`/`repeating` row) is allowed but is a one-way action here: it STOPS the series generating new occurrences and returns success with NO undo token plus warnings — the series' existing occurrences are left in place (the warning names how many and the current occurrence's uuid), and the only way to bring the series back is the Things app's Trash ▸ Put Back. So `undo`/`things undo` cannot reverse it; restoring a trashed template headlessly is refused with that same Put-Back pointer. (To END a series but KEEP its current occurrence, delete the TEMPLATE; to remove just one occurrence, delete that instance — series-preserving.)
|
|
35
|
+
- **Copy an item:** `things todo clone <ref>` / `things project clone <ref>` make a faithful CONTENT copy through official surfaces — title, notes, tags, schedule (`when`), reminder, deadline, checklist items (incl. checked state), container, and completed/canceled state with the original timestamp; a project also copies its area, headings, and children. The clone is a NEW capture (a new uuid, created now, at its container's usual position); the clone's uuid is printed. `--title <t>` renames the copy; `--preserve-created` keeps the original's creation date (to the minute). It REFUSES a trashed source (restore it first), and a `project clone` refuses a project that CONTAINS a nested repeating template (it names the child). Cloning a repeating **TEMPLATE** itself is supported and makes a NEW repeating series — it copies the template's content and re-creates the recurrence with the source's rule (a fresh series identity; no past/future instances are copied; one instance spawns on create). Because that drives the app's Repeat dialog, a template clone needs `--dangerously-drive-gui` (an ordinary clone stays headless), and it refuses fail-closed if the source's rule can't be expressed by the Repeat dialog (e.g. two end bounds, or a month/year rule with multiple anchors — it names the feature). A paused source is cloned UNPAUSED (re-pause with `pause-repeat`). `undo` trashes the clone (a template clone removes the new series). This differs from the app's native `duplicate` (shallow, URL-only) — prefer `clone` when you need the checked/logged/structural state carried over.
|
|
34
36
|
- Ambiguous refs FAIL with the candidates listed — retry with a UUID or a unique prefix. Never guess between candidates for a destructive action; inspect details or ask. The full candidate shape and dead-row hints are in [errors.md](errors.md).
|
|
35
37
|
- Referenced containers and tags must already exist. Create nested structures **outside-in** (area → project → heading → to-do), and prefer each newly returned UUID as the next reference so duplicate titles cannot redirect placement.
|
|
36
38
|
- Some operations are disruptive and require an explicit flag, **including their dry runs**: `--allow-disruptive` permits an op that briefly steals window focus; an op that visibly DRIVES the Things UI needs both `--allow-disruptive` and `--allow-very-disruptive` (the two-key gate). `things capabilities` lists each operation's support and any preconditions.
|
|
37
39
|
- If a request needs a capability the tool reports as unsupported, say so plainly rather than improvising through unrelated commands.
|
|
38
40
|
|
|
41
|
+
## Cross-device sync timing
|
|
42
|
+
|
|
43
|
+
A verified write is committed to the LOCAL Things database immediately — `ok`/exit 0 means it is present here, right now, and every read on this host sees it at once. Propagation to Things Cloud is prompt too: a change starts syncing out within about 2–3 seconds (Things syncs on change, with no periodic heartbeat to wait for). When another device seems slow to show a change, that lag is the RECEIVING device's own pull/wake cadence — not a delay on the writing side — so do not treat "the write hasn't appeared on my phone yet" as a failed or pending write. Conversely, a change made on ANOTHER device lands in this host's database only once this host has pulled it; if you need to observe an edit made elsewhere, allow for that receive-side cadence rather than assuming it is already here.
|
|
44
|
+
|
|
39
45
|
## Bulk creation (contract summary)
|
|
40
46
|
|
|
41
47
|
- **Several to-dos at once**: `things todo add "T1" "T2" "T3" [shared flags]`. Every shared flag (`--project`/`--area`/`--heading`/`--when`/`--tags`/`--deadline`/…) applies to each title; titles land in argument order. `--stdin` reads newline-delimited titles from stdin (blank lines skipped) instead of positional args (the two are mutually exclusive). `--id-only` prints exactly one uuid per line in creation order — pipe it to chain follow-up commands (mutually exclusive with `--json`).
|
|
@@ -45,19 +51,21 @@ A nonzero exit is informative, not a dead end — it means the write did not sil
|
|
|
45
51
|
|
|
46
52
|
## Batch (many changes at once)
|
|
47
53
|
|
|
48
|
-
`things batch` runs a JSONL script (one `{"op","params",…}` per line) sequentially and independently — no transactions; a failure does not roll back earlier lines.
|
|
54
|
+
`things batch` runs a JSONL script (one `{"op","params",…}` per line) sequentially and independently — no transactions; a failure does not roll back earlier lines. Key behaviors:
|
|
49
55
|
|
|
50
|
-
-
|
|
51
|
-
-
|
|
56
|
+
- **Static preflight — one bad line refuses the WHOLE batch:** before anything runs, every line is checked for structural errors that need no app state (a torn/non-object line, a missing/unknown op, a `make-repeating`/`add-repeating` compound (refused in a batch), non-object `params`, a malformed `opId`, a `$ref` naming a `tempId` that no EARLIER line declares — unknown or forward — or a duplicate `tempId`). ANY such line refuses the ENTIRE batch up front, enumerating every offending line, and dispatches nothing (dry-run runs the same check). Fix the script and resubmit. Only RUNTIME failures (a guard block, verify-failed, an unsupported vector, a `$ref` to an earlier line that ended up creating nothing) are per-line.
|
|
57
|
+
- **Stop-on-failure is the DEFAULT:** a runtime per-line failure HALTS the batch — the failed line is reported and every later line is reported not-run. Pass `--continue-on-error` (MCP `continue_on_error`) to run past failures instead (the old proceed-past behavior). The summary states how many lines did not run and whether a verbatim resubmission is safe to resume.
|
|
58
|
+
- **`tempId` (chaining):** a line that CREATES something (a to-do, project, area, heading — never `tag.add`, and NOT `make-repeating`/`add-repeating`) can carry `"tempId":"proj1"`; a LATER line references that new uuid as `"$proj1"` in any id/container field. This is how you "create a project, then file to-dos into it" in one submission without knowing the uuid up front. Handles are `[A-Za-z0-9_-]{1,32}` and unique per batch.
|
|
59
|
+
- **`opId` (safe retry + RESUME):** carry a stable `"opId"` per line so resubmitting a batch after a failure does not double-create — a line matching an earlier success is reported `already-applied`, not re-run. **Put an `opId` on EVERY line** so a batch that stopped mid-way can be resubmitted VERBATIM to resume: already-applied lines are skipped and the run continues from the failure. Without opIds, a verbatim resubmission RE-RUNS the lines that already committed (the summary's resume guidance names those indices). The single-op analogue is `--op-id <key>` (MCP `op_id`) on ONE mutation: a resubmission with a matched key returns the original success (`alreadyApplied: true`, the original `uuid`/`undoToken`) instead of running again. The variadic `move`/`reorder` are multi-leg compounds and REFUSE `--op-id` — express their idempotency as `things batch` with a per-line `opId`.
|
|
52
60
|
- **Undo the whole batch:** the trailing summary line returns `tempIdMapping` (handle → uuid) and `undoToken`; `things undo --txn <undoToken>` reverses the entire submission as one unit.
|
|
53
61
|
|
|
54
62
|
## Recurrence (contract summary)
|
|
55
63
|
|
|
56
64
|
Full rule vocabulary and worked examples: **`things help repeating`**. The stable contract:
|
|
57
65
|
|
|
58
|
-
-
|
|
59
|
-
- `--after-completion` schedules the next occurrence N units after you complete the current one
|
|
60
|
-
- Repeating operations require `--
|
|
61
|
-
- New repeater
|
|
66
|
+
- `make-repeating` is **promote-via-clone and RECOVERABLE**: it copies the item, promotes the copy to a repeating series, and moves the ORIGINAL to the Trash. The response returns a `repeating` block — `instanceUuid` (the visible current occurrence; use it to reach the item), `templateUuid` (the recurring rule; use it for `reschedule-repeat`), and `replacedUuid` (the disposable clone) — plus a warning naming the trashed original. Use these rather than re-finding the item by title. **`things undo` reverses a promote**: it removes the new series (trashes the template AND its current instance) and restores the original from the Trash. `make-repeating` on a project that CONTAINS a nested repeating template is refused (it names the child). `make-repeating` and `add-repeating` are STANDALONE-only — they are refused as `things batch` lines (multi-leg promote compounds, not atomic ops); run them as their own command.
|
|
67
|
+
- `--after-completion` schedules the next occurrence N units after you complete the current one (a fixed vs after-completion cadence — same recoverable promote).
|
|
68
|
+
- Repeating operations require `--dangerously-drive-gui` (including dry runs — they drive the app's Repeat dialog) and a required `--interval <n>` alongside `--frequency` (`--interval 1` for every unit).
|
|
69
|
+
- New repeater in ONE call: `things todo add-repeating "<title>" --frequency <f> --interval 1 [--when …] [--weekdays …] --dangerously-drive-gui` (and `things project add-repeating "<title>" [--area …] [--todo …] --frequency … --interval …`). The item is created first (and persists even if the promote refuses); `undo` removes the created series. Or make an existing item repeat with `make-repeating`.
|
|
62
70
|
- Multiple weekdays go in ONE rule (`--weekdays monday,thursday,friday`) — never create two repeaters for "every Thursday and Friday".
|
|
63
|
-
- `things show <ref> --json` on an occurrence exposes `
|
|
71
|
+
- `things show <ref> --json` on an occurrence exposes `instanceOf` (the `<templateUuid>`) — use it as the `<ref>` for `reschedule-repeat`. That detail read also carries `repeats: {rule?, next?, paused?}`, the instance's joined template context (the GUI's lower-corner "Repeats on …" caption); `repeats.next` is the projected next occurrence for a fixed rule (absent for after-completion).
|
|
@@ -35,15 +35,17 @@ Entities, relationships, and how the sidebar views are computed over them, as ex
|
|
|
35
35
|
- **logbook** — completed/canceled items.
|
|
36
36
|
- **trash** — trashed items (restorable until the trash is emptied).
|
|
37
37
|
|
|
38
|
+
Beyond the sidebar mirror, **`things deadlines`** is a derived query view (not an app sidebar list): one flat `data.items[]` of every LIVE item — to-dos AND projects — that carries a deadline, ordered `deadline` ASC (most-overdue first), tie-broken by Today order then uuid. Its `stage` is KEPT (stage-mixed, like `search`/`changes`). It is presentation-ordered and **NON-SCOPE** — deadline order IS the view, so it is not reorderable (`reorder --in deadlines` is refused). A dismissed deadline nag does NOT hide a row here (dismissal only affects the Today pull, not the deadline). Deadline-bearing repeating items are PROJECTED at their next occurrence's deadline (the same projection the `upcoming` view uses); a deadline-less or unprojectable template is left out. Filters: `--today` (only current Today members, This-Evening included), `--overdue` (only open items already past today — never projections), `--project`/`--area`/`--tag`, `--limit`/`--all`. MCP: `read_view deadlines` with `today`/`overdue`/`project`/`area`/`tag` params.
|
|
39
|
+
|
|
38
40
|
`things projects`/`areas`/`tags` list containers; `things projects <ref>` / `things areas <ref>` / `things show <ref>` show one item's full detail — notes, checklist, effective tags — which the compact list rows do NOT display.
|
|
39
41
|
|
|
40
42
|
### Reading view membership from JSON — `stage` and `when`
|
|
41
43
|
|
|
42
44
|
Reads decompose an item's position onto two derived, presence-keyed words (they REPLACED the old `start`/`startDate`/`logged`/`trashed`/`todaySection` wire fields, which no longer appear):
|
|
43
45
|
|
|
44
|
-
- **`stage`** — the sidebar BUCKET: `inbox | upcoming | anytime | someday | logbook | trash`. Read view membership off it directly. It is dropped inside a section/catalogue that already states it (the stage-pure `inbox`/`anytime`/`someday`/`logbook`/`trash` lists and the `today` view's two `children` buckets) and kept everywhere it is not implied (the mixed `upcoming` day blocks — future-dated `upcoming` rows beside deadline-forecast `anytime`/`someday` ones — plus `search`, `changes`, the projects/areas listings, and `detail`).
|
|
46
|
+
- **`stage`** — the sidebar BUCKET: `inbox | upcoming | anytime | someday | logbook | trash`. Read view membership off it directly. It is dropped inside a section/catalogue that already states it (the stage-pure `inbox`/`anytime`/`someday`/`logbook`/`trash` lists and the `today` view's two `children` buckets) and kept everywhere it is not implied (the mixed `upcoming` day blocks — future-dated `upcoming` rows beside deadline-forecast `anytime`/`someday` ones — plus `search`, `changes`, `deadlines`, the projects/areas listings, and `detail`).
|
|
45
47
|
- **`when`** — the TIME POSITION: `today | evening | a future ISO date`, or absent (unscheduled and not in Today). `evening` implies today. Someday is a bucket, never a `when`. The `today` view returns `data.children = { today: {items, total?}, evening: {items, total?} }` — two keyed buckets (the bucket key states today/evening, so `when` is dropped inside them); the whole-view count rides `meta.counts` (`{dueOrOverdue, other}`).
|
|
46
|
-
- The two are DIFFERENT facts. A due deadline pulls an UNDATED row into Today: it reads `when: "today"` and derives `stage: "anytime"` — the app re-files a deadline-pulled Inbox/Someday row into Anytime at pull time (
|
|
48
|
+
- The two are DIFFERENT facts. A due deadline pulls an UNDATED row into Today: it reads `when: "today"` and derives `stage: "anytime"` — the app re-files a deadline-pulled Inbox/Someday row into Anytime at pull time (RS8/BANNER1b), so it drops out of the Inbox/Someday lists and joins Anytime while its `when` reads `today`. Completed/canceled → `stage: "logbook"`, trashed → `stage: "trash"`, regardless of any other hint.
|
|
47
49
|
- `provisional: true` marks a Today member the app has not yet materialized — see [banner.md](banner.md).
|
|
48
50
|
|
|
49
51
|
## Tiers — compact vs full (absence is meaningful)
|
|
@@ -56,6 +58,7 @@ Every row comes back at one of two densities, selected by view kind + flag, neve
|
|
|
56
58
|
- **Container absence rule:** inside a single-container node (a project/area card, an `anytime`/`someday` section, a `project show` `headings[]` entry) an item omits any ancestry the node already states, so absent `project`/`area`/`heading` there means *inherited from the enclosing node*. A mixed list (`inbox`/`today`/`search`/`changes`) still names each row's own `project`/`area` (the `heading` ref is compact-dropped outside a project view; `--full` keeps it). In a read-shape v2 **`project show`** view membership is fully STRUCTURAL: every bucket row — un-headed body children AND rows nested under a `headings[]` entry, INCLUDING each `children.logbook` row — drops its `heading` ref, because its position states it. A swept child of an OPEN heading rides that heading's `children.logbook`; a swept child of an ARCHIVED heading rides the archived heading's `children.logbook`; the GUI's PROJECT-vs-HEADING logbook sublabel is TTY-derived from that structural placement, not from a per-row ref.
|
|
57
59
|
- **Container ref shape:** a container ref is a bare **title string** (`"area": "Family"`, `"project": "Groceries"`, `"heading": "Backlog"`). A flat sibling `areaUuid` / `projectUuid` / `headingUuid` (the full uuid) rides alongside **only when the bare title would not resolve back** to that exact item — a duplicate title in the same resolution scope, or a title that is itself a valid uuid prefix. **To act on a ref, pass `.areaUuid // .area`** (same for project/heading): the uuid when present, else the title. For unattended pipelines or stored refs, use `--full` and key on the uuids — the full tier emits every `*Uuid` sibling unconditionally. A row whose container project is a repeating template carries a flat `projectIsTemplate: true` (the JSON twin of the TTY `↻` glyph) — acting on such a row edits the blueprint, affecting future occurrences, so target the intended copy via `projectUuid` (a same-titled occurrence exists alongside the hidden template).
|
|
58
60
|
- **`type` is presence-keyed:** **absent `type` = to-do.** A row omits `type` when it is a to-do; `type` is present for a `project`, `heading`, `area`, or `tag` ROW (including in the error `candidates` shape). This is scoped to ROWS/candidates — a positional keyed node whose kind is fixed by its slot (a `project show` `headings[]` entry) drops `type` too, since its position already states it is a heading.
|
|
61
|
+
- **Repeating templates vs instances (presence-keyed):** a repeating **template** (the hidden rule; list views hide it, `show` finds it) carries a nested `repeating: {paused?, deadlined?, rule?, latestInstance?}` — presence of `repeating` MEANS template; `rule`/`latestInstance` appear on a `show`/`detail` read only, and its projected next date rides the top-level `when`. A spawned **instance** (the visible occurrence) carries a flat `instanceOf: <templateUuid>` and NO `repeating` — presence of `instanceOf` MEANS instance. **On a `show`/`detail` read an instance ALSO carries `repeats: {rule?, next?, paused?}`** — its template's repeat context, the GUI's lower-corner "Repeats on Aug 19" / "Repeats 1 day after completion" caption: `rule` is the same decoded shape the template card emits, `next` the projected next occurrence for a **fixed** rule (ABSENT for after-completion — no successor date until the current instance completes), `paused: true` when the template is paused. It is read-only CONTEXT — `instanceOf` is the write handle (target the occurrence by it; the rule lives on the template). `repeats` is absent on list rows and when the template is unresolvable. A plain (non-repeating) row carries none of these.
|
|
59
62
|
|
|
60
63
|
## Filters over views
|
|
61
64
|
|
|
@@ -58,6 +58,8 @@ A Today/Evening member has TWO order slots: its slot in the Today VIEW (`todayIn
|
|
|
58
58
|
- `--in someday` / `--in anytime` / a container ref on a same-day forecast set reorders its CONTAINER index (its someday/anytime list order), never the day-block — the explicit axis is honored, not overridden by the day route.
|
|
59
59
|
- Forcing the container index axis on a Today/Evening member PRESERVES the Today/Evening flag — a flag-safe move protocol routes it off the de-Today path. Only the someday/inbox loose axes still refuse a flagged member (their re-entry cannot preserve the flag).
|
|
60
60
|
|
|
61
|
+
**A Today reorder preserves the rest of Today's grouping.** The Today view groups rows by the day each ENTERED Today (its entry cohort), newest first, then manual order within a cohort. The app's native Today reorder can only pull a named row up to *today*'s cohort, so `things reorder` composes the MINIMAL wire that realizes your placement — it names only what must move, and every other Today row keeps its entry cohort and its visible position untouched. A `--first`/`--start` moves the named row(s) to the visible top, re-dating only THEIR entry cohort to today (inherent, expected). A `--before`/`--after`/`--end` that reaches across the grouping has to name the co-listed rows ABOVE the drop point too, which re-stamps THEIR entry cohort to today (changing only their Today grouping, never their schedule) — the result `warnings` + `--dry-run` disclose how many co-listed rows that is, so a broad cohort re-date is never silent. (A container reorder — project/area/heading/inbox/someday — has no entry-cohort dimension, so this note is Today/Evening-only.)
|
|
62
|
+
|
|
61
63
|
## Mixed-stage move placement
|
|
62
64
|
|
|
63
65
|
A `move` selection spanning stage sub-buckets (anytime + scheduled + someday + templates):
|