octwin-cli 0.8.15 → 0.8.17
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/CHANGELOG.md +1109 -1017
- package/README.md +37 -29
- package/dist/cli.js +989 -467
- package/dist/lib/base.js +85 -0
- package/dist/lib/init-id.js +13 -0
- package/dist/lib/journey-check.js +119 -0
- package/dist/lib/kb-index.js +142 -18
- package/dist/lib/recipe.js +190 -0
- package/dist/lib/refusal.js +56 -0
- package/dist/lib/rename.js +1 -1
- package/package.json +46 -46
- package/templates/starter/commands.yaml +11 -12
- package/templates/starter/flows/tools/home.flow.yaml +34 -32
- package/templates/starter/flows/tools/home.locale.ar.yaml +8 -9
- package/templates/starter/flows/tools/home.locale.en.yaml +8 -0
- package/templates/starter/flows/tools/request.flow.yaml +95 -0
- package/templates/starter/flows/tools/request.locale.ar.yaml +14 -0
- package/templates/starter/flows/tools/request.locale.en.yaml +14 -0
- package/templates/starter/journeys/request.journey.yaml +12 -0
- package/templates/starter/locale.ar.yaml +6 -10
- package/templates/starter/locale.en.yaml +9 -0
- package/templates/starter/manifest.yaml +44 -45
- package/templates/starter/messages.ar.yaml +3 -10
- package/templates/starter/messages.en.yaml +19 -0
- package/templates/starter/prompts/identity.md +7 -5
- package/templates/starter/xrm.yaml +32 -0
- package/templates/starter/flows/tools/browse.flow.yaml +0 -31
- package/templates/starter/flows/tools/browse.locale.ar.yaml +0 -6
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Your data — records the platform stores, lists and shows operators in the console. A pack has no
|
|
2
|
+
# database of its own; everything lives here. Guide: `craft-records`.
|
|
3
|
+
entities:
|
|
4
|
+
area:
|
|
5
|
+
title_field: name
|
|
6
|
+
fields:
|
|
7
|
+
name: { type: text, required: true, unique: true } # unique = identity: a repeat save updates
|
|
8
|
+
request:
|
|
9
|
+
title_field: phone
|
|
10
|
+
fields:
|
|
11
|
+
area: { type: record, entity: area, required: true }
|
|
12
|
+
issue: { type: text, required: true }
|
|
13
|
+
phone: { type: text, required: true }
|
|
14
|
+
floor: { type: number }
|
|
15
|
+
notes: { type: textarea }
|
|
16
|
+
pipeline:
|
|
17
|
+
stages: [new, scheduled, done, cancelled]
|
|
18
|
+
terminal: [done, cancelled]
|
|
19
|
+
# The journey's goal, reached by the RECORD — so a request an operator creates counts too, not
|
|
20
|
+
# only chat ones. Guide: `craft-measure`.
|
|
21
|
+
on:
|
|
22
|
+
create:
|
|
23
|
+
- track: { journey: request, goal_reached: requested }
|
|
24
|
+
|
|
25
|
+
# Rows every new project starts with (`octwin deploy --seed`) — a customer may see them.
|
|
26
|
+
demo:
|
|
27
|
+
- entity: area
|
|
28
|
+
fields: { name: 'Nasr City' }
|
|
29
|
+
- entity: area
|
|
30
|
+
fields: { name: 'Maadi' }
|
|
31
|
+
- entity: area
|
|
32
|
+
fields: { name: 'Heliopolis' }
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# EXAMPLE — replace it or delete it; do not leave it behind.
|
|
2
|
-
# An example capability the home hub invokes. Replace this with your real tool
|
|
3
|
-
# (record_list + a carousel, a collect: intake, a case_open, …). Kept trivial here
|
|
4
|
-
# so the scaffold is chattable end-to-end: home menu → tap "browse" → this renders.
|
|
5
|
-
#
|
|
6
|
-
# If you do not keep it, delete THREE things together: this file, every
|
|
7
|
-
# `browse.locale.<lang>.yaml` beside it, and the `browse` line in manifest.yaml
|
|
8
|
-
# `flows:` (plus the home menu row that invokes it). A file left here with its
|
|
9
|
-
# manifest line removed never loads — but its copy is still checked, so a pack that
|
|
10
|
-
# adds a second language fails validation over a flow nobody uses.
|
|
11
|
-
flow_id: browse
|
|
12
|
-
version: 1
|
|
13
|
-
description: An example capability, reached from the home menu. Replace with your real tool.
|
|
14
|
-
|
|
15
|
-
input:
|
|
16
|
-
message:
|
|
17
|
-
type: string
|
|
18
|
-
optional: true
|
|
19
|
-
describe: 'Optional note from the user.'
|
|
20
|
-
|
|
21
|
-
entry:
|
|
22
|
-
- else: true
|
|
23
|
-
goto: show
|
|
24
|
-
|
|
25
|
-
steps:
|
|
26
|
-
show:
|
|
27
|
-
- render:
|
|
28
|
-
render_intent: text_card
|
|
29
|
-
body: '{$t("browse.body")}'
|
|
30
|
-
memory_note: '{$t("browse.memory_note")}'
|
|
31
|
-
- end: applied
|