sentienceapi 0.90.12__py3-none-any.whl → 0.92.2__py3-none-any.whl

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.

Potentially problematic release.


This version of sentienceapi might be problematic. Click here for more details.

Files changed (63) hide show
  1. sentience/__init__.py +14 -5
  2. sentience/_extension_loader.py +40 -0
  3. sentience/action_executor.py +215 -0
  4. sentience/actions.py +408 -25
  5. sentience/agent.py +804 -310
  6. sentience/agent_config.py +3 -0
  7. sentience/async_api.py +101 -0
  8. sentience/base_agent.py +95 -0
  9. sentience/browser.py +594 -25
  10. sentience/browser_evaluator.py +299 -0
  11. sentience/cloud_tracing.py +458 -36
  12. sentience/conversational_agent.py +79 -45
  13. sentience/element_filter.py +136 -0
  14. sentience/expect.py +98 -2
  15. sentience/extension/background.js +56 -185
  16. sentience/extension/content.js +117 -289
  17. sentience/extension/injected_api.js +799 -1374
  18. sentience/extension/manifest.json +1 -1
  19. sentience/extension/pkg/sentience_core.js +190 -396
  20. sentience/extension/pkg/sentience_core_bg.wasm +0 -0
  21. sentience/extension/release.json +47 -47
  22. sentience/formatting.py +9 -53
  23. sentience/inspector.py +183 -1
  24. sentience/llm_interaction_handler.py +191 -0
  25. sentience/llm_provider.py +256 -28
  26. sentience/llm_provider_utils.py +120 -0
  27. sentience/llm_response_builder.py +153 -0
  28. sentience/models.py +66 -1
  29. sentience/overlay.py +109 -2
  30. sentience/protocols.py +228 -0
  31. sentience/query.py +1 -1
  32. sentience/read.py +95 -3
  33. sentience/recorder.py +223 -3
  34. sentience/schemas/trace_v1.json +102 -9
  35. sentience/screenshot.py +48 -2
  36. sentience/sentience_methods.py +86 -0
  37. sentience/snapshot.py +309 -64
  38. sentience/snapshot_diff.py +141 -0
  39. sentience/text_search.py +119 -5
  40. sentience/trace_event_builder.py +129 -0
  41. sentience/trace_file_manager.py +197 -0
  42. sentience/trace_indexing/index_schema.py +95 -7
  43. sentience/trace_indexing/indexer.py +117 -14
  44. sentience/tracer_factory.py +119 -6
  45. sentience/tracing.py +172 -8
  46. sentience/utils/__init__.py +40 -0
  47. sentience/utils/browser.py +46 -0
  48. sentience/utils/element.py +257 -0
  49. sentience/utils/formatting.py +59 -0
  50. sentience/utils.py +1 -1
  51. sentience/visual_agent.py +2056 -0
  52. sentience/wait.py +70 -4
  53. {sentienceapi-0.90.12.dist-info → sentienceapi-0.92.2.dist-info}/METADATA +61 -22
  54. sentienceapi-0.92.2.dist-info/RECORD +65 -0
  55. sentienceapi-0.92.2.dist-info/licenses/LICENSE +24 -0
  56. sentienceapi-0.92.2.dist-info/licenses/LICENSE-APACHE +201 -0
  57. sentienceapi-0.92.2.dist-info/licenses/LICENSE-MIT +21 -0
  58. sentience/extension/test-content.js +0 -4
  59. sentienceapi-0.90.12.dist-info/RECORD +0 -46
  60. sentienceapi-0.90.12.dist-info/licenses/LICENSE.md +0 -43
  61. {sentienceapi-0.90.12.dist-info → sentienceapi-0.92.2.dist-info}/WHEEL +0 -0
  62. {sentienceapi-0.90.12.dist-info → sentienceapi-0.92.2.dist-info}/entry_points.txt +0 -0
  63. {sentienceapi-0.90.12.dist-info → sentienceapi-0.92.2.dist-info}/top_level.txt +0 -0
sentience/wait.py CHANGED
@@ -1,13 +1,16 @@
1
+ from typing import Optional
2
+
1
3
  """
2
4
  Wait functionality - wait_for element matching selector
3
5
  """
4
6
 
7
+ import asyncio
5
8
  import time
6
9
 
7
- from .browser import SentienceBrowser
8
- from .models import WaitResult
10
+ from .browser import AsyncSentienceBrowser, SentienceBrowser
11
+ from .models import SnapshotOptions, WaitResult
9
12
  from .query import find
10
- from .snapshot import snapshot
13
+ from .snapshot import snapshot, snapshot_async
11
14
 
12
15
 
13
16
  def wait_for(
@@ -46,7 +49,7 @@ def wait_for(
46
49
 
47
50
  while time.time() - start_time < timeout:
48
51
  # Take snapshot (may be local extension or remote API)
49
- snap = snapshot(browser, use_api=use_api)
52
+ snap = snapshot(browser, SnapshotOptions(use_api=use_api))
50
53
 
51
54
  # Try to find element
52
55
  element = find(snap, selector)
@@ -71,3 +74,66 @@ def wait_for(
71
74
  duration_ms=duration_ms,
72
75
  timeout=True,
73
76
  )
77
+
78
+
79
+ async def wait_for_async(
80
+ browser: AsyncSentienceBrowser,
81
+ selector: str | dict,
82
+ timeout: float = 10.0,
83
+ interval: float | None = None,
84
+ use_api: bool | None = None,
85
+ ) -> WaitResult:
86
+ """
87
+ Wait for element matching selector to appear (async)
88
+
89
+ Args:
90
+ browser: AsyncSentienceBrowser instance
91
+ selector: String DSL or dict query
92
+ timeout: Maximum time to wait (seconds)
93
+ interval: Polling interval (seconds). If None, auto-detects:
94
+ - 0.25s for local extension (use_api=False, fast)
95
+ - 1.5s for remote API (use_api=True or default, network latency)
96
+ use_api: Force use of server-side API if True, local extension if False.
97
+ If None, uses API if api_key is set, otherwise uses local extension.
98
+
99
+ Returns:
100
+ WaitResult
101
+ """
102
+ # Auto-detect optimal interval based on API usage
103
+ if interval is None:
104
+ # Determine if using API
105
+ will_use_api = use_api if use_api is not None else (browser.api_key is not None)
106
+ if will_use_api:
107
+ interval = 1.5 # Longer interval for API calls (network latency)
108
+ else:
109
+ interval = 0.25 # Shorter interval for local extension (fast)
110
+
111
+ start_time = time.time()
112
+
113
+ while time.time() - start_time < timeout:
114
+ # Take snapshot (may be local extension or remote API)
115
+ snap = await snapshot_async(browser, SnapshotOptions(use_api=use_api))
116
+
117
+ # Try to find element
118
+ element = find(snap, selector)
119
+
120
+ if element:
121
+ duration_ms = int((time.time() - start_time) * 1000)
122
+ return WaitResult(
123
+ found=True,
124
+ element=element,
125
+ duration_ms=duration_ms,
126
+ timeout=False,
127
+ )
128
+
129
+ # Wait before next poll
130
+ await asyncio.sleep(interval)
131
+
132
+ # Timeout
133
+ duration_ms = int((time.time() - start_time) * 1000)
134
+ return WaitResult(
135
+ found=False,
136
+ element=None,
137
+ duration_ms=duration_ms,
138
+ timeout=True,
139
+ )
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sentienceapi
3
- Version: 0.90.12
3
+ Version: 0.92.2
4
4
  Summary: Python SDK for Sentience AI Agent Browser Automation
5
5
  Author: Sentience Team
6
- License: MIT
6
+ License: MIT OR Apache-2.0
7
7
  Project-URL: Homepage, https://github.com/SentienceAPI/sentience-python
8
8
  Project-URL: Repository, https://github.com/SentienceAPI/sentience-python
9
9
  Project-URL: Issues, https://github.com/SentienceAPI/sentience-python/issues
@@ -11,15 +11,19 @@ Keywords: browser-automation,playwright,ai-agent,web-automation,sentience
11
11
  Classifier: Development Status :: 4 - Beta
12
12
  Classifier: Intended Audience :: Developers
13
13
  Classifier: License :: OSI Approved :: MIT License
14
+ Classifier: License :: OSI Approved :: Apache Software License
14
15
  Classifier: Programming Language :: Python :: 3
15
16
  Classifier: Programming Language :: Python :: 3.11
16
17
  Requires-Python: >=3.11
17
18
  Description-Content-Type: text/markdown
18
- License-File: LICENSE.md
19
+ License-File: LICENSE
20
+ License-File: LICENSE-APACHE
21
+ License-File: LICENSE-MIT
19
22
  Requires-Dist: playwright>=1.40.0
20
23
  Requires-Dist: pydantic>=2.0.0
21
24
  Requires-Dist: jsonschema>=4.0.0
22
25
  Requires-Dist: requests>=2.31.0
26
+ Requires-Dist: httpx>=0.25.0
23
27
  Requires-Dist: playwright-stealth>=1.0.6
24
28
  Requires-Dist: markdownify>=0.11.6
25
29
  Provides-Extra: dev
@@ -29,7 +33,7 @@ Dynamic: license-file
29
33
 
30
34
  # Sentience Python SDK
31
35
 
32
- The SDK is open under ELv2; the core semantic geometry and reliability logic runs in Sentience-hosted services.
36
+ **Semantic geometry grounding for deterministic, debuggable AI web agents with time-travel traces.**
33
37
 
34
38
  ## 📦 Installation
35
39
 
@@ -201,18 +205,30 @@ with SentienceBrowser(headless=False) as browser:
201
205
  <details>
202
206
  <summary><h3>📸 Snapshot - Intelligent Page Analysis</h3></summary>
203
207
 
204
- **`snapshot(browser, screenshot=True, show_overlay=False)`** - Capture page state with AI-ranked elements
208
+ **`snapshot(browser, options=SnapshotOptions(screenshot=True, show_overlay=False, limit=None, goal=None))`** - Capture page state with AI-ranked elements
205
209
 
206
210
  Features:
207
211
  - Returns semantic elements with roles, text, importance scores, and bounding boxes
208
- - Optional screenshot capture (PNG/JPEG)
209
- - Optional visual overlay to see what elements are detected
212
+ - Optional screenshot capture (PNG/JPEG) - set `screenshot=True`
213
+ - Optional visual overlay to see what elements are detected - set `show_overlay=True`
210
214
  - Pydantic models for type safety
215
+ - Optional ML reranking when `goal` is provided
211
216
  - **`snapshot.save(filepath)`** - Export to JSON
212
217
 
213
218
  **Example:**
214
219
  ```python
215
- snap = snapshot(browser, screenshot=True, show_overlay=True)
220
+ from sentience import snapshot, SnapshotOptions
221
+
222
+ # Basic snapshot with defaults (no screenshot, no overlay)
223
+ snap = snapshot(browser)
224
+
225
+ # With screenshot and overlay
226
+ snap = snapshot(browser, SnapshotOptions(
227
+ screenshot=True,
228
+ show_overlay=True,
229
+ limit=100,
230
+ goal="Click the login button" # Optional: enables ML reranking
231
+ ))
216
232
 
217
233
  # Access structured data
218
234
  print(f"URL: {snap.url}")
@@ -222,6 +238,10 @@ print(f"Elements: {len(snap.elements)}")
222
238
  # Iterate over elements
223
239
  for element in snap.elements:
224
240
  print(f"{element.role}: {element.text} (importance: {element.importance})")
241
+
242
+ # Check ML reranking metadata (when goal is provided)
243
+ if element.rerank_index is not None:
244
+ print(f" ML rank: {element.rerank_index} (confidence: {element.ml_probability:.2%})")
225
245
  ```
226
246
 
227
247
  </details>
@@ -500,6 +520,28 @@ for match in result.results:
500
520
 
501
521
  ---
502
522
 
523
+ ## 🔄 Async API
524
+
525
+ For asyncio contexts (FastAPI, async frameworks):
526
+
527
+ ```python
528
+ from sentience.async_api import AsyncSentienceBrowser, snapshot_async, click_async, find
529
+
530
+ async def main():
531
+ async with AsyncSentienceBrowser() as browser:
532
+ await browser.goto("https://example.com")
533
+ snap = await snapshot_async(browser)
534
+ button = find(snap, "role=button")
535
+ if button:
536
+ await click_async(browser, button.id)
537
+
538
+ asyncio.run(main())
539
+ ```
540
+
541
+ **See example:** `examples/async_api_demo.py`
542
+
543
+ ---
544
+
503
545
  ## 📋 Reference
504
546
 
505
547
  <details>
@@ -695,7 +737,7 @@ if result.url_changed:
695
737
  snap = snapshot(browser)
696
738
 
697
739
  # Slower - with screenshot (for debugging/verification)
698
- snap = snapshot(browser, screenshot=True)
740
+ snap = snapshot(browser, SnapshotOptions(screenshot=True))
699
741
  ```
700
742
 
701
743
  </details>
@@ -859,20 +901,17 @@ pytest -v tests/
859
901
 
860
902
  ---
861
903
 
862
- ## 📜 License
863
-
864
- This SDK is licensed under the **Elastic License 2.0 (ELv2)**.
865
-
866
- The Elastic License 2.0 allows you to use, modify, and distribute this SDK for internal, research, and non-competitive purposes. It **does not permit offering this SDK or a derivative as a hosted or managed service**, nor using it to build a competing product or service.
867
-
868
- ### Important Notes
869
-
870
- - This SDK is a **client-side library** that communicates with proprietary Sentience services and browser components.
904
+ ## License & Commercial Use
871
905
 
872
- - The Sentience backend services (including semantic geometry grounding, ranking, visual cues, and trace processing) are **not open source** and are governed by Sentience's Terms of Service.
906
+ ### Open Source SDK
907
+ The Sentience SDK is dual-licensed under [MIT License](./LICENSE-MIT) and [Apache 2.0](./LICENSE-APACHE). You are free to use, modify, and distribute this SDK in your own projects (including commercial ones) without restriction.
873
908
 
874
- - Use of this SDK does **not** grant rights to operate, replicate, or reimplement Sentience's hosted services.
909
+ ### Commercial Platform
910
+ While the SDK is open source, the **Sentience Cloud Platform** (API, Hosting, Sentience Studio) is a commercial service.
875
911
 
876
- For commercial usage, hosted offerings, or enterprise deployments, please contact Sentience to obtain a commercial license.
912
+ **We offer Commercial Licenses for:**
913
+ * **High-Volume Production:** Usage beyond the free tier limits.
914
+ * **SLA & Support:** Guaranteed uptime and dedicated engineering support.
915
+ * **On-Premise / Self-Hosted Gateway:** If you need to run the Sentience Gateway (Rust+ONNX) in your own VPC for compliance (e.g., banking/healthcare), you need an Enterprise License.
877
916
 
878
- See the full license text in [`LICENSE`](./LICENSE.md).
917
+ [Contact Us](mailto:support@sentienceapi.com) for Enterprise inquiries.
@@ -0,0 +1,65 @@
1
+ sentience/__init__.py,sha256=eK71E6tu9I-968WeBciAJgPCnhDx_WAOly6WKW_8vnU,3796
2
+ sentience/_extension_loader.py,sha256=bnZgVE5eZnUk18i2Wm8gplsVekq-fB31DNWOZt5iWpw,1356
3
+ sentience/action_executor.py,sha256=CQmLYgxc_jUQhFrT4-MfyMFOUsAZhAACEux-ApToUbY,8108
4
+ sentience/actions.py,sha256=03x9MwLxTrdpCSMctuTirPffdzrOr1cvYt9nZnymHhg,24175
5
+ sentience/agent.py,sha256=b7yXfP33NmJOjtY2Dk5g4jdsO4pFKZ9QFPhKsYQNQLU,48941
6
+ sentience/agent_config.py,sha256=n6HohW5j4VK3kT23xW7x2Vfz7HvEheb9g4AZ3VWfPpg,1588
7
+ sentience/async_api.py,sha256=3KEt34mqpuRDEaxGphpdkopUje1X8pDB4ESgHP1SAZM,3981
8
+ sentience/base_agent.py,sha256=5yVXe0S72I7GV4NPYySTvHfUAFvHBD4VjsNKSTo8MFo,5786
9
+ sentience/browser.py,sha256=ZdYt9VjeyQ7pkUtk0piDnIekxxYGPMVYcY-RFbqhRrc,43747
10
+ sentience/browser_evaluator.py,sha256=CRiMsutM68dZWHnMIrFzpVzrkUwxVsXpjBplSIWCkso,9772
11
+ sentience/cli.py,sha256=R95DgCSJmezuymAdfL6fzUdB1HpCF3iMWcLO73KJ8eY,3851
12
+ sentience/cloud_tracing.py,sha256=2dpxGXOCEJGLga_LcjMeyrSIKO_1moaEmJIhEaPTXO0,31038
13
+ sentience/conversational_agent.py,sha256=v3FXczfNZdizQA7ejfgEbhGq_zaOboGb3__UaW7Alpo,18551
14
+ sentience/element_filter.py,sha256=aVFrbTDkH-gtMZt07QfBZH3Oq8_KzwQMz17PD1uQ1h0,4021
15
+ sentience/expect.py,sha256=JIhHJ_UGiPvKWbX5SOmX1irOZlko5N5hhhX6d2Ymem0,6177
16
+ sentience/formatting.py,sha256=rptVpktftZZa5YJu4H2-K5dL8pzdIaPO9ONlEGSWnQw,483
17
+ sentience/generator.py,sha256=Wj--yn6bVo02nABBzrAIKPMmU8TRQm3JHAOER9XXT4Y,8035
18
+ sentience/inspector.py,sha256=D4q_GqXUCV3nUJv8uDv2novDbgnkboHOc9ahGeSYw9Q,14562
19
+ sentience/llm_interaction_handler.py,sha256=elvNtmGwIvoRcdra_fvijSONWzhztgdDmuPFJF2Whkw,7218
20
+ sentience/llm_provider.py,sha256=_AFohCMNgvwrfpFJfdoDx98jQ8wwupxTdkGQaxd_wYA,21261
21
+ sentience/llm_provider_utils.py,sha256=Hkr30MzZ5AvROJxEZHW97FINklzU9xoV8lITUQRoFls,3854
22
+ sentience/llm_response_builder.py,sha256=9lKJcfvD2EY7XcJtTYWTLYkxMVv_6nvlKTcGCO1nB2Q,4935
23
+ sentience/models.py,sha256=HSvznc4o7aYn3j23vOMJD5I20rPW100tCAuCvsSkbeI,14737
24
+ sentience/overlay.py,sha256=awphkU0ZvkQrxSwQz7S8rvc3gQIqrDhztcQzzjEnR2c,7738
25
+ sentience/protocols.py,sha256=jXAa-RTxdIlMgISxTlIC8P79JqoD4i5T-cjbtgLjuUk,5667
26
+ sentience/query.py,sha256=TkghEgTkEePxVVtdF9s-Ymzwt-qjzoN0SM5Qk8n-uP8,10484
27
+ sentience/read.py,sha256=W0VSh9aBaIOMfUBcmjFubN1Ax1TmpCF1E74SLensy-g,7109
28
+ sentience/recorder.py,sha256=6cJVmjTT7HpRaet6KvdpTFAPVwFmD30eXHtbAKdwoUw,20636
29
+ sentience/screenshot.py,sha256=BJTPsIeE8irP1bhj4Vti2ohsZn5RkkGFTaZJOB855Pk,3147
30
+ sentience/sentience_methods.py,sha256=NmWmf_xfDt8t6RJs5Gf317EDBDrLcOUmHjDhrGpr4ws,2552
31
+ sentience/snapshot.py,sha256=4oDutMRKQn4ZZl-8eefJrb8tcE0vr9aKzD4nu2Z-9cY,18709
32
+ sentience/snapshot_diff.py,sha256=2ob9MY7aNT4JAVWH89JD5DH16wGvb836V_ukkAl7smM,4757
33
+ sentience/text_search.py,sha256=pnkj93L0bc8pp_QK3zPXec-obEPTUXRwDGGwIHVpIlg,10550
34
+ sentience/trace_event_builder.py,sha256=RkvGnLZ9t15IQIlviZwtheteELjc-HIgA7u618anSFA,4152
35
+ sentience/trace_file_manager.py,sha256=JxvCx-Hzfyy0wP0DHo9JPnrmFNGtLvdCrPfk0mGiqmE,6311
36
+ sentience/tracer_factory.py,sha256=vTyZeixoyxwXdpZNPbKs02wxL5EdBAtq_a02jLB66wc,12911
37
+ sentience/tracing.py,sha256=48J-vmtfhXjrJ4UB3i_oHbBmcKs5UsJ8ixfK3MrMt_Q,13885
38
+ sentience/utils.py,sha256=bM2JwwsxwXb5qzNZicfhlKqnofy-kJT1HFllAuDcglk,8126
39
+ sentience/visual_agent.py,sha256=uoVgn6jAHZepbcJ0x9L8_zNd652l1TDvaoGRtOCClJo,83016
40
+ sentience/wait.py,sha256=sx-87AN1TO_f8UbNP9np8zA0t27zQzQg2c2TltOn2h0,4373
41
+ sentience/extension/background.js,sha256=Om-Wsu-DP0gjKILWjysW7le_BOCKm5YugUuuTMuic14,3754
42
+ sentience/extension/content.js,sha256=gyR-71h84RslnSyV08ioOvVow-lmDPaDlfg3GSGAU_M,7765
43
+ sentience/extension/injected_api.js,sha256=5wCvkNJEnVuFPPSI_ktAh3sQXm24dA6C-SU4KowHknI,51603
44
+ sentience/extension/manifest.json,sha256=3p6EsH4etOF6QI4x3p8c6kSSavM8oNjbKMrP5XVIa3o,897
45
+ sentience/extension/release.json,sha256=e3FqrUFqbgr8dWnMRJPim43KlQKOxB4xAAZIp7pxYok,6141
46
+ sentience/extension/pkg/sentience_core.d.ts,sha256=qrTEIR2WPkk1MmaSQzEpRyagbE9VirHowzZpbj41qeQ,1981
47
+ sentience/extension/pkg/sentience_core.js,sha256=Jzr2TF9xORVQ4ihHEoZXgPqvUje_7j2r-HF88LcPeAY,14210
48
+ sentience/extension/pkg/sentience_core_bg.wasm,sha256=UDkkNT-GJwMSe1iRM-bZNNBNpVXAQJL_d_DGvQM_Chw,103409
49
+ sentience/extension/pkg/sentience_core_bg.wasm.d.ts,sha256=O3c3HaUqmB6Aob6Pt0n3GEtTxM4VGeaClaA_-z2m2J4,517
50
+ sentience/schemas/trace_v1.json,sha256=nN0B9T62glUpRoUMXDTHAh2uskKrIdKcrDmDNtjatKg,11730
51
+ sentience/trace_indexing/__init__.py,sha256=urjLuqqXCQE8pnwpYBqoMKnzZSqFJkM1SHmFve9RVE8,499
52
+ sentience/trace_indexing/index_schema.py,sha256=4ovMC_4t55DUkclq8NnBEEnKUZGfIieSkwMU_aBExKA,6262
53
+ sentience/trace_indexing/indexer.py,sha256=ulJKM7YxvJInMkWRPxyZGGSs4K298b6ZrxikCmDz--0,15629
54
+ sentience/utils/__init__.py,sha256=h8vjeonoe9LF6TeeoJuJ9g6BdsCUP24lhmME7T9jhok,1125
55
+ sentience/utils/browser.py,sha256=pcDlAMgvmkjG13lNXe_LXiHmQs2QRQQBliTZiP7f1wA,1313
56
+ sentience/utils/element.py,sha256=S8AL9T-wqrbSJvJE-qr_Qv2FVk_gRiy6nx30hdRXy4E,6962
57
+ sentience/utils/formatting.py,sha256=IQ-3kLZu1k5ae4rlQ_AxnIkVPeLR9aa8J2NE-dj_eos,1829
58
+ sentienceapi-0.92.2.dist-info/licenses/LICENSE,sha256=jePeclQKwKdmz3jc0Oec6-jQuzwxIcGWPhMfxVII34Q,924
59
+ sentienceapi-0.92.2.dist-info/licenses/LICENSE-APACHE,sha256=YIflUygmGOc0hS_1f6EacrQUrH73G3j8VBQbDoqmY6A,11352
60
+ sentienceapi-0.92.2.dist-info/licenses/LICENSE-MIT,sha256=KiWwku3f8ikn6c8a6t0IdelVEu5GBLLr4tUKdGNNgJ8,1082
61
+ sentienceapi-0.92.2.dist-info/METADATA,sha256=OfEnaVxcxA0txNs2-rFKPXK86-QDnAMfbvO8aNxHYD0,27314
62
+ sentienceapi-0.92.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
63
+ sentienceapi-0.92.2.dist-info/entry_points.txt,sha256=HdW1BvgRJm3ZAbbqrwTvDWE2KbmVz-Ue0wllW-mLmvA,49
64
+ sentienceapi-0.92.2.dist-info/top_level.txt,sha256=A9IKao--8PsFFz5vDfBIXWHgN6oh3HkMQSiQWgUTUBQ,10
65
+ sentienceapi-0.92.2.dist-info/RECORD,,
@@ -0,0 +1,24 @@
1
+ # License
2
+
3
+ This project is dual-licensed under your choice of either:
4
+
5
+ * **MIT License** ([LICENSE-MIT](./LICENSE-MIT))
6
+ * **Apache License 2.0** ([LICENSE-APACHE](./LICENSE-APACHE))
7
+
8
+ ## Choosing a License
9
+
10
+ You may use this software under the terms of either license, at your option.
11
+
12
+ ### MIT License
13
+ The MIT License is a permissive license that is short and to the point. It lets people do almost anything they want with your project, like making and distributing closed source versions.
14
+
15
+ ### Apache License 2.0
16
+ The Apache License 2.0 is also a permissive license, similar to MIT, but it also provides an express grant of patent rights from contributors to users.
17
+
18
+ ## Contribution
19
+
20
+ Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you shall be dual-licensed as above, without any additional terms or conditions.
21
+
22
+ ---
23
+
24
+ Copyright (c) 2025 Sentience Contributors
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2025 Sentience Contributors
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 SentienceAPI Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,4 +0,0 @@
1
- // test-content.js - Simple test script
2
- console.log('TEST: Extension content script is loading!');
3
- window.testExtension = true;
4
- alert('Extension loaded!');
@@ -1,46 +0,0 @@
1
- sentience/__init__.py,sha256=DETDLYDNA_A5llT6mjgcvB4FPuCELiD8ppsz3hvTEbs,3410
2
- sentience/actions.py,sha256=RT8AoR_CNyp6bMCYhkToWH1WB8cyB8dcFJZMhfskTeo,13239
3
- sentience/agent.py,sha256=rTAaQGiuZIohrJZXpCK-dZWuoAR3k_dQodjFLBkrCxY,24527
4
- sentience/agent_config.py,sha256=blyCUh2pjMOI6YQGLWP8mSi6GTnpzWLWem4nwYg3ngA,1489
5
- sentience/base_agent.py,sha256=861XkIJeig9nqdt7f2wfFKyxanGZtDhnrgsMDdXtkFM,2979
6
- sentience/browser.py,sha256=jB59HfZHHUOKTORA7gsaQlIKEZyxwivvW4VU9swyy_k,21311
7
- sentience/cli.py,sha256=R95DgCSJmezuymAdfL6fzUdB1HpCF3iMWcLO73KJ8eY,3851
8
- sentience/cloud_tracing.py,sha256=KxVIT-HQW9EaX5GWC9DEVM2cdObomD3hkPNEnTceSpc,13541
9
- sentience/conversational_agent.py,sha256=UUgltp-EkAbAzE6Pa_S72t7fWbdIwb3C2YppXzPx2jA,17207
10
- sentience/expect.py,sha256=BFSRocNJr6ZAusb6fy4OgfDNCukGfu5jto760bFN12E,2851
11
- sentience/formatting.py,sha256=0_UklIUd94a4W32gTorjxoXNE03qdffR-omfTA5eHF0,1828
12
- sentience/generator.py,sha256=Wj--yn6bVo02nABBzrAIKPMmU8TRQm3JHAOER9XXT4Y,8035
13
- sentience/inspector.py,sha256=TvLi0DIjeFcWdBVqroCMMtN98SX11fLmjg5Tg5dlSdU,7244
14
- sentience/llm_provider.py,sha256=BehSZgSsupT2E60EXAlAupgAhs_iVTNr-UGwFbVxOAs,13922
15
- sentience/models.py,sha256=uFMRu_B0J1K65z9GFFGCQ6dlW91Lbv6f-qL0qEiDeXc,12838
16
- sentience/overlay.py,sha256=lPCqLhLGPnBk5X-W4oAaLGI54Pl_VLCS8P1b7PFUdlo,3857
17
- sentience/query.py,sha256=P9Hs3otwESNncaArUwaw73mNNRFeOgpjy-fOTDQiCOI,10474
18
- sentience/read.py,sha256=qoSbahcNumvb0mUe-WcWrKrkKCEqya6Ac7wqXFe3SRI,3490
19
- sentience/recorder.py,sha256=RWzkJP6LWiFAJUfbXQS3aAnRgl7aDrWuKw3slp-gR1Y,12496
20
- sentience/screenshot.py,sha256=1UJjRvPxPpiL3w1_MBvO_UPMAsmt-uyRujTYA50jim0,1607
21
- sentience/snapshot.py,sha256=zFQa-jGh8MBPuyvZZ3kam_d8qN93UtmigCvj9m2V5Ts,9947
22
- sentience/text_search.py,sha256=UF7-Dlo69Stx_vkfcu5ss3dKCVgyWODrafJoJXU9NCw,5753
23
- sentience/tracer_factory.py,sha256=Fc_kb8ffJVGdy91cnxpxU2xjFZUyS2OiaI2pqtvl2lk,7643
24
- sentience/tracing.py,sha256=ciYSW3QXcO0BYDtjeKQLfpAysObBIKQKCAlviwU74AQ,7240
25
- sentience/utils.py,sha256=ryxiDVE_sUPHYmYnWYXADuyciD_ZawmsITDZNUeDVJg,8116
26
- sentience/wait.py,sha256=8E_5aRS3GJ4igDwWzMJvIV6ENPsqX19JGwXCPAMkX6s,2195
27
- sentience/extension/background.js,sha256=hnK32hVtHJrLtzBeXt2beRmMzr1l0U82r8zZEXyOibk,8954
28
- sentience/extension/content.js,sha256=UIuFCDTVTkXdaiXB8LMf0OP8SB_WMrMoaav5ZBXmeIo,10442
29
- sentience/extension/injected_api.js,sha256=Pr5j9MGJTInPOKfKKNuaMDjOJSK3ygM-HlmWAUUS-Yg,63790
30
- sentience/extension/manifest.json,sha256=MfkfsS5zVxb-scqJllN8aubrRN9vsznQ3-Aw69pZ47c,897
31
- sentience/extension/release.json,sha256=ikdgGGy_Jf6r_P6dKOUUaVZOQYMIRHz3ok5dVclxoT8,6437
32
- sentience/extension/test-content.js,sha256=RX6A42W-5pjP-avqGwrRq_GVp5yX2NqBDlDLc-SWL5g,156
33
- sentience/extension/pkg/sentience_core.d.ts,sha256=qrTEIR2WPkk1MmaSQzEpRyagbE9VirHowzZpbj41qeQ,1981
34
- sentience/extension/pkg/sentience_core.js,sha256=zldlOubec0pbNYhquwDzoQKuBF4SUVcIeXW_qLx0dVA,17904
35
- sentience/extension/pkg/sentience_core_bg.wasm,sha256=HtzBY8z4XgRgHHUqHQGm84EEQJirpf25wSVTXg-iJ1g,102522
36
- sentience/extension/pkg/sentience_core_bg.wasm.d.ts,sha256=O3c3HaUqmB6Aob6Pt0n3GEtTxM4VGeaClaA_-z2m2J4,517
37
- sentience/schemas/trace_v1.json,sha256=XpByPqRH1xzHmD7YeuaDE5ZaEb3L5fz762djcwXqPV8,7593
38
- sentience/trace_indexing/__init__.py,sha256=urjLuqqXCQE8pnwpYBqoMKnzZSqFJkM1SHmFve9RVE8,499
39
- sentience/trace_indexing/index_schema.py,sha256=Hz9igHFrHATTZOqKNiLhESjnGbDPTyRTejMGT1AKC8g,2180
40
- sentience/trace_indexing/indexer.py,sha256=m-p57Va0cFlCpuMWkXNSHqODpGzpESZzoOkt3OiejlM,10811
41
- sentienceapi-0.90.12.dist-info/licenses/LICENSE.md,sha256=Pl8BWUOOkFtYpgVhNwCl3YKzRvUpYid2utlJELIgr_8,3783
42
- sentienceapi-0.90.12.dist-info/METADATA,sha256=DblGVp6eXuV5WD44nR-auKp93Ig7iiXVoG-LajlznVc,26131
43
- sentienceapi-0.90.12.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
44
- sentienceapi-0.90.12.dist-info/entry_points.txt,sha256=HdW1BvgRJm3ZAbbqrwTvDWE2KbmVz-Ue0wllW-mLmvA,49
45
- sentienceapi-0.90.12.dist-info/top_level.txt,sha256=A9IKao--8PsFFz5vDfBIXWHgN6oh3HkMQSiQWgUTUBQ,10
46
- sentienceapi-0.90.12.dist-info/RECORD,,