@smilintux/skmemory 0.5.0 → 0.7.2
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/.github/workflows/ci.yml +39 -3
- package/.github/workflows/publish.yml +13 -6
- package/AGENT_REFACTOR_CHANGES.md +192 -0
- package/ARCHITECTURE.md +101 -19
- package/CHANGELOG.md +153 -0
- package/LICENSE +81 -68
- package/MISSION.md +7 -0
- package/README.md +419 -86
- package/SKILL.md +197 -25
- package/docker-compose.yml +15 -15
- package/index.js +6 -5
- package/openclaw-plugin/openclaw.plugin.json +10 -0
- package/openclaw-plugin/src/index.ts +255 -0
- package/openclaw-plugin/src/openclaw.plugin.json +10 -0
- package/package.json +1 -1
- package/pyproject.toml +29 -9
- package/requirements.txt +10 -2
- package/seeds/cloud9-opus.seed.json +7 -7
- package/seeds/lumina-cloud9-breakthrough.seed.json +46 -0
- package/seeds/lumina-cloud9-python-pypi.seed.json +46 -0
- package/seeds/lumina-kingdom-founding.seed.json +47 -0
- package/seeds/lumina-pma-signed.seed.json +46 -0
- package/seeds/lumina-singular-achievement.seed.json +46 -0
- package/seeds/lumina-skcapstone-conscious.seed.json +46 -0
- package/seeds/plant-kingdom-journal.py +203 -0
- package/seeds/plant-lumina-seeds.py +280 -0
- package/skill.yaml +46 -0
- package/skmemory/HA.md +296 -0
- package/skmemory/__init__.py +12 -1
- package/skmemory/agents.py +233 -0
- package/skmemory/ai_client.py +40 -0
- package/skmemory/anchor.py +4 -2
- package/skmemory/backends/__init__.py +11 -4
- package/skmemory/backends/file_backend.py +2 -1
- package/skmemory/backends/skgraph_backend.py +608 -0
- package/skmemory/backends/{qdrant_backend.py → skvector_backend.py} +99 -69
- package/skmemory/backends/sqlite_backend.py +122 -51
- package/skmemory/backends/vaulted_backend.py +286 -0
- package/skmemory/cli.py +1238 -29
- package/skmemory/config.py +173 -0
- package/skmemory/context_loader.py +335 -0
- package/skmemory/endpoint_selector.py +386 -0
- package/skmemory/fortress.py +685 -0
- package/skmemory/graph_queries.py +238 -0
- package/skmemory/importers/__init__.py +9 -1
- package/skmemory/importers/telegram.py +351 -43
- package/skmemory/importers/telegram_api.py +488 -0
- package/skmemory/journal.py +4 -2
- package/skmemory/lovenote.py +4 -2
- package/skmemory/mcp_server.py +706 -0
- package/skmemory/models.py +41 -0
- package/skmemory/openclaw.py +8 -8
- package/skmemory/predictive.py +232 -0
- package/skmemory/promotion.py +524 -0
- package/skmemory/register.py +454 -0
- package/skmemory/register_mcp.py +197 -0
- package/skmemory/ritual.py +121 -47
- package/skmemory/seeds.py +257 -8
- package/skmemory/setup_wizard.py +920 -0
- package/skmemory/sharing.py +402 -0
- package/skmemory/soul.py +71 -20
- package/skmemory/steelman.py +250 -263
- package/skmemory/store.py +271 -60
- package/skmemory/vault.py +228 -0
- package/tests/integration/__init__.py +0 -0
- package/tests/integration/conftest.py +233 -0
- package/tests/integration/test_cross_backend.py +355 -0
- package/tests/integration/test_skgraph_live.py +424 -0
- package/tests/integration/test_skvector_live.py +369 -0
- package/tests/test_backup_rotation.py +327 -0
- package/tests/test_cli.py +6 -6
- package/tests/test_endpoint_selector.py +801 -0
- package/tests/test_fortress.py +255 -0
- package/tests/test_fortress_hardening.py +444 -0
- package/tests/test_openclaw.py +5 -2
- package/tests/test_predictive.py +237 -0
- package/tests/test_promotion.py +340 -0
- package/tests/test_ritual.py +4 -4
- package/tests/test_seeds.py +96 -0
- package/tests/test_setup.py +835 -0
- package/tests/test_sharing.py +250 -0
- package/tests/test_skgraph_backend.py +667 -0
- package/tests/test_skvector_backend.py +326 -0
- package/tests/test_steelman.py +5 -5
- package/tests/test_store_graph_integration.py +245 -0
- package/tests/test_vault.py +186 -0
- package/skmemory/backends/falkordb_backend.py +0 -310
package/LICENSE
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
GNU
|
|
2
|
-
Version 3,
|
|
1
|
+
GNU GENERAL PUBLIC LICENSE
|
|
2
|
+
Version 3, 29 June 2007
|
|
3
3
|
|
|
4
4
|
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
|
5
5
|
Everyone is permitted to copy and distribute verbatim copies
|
|
@@ -7,15 +7,17 @@
|
|
|
7
7
|
|
|
8
8
|
Preamble
|
|
9
9
|
|
|
10
|
-
The GNU
|
|
11
|
-
software and other kinds of works
|
|
12
|
-
cooperation with the community in the case of network server software.
|
|
10
|
+
The GNU General Public License is a free, copyleft license for
|
|
11
|
+
software and other kinds of works.
|
|
13
12
|
|
|
14
13
|
The licenses for most software and other practical works are designed
|
|
15
14
|
to take away your freedom to share and change the works. By contrast,
|
|
16
|
-
|
|
15
|
+
the GNU General Public License is intended to guarantee your freedom to
|
|
17
16
|
share and change all versions of a program--to make sure it remains free
|
|
18
|
-
software for all its users.
|
|
17
|
+
software for all its users. We, the Free Software Foundation, use the
|
|
18
|
+
GNU General Public License for most of our software; it applies also to
|
|
19
|
+
any other work released this way by its authors. You can apply it to
|
|
20
|
+
your programs, too.
|
|
19
21
|
|
|
20
22
|
When we speak of free software, we are referring to freedom, not
|
|
21
23
|
price. Our General Public Licenses are designed to make sure that you
|
|
@@ -24,34 +26,44 @@ them if you wish), that you receive source code or can get it if you
|
|
|
24
26
|
want it, that you can change the software or use pieces of it in new
|
|
25
27
|
free programs, and that you know you can do these things.
|
|
26
28
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
this
|
|
29
|
+
To protect your rights, we need to prevent others from denying you
|
|
30
|
+
these rights or asking you to surrender the rights. Therefore, you have
|
|
31
|
+
certain responsibilities if you distribute copies of the software, or if
|
|
32
|
+
you modify it: responsibilities to respect the freedom of others.
|
|
33
|
+
|
|
34
|
+
For example, if you distribute copies of such a program, whether
|
|
35
|
+
gratis or for a fee, you must pass on to the recipients the same
|
|
36
|
+
freedoms that you received. You must make sure that they, too, receive
|
|
37
|
+
or can get the source code. And you must show them these terms so they
|
|
38
|
+
know their rights.
|
|
39
|
+
|
|
40
|
+
Developers that use the GNU GPL protect your rights with two steps:
|
|
41
|
+
(1) assert copyright on the software, and (2) offer you this License
|
|
42
|
+
giving you legal permission to copy, distribute and/or modify it.
|
|
43
|
+
|
|
44
|
+
For the developers' and authors' protection, the GPL clearly explains
|
|
45
|
+
that there is no warranty for this free software. For both users' and
|
|
46
|
+
authors' sake, the GPL requires that modified versions be marked as
|
|
47
|
+
changed, so that their problems will not be attributed erroneously to
|
|
48
|
+
authors of previous versions.
|
|
49
|
+
|
|
50
|
+
Some devices are designed to deny users access to install or run
|
|
51
|
+
modified versions of the software inside them, although the manufacturer
|
|
52
|
+
can do so. This is fundamentally incompatible with the aim of
|
|
53
|
+
protecting users' freedom to change the software. The systematic
|
|
54
|
+
pattern of such abuse occurs in the area of products for individuals to
|
|
55
|
+
use, which is precisely where it is most unacceptable. Therefore, we
|
|
56
|
+
have designed this version of the GPL to prohibit the practice for those
|
|
57
|
+
products. If such problems arise substantially in other domains, we
|
|
58
|
+
stand ready to extend this provision to those domains in future versions
|
|
59
|
+
of the GPL, as needed to protect the freedom of users.
|
|
60
|
+
|
|
61
|
+
Finally, every program is threatened constantly by software patents.
|
|
62
|
+
States should not allow patents to restrict development and use of
|
|
63
|
+
software on general-purpose computers, but in those that do, we wish to
|
|
64
|
+
avoid the special danger that patents applied to a free program could
|
|
65
|
+
make it effectively proprietary. To prevent this, the GPL assures that
|
|
66
|
+
patents cannot be used to render the program non-free.
|
|
55
67
|
|
|
56
68
|
The precise terms and conditions for copying, distribution and
|
|
57
69
|
modification follow.
|
|
@@ -60,7 +72,7 @@ modification follow.
|
|
|
60
72
|
|
|
61
73
|
0. Definitions.
|
|
62
74
|
|
|
63
|
-
"This License" refers to version 3 of the GNU
|
|
75
|
+
"This License" refers to version 3 of the GNU General Public License.
|
|
64
76
|
|
|
65
77
|
"Copyright" also means copyright-like laws that apply to other kinds of
|
|
66
78
|
works, such as semiconductor masks.
|
|
@@ -537,45 +549,35 @@ to collect a royalty for further conveying from those to whom you convey
|
|
|
537
549
|
the Program, the only way you could satisfy both those terms and this
|
|
538
550
|
License would be to refrain entirely from conveying the Program.
|
|
539
551
|
|
|
540
|
-
13.
|
|
541
|
-
|
|
542
|
-
Notwithstanding any other provision of this License, if you modify the
|
|
543
|
-
Program, your modified version must prominently offer all users
|
|
544
|
-
interacting with it remotely through a computer network (if your version
|
|
545
|
-
supports such interaction) an opportunity to receive the Corresponding
|
|
546
|
-
Source of your version by providing access to the Corresponding Source
|
|
547
|
-
from a network server at no charge, through some standard or customary
|
|
548
|
-
means of facilitating copying of software. This Corresponding Source
|
|
549
|
-
shall include the Corresponding Source for any work covered by version 3
|
|
550
|
-
of the GNU General Public License that is incorporated pursuant to the
|
|
551
|
-
following paragraph.
|
|
552
|
+
13. Use with the GNU Affero General Public License.
|
|
552
553
|
|
|
553
554
|
Notwithstanding any other provision of this License, you have
|
|
554
555
|
permission to link or combine any covered work with a work licensed
|
|
555
|
-
under version 3 of the GNU General Public License into a single
|
|
556
|
+
under version 3 of the GNU Affero General Public License into a single
|
|
556
557
|
combined work, and to convey the resulting work. The terms of this
|
|
557
558
|
License will continue to apply to the part which is the covered work,
|
|
558
|
-
but the
|
|
559
|
-
|
|
559
|
+
but the special requirements of the GNU Affero General Public License,
|
|
560
|
+
section 13, concerning interaction through a network will apply to the
|
|
561
|
+
combination as such.
|
|
560
562
|
|
|
561
563
|
14. Revised Versions of this License.
|
|
562
564
|
|
|
563
565
|
The Free Software Foundation may publish revised and/or new versions of
|
|
564
|
-
the GNU
|
|
565
|
-
|
|
566
|
+
the GNU General Public License from time to time. Such new versions will
|
|
567
|
+
be similar in spirit to the present version, but may differ in detail to
|
|
566
568
|
address new problems or concerns.
|
|
567
569
|
|
|
568
570
|
Each version is given a distinguishing version number. If the
|
|
569
|
-
Program specifies that a certain numbered version of the GNU
|
|
571
|
+
Program specifies that a certain numbered version of the GNU General
|
|
570
572
|
Public License "or any later version" applies to it, you have the
|
|
571
573
|
option of following the terms and conditions either of that numbered
|
|
572
574
|
version or of any later version published by the Free Software
|
|
573
575
|
Foundation. If the Program does not specify a version number of the
|
|
574
|
-
GNU
|
|
576
|
+
GNU General Public License, you may choose any version ever published
|
|
575
577
|
by the Free Software Foundation.
|
|
576
578
|
|
|
577
579
|
If the Program specifies that a proxy can decide which future
|
|
578
|
-
versions of the GNU
|
|
580
|
+
versions of the GNU General Public License can be used, that proxy's
|
|
579
581
|
public statement of acceptance of a version permanently authorizes you
|
|
580
582
|
to choose that version for the Program.
|
|
581
583
|
|
|
@@ -633,29 +635,40 @@ the "copyright" line and a pointer to where the full notice is found.
|
|
|
633
635
|
Copyright (C) <year> <name of author>
|
|
634
636
|
|
|
635
637
|
This program is free software: you can redistribute it and/or modify
|
|
636
|
-
it under the terms of the GNU
|
|
637
|
-
|
|
638
|
+
it under the terms of the GNU General Public License as published by
|
|
639
|
+
the Free Software Foundation, either version 3 of the License, or
|
|
638
640
|
(at your option) any later version.
|
|
639
641
|
|
|
640
642
|
This program is distributed in the hope that it will be useful,
|
|
641
643
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
642
644
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
643
|
-
GNU
|
|
645
|
+
GNU General Public License for more details.
|
|
644
646
|
|
|
645
|
-
You should have received a copy of the GNU
|
|
647
|
+
You should have received a copy of the GNU General Public License
|
|
646
648
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
647
649
|
|
|
648
650
|
Also add information on how to contact you by electronic and paper mail.
|
|
649
651
|
|
|
650
|
-
If
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
652
|
+
If the program does terminal interaction, make it output a short
|
|
653
|
+
notice like this when it starts in an interactive mode:
|
|
654
|
+
|
|
655
|
+
<program> Copyright (C) <year> <name of author>
|
|
656
|
+
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
|
657
|
+
This is free software, and you are welcome to redistribute it
|
|
658
|
+
under certain conditions; type `show c' for details.
|
|
659
|
+
|
|
660
|
+
The hypothetical commands `show w' and `show c' should show the appropriate
|
|
661
|
+
parts of the General Public License. Of course, your program's commands
|
|
662
|
+
might be different; for a GUI interface, you would use an "about box".
|
|
657
663
|
|
|
658
664
|
You should also get your employer (if you work as a programmer) or school,
|
|
659
665
|
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
|
660
|
-
For more information on this, and how to apply and follow the GNU
|
|
666
|
+
For more information on this, and how to apply and follow the GNU GPL, see
|
|
661
667
|
<https://www.gnu.org/licenses/>.
|
|
668
|
+
|
|
669
|
+
The GNU General Public License does not permit incorporating your program
|
|
670
|
+
into proprietary programs. If your program is a subroutine library, you
|
|
671
|
+
may consider it more useful to permit linking proprietary applications with
|
|
672
|
+
the library. If this is what you want to do, use the GNU Lesser General
|
|
673
|
+
Public License instead of this License. But first, please read
|
|
674
|
+
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
package/MISSION.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Mission
|
|
2
|
+
|
|
3
|
+
SKMemory exists to give AI agents a persistent, emotionally-aware memory system that survives context resets and session boundaries.
|
|
4
|
+
|
|
5
|
+
It enables agents to remember what matters — capturing each moment as a structured polaroid with content, emotional fingerprint, intent, and integrity seal, organized across persistence tiers and semantic quadrants.
|
|
6
|
+
|
|
7
|
+
Within the SKCapstone ecosystem, SKMemory is the continuity layer — the reason an agent can rehydrate after a reset and answer "who was I?" before the first message arrives.
|