@lotics/cli 0.312.7 → 0.312.9

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/docs/design.md CHANGED
@@ -259,38 +259,36 @@ catalog: one line per kind, the ones not yet filled standing empty, filled in pl
259
259
  to the record's own multi-select of those it needs. The papers a case gathers, the fees a record knows it
260
260
  owes. Worked: `examples/case`.
261
261
 
262
+ `only` lists the kinds a block holds a line for, so each kind stands in the section whose job it is, once. The act making a paper (`paper: "<child>.<kind>"`) is its line's button while it applies, the upload in the ⋯.
263
+
262
264
  #### Templates
263
265
 
264
266
  A paper the business makes is an act's `template`, kept in the record's files field `into` — or several at
265
- once, `templates`: listed where the act stands, each made one as its file and each not yet made as a
266
- placeholder, the reader ticking which to make. A template no act names is made by nothing. Worked: `examples/case`.
267
+ once, `templates`: listed where the act stands, each made one as its file, each not yet made a placeholder,
268
+ the reader ticking which to make. Worked: `examples/case`.
267
269
 
268
270
  #### Intake
269
271
 
270
272
  A paper the business is brought and reads is an act's `intake`: the press takes the papers, an agent reads
271
273
  them, and each is filed as the line of its kind in the child the record `expect`s, while `fills` writes what
272
- they state into the record's fields — a single link as a row the agent finds among those the app reads of its
273
- entity — shown before it is saved. Worked: `examples/case`.
274
+ they state into the record's fields — a single link as a row the agent finds among those the app reads — shown before it is saved. Worked: `examples/case`.
274
275
 
275
- An agent act — an `intake`, a `record`'s `fills` — spends a run on every press and writes what the record
276
- says, so it is stated only where the owner asked for an agent to do that job; otherwise a paper brought is its
277
- line of the `expect` block, and a person types what it states.
276
+ An agent act — an `intake`, a `record`'s `fills` — spends a run on every press, so it is stated only where the
277
+ owner asked for an agent to do that job; otherwise a paper brought is its `expect` line, and a person types what it states.
278
278
 
279
279
  #### Under
280
280
 
281
281
  A rows block with `under`: the documents that cover lines (an invoice over its fee lines) stand as headings
282
- over the lines they cover, and a line no document covers offers to make one. A document entered as it arrives,
283
- over lines already on file (a supplier bill), picks them from its own record instead: a rows block with `pick`.
284
- Choose one per document: a document a make covers lines by is never also picked into, since a pick does not check
285
- what the make does.
282
+ over the lines they cover, and a line no document covers offers to make one. A document entered as it arrives over lines
283
+ already on file (a supplier bill) picks them with `pick` instead; choose one per document.
286
284
 
287
285
  ### Calls
288
286
 
289
287
  #### Record act
290
288
 
291
- An act's `record`: the press records a call, visit or meeting — its audio, its transcript, its screen where
292
- captured — and files it as a new row of the record's `timeline` child (`into`), stamped `at` and `by`;
293
- `fills` lets an agent fill that row's fields from the transcript, where the owner asked for one. Worked: `examples/calls`.
289
+ An act's `record`: the press records a call, visit or meeting — audio, transcript, screen where captured — and
290
+ files it as a new row of the record's `timeline` child (`into`), stamped `at` and `by`; `fills` lets an agent fill
291
+ that row's fields from the transcript, where the owner asked. Worked: `examples/calls`.
294
292
 
295
293
  ## The visual bar
296
294
 
package/docs/examples.md CHANGED
@@ -57,7 +57,6 @@ Every key: the `model` reference, at the pages each section names under **Keys**
57
57
  {
58
58
  "alias": "visits",
59
59
  "name": "Service visits",
60
- "description": "Engineers' visits to customers on site, booked and completed by the day.",
61
60
  "icon": "calendar",
62
61
  "entity": "service_visit",
63
62
  "register": {
@@ -149,7 +148,6 @@ Every key: the `model` reference, at the pages each section names under **Keys**
149
148
  {
150
149
  "alias": "dispatch",
151
150
  "name": "Dispatch",
152
- "description": "Each engineer's visits across the day, and the free time between them to book into.",
153
151
  "icon": "wrench",
154
152
  "entity": "service_visit",
155
153
  "register": {
@@ -229,7 +227,6 @@ Every key: the `model` reference, at the pages each section names under **Keys**
229
227
  {
230
228
  "alias": "tien_do_thue",
231
229
  "name": "Tiến độ cho thuê",
232
- "description": "Mỗi phiếu thuê một thanh từ ngày giao máy đến hạn trả, đọc theo hôm nay: phiếu nào sắp đến hạn, phiếu nào quá hạn; kéo thanh để dời ngày giao hoặc gia hạn trả, và nhận máy về khi khách trả.",
233
230
  "icon": "calendar-range",
234
231
  "theme": {"color": "teal"},
235
232
  "entity": "phieu_thue",
@@ -328,7 +325,6 @@ Every key: the `model` reference, at the pages each section names under **Keys**
328
325
  {
329
326
  "alias": "lich_truc",
330
327
  "name": "Lịch trực",
331
- "description": "Ai trực ca nào, ở ghế nào, trong tuần và trong tháng.",
332
328
  "icon": "users",
333
329
  "entity": "nha_si",
334
330
  "register": {
@@ -420,7 +416,6 @@ Every key: the `model` reference, at the pages each section names under **Keys**
420
416
  {
421
417
  "alias": "stock",
422
418
  "name": "Stock",
423
- "description": "What the store holds of each item, against its shelf and its minimum.",
424
419
  "icon": "boxes",
425
420
  "theme": {"color": "teal"},
426
421
  "entity": "stock_item",
@@ -587,7 +582,6 @@ Every key: the `model` reference, at the pages each section names under **Keys**
587
582
  {
588
583
  "alias": "customers",
589
584
  "name": "Customers",
590
- "description": "Who we sell to, what they owe, and what was said.",
591
585
  "icon": "users",
592
586
  "theme": {"color": "violet"},
593
587
  "entity": "customer",
@@ -823,6 +817,28 @@ Every key: the `model` reference, at the pages each section names under **Keys**
823
817
  {"alias": "thu_nhap", "type": "number", "notation": {"style": "currency", "currency": "VND"}}
824
818
  ]
825
819
  },
820
+ {
821
+ "alias": "giay_to",
822
+ "fields": [
823
+ {
824
+ "alias": "loai",
825
+ "type": "select",
826
+ "options": [
827
+ {"alias": "don_dang_ky", "color": "blue"},
828
+ {"alias": "can_cuoc", "color": "sky"},
829
+ {"alias": "giay_doi_tuong", "color": "violet"},
830
+ {"alias": "xac_nhan_nha_o", "color": "teal"},
831
+ {"alias": "xac_nhan_thu_nhap", "color": "amber"},
832
+ {"alias": "hon_nhan", "color": "indigo"}
833
+ ]
834
+ },
835
+ {"alias": "ho_so", "type": "select_record_link", "target_entity": "ho_so", "cardinality": "one"},
836
+ {"alias": "ngay_nhan", "type": "date"},
837
+ {"alias": "can_sua", "type": "text"},
838
+ {"alias": "tep", "type": "files"},
839
+ {"alias": "phai_sua", "type": "formula"}
840
+ ]
841
+ },
826
842
  {
827
843
  "alias": "phieu_thu",
828
844
  "fields": [
@@ -858,28 +874,6 @@ Every key: the `model` reference, at the pages each section names under **Keys**
858
874
  {"alias": "nguoi_thu", "type": "select_member"},
859
875
  {"alias": "da_chot", "type": "formula"}
860
876
  ]
861
- },
862
- {
863
- "alias": "giay_to",
864
- "fields": [
865
- {
866
- "alias": "loai",
867
- "type": "select",
868
- "options": [
869
- {"alias": "don_dang_ky", "color": "blue"},
870
- {"alias": "can_cuoc", "color": "sky"},
871
- {"alias": "giay_doi_tuong", "color": "violet"},
872
- {"alias": "xac_nhan_nha_o", "color": "teal"},
873
- {"alias": "xac_nhan_thu_nhap", "color": "amber"},
874
- {"alias": "hon_nhan", "color": "indigo"}
875
- ]
876
- },
877
- {"alias": "ho_so", "type": "select_record_link", "target_entity": "ho_so", "cardinality": "one"},
878
- {"alias": "ngay_nhan", "type": "date"},
879
- {"alias": "can_sua", "type": "text"},
880
- {"alias": "tep", "type": "files"},
881
- {"alias": "phai_sua", "type": "formula"}
882
- ]
883
877
  }
884
878
  ],
885
879
  "records": {
@@ -903,13 +897,13 @@ Every key: the `model` reference, at the pages each section names under **Keys**
903
897
  "figure": "phi_dich_vu"
904
898
  },
905
899
  "thanh_vien": {"title": "ho_ten", "subtitle": ["quan_he", "cccd"], "party": "person", "figure": "thu_nhap"},
900
+ "giay_to": {"title": "loai", "image": "tep", "starts": {"ngay_nhan": "today"}},
906
901
  "phieu_thu": {
907
902
  "title": "khoan",
908
903
  "subtitle": ["hinh_thuc", "ngay_thu"],
909
904
  "status": {"field": "trang_thai", "closed": ["da_thu", "huy"]},
910
905
  "figure": "so_tien"
911
- },
912
- "giay_to": {"title": "loai", "image": "tep", "starts": {"ngay_nhan": "today"}}
906
+ }
913
907
  },
914
908
  "templates": [
915
909
  {"alias": "don_dang_ky", "type": "html", "label": "Đơn đăng ký mua nhà ở xã hội"},
@@ -922,7 +916,6 @@ Every key: the `model` reference, at the pages each section names under **Keys**
922
916
  {
923
917
  "alias": "ho_so",
924
918
  "name": "Hồ sơ nhà ở xã hội",
925
- "description": "Bàn làm hồ sơ của từng dự án: nhận giấy tờ, lập và nộp hồ sơ cho chủ đầu tư, theo từng khâu duyệt tới bốc thăm và ký hợp đồng — hoặc làm hồ sơ rồi bàn giao cho khách tự nộp.",
926
919
  "icon": "folder-open",
927
920
  "theme": {"color": "blue"},
928
921
  "entity": "ho_so",
@@ -961,6 +954,13 @@ Every key: the `model` reference, at the pages each section names under **Keys**
961
954
  "title": "Hộ gia đình",
962
955
  "columns": ["ngay_sinh"],
963
956
  "create": ["ho_ten", "quan_he", "ngay_sinh", "cccd", "thu_nhap"]
957
+ },
958
+ {
959
+ "rows": "giay_to",
960
+ "title": "Giấy tờ cá nhân",
961
+ "columns": ["ngay_nhan"],
962
+ "expect": "loai",
963
+ "only": ["can_cuoc", "hon_nhan"]
964
964
  }
965
965
  ],
966
966
  "acts": ["doc_giay_to", "giao_xu_ly", "chuyen_du_an"]
@@ -1002,19 +1002,18 @@ Every key: the `model` reference, at the pages each section names under **Keys**
1002
1002
  "title": "Giấy tờ",
1003
1003
  "columns": ["ngay_nhan"],
1004
1004
  "create": ["loai", "ngay_nhan", "can_sua", "tep"],
1005
- "expect": "loai"
1005
+ "expect": "loai",
1006
+ "only": ["don_dang_ky", "giay_doi_tuong", "xac_nhan_nha_o", "xac_nhan_thu_nhap"]
1006
1007
  }
1007
1008
  ]
1008
1009
  },
1009
1010
  {
1010
1011
  "title": "Bộ hồ sơ",
1011
- "description": "Các mẫu đơn in từ thông tin của hồ sơ.",
1012
1012
  "at": ["ngay_nhan_giay_to", "ngay_lap_ho_so"],
1013
1013
  "acts": ["tao_giay_to", "nop_cdt"]
1014
1014
  },
1015
1015
  {
1016
1016
  "title": "Chủ đầu tư",
1017
- "description": "Hồ sơ trọn gói nộp chủ đầu tư, chờ chủ đầu tư rồi Sở Xây dựng duyệt trước ngày bốc thăm.",
1018
1017
  "at": ["ngay_nop_cdt", "ngay_cdt_duyet", "ngay_so_xd_duyet"],
1019
1018
  "fields": ["loai_can"],
1020
1019
  "when": {"dich_vu": ["tron_goi"]}
@@ -1323,7 +1322,6 @@ Every key: the `model` reference, at the pages each section names under **Keys**
1323
1322
  {
1324
1323
  "alias": "khach_tiem_nang",
1325
1324
  "name": "Khách tiềm năng",
1326
- "description": "Mọi người mình có thể bán dịch vụ, từ tín hiệu đầu tiên đến khi chuyển vào CRM: mở một khách để đọc vì sao nên gọi lúc này, liên hệ ngay, ghi lại lần chạm, xếp bước tiếp theo, và chuyển đổi khi đã có cuộc trò chuyện.",
1327
1325
  "icon": "radar",
1328
1326
  "theme": {"color": "violet"},
1329
1327
  "entity": "khach_tiem_nang",
@@ -1373,18 +1371,11 @@ Every key: the `model` reference, at the pages each section names under **Keys**
1373
1371
  },
1374
1372
  {
1375
1373
  "title": "Chuyển đổi",
1376
- "description": "Khách đã trả lời và muốn đi tiếp: chuyển đổi tạo liên hệ và công ty trong sổ khách hàng.",
1377
1374
  "at": ["da_lien_he"],
1378
1375
  "fields": ["nguon", "lien_he", "cong_ty"],
1379
1376
  "acts": ["chuyen_doi"]
1380
1377
  },
1381
- {
1382
- "title": "Loại",
1383
- "description": "Khách không đi tiếp: ghi lý do để lần sau không tìm lại.",
1384
- "at": ["loai"],
1385
- "fields": ["ly_do_loai"],
1386
- "acts": ["loai"]
1387
- }
1378
+ {"title": "Loại", "at": ["loai"], "fields": ["ly_do_loai"], "acts": ["loai"]}
1388
1379
  ]
1389
1380
  },
1390
1381
  "acts": [
@@ -1533,7 +1524,6 @@ Every key: the `model` reference, at the pages each section names under **Keys**
1533
1524
  {
1534
1525
  "alias": "de_nghi_chi",
1535
1526
  "name": "Đề nghị thanh toán",
1536
- "description": "Chỉ huy trưởng lập đề nghị chi cho dự án của mình, kèm chứng từ, rồi gửi giám đốc duyệt.",
1537
1527
  "icon": "hand-coins",
1538
1528
  "theme": {"color": "amber"},
1539
1529
  "entity": "de_nghi",
@@ -1693,7 +1683,6 @@ Every key: the `model` reference, at the pages each section names under **Keys**
1693
1683
  {
1694
1684
  "alias": "dong_tien",
1695
1685
  "name": "Dòng tiền",
1696
- "description": "Giám đốc xem trong kỳ: tiền vào, tiền ra, dòng tiền ròng qua các kỳ, chi vào đâu, thu từ ai, và những dòng sao kê còn chưa khớp.",
1697
1686
  "icon": "chart-line",
1698
1687
  "theme": {"color": "emerald"},
1699
1688
  "dashboard": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lotics/cli",
3
- "version": "0.312.7",
3
+ "version": "0.312.9",
4
4
  "description": "Lotics SDK and CLI for AI agents",
5
5
  "type": "module",
6
6
  "bin": {