JerameeUC commited on
Commit
99c40ef
Β·
1 Parent(s): 8bbe87c

2nd commit trimmed some files

Browse files
This view is limited to 50 files because it contains too many changes. Β  See raw diff
Files changed (50) hide show
  1. {storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/full β†’ full}/.env.example +0 -0
  2. {storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/full β†’ full}/README.md +0 -0
  3. {storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/full β†’ full}/agenticcore/__init__.py +0 -0
  4. {storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/full β†’ full}/agenticcore/chatbot/__init__.py +0 -0
  5. {storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic β†’ full}/agenticcore/chatbot/services.py +0 -0
  6. {storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic β†’ full}/agenticcore/providers_unified.py +0 -0
  7. {storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/integrations/web/fastapi β†’ full/agenticcore}/web_agentic.py +0 -0
  8. {storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/full β†’ full}/backend/__init__.py +0 -0
  9. {storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/full β†’ full}/backend/app/__init__.py +0 -0
  10. {storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/full β†’ full}/backend/app/main.py +0 -0
  11. {storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/full β†’ full}/backend/app/routers/__init__.py +0 -0
  12. {storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/full β†’ full}/backend/app/routers/chatbot.py +0 -0
  13. {storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/full β†’ full}/extras/__init__.py +0 -0
  14. {storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/full β†’ full}/extras/mbf_bot/__init__.py +0 -0
  15. {storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/integrations/botframework β†’ full/extras/mbf_bot}/app.py +0 -0
  16. {storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/integrations/botframework β†’ full/extras/mbf_bot}/bot.py +0 -0
  17. {storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/full β†’ full}/extras/mbf_bot/skills.py +0 -0
  18. {storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/full β†’ full}/frontend/__init__.py +0 -0
  19. {storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/app/assets/html β†’ full/frontend}/agenticcore_frontend.html +0 -0
  20. {storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/app/assets/html β†’ full/frontend}/chat_console.html +0 -0
  21. {storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/app/assets/html β†’ full/frontend}/chat_minimal.html +0 -0
  22. {storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/full β†’ full}/requirements.txt +0 -0
  23. {storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/full β†’ full}/tests/__init__.py +0 -0
  24. {storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/full β†’ full}/tests/test_routes.py +0 -0
  25. {storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/full β†’ full}/tools/__init__.py +0 -0
  26. {storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/full β†’ full}/tools/quick_sanity.py +0 -0
  27. {storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/full β†’ full}/tools/smoke_test.py +0 -0
  28. storefront-chatbot_scaffold_merged/storefront-chatbot/MAPPING_TABLE.csv +0 -23
  29. storefront-chatbot_scaffold_merged/storefront-chatbot/README_MERGE_NOTES.md +0 -16
  30. storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/README.md +0 -6
  31. storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/agenticcore/__init__.py +0 -1
  32. storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/agenticcore/chatbot/__init__.py +0 -1
  33. storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/agenticcore/cli.py +0 -186
  34. storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/logged_in_bot/handler.py +0 -17
  35. storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/requirements.txt +0 -7
  36. storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/storefront_chatbot_skeleton/.env.sample +0 -0
  37. storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/storefront_chatbot_skeleton/Makefile +0 -0
  38. storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/storefront_chatbot_skeleton/README.md +0 -1
  39. storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/storefront_chatbot_skeleton/anon_bot/handler.py +0 -1
  40. storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/storefront_chatbot_skeleton/anon_bot/rules.py +0 -0
  41. storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/storefront_chatbot_skeleton/app/app.py +0 -1
  42. storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/storefront_chatbot_skeleton/app/routes.py +0 -0
  43. storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/storefront_chatbot_skeleton/core/config.py +0 -2
  44. storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/storefront_chatbot_skeleton/core/logging.py +0 -0
  45. storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/storefront_chatbot_skeleton/core/types.py +0 -0
  46. storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/storefront_chatbot_skeleton/docs/architecture.md +0 -0
  47. storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/storefront_chatbot_skeleton/docs/design.md +0 -0
  48. storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/storefront_chatbot_skeleton/docs/results.md +0 -0
  49. storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/storefront_chatbot_skeleton/guardrails/pii_redaction.py +0 -1
  50. storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/storefront_chatbot_skeleton/guardrails/safety.py +0 -0
{storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/full β†’ full}/.env.example RENAMED
File without changes
{storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/full β†’ full}/README.md RENAMED
File without changes
{storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/full β†’ full}/agenticcore/__init__.py RENAMED
File without changes
{storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/full β†’ full}/agenticcore/chatbot/__init__.py RENAMED
File without changes
{storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic β†’ full}/agenticcore/chatbot/services.py RENAMED
File without changes
{storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic β†’ full}/agenticcore/providers_unified.py RENAMED
File without changes
{storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/integrations/web/fastapi β†’ full/agenticcore}/web_agentic.py RENAMED
File without changes
{storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/full β†’ full}/backend/__init__.py RENAMED
File without changes
{storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/full β†’ full}/backend/app/__init__.py RENAMED
File without changes
{storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/full β†’ full}/backend/app/main.py RENAMED
File without changes
{storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/full β†’ full}/backend/app/routers/__init__.py RENAMED
File without changes
{storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/full β†’ full}/backend/app/routers/chatbot.py RENAMED
File without changes
{storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/full β†’ full}/extras/__init__.py RENAMED
File without changes
{storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/full β†’ full}/extras/mbf_bot/__init__.py RENAMED
File without changes
{storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/integrations/botframework β†’ full/extras/mbf_bot}/app.py RENAMED
File without changes
{storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/integrations/botframework β†’ full/extras/mbf_bot}/bot.py RENAMED
File without changes
{storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/full β†’ full}/extras/mbf_bot/skills.py RENAMED
File without changes
{storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/full β†’ full}/frontend/__init__.py RENAMED
File without changes
{storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/app/assets/html β†’ full/frontend}/agenticcore_frontend.html RENAMED
File without changes
{storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/app/assets/html β†’ full/frontend}/chat_console.html RENAMED
File without changes
{storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/app/assets/html β†’ full/frontend}/chat_minimal.html RENAMED
File without changes
{storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/full β†’ full}/requirements.txt RENAMED
File without changes
{storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/full β†’ full}/tests/__init__.py RENAMED
File without changes
{storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/full β†’ full}/tests/test_routes.py RENAMED
File without changes
{storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/full β†’ full}/tools/__init__.py RENAMED
File without changes
{storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/full β†’ full}/tools/quick_sanity.py RENAMED
File without changes
{storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/full β†’ full}/tools/smoke_test.py RENAMED
File without changes
storefront-chatbot_scaffold_merged/storefront-chatbot/MAPPING_TABLE.csv DELETED
@@ -1,23 +0,0 @@
1
- source_zip,source_path,target_path,status
2
- full,/mnt/data/storefront-chatbot_full_merge/_ext_full/extras/mbf_bot/app.py,storefront_chatbot/app/app.py,placed
3
- agentic,/mnt/data/storefront-chatbot_full_merge/_ext_agentic/storefront_chatbot_skeleton/anon_bot/handler.py,storefront_chatbot/anon_bot/handler.py,placed
4
- agentic,/mnt/data/storefront-chatbot_full_merge/_ext_agentic/storefront_chatbot_skeleton/anon_bot/rules.py,storefront_chatbot/anon_bot/rules.py,placed
5
- agentic,/mnt/data/storefront-chatbot_full_merge/_ext_agentic/storefront_chatbot_skeleton/app/app.py,storefront_chatbot/app/app.py,overwrote_full
6
- agentic,/mnt/data/storefront-chatbot_full_merge/_ext_agentic/storefront_chatbot_skeleton/app/routes.py,storefront_chatbot/app/routes.py,placed
7
- agentic,/mnt/data/storefront-chatbot_full_merge/_ext_agentic/storefront_chatbot_skeleton/core/config.py,storefront_chatbot/core/config.py,placed
8
- agentic,/mnt/data/storefront-chatbot_full_merge/_ext_agentic/storefront_chatbot_skeleton/core/logging.py,storefront_chatbot/core/logging.py,placed
9
- agentic,/mnt/data/storefront-chatbot_full_merge/_ext_agentic/storefront_chatbot_skeleton/core/types.py,storefront_chatbot/core/types.py,placed
10
- agentic,/mnt/data/storefront-chatbot_full_merge/_ext_agentic/storefront_chatbot_skeleton/guardrails/pii_redaction.py,storefront_chatbot/guardrails/pii_redaction.py,placed
11
- agentic,/mnt/data/storefront-chatbot_full_merge/_ext_agentic/storefront_chatbot_skeleton/guardrails/safety.py,storefront_chatbot/guardrails/safety.py,placed
12
- agentic,/mnt/data/storefront-chatbot_full_merge/_ext_agentic/storefront_chatbot_skeleton/logged_in_bot/handler.py,storefront_chatbot/logged_in_bot/handler.py,placed
13
- agentic,/mnt/data/storefront-chatbot_full_merge/_ext_agentic/storefront_chatbot_skeleton/logged_in_bot/sentiment_azure.py,storefront_chatbot/logged_in_bot/sentiment_azure.py,placed
14
- agentic,/mnt/data/storefront-chatbot_full_merge/_ext_agentic/storefront_chatbot_skeleton/logged_in_bot/tools.py,storefront_chatbot/logged_in_bot/tools.py,placed
15
- agentic,/mnt/data/storefront-chatbot_full_merge/_ext_agentic/storefront_chatbot_skeleton/memory/sessions.py,storefront_chatbot/memory/sessions.py,placed
16
- agentic,/mnt/data/storefront-chatbot_full_merge/_ext_agentic/storefront_chatbot_skeleton/memory/store.py,storefront_chatbot/memory/store.py,placed
17
- agentic,/mnt/data/storefront-chatbot_full_merge/_ext_agentic/storefront_chatbot_skeleton/memory/rag/indexer.py,storefront_chatbot/memory/rag/indexer.py,placed
18
- agentic,/mnt/data/storefront-chatbot_full_merge/_ext_agentic/storefront_chatbot_skeleton/memory/rag/retriever.py,storefront_chatbot/memory/rag/retriever.py,placed
19
- agentic,/mnt/data/storefront-chatbot_full_merge/_ext_agentic/storefront_chatbot_skeleton/nlu/pipeline.py,storefront_chatbot/nlu/pipeline.py,placed
20
- agentic,/mnt/data/storefront-chatbot_full_merge/_ext_agentic/storefront_chatbot_skeleton/nlu/prompts.py,storefront_chatbot/nlu/prompts.py,placed
21
- agentic,/mnt/data/storefront-chatbot_full_merge/_ext_agentic/storefront_chatbot_skeleton/nlu/router.py,storefront_chatbot/nlu/router.py,placed
22
- agentic,/mnt/data/storefront-chatbot_full_merge/_ext_agentic/integrations/botframework/app.py,storefront_chatbot/app/app.py,overwrote_full
23
- agentic,/mnt/data/storefront-chatbot_full_merge/_ext_agentic/logged_in_bot/handler.py,storefront_chatbot/logged_in_bot/handler.py,placed
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
storefront-chatbot_scaffold_merged/storefront-chatbot/README_MERGE_NOTES.md DELETED
@@ -1,16 +0,0 @@
1
-
2
- # Merge Notes
3
- Timestamp: 2025-09-26T04:21:21.687107
4
-
5
- - Scaffold created under `storefront-chatbot/storefront_chatbot/`.
6
- - Both zips extracted to `legacy_src/` for full traceability.
7
- - Heuristic filename-based mapping used; **agentic** overwrites **full** on conflicts.
8
- - Any unmapped files remain in `legacy_src/...` for manual triage.
9
-
10
- ## Quickstart
11
- ```bash
12
- cd storefront-chatbot
13
- make dev
14
- make run
15
- # open http://localhost:7860
16
- ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/README.md DELETED
@@ -1,6 +0,0 @@
1
-
2
- ## Agentic Integration
3
- - Core bot: `agenticcore/chatbot/services.py`
4
- - Providers: `agenticcore/providers_unified.py`
5
- - CLI: `python -m agenticcore.cli agentic "hello"` (loads .env)
6
- - FastAPI demo: `uvicorn integrations.web.fastapi.web_agentic:app --reload`
 
 
 
 
 
 
 
storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/agenticcore/__init__.py DELETED
@@ -1 +0,0 @@
1
- # package
 
 
storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/agenticcore/chatbot/__init__.py DELETED
@@ -1 +0,0 @@
1
- # package
 
 
storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/agenticcore/cli.py DELETED
@@ -1,186 +0,0 @@
1
- """
2
- agenticcore.cli
3
- Console entrypoints:
4
- - agentic: send a message to ChatBot and print reply JSON
5
- - repo-tree: print a filtered tree view (uses tree.txt if present)
6
- - repo-flatten: flatten code listing to stdout (uses FLATTENED_CODE.txt if present)
7
- """
8
- import argparse, json, sys, traceback
9
- from pathlib import Path
10
- from dotenv import load_dotenv
11
- import os
12
-
13
- # Load .env variables into os.environ (project root .env by default)
14
- load_dotenv()
15
-
16
-
17
- def cmd_agentic(argv=None):
18
- # Lazy import so other commands don't require ChatBot to be importable
19
- from agenticcore.chatbot.services import ChatBot
20
- # We call analyze_sentiment only for 'status' to reveal the actual chosen provider
21
- try:
22
- from agenticcore.providers_unified import analyze_sentiment
23
- except Exception:
24
- analyze_sentiment = None # still fine; we'll show mode only
25
-
26
- p = argparse.ArgumentParser(prog="agentic", description="Chat with AgenticCore ChatBot")
27
- p.add_argument("message", nargs="*", help="Message to send")
28
- p.add_argument("--debug", action="store_true", help="Print debug info")
29
- args = p.parse_args(argv)
30
- msg = " ".join(args.message).strip() or "hello"
31
-
32
- if args.debug:
33
- print(f"DEBUG argv={sys.argv}", flush=True)
34
- print(f"DEBUG raw message='{msg}'", flush=True)
35
-
36
- bot = ChatBot()
37
-
38
- # Special commands for testing / assignments
39
- # Special commands for testing / assignments
40
- if msg.lower() == "status":
41
- import requests # local import to avoid hard dep for other commands
42
-
43
- # Try a lightweight provider probe via analyze_sentiment
44
- provider = None
45
- if analyze_sentiment is not None:
46
- try:
47
- probe = analyze_sentiment("status ping")
48
- provider = (probe or {}).get("provider")
49
- except Exception:
50
- if args.debug:
51
- traceback.print_exc()
52
-
53
- # Hugging Face whoami auth probe
54
- tok = os.getenv("HF_API_KEY", "")
55
- who = None
56
- auth_ok = False
57
- err = None
58
- try:
59
- if tok:
60
- r = requests.get(
61
- "https://huggingface.co/api/whoami-v2",
62
- headers={"Authorization": f"Bearer {tok}"},
63
- timeout=15,
64
- )
65
- auth_ok = (r.status_code == 200)
66
- who = r.json() if auth_ok else None
67
- if not auth_ok:
68
- err = r.text # e.g., {"error":"Invalid credentials in Authorization header"}
69
- else:
70
- err = "HF_API_KEY not set (load .env or export it)"
71
- except Exception as e:
72
- err = str(e)
73
-
74
- # Extract fine-grained scopes for visibility
75
- fg = (((who or {}).get("auth") or {}).get("accessToken") or {}).get("fineGrained") or {}
76
- scoped = fg.get("scoped") or []
77
- global_scopes = fg.get("global") or []
78
-
79
- # ---- tiny inference ping (proves 'Make calls to Inference Providers') ----
80
- infer_ok, infer_err = False, None
81
- try:
82
- if tok:
83
- model = os.getenv(
84
- "HF_MODEL_SENTIMENT",
85
- "distilbert-base-uncased-finetuned-sst-2-english"
86
- )
87
- r2 = requests.post(
88
- f"https://api-inference.huggingface.co/models/{model}",
89
- headers={"Authorization": f"Bearer {tok}", "x-wait-for-model": "true"},
90
- json={"inputs": "ping"},
91
- timeout=int(os.getenv("HTTP_TIMEOUT", "60")),
92
- )
93
- infer_ok = (r2.status_code == 200)
94
- if not infer_ok:
95
- infer_err = f"HTTP {r2.status_code}: {r2.text}"
96
- except Exception as e:
97
- infer_err = str(e)
98
- # -------------------------------------------------------------------------
99
-
100
- # Mask + length to verify what .env provided
101
- mask = (tok[:3] + "..." + tok[-4:]) if tok else None
102
- out = {
103
- "provider": provider or "unknown",
104
- "mode": getattr(bot, "_mode", "auto"),
105
- "auth_ok": auth_ok,
106
- "whoami": who,
107
- "token_scopes": { # <--- added
108
- "global": global_scopes,
109
- "scoped": scoped,
110
- },
111
- "inference_ok": infer_ok,
112
- "inference_error": infer_err,
113
- "env": {
114
- "HF_API_KEY_len": len(tok) if tok else 0,
115
- "HF_API_KEY_mask": mask,
116
- "HF_MODEL_SENTIMENT": os.getenv("HF_MODEL_SENTIMENT"),
117
- "HTTP_TIMEOUT": os.getenv("HTTP_TIMEOUT"),
118
- },
119
- "capabilities": bot.capabilities(),
120
- "error": err,
121
- }
122
-
123
- elif msg.lower() == "help":
124
- out = {"capabilities": bot.capabilities()}
125
-
126
- else:
127
- try:
128
- out = bot.reply(msg)
129
- except Exception as e:
130
- if args.debug:
131
- traceback.print_exc()
132
- out = {"error": str(e), "message": msg}
133
-
134
- if args.debug:
135
- print(f"DEBUG out={out}", flush=True)
136
-
137
- print(json.dumps(out, indent=2), flush=True)
138
-
139
-
140
- def cmd_repo_tree(argv=None):
141
- p = argparse.ArgumentParser(prog="repo-tree", description="Print repo tree (from tree.txt if available)")
142
- p.add_argument("--path", default="tree.txt", help="Path to precomputed tree file")
143
- args = p.parse_args(argv)
144
- path = Path(args.path)
145
- if path.exists():
146
- print(path.read_text(encoding="utf-8"), flush=True)
147
- else:
148
- print("(no tree.txt found)", flush=True)
149
-
150
-
151
- def cmd_repo_flatten(argv=None):
152
- p = argparse.ArgumentParser(prog="repo-flatten", description="Print flattened code listing")
153
- p.add_argument("--path", default="FLATTENED_CODE.txt", help="Path to pre-flattened code file")
154
- args = p.parse_args(argv)
155
- path = Path(args.path)
156
- if path.exists():
157
- print(path.read_text(encoding="utf-8"), flush=True)
158
- else:
159
- print("(no FLATTENED_CODE.txt found)", flush=True)
160
-
161
-
162
- def _dispatch():
163
- # Allow: python -m agenticcore.cli <subcommand> [args...]
164
- if len(sys.argv) <= 1:
165
- print("Usage: python -m agenticcore.cli <agentic|repo-tree|repo-flatten> [args]", file=sys.stderr)
166
- sys.exit(2)
167
- cmd, argv = sys.argv[1], sys.argv[2:]
168
- try:
169
- if cmd == "agentic":
170
- cmd_agentic(argv)
171
- elif cmd == "repo-tree":
172
- cmd_repo_tree(argv)
173
- elif cmd == "repo-flatten":
174
- cmd_repo_flatten(argv)
175
- else:
176
- print(f"Unknown subcommand: {cmd}", file=sys.stderr)
177
- sys.exit(2)
178
- except SystemExit:
179
- raise
180
- except Exception:
181
- traceback.print_exc()
182
- sys.exit(1)
183
-
184
-
185
- if __name__ == "__main__":
186
- _dispatch()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/logged_in_bot/handler.py DELETED
@@ -1,17 +0,0 @@
1
- from agenticcore.chatbot.services import ChatBot
2
-
3
- _bot = ChatBot()
4
-
5
- def handle_turn(message, history, user):
6
- history = history or []
7
- try:
8
- res = _bot.reply(message)
9
- reply = res.get("reply") or "Noted."
10
- label = res.get("sentiment")
11
- conf = res.get("confidence")
12
- if label is not None and conf is not None:
13
- reply = f"{reply} (sentiment: {label}, confidence: {float(conf):.2f})"
14
- except Exception as e:
15
- reply = f"Sorryβ€”error in ChatBot: {type(e).__name__}. Using fallback."
16
- history = history + [[message, reply]]
17
- return history
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/requirements.txt DELETED
@@ -1,7 +0,0 @@
1
-
2
- python-dotenv>=1.0
3
- fastapi>=0.115.0
4
- uvicorn[standard]>=0.30.0
5
- # Optional for Bot Framework sample:
6
- # aiohttp>=3.9
7
- # botbuilder-core>=4.14
 
 
 
 
 
 
 
 
storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/storefront_chatbot_skeleton/.env.sample DELETED
File without changes
storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/storefront_chatbot_skeleton/Makefile DELETED
File without changes
storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/storefront_chatbot_skeleton/README.md DELETED
@@ -1 +0,0 @@
1
- # Storefront Chatbot (skeleton)
 
 
storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/storefront_chatbot_skeleton/anon_bot/handler.py DELETED
@@ -1 +0,0 @@
1
- def handle_turn(m,h,u): return (h or [])+[[m,'hi']]
 
 
storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/storefront_chatbot_skeleton/anon_bot/rules.py DELETED
File without changes
storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/storefront_chatbot_skeleton/app/app.py DELETED
@@ -1 +0,0 @@
1
- print('stub app.py')
 
 
storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/storefront_chatbot_skeleton/app/routes.py DELETED
File without changes
storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/storefront_chatbot_skeleton/core/config.py DELETED
@@ -1,2 +0,0 @@
1
- class Settings: pass
2
- settings = Settings()
 
 
 
storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/storefront_chatbot_skeleton/core/logging.py DELETED
File without changes
storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/storefront_chatbot_skeleton/core/types.py DELETED
File without changes
storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/storefront_chatbot_skeleton/docs/architecture.md DELETED
File without changes
storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/storefront_chatbot_skeleton/docs/design.md DELETED
File without changes
storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/storefront_chatbot_skeleton/docs/results.md DELETED
File without changes
storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/storefront_chatbot_skeleton/guardrails/pii_redaction.py DELETED
@@ -1 +0,0 @@
1
- def redact(t): return t
 
 
storefront-chatbot_scaffold_merged/storefront-chatbot/legacy_src/agentic/storefront_chatbot_skeleton/guardrails/safety.py DELETED
File without changes