@jamesaphoenix/tx 0.4.0 → 0.4.2
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/create-tx.d.ts +2 -2
- package/dist/create-tx.d.ts.map +1 -1
- package/dist/create-tx.js +2 -2
- package/dist/create-tx.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +5 -4
- package/README.md +0 -69
package/dist/create-tx.d.ts
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
* ```
|
|
29
29
|
*/
|
|
30
30
|
import { Effect, Exit, Layer } from "effect";
|
|
31
|
-
import { RetrieverService } from "@tx
|
|
31
|
+
import { RetrieverService } from "@jamesaphoenix/tx-core";
|
|
32
32
|
/**
|
|
33
33
|
* Options for configuring createTx().
|
|
34
34
|
*
|
|
@@ -143,5 +143,5 @@ export interface TxClient {
|
|
|
143
143
|
* ```
|
|
144
144
|
*/
|
|
145
145
|
export declare const createTx: (options?: CreateTxOptions) => TxClient;
|
|
146
|
-
export { RetrieverService } from "@tx
|
|
146
|
+
export { RetrieverService } from "@jamesaphoenix/tx-core";
|
|
147
147
|
//# sourceMappingURL=create-tx.d.ts.map
|
package/dist/create-tx.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-tx.d.ts","sourceRoot":"","sources":["../src/create-tx.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAkB,MAAM,QAAQ,CAAA;AAC5D,OAAO,EAEL,gBAAgB,EACjB,MAAM,
|
|
1
|
+
{"version":3,"file":"create-tx.d.ts","sourceRoot":"","sources":["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AAgB,EAAE,MAAM,wBAAwB,CAAA"}
|
package/dist/create-tx.js
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
* ```
|
|
29
29
|
*/
|
|
30
30
|
import { Layer, ManagedRuntime } from "effect";
|
|
31
|
-
import { makeAppLayer } from "@tx
|
|
31
|
+
import { makeAppLayer } from "@jamesaphoenix/tx-core";
|
|
32
32
|
/**
|
|
33
33
|
* Create a tx client with optional configuration.
|
|
34
34
|
*
|
|
@@ -98,5 +98,5 @@ export const createTx = (options = {}) => {
|
|
|
98
98
|
};
|
|
99
99
|
};
|
|
100
100
|
// Re-export RetrieverService for custom retriever implementations
|
|
101
|
-
export { RetrieverService } from "@tx
|
|
101
|
+
export { RetrieverService } from "@jamesaphoenix/tx-core";
|
|
102
102
|
//# sourceMappingURL=create-tx.js.map
|
package/dist/create-tx.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-tx.js","sourceRoot":"","sources":["../src/create-tx.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,OAAO,EAAgB,KAAK,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAA;AAC5D,OAAO,EACL,YAAY,EAEb,MAAM,
|
|
1
|
+
{"version":3,"file":"create-tx.js","sourceRoot":"","sources":["../src/create-tx.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,OAAO,EAAgB,KAAK,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAA;AAC5D,OAAO,EACL,YAAY,EAEb,MAAM,wBAAwB,CAAA;AA6E/B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,UAA2B,EAAE,EAAY,EAAE;IAClE,MAAM,EACJ,MAAM,GAAG,cAAc,EACvB,SAAS,EACV,GAAG,OAAO,CAAA;IAEX,2BAA2B;IAC3B,MAAM,SAAS,GAAG,YAAY,CAAC,MAAM,CAAC,CAAA;IAEtC,wEAAwE;IACxE,gFAAgF;IAChF,MAAM,QAAQ,GAAG,SAAS;QACxB,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,SAAS,EAAE,SAAS,CAAC;QAC1C,CAAC,CAAC,SAAS,CAAA;IAEb,2DAA2D;IAC3D,MAAM,cAAc,GAAG,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;IAEpD,OAAO;QACL,GAAG,EAAE,KAAK,EAAQ,MAAkC,EAAc,EAAE;YAClE,OAAO,cAAc,CAAC,UAAU,CAAC,MAAM,CAAC,CAAA;QAC1C,CAAC;QAED,OAAO,EAAE,KAAK,EAAQ,MAAkC,EAAkC,EAAE;YAC1F,OAAO,cAAc,CAAC,cAAc,CAAC,MAAM,CAAC,CAAA;QAC9C,CAAC;QAED,KAAK,EAAE,QAAQ;QAEf,KAAK,EAAE,KAAK,IAAmB,EAAE;YAC/B,MAAM,cAAc,CAAC,OAAO,EAAE,CAAA;QAChC,CAAC;KACF,CAAA;AACH,CAAC,CAAA;AAED,kEAAkE;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
* });
|
|
35
35
|
* ```
|
|
36
36
|
*/
|
|
37
|
-
export * from "@tx
|
|
37
|
+
export * from "@jamesaphoenix/tx-core";
|
|
38
38
|
export { createTx, type CreateTxOptions, type TxClient } from "./create-tx.js";
|
|
39
|
-
export type { TaskStatus, TaskId, Task, TaskWithDeps, TaskTree, TaskDependency, CreateTaskInput, UpdateTaskInput, TaskFilter, LearningSourceType, LearningId, Learning, LearningWithScore, CreateLearningInput, UpdateLearningInput, LearningQuery, ContextOptions, ContextResult, RetrievalOptions, AttemptOutcome, AttemptId, Attempt, CreateAttemptInput, RunId, RunStatus, Run, CreateRunInput, UpdateRunInput, AnchorId, AnchorType, AnchorStatus, Anchor, CreateAnchorInput, EdgeId, NodeType, EdgeType, Edge, CreateEdgeInput, } from "@tx
|
|
40
|
-
export { TASK_STATUSES, VALID_TRANSITIONS, LEARNING_SOURCE_TYPES, ATTEMPT_OUTCOMES, RUN_STATUSES, ANCHOR_TYPES, ANCHOR_STATUSES, NODE_TYPES, EDGE_TYPES, } from "@tx
|
|
39
|
+
export type { TaskStatus, TaskId, Task, TaskWithDeps, TaskTree, TaskDependency, CreateTaskInput, UpdateTaskInput, TaskFilter, LearningSourceType, LearningId, Learning, LearningWithScore, CreateLearningInput, UpdateLearningInput, LearningQuery, ContextOptions, ContextResult, RetrievalOptions, AttemptOutcome, AttemptId, Attempt, CreateAttemptInput, RunId, RunStatus, Run, CreateRunInput, UpdateRunInput, AnchorId, AnchorType, AnchorStatus, Anchor, CreateAnchorInput, EdgeId, NodeType, EdgeType, Edge, CreateEdgeInput, } from "@jamesaphoenix/tx-types";
|
|
40
|
+
export { TASK_STATUSES, VALID_TRANSITIONS, LEARNING_SOURCE_TYPES, ATTEMPT_OUTCOMES, RUN_STATUSES, ANCHOR_TYPES, ANCHOR_STATUSES, NODE_TYPES, EDGE_TYPES, } from "@jamesaphoenix/tx-types";
|
|
41
41
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAGH,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAGH,cAAc,wBAAwB,CAAC;AAGvC,OAAO,EAAE,QAAQ,EAAE,KAAK,eAAe,EAAE,KAAK,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAG/E,YAAY,EAEV,UAAU,EACV,MAAM,EACN,IAAI,EACJ,YAAY,EACZ,QAAQ,EACR,cAAc,EACd,eAAe,EACf,eAAe,EACf,UAAU,EAEV,kBAAkB,EAClB,UAAU,EACV,QAAQ,EACR,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,aAAa,EACb,cAAc,EACd,aAAa,EACb,gBAAgB,EAEhB,cAAc,EACd,SAAS,EACT,OAAO,EACP,kBAAkB,EAElB,KAAK,EACL,SAAS,EACT,GAAG,EACH,cAAc,EACd,cAAc,EAEd,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,MAAM,EACN,iBAAiB,EAEjB,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,IAAI,EACJ,eAAe,GAChB,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,qBAAqB,EACrB,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,eAAe,EACf,UAAU,EACV,UAAU,GACX,MAAM,yBAAyB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
* });
|
|
35
35
|
* ```
|
|
36
36
|
*/
|
|
37
|
-
// Re-export everything from @tx
|
|
38
|
-
export * from "@tx
|
|
37
|
+
// Re-export everything from @jamesaphoenix/tx-core
|
|
38
|
+
export * from "@jamesaphoenix/tx-core";
|
|
39
39
|
// Export createTx and related types
|
|
40
40
|
export { createTx } from "./create-tx.js";
|
|
41
41
|
// Re-export constants from types
|
|
42
|
-
export { TASK_STATUSES, VALID_TRANSITIONS, LEARNING_SOURCE_TYPES, ATTEMPT_OUTCOMES, RUN_STATUSES, ANCHOR_TYPES, ANCHOR_STATUSES, NODE_TYPES, EDGE_TYPES, } from "@tx
|
|
42
|
+
export { TASK_STATUSES, VALID_TRANSITIONS, LEARNING_SOURCE_TYPES, ATTEMPT_OUTCOMES, RUN_STATUSES, ANCHOR_TYPES, ANCHOR_STATUSES, NODE_TYPES, EDGE_TYPES, } from "@jamesaphoenix/tx-types";
|
|
43
43
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAEH,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAEH,mDAAmD;AACnD,cAAc,wBAAwB,CAAC;AAEvC,oCAAoC;AACpC,OAAO,EAAE,QAAQ,EAAuC,MAAM,gBAAgB,CAAC;AAkD/E,iCAAiC;AACjC,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,qBAAqB,EACrB,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,eAAe,EACf,UAAU,EACV,UAAU,GACX,MAAM,yBAAyB,CAAC"}
|
package/dist/types.d.ts
CHANGED
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,cAAc,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,cAAc,yBAAyB,CAAC"}
|
package/dist/types.js
CHANGED
package/dist/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,cAAc,
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,cAAc,yBAAyB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jamesaphoenix/tx",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"description": "TanStack for AI agents - headless primitives for memory, tasks, and orchestration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"prepublishOnly": "npm run build"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@tx
|
|
29
|
-
"@tx
|
|
28
|
+
"@jamesaphoenix/tx-core": "^0.4.2",
|
|
29
|
+
"@jamesaphoenix/tx-types": "^0.4.2"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"better-sqlite3": "^11.0.0",
|
|
@@ -39,7 +39,8 @@
|
|
|
39
39
|
},
|
|
40
40
|
"repository": {
|
|
41
41
|
"type": "git",
|
|
42
|
-
"url": "https://github.com/jamesaphoenix/tx.git"
|
|
42
|
+
"url": "https://github.com/jamesaphoenix/tx.git",
|
|
43
|
+
"directory": "packages/tx"
|
|
43
44
|
},
|
|
44
45
|
"keywords": [
|
|
45
46
|
"task-management",
|
package/README.md
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
# @jamesaphoenix/tx
|
|
2
|
-
|
|
3
|
-
**TanStack for AI agents.** Headless primitives for memory, tasks, and orchestration.
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npm install @jamesaphoenix/tx better-sqlite3 effect
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Quick Start
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import { createTx } from '@jamesaphoenix/tx'
|
|
15
|
-
|
|
16
|
-
// Initialize tx
|
|
17
|
-
const tx = createTx()
|
|
18
|
-
|
|
19
|
-
// Create a task
|
|
20
|
-
const task = await tx.add({
|
|
21
|
-
title: 'Implement feature X',
|
|
22
|
-
status: 'ready'
|
|
23
|
-
})
|
|
24
|
-
|
|
25
|
-
// Get next workable task
|
|
26
|
-
const next = await tx.ready()
|
|
27
|
-
|
|
28
|
-
// Complete a task
|
|
29
|
-
await tx.done(task.id)
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
## CLI Usage
|
|
33
|
-
|
|
34
|
-
```bash
|
|
35
|
-
# Install globally
|
|
36
|
-
npm install -g @jamesaphoenix/tx
|
|
37
|
-
|
|
38
|
-
# Create tasks
|
|
39
|
-
tx add "Implement feature X"
|
|
40
|
-
|
|
41
|
-
# Get next ready task
|
|
42
|
-
tx ready
|
|
43
|
-
|
|
44
|
-
# Complete a task
|
|
45
|
-
tx done <task-id>
|
|
46
|
-
|
|
47
|
-
# View task tree
|
|
48
|
-
tx tree <task-id>
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
## Philosophy: Primitives, Not Frameworks
|
|
52
|
-
|
|
53
|
-
tx provides headless infrastructure for AI agent orchestration. You own your orchestration logic - tx owns the primitives.
|
|
54
|
-
|
|
55
|
-
| Primitive | Purpose |
|
|
56
|
-
|-----------|---------|
|
|
57
|
-
| `tx ready` | Get next workable task (unblocked, highest priority) |
|
|
58
|
-
| `tx claim <id>` | Mark task as being worked by an agent |
|
|
59
|
-
| `tx done <id>` | Complete task, potentially unblocking others |
|
|
60
|
-
| `tx block <id> <blocker>` | Declare dependencies |
|
|
61
|
-
| `tx handoff <id> --to <agent>` | Transfer task with context |
|
|
62
|
-
|
|
63
|
-
## Documentation
|
|
64
|
-
|
|
65
|
-
Full documentation: [github.com/jamesaphoenix/tx](https://github.com/jamesaphoenix/tx)
|
|
66
|
-
|
|
67
|
-
## License
|
|
68
|
-
|
|
69
|
-
MIT
|