memax-sdk 0.8.0-alpha.257 → 0.8.0-alpha.261
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/dist/v2/schema.gen.d.ts +144 -9
- package/dist/v2/schema.gen.d.ts.map +1 -1
- package/dist/v2/types.d.ts +4 -0
- package/dist/v2/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/v2/schema.gen.d.ts
CHANGED
|
@@ -3125,10 +3125,13 @@ export interface components {
|
|
|
3125
3125
|
* unlinked. A change to which repositories a memory applies in
|
|
3126
3126
|
* (`:scope`) writes scoped: a person widening it, or Memax (via
|
|
3127
3127
|
* system) tying a personal fact an earlier `memax init` imported to
|
|
3128
|
-
* its repository.
|
|
3128
|
+
* its repository. A change to a memory's conditions that writes no
|
|
3129
|
+
* version is conditions_changed (Memax, via system, typing what was
|
|
3130
|
+
* written before they were typed). Memax's derived conditions ride on
|
|
3131
|
+
* the command that wrote the version, with no receipt of their own.
|
|
3129
3132
|
* @enum {string}
|
|
3130
3133
|
*/
|
|
3131
|
-
ReceiptAction: "proposed" | "kept" | "edited" | "rejected" | "merged" | "flagged" | "resolved" | "verified" | "faded" | "restored" | "forgot" | "moved" | "compiled" | "handed_off" | "answered" | "undid" | "connected" | "autonomy_changed" | "paused" | "resumed" | "disconnected" | "revised" | "configured" | "requested" | "delivered" | "observed" | "pulled" | "overwritten" | "stopped" | "judged" | "linked" | "superseded" | "asked" | "withdrawn" | "returned" | "drafted" | "purged" | "forget_requested" | "forget_declined" | "published" | "folded" | "exported" | "noted" | "switched" | "switched_back" | "unlinked" | "scoped";
|
|
3134
|
+
ReceiptAction: "proposed" | "kept" | "edited" | "rejected" | "merged" | "flagged" | "resolved" | "verified" | "faded" | "restored" | "forgot" | "moved" | "compiled" | "handed_off" | "answered" | "undid" | "connected" | "autonomy_changed" | "paused" | "resumed" | "disconnected" | "revised" | "configured" | "requested" | "delivered" | "observed" | "pulled" | "overwritten" | "stopped" | "judged" | "linked" | "superseded" | "asked" | "withdrawn" | "returned" | "drafted" | "purged" | "forget_requested" | "forget_declined" | "published" | "folded" | "exported" | "noted" | "switched" | "switched_back" | "unlinked" | "scoped" | "conditions_changed";
|
|
3132
3135
|
/** @enum {string} */
|
|
3133
3136
|
ObjectKind: "memory" | "note" | "brief" | "target" | "compile" | "handoff" | "gate" | "dream" | "agent" | "space" | "machine";
|
|
3134
3137
|
/**
|
|
@@ -3438,8 +3441,13 @@ export interface components {
|
|
|
3438
3441
|
/** @description The statement's version; also the `ETag`. */
|
|
3439
3442
|
version: number;
|
|
3440
3443
|
stale_after?: components["schemas"]["Timestamp"];
|
|
3441
|
-
/**
|
|
3442
|
-
|
|
3444
|
+
/**
|
|
3445
|
+
* @description "Stays true while" conditions, at most 8: what Memax derived from
|
|
3446
|
+
* the paths the memory names (origin derived), and what a person,
|
|
3447
|
+
* the judge or Dream attached. The date to check again is
|
|
3448
|
+
* `stale_after`.
|
|
3449
|
+
*/
|
|
3450
|
+
conditions: components["schemas"]["Condition"][];
|
|
3443
3451
|
decision?: components["schemas"]["Decision"];
|
|
3444
3452
|
scope: components["schemas"]["MemoryScope"];
|
|
3445
3453
|
valid_from?: components["schemas"]["Timestamp"];
|
|
@@ -4570,8 +4578,14 @@ export interface components {
|
|
|
4570
4578
|
sources?: components["schemas"]["SourceInput"][];
|
|
4571
4579
|
/** @description When it should be verified again. */
|
|
4572
4580
|
stale_after?: components["schemas"]["Timestamp"];
|
|
4573
|
-
/**
|
|
4574
|
-
|
|
4581
|
+
/**
|
|
4582
|
+
* @description Conditions a person attaches, typed; `id` and `origin` are Memax's
|
|
4583
|
+
* to set and are ignored here. Memax derives path conditions from
|
|
4584
|
+
* the words on its own (in a project space with a repository), and
|
|
4585
|
+
* only people send these: an agent's are refused. A
|
|
4586
|
+
* file_contains' text that looks like a credential is refused.
|
|
4587
|
+
*/
|
|
4588
|
+
conditions?: components["schemas"]["Condition"][];
|
|
4575
4589
|
scope?: components["schemas"]["MemoryScope"];
|
|
4576
4590
|
valid_from?: components["schemas"]["Timestamp"];
|
|
4577
4591
|
valid_to?: components["schemas"]["Timestamp"];
|
|
@@ -4912,6 +4926,106 @@ export interface components {
|
|
|
4912
4926
|
/** @description The memories forgotten with it. */
|
|
4913
4927
|
memories: components["schemas"]["Memory"][];
|
|
4914
4928
|
};
|
|
4929
|
+
/**
|
|
4930
|
+
* @description Who attached a condition. derived: Memax read it off the memory (see
|
|
4931
|
+
* `from`). judge, dream or person: they attached it.
|
|
4932
|
+
* @enum {string}
|
|
4933
|
+
*/
|
|
4934
|
+
ConditionOrigin: "derived" | "judge" | "dream" | "person";
|
|
4935
|
+
/**
|
|
4936
|
+
* @description Where Memax read a derived condition off: the statement's words, a
|
|
4937
|
+
* file a source cites, or the scope's paths.
|
|
4938
|
+
* @enum {string}
|
|
4939
|
+
*/
|
|
4940
|
+
ConditionFrom: "statement" | "source" | "scope";
|
|
4941
|
+
/** @description Stable within the memory. */
|
|
4942
|
+
ConditionId: string;
|
|
4943
|
+
/**
|
|
4944
|
+
* @description A typed "stays true while" predicate on the repository at a commit.
|
|
4945
|
+
* Each kind takes its own fields and nothing else. A condition flags a
|
|
4946
|
+
* memory stale only after it has held once on the default branch.
|
|
4947
|
+
*/
|
|
4948
|
+
Condition: components["schemas"]["PathExistsCondition"] | components["schemas"]["FileContainsCondition"] | components["schemas"]["DepPresentCondition"] | components["schemas"]["FileUnchangedCondition"] | components["schemas"]["PrStateCondition"];
|
|
4949
|
+
/**
|
|
4950
|
+
* @description The path is in the tree (`path`), or at least one path matches the
|
|
4951
|
+
* glob (`glob`, the scope glob syntax). Exactly one of the two.
|
|
4952
|
+
*/
|
|
4953
|
+
PathExistsCondition: {
|
|
4954
|
+
id?: components["schemas"]["ConditionId"];
|
|
4955
|
+
/**
|
|
4956
|
+
* @description discriminator enum property added by openapi-typescript
|
|
4957
|
+
* @enum {string}
|
|
4958
|
+
*/
|
|
4959
|
+
kind: "path_exists";
|
|
4960
|
+
path?: components["schemas"]["ConditionPath"];
|
|
4961
|
+
glob?: string;
|
|
4962
|
+
origin?: components["schemas"]["ConditionOrigin"];
|
|
4963
|
+
from?: components["schemas"]["ConditionFrom"];
|
|
4964
|
+
};
|
|
4965
|
+
/** @description The file contains the text, literally and case-sensitively; as a whole word when `word`. */
|
|
4966
|
+
FileContainsCondition: {
|
|
4967
|
+
id?: components["schemas"]["ConditionId"];
|
|
4968
|
+
/**
|
|
4969
|
+
* @description discriminator enum property added by openapi-typescript
|
|
4970
|
+
* @enum {string}
|
|
4971
|
+
*/
|
|
4972
|
+
kind: "file_contains";
|
|
4973
|
+
path: components["schemas"]["ConditionPath"];
|
|
4974
|
+
text: string;
|
|
4975
|
+
word?: boolean;
|
|
4976
|
+
origin?: components["schemas"]["ConditionOrigin"];
|
|
4977
|
+
from?: components["schemas"]["ConditionFrom"];
|
|
4978
|
+
};
|
|
4979
|
+
/**
|
|
4980
|
+
* @description The manifest declares the dependency, and its declared constraint
|
|
4981
|
+
* satisfies `range` if one is given. `manifest` is a path, or a bare
|
|
4982
|
+
* name (go.mod, package.json, pyproject.toml, Cargo.toml,
|
|
4983
|
+
* requirements.txt) meaning that manifest anywhere in the repository.
|
|
4984
|
+
*/
|
|
4985
|
+
DepPresentCondition: {
|
|
4986
|
+
id?: components["schemas"]["ConditionId"];
|
|
4987
|
+
/**
|
|
4988
|
+
* @description discriminator enum property added by openapi-typescript
|
|
4989
|
+
* @enum {string}
|
|
4990
|
+
*/
|
|
4991
|
+
kind: "dep_present";
|
|
4992
|
+
manifest: components["schemas"]["ConditionPath"];
|
|
4993
|
+
name: string;
|
|
4994
|
+
range?: string;
|
|
4995
|
+
origin?: components["schemas"]["ConditionOrigin"];
|
|
4996
|
+
from?: components["schemas"]["ConditionFrom"];
|
|
4997
|
+
};
|
|
4998
|
+
/** @description The file's git blob id is the one it had when the condition was attached. */
|
|
4999
|
+
FileUnchangedCondition: {
|
|
5000
|
+
id?: components["schemas"]["ConditionId"];
|
|
5001
|
+
/**
|
|
5002
|
+
* @description discriminator enum property added by openapi-typescript
|
|
5003
|
+
* @enum {string}
|
|
5004
|
+
*/
|
|
5005
|
+
kind: "file_unchanged";
|
|
5006
|
+
path: components["schemas"]["ConditionPath"];
|
|
5007
|
+
blob: string;
|
|
5008
|
+
origin?: components["schemas"]["ConditionOrigin"];
|
|
5009
|
+
from?: components["schemas"]["ConditionFrom"];
|
|
5010
|
+
};
|
|
5011
|
+
/** @description The pull request is in that state. */
|
|
5012
|
+
PrStateCondition: {
|
|
5013
|
+
id?: components["schemas"]["ConditionId"];
|
|
5014
|
+
/**
|
|
5015
|
+
* @description discriminator enum property added by openapi-typescript
|
|
5016
|
+
* @enum {string}
|
|
5017
|
+
*/
|
|
5018
|
+
kind: "pr_state";
|
|
5019
|
+
/** @description owner/name. */
|
|
5020
|
+
repo: string;
|
|
5021
|
+
number: number;
|
|
5022
|
+
/** @enum {string} */
|
|
5023
|
+
state: "open" | "merged" | "closed";
|
|
5024
|
+
origin?: components["schemas"]["ConditionOrigin"];
|
|
5025
|
+
from?: components["schemas"]["ConditionFrom"];
|
|
5026
|
+
};
|
|
5027
|
+
/** @description Relative to the repository root, with no `..`, no leading `/` or `~`, and no spaces. */
|
|
5028
|
+
ConditionPath: string;
|
|
4915
5029
|
/**
|
|
4916
5030
|
* @description A person's answer to a stale flag. still_true: it is still true, as
|
|
4917
5031
|
* it is. update: it is true with new words. forget: it isn't true;
|
|
@@ -5036,9 +5150,12 @@ export interface components {
|
|
|
5036
5150
|
* request) to write it. compiling: not compiled yet. paused: the agent
|
|
5037
5151
|
* is paused, and is told before it reads anything else. disconnected:
|
|
5038
5152
|
* the agent can't read any more. next_read: told on its next read.
|
|
5153
|
+
* offline: a home file whose machine's daemon hasn't been seen in the
|
|
5154
|
+
* last 15 minutes (`target.machine.last_seen_at`); its file still
|
|
5155
|
+
* holds it until the machine connects, and is rewritten then.
|
|
5039
5156
|
* @enum {string}
|
|
5040
5157
|
*/
|
|
5041
|
-
StepReason: "hand_edit" | "stopped" | "copy" | "delivery" | "compiling" | "paused" | "disconnected" | "next_read";
|
|
5158
|
+
StepReason: "hand_edit" | "stopped" | "copy" | "delivery" | "compiling" | "paused" | "disconnected" | "next_read" | "offline";
|
|
5042
5159
|
/**
|
|
5043
5160
|
* @description A copy Memax can't reach. git_history: earlier commits of the
|
|
5044
5161
|
* compiled files. agent_memory: what agents saved in their own memory.
|
|
@@ -5046,10 +5163,12 @@ export interface components {
|
|
|
5046
5163
|
* (the forget ledger is re-applied after any restore). llm: model
|
|
5047
5164
|
* providers that processed the words. hand_edits: files with a hand
|
|
5048
5165
|
* edit Memax won't write over. copies: copy-outs a person pasted
|
|
5049
|
-
* elsewhere.
|
|
5166
|
+
* elsewhere. source_files: the person's own files on their machines
|
|
5167
|
+
* that Memax imported it from (`count` of them; their paths were
|
|
5168
|
+
* forgotten with it), which Memax never edits.
|
|
5050
5169
|
* @enum {string}
|
|
5051
5170
|
*/
|
|
5052
|
-
UnreachableKind: "git_history" | "agent_memory" | "backups" | "llm" | "hand_edits" | "copies";
|
|
5171
|
+
UnreachableKind: "git_history" | "agent_memory" | "backups" | "llm" | "hand_edits" | "copies" | "source_files";
|
|
5053
5172
|
TombstoneActor: {
|
|
5054
5173
|
/**
|
|
5055
5174
|
* @description `person`, or `memax` when the forget ledger re-applied it after a restore.
|
|
@@ -5069,6 +5188,18 @@ export interface components {
|
|
|
5069
5188
|
kind: components["schemas"]["TargetKind"];
|
|
5070
5189
|
label: string;
|
|
5071
5190
|
delivery: components["schemas"]["Delivery"];
|
|
5191
|
+
/** @description A home file's machine. */
|
|
5192
|
+
machine?: components["schemas"]["TombstoneMachine"];
|
|
5193
|
+
};
|
|
5194
|
+
/** @description The machine a home file is on, as a tombstone names it. */
|
|
5195
|
+
TombstoneMachine: {
|
|
5196
|
+
id: components["schemas"]["Id"];
|
|
5197
|
+
label: components["schemas"]["MachineLabel"];
|
|
5198
|
+
name: string;
|
|
5199
|
+
/** @description Whether it is still linked (in a tombstone). */
|
|
5200
|
+
linked?: boolean;
|
|
5201
|
+
/** @description When its daemon last read its files (in a tombstone). */
|
|
5202
|
+
last_seen_at?: components["schemas"]["Timestamp"];
|
|
5072
5203
|
};
|
|
5073
5204
|
/** @description What Forget took out of Memax. */
|
|
5074
5205
|
TombstoneGone: {
|
|
@@ -5112,6 +5243,10 @@ export interface components {
|
|
|
5112
5243
|
days?: number;
|
|
5113
5244
|
processors?: components["schemas"]["Processor"][];
|
|
5114
5245
|
targets?: string[];
|
|
5246
|
+
/** @description With hand_edits, the machines whose home files have the hand edits. */
|
|
5247
|
+
machines?: string[];
|
|
5248
|
+
/** @description With source_files, how many of the person's files. */
|
|
5249
|
+
count?: number;
|
|
5115
5250
|
};
|
|
5116
5251
|
/** @description What Forget did to one memory (or a whole space). Never words. */
|
|
5117
5252
|
Tombstone: {
|