@juli-os/ledger 0.1.2 → 0.1.4

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/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export { createLedgerStore, type LifecycleStore } from './platform/ledger/store.ts';
2
2
  export type { Workflow, Step, WorkflowStatus, StepStatus, StepKind } from './contracts/entities.ts';
3
+ export { TERMINAL_WORKFLOW_STATUSES, STEP_KINDS, AGENT_STEP_KINDS, INSTRUCTABLE_STEP_KINDS, type LedgerEvent, type Run, type Prompt, type TaskView, } from './contracts/entities.ts';
3
4
  export { createUsageStore, type UsageRecord, type UsageStats, type TimelinePoint, type UsageStore, } from './platform/ledger/usage.ts';
4
5
  export { findPrice, priceUsage, type TierWhen, type PriceTier, type ModelPrice, PRICING_SOURCE, PRICING_RETRIEVED_AT, BIGMODEL_PRICES, type UsageRow, type CostBreakdown, type ModelUsageCost, type UsageCost, } from './platform/ledger/pricing.ts';
5
6
  export { emptyCaseFile, parseCaseFile, serializeCaseFile, withOriginal, appendSection, appendExecution, appendDecision, appendReference, originalEmail, type CaseDecision, type ArtifactRef, type CaseFileDoc, } from './platform/ledger/casefile.ts';
package/dist/index.js CHANGED
@@ -29,7 +29,18 @@ var TERMINAL_WORKFLOW_STATUSES = [
29
29
  "cancelled",
30
30
  "rejected"
31
31
  ];
32
+ var STEP_KINDS = [
33
+ "triage",
34
+ "gate",
35
+ "agent",
36
+ "verify",
37
+ "draft",
38
+ "send",
39
+ "llm",
40
+ "share"
41
+ ];
32
42
  var AGENT_STEP_KINDS = ["agent", "verify"];
43
+ var INSTRUCTABLE_STEP_KINDS = ["agent", "verify", "llm", "draft"];
33
44
 
34
45
  // src/contracts/statuses.ts
35
46
  var WORKFLOW_STATUSES = [
@@ -1239,9 +1250,13 @@ var parseAssistantLine = (line) => {
1239
1250
  }
1240
1251
  };
1241
1252
  export {
1253
+ AGENT_STEP_KINDS,
1242
1254
  BIGMODEL_PRICES,
1255
+ INSTRUCTABLE_STEP_KINDS,
1243
1256
  PRICING_RETRIEVED_AT,
1244
1257
  PRICING_SOURCE,
1258
+ STEP_KINDS,
1259
+ TERMINAL_WORKFLOW_STATUSES,
1245
1260
  appendDecision,
1246
1261
  appendExecution,
1247
1262
  appendReference,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juli-os/ledger",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "juli-os L1 layer: the ledger of record for agent work — workflows, steps, case files, and token usage in one zero-dependency SQLite layer.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -30,13 +30,17 @@
30
30
  "prepublishOnly": "npm run build"
31
31
  },
32
32
  "devDependencies": {
33
+ "@types/node": "^22.0.0",
33
34
  "esbuild": "^0.24.0",
34
- "typescript": "^5.6.0",
35
- "@types/node": "^22.0.0"
35
+ "typescript": "^5.6.0"
36
36
  },
37
37
  "publishConfig": {
38
38
  "registry": "https://registry.npmjs.org/",
39
39
  "access": "public"
40
40
  },
41
- "license": "Apache-2.0"
42
- }
41
+ "license": "Apache-2.0",
42
+ "repository": {
43
+ "type": "git",
44
+ "url": "git+https://github.com/juli-os/ledger.git"
45
+ }
46
+ }