@arke-institute/rhiza 0.7.14 → 0.8.0

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/LICENSE ADDED
@@ -0,0 +1,199 @@
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 the 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 the 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 any 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. Please also get an
185
+ "applicable copyright or patent law" opinion from your lawyer.
186
+
187
+ Copyright 2025-present Arkeon Technologies Inc.
188
+
189
+ Licensed under the Apache License, Version 2.0 (the "License");
190
+ you may not use this file except in compliance with the License.
191
+ You may obtain a copy of the License at
192
+
193
+ http://www.apache.org/licenses/LICENSE-2.0
194
+
195
+ Unless required by applicable law or agreed to in writing, software
196
+ distributed under the License is distributed on an "AS IS" BASIS,
197
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
198
+ See the License for the specific language governing permissions and
199
+ limitations under the License.
@@ -38,7 +38,7 @@ export { buildVerificationResponse, createVerificationHandler, type Verification
38
38
  export { ensureCollection } from './collection';
39
39
  export type { WorkspaceConfig, WorkspaceNetworkConfig, WorkspaceConfigResult, } from './workspace';
40
40
  export { WORKSPACE_CONFIG_FILENAME, readWorkspaceConfig, writeWorkspaceConfig, findWorkspaceConfig, resolveWorkspaceCollection, createDefaultWorkspaceConfig, migrateKladosToCollection, } from './workspace';
41
- export type { KladosConfig, KladosSyncOptions, MatchCriteria, PropertyCondition } from './klados';
41
+ export type { KladosConfig, KladosSyncOptions } from './klados';
42
42
  export { syncKlados, createApiKey, listApiKeys, revokeApiKey, rotateApiKey, requestVerification, confirmVerification, activateKlados, runVerificationFlow, type VerificationTokenResult, type VerificationConfirmResult, } from './klados';
43
43
  export type { RhizaConfig, RhizaFlow, RhizaSyncOptions } from './rhiza';
44
44
  export { syncRhiza } from './rhiza';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/registration/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAMH,YAAY,EAEV,OAAO,EACP,QAAQ,EACR,iBAAiB,EACjB,uBAAuB,EACvB,sBAAsB,EACtB,UAAU,EACV,YAAY,EAEZ,UAAU,EACV,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAMvC,OAAO,EACL,SAAS,EACT,UAAU,EACV,gBAAgB,EAChB,UAAU,EACV,UAAU,EACV,gBAAgB,GACjB,MAAM,SAAS,CAAC;AAMjB,OAAO,EACL,yBAAyB,EACzB,yBAAy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BAAyB,EACzB,yBAAyB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,yBAAyB,GAC/B,MAAM,gBAAgB,CAAC;AAMxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAMhD,YAAY,EACV,eAAe,EACf,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,yBAAyB,EACzB,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,0BAA0B,EAC1B,4BAA4B,EAC5B,yBAAyB,GAC1B,MAAM,aAAa,CAAC;AAMrB,YAAY,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAEhE,OAAO,EAEL,UAAU,EAEV,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,YAAY,EAEZ,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,mBAAmB,EACnB,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,GAC/B,MAAM,UAAU,CAAC;AAMlB,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAExE,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC"}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Klados registration exports
3
3
  */
4
- export type { KladosConfig, KladosSyncOptions, MatchCriteria, PropertyCondition } from './types';
4
+ export type { KladosConfig, KladosSyncOptions } from './types';
5
5
  export { createApiKey, listApiKeys, revokeApiKey, rotateApiKey, } from './keys';
6
6
  export { requestVerification, confirmVerification, activateKlados, runVerificationFlow, type VerificationTokenResult, type VerificationConfirmResult, } from './verify';
7
7
  export { syncKlados } from './sync';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/registration/klados/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,YAAY,EAAE,YAAY,EAAE,iBAAiB,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAGjG,OAAO,EACL,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,YAAY,GACb,MAAM,QAAQ,CAAC;AAGhB,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,mBAAmB,EACnB,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,GAC/B,MAAM,UAAU,CAAC;AAGlB,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/registration/klados/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,YAAY,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAG/D,OAAO,EACL,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,YAAY,GACb,MAAM,QAAQ,CAAC;AAGhB,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,mBAAmB,EACnB,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,GAC/B,MAAM,UAAU,CAAC;AAGlB,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../../src/registration/klados/sync.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,EAAE,uBAAuB,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAClF,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AA4E/D;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,UAAU,CAC9B,MAAM,EAAE,UAAU,EAClB,MAAM,EAAE,YAAY,EACpB,KAAK,EAAE,uBAAuB,GAAG,IAAI,EACrC,OAAO,EAAE,iBAAiB,GACzB,OAAO,CAAC,UAAU,CAAC,uBAAuB,CAAC,GAAG,YAAY,CAAC,CAoL7D"}
1
+ {"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../../src/registration/klados/sync.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,EAAE,uBAAuB,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAClF,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAwE/D;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,UAAU,CAC9B,MAAM,EAAE,UAAU,EAClB,MAAM,EAAE,YAAY,EACpB,KAAK,EAAE,uBAAuB,GAAG,IAAI,EACrC,OAAO,EAAE,iBAAiB,GACzB,OAAO,CAAC,UAAU,CAAC,uBAAuB,CAAC,GAAG,YAAY,CAAC,CAqL7D"}
@@ -20,8 +20,6 @@ async function createKladosEntity(client, config, collectionId) {
20
20
  accepts: config.accepts,
21
21
  produces: config.produces,
22
22
  collection: collectionId,
23
- // Include match criteria for discovery
24
- ...(config.match ? { match: config.match } : {}),
25
23
  },
26
24
  });
27
25
  if (error || !data) {
@@ -51,8 +49,6 @@ async function updateKladosEntity(client, kladosId, config) {
51
49
  actions_required: config.actions_required,
52
50
  accepts: config.accepts,
53
51
  produces: config.produces,
54
- // Include match criteria for discovery
55
- ...(config.match ? { match: config.match } : {}),
56
52
  },
57
53
  });
58
54
  if (updateError) {
@@ -81,7 +77,7 @@ async function updateKladosEntity(client, kladosId, config) {
81
77
  * @returns Sync result or dry-run result
82
78
  */
83
79
  export async function syncKlados(client, config, state, options) {
84
- const { network, collectionId, collectionLabel = 'Klados Workers', keyStore, secretName = network === 'test' ? 'ARKE_AGENT_KEY_TEST' : 'ARKE_AGENT_KEY_MAIN', dryRun = false, onDeploy, onWaitForHealth, } = options;
80
+ const { network, collectionId, collectionLabel = 'Klados Workers', keyStore, secretName = network === 'test' ? 'ARKE_AGENT_KEY_TEST' : 'ARKE_AGENT_KEY_MAIN', dryRun = false, force = false, onDeploy, onWaitForHealth, } = options;
85
81
  const configHash = hashConfig(config);
86
82
  // ==========================================================================
87
83
  // DRY RUN - Return what would happen
@@ -107,7 +103,7 @@ export async function syncKlados(client, config, state, options) {
107
103
  endpoint: config.endpoint,
108
104
  config_hash: configHash,
109
105
  });
110
- if (changes.length === 0 || state.config_hash === configHash) {
106
+ if (!force && (changes.length === 0 || state.config_hash === configHash)) {
111
107
  return { action: 'unchanged' };
112
108
  }
113
109
  const endpointChanged = state.endpoint !== config.endpoint;
@@ -183,7 +179,7 @@ export async function syncKlados(client, config, state, options) {
183
179
  // UPDATE - Existing registration
184
180
  // ==========================================================================
185
181
  // Check if anything changed
186
- if (state.config_hash === configHash) {
182
+ if (!force && state.config_hash === configHash) {
187
183
  return {
188
184
  action: 'unchanged',
189
185
  state,
@@ -1 +1 @@
1
- {"version":3,"file":"sync.js","sourceRoot":"","sources":["../../../src/registration/klados/sync.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE/C;;GAEG;AACH,KAAK,UAAU,kBAAkB,CAC/B,MAAkB,EAClB,MAAoB,EACpB,YAAoB;IAEpB,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,EAAE;QACvD,IAAI,EAAE;YACJ,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,WAAW,EAAE,MAAM,CAAC,WAAW;YAC/B,QAAQ,EAAE,MAAM,CAAC,QAAQ;YACzB,gBAAgB,EAAE,MAAM,CAAC,gBAAgB;YAC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AAW,KAAK,UAAU,EAAE,CAAC;QAC/C,OAAO;YACL,MAAM,EAAE,WAAW;YACnB,KAAK;SACN,CAAC;IACJ,CAAC;IAED,MAAM,eAAe,GAAG,KAAK,CAAC,QAAQ,KAAK,MAAM,CAAC,QAAQ,CAAC;IAE3D,yBAAyB;IACzB,MAAM,kBAAkB,CAAC,MAAM,EAAE,KAAK,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;IAE1D,gCAAgC;IAChC,IAAI,eAAe,IAAI,QAAQ,IAAI,QAAQ,IAAI,eAAe,EAAE,CAAC;QAC/D,MAAM,YAAY,GAAG,MAAM,mBAAmB,CAC5C,MAAM,EACN,KAAK,CAAC,SAAS,EACf,MAAM,CAAC,QAAQ,EACf;YACE,QAAQ;YACR,QAAQ;YACR,eAAe;SAChB,CACF,CAAC;QAEF,IAAI,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC;YAC3B,MAAM,IAAI,KAAK,CAAC,2BAA2B,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC;QACnE,CAAC;QAED,OAAO;YACL,MAAM,EAAE,SAAS;YACjB,KAAK,EAAE;gBACL,GAAG,KAAK;gBACR,QAAQ,EAAE,MAAM,CAAC,QAAQ;gBACzB,oBAAoB,EAAE,YAAY,CAAC,UAAU;gBAC7C,WAAW,EAAE,UAAU;gBACvB,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;aACrC;SACF,CAAC;IACJ,CAAC;IAED,sDAAsD;IACtD,OAAO;QACL,MAAM,EAAE,SAAS;QACjB,KAAK,EAAE;YACL,GAAG,KAAK;YACR,QAAQ,EAAE,MAAM,CAAC,QAAQ;YACzB,WAAW,EAAE,UAAU;YACvB,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;SACrC;KACF,CAAC;AACJ,CAAC"}
@@ -2,47 +2,6 @@
2
2
  * Klados registration types
3
3
  */
4
4
  import type { Network, KeyStore } from '../types';
5
- /**
6
- * Match criteria for klados discovery.
7
- * See arke_v1/docs/architecture/KLADOS_DISCOVERY.md for full documentation.
8
- */
9
- export type MatchCriteria = {
10
- always: true;
11
- } | {
12
- never: true;
13
- } | {
14
- and: MatchCriteria[];
15
- } | {
16
- or: MatchCriteria[];
17
- } | {
18
- not: MatchCriteria;
19
- } | PropertyCondition;
20
- export interface PropertyCondition {
21
- /** JSON path into the entity (e.g., "type", "properties.content_type") */
22
- path: string;
23
- equals?: unknown;
24
- not_equals?: unknown;
25
- in?: unknown[];
26
- not_in?: unknown[];
27
- exists?: boolean;
28
- gt?: number;
29
- gte?: number;
30
- lt?: number;
31
- lte?: number;
32
- matches?: string;
33
- starts_with?: string;
34
- contains?: string;
35
- /**
36
- * Matches if ANY entry in the map/array at this path satisfies the nested criteria.
37
- * For objects, iterates over values. For arrays, iterates over elements.
38
- */
39
- any?: MatchCriteria;
40
- /**
41
- * Matches if ALL entries in the map/array at this path satisfy the nested criteria.
42
- * Empty collections return true (vacuous truth).
43
- */
44
- all?: MatchCriteria;
45
- }
46
5
  /** Configuration for klados registration (typically from agent.json) */
47
6
  export interface KladosConfig {
48
7
  /** Human-readable name */
@@ -67,12 +26,6 @@ export interface KladosConfig {
67
26
  /** Output cardinality */
68
27
  cardinality: 'one' | 'many';
69
28
  };
70
- /**
71
- * Match criteria for automatic discovery.
72
- * Defines when this klados applies to a given entity.
73
- * @see arke_v1/docs/architecture/KLADOS_DISCOVERY.md
74
- */
75
- match?: MatchCriteria;
76
29
  }
77
30
  /** Options for klados sync */
78
31
  export interface KladosSyncOptions {
@@ -99,6 +52,11 @@ export interface KladosSyncOptions {
99
52
  * When true, returns DryRunResult instead of SyncResult.
100
53
  */
101
54
  dryRun?: boolean;
55
+ /**
56
+ * Force update even if config hash matches state file.
57
+ * Useful when state file is out of sync with the actual API entity.
58
+ */
59
+ force?: boolean;
102
60
  /**
103
61
  * Called when worker needs to be deployed.
104
62
  * This is called after secrets are pushed to keyStore.
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts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AAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAuE7D;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,SAAS,CAC7B,MAAM,EAAE,UAAU,EAClB,MAAM,EAAE,WAAW,EACnB,KAAK,EAAE,sBAAsB,GAAG,IAAI,EACpC,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC,UAAU,CAAC,sBAAsB,CAAC,GAAG,YAAY,CAAC,CA+F5D"}
1
+ {"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../../src/registration/rhiza/sync.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAc,MAAM,qBAAqB,CAAC;AAClE,OAAO,KAAK,EAAE,sBAAsB,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACjF,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AA2F7D;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,SAAS,CAC7B,MAAM,EAAE,UAAU,EAClB,MAAM,EAAE,WAAW,EACnB,KAAK,EAAE,sBAAsB,GAAG,IAAI,EACpC,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC,UAAU,CAAC,sBAAsB,CAAC,GAAG,YAAY,CAAC,CA+F5D"}
@@ -26,19 +26,37 @@ async function createRhizaEntity(client, config, collectionId) {
26
26
  }
27
27
  /**
28
28
  * Update an existing rhiza entity.
29
+ *
30
+ * Uses a two-step approach to ensure clean flow replacement:
31
+ * 1. Remove the entire flow property (avoids deep-merge artifacts)
32
+ * 2. Set all new properties including the new flow
33
+ *
34
+ * This is necessary because the Arke API deep-merges properties, so stale
35
+ * nested keys (e.g., a removed step's `then.scatter`) would persist otherwise.
29
36
  */
30
37
  async function updateRhizaEntity(client, rhizaId, config) {
31
- // Get current tip for CAS
38
+ // Step 1: Get current tip and remove flow entirely
32
39
  const { data: tipData, error: tipError } = await client.api.GET('/entities/{id}/tip', {
33
40
  params: { path: { id: rhizaId } },
34
41
  });
35
42
  if (tipError || !tipData) {
36
43
  throw new Error(`Failed to get entity tip: ${tipError?.error || 'Unknown error'}`);
37
44
  }
38
- const { error: updateError } = await client.api.PUT('/rhizai/{id}', {
45
+ const { data: clearData, error: clearError } = await client.api.PUT('/entities/{id}', {
39
46
  params: { path: { id: rhizaId } },
40
47
  body: {
41
48
  expect_tip: tipData.cid,
49
+ properties_remove: ['flow'],
50
+ },
51
+ });
52
+ if (clearError || !clearData) {
53
+ throw new Error(`Failed to clear flow: ${clearError?.error || 'Unknown error'}`);
54
+ }
55
+ // Step 2: Set new properties with clean flow (no stale keys to merge with)
56
+ const { error: updateError } = await client.api.PUT('/rhizai/{id}', {
57
+ params: { path: { id: rhizaId } },
58
+ body: {
59
+ expect_tip: clearData.cid,
42
60
  label: config.label,
43
61
  version: config.version,
44
62
  entry: config.entry,
@@ -66,7 +84,7 @@ async function updateRhizaEntity(client, rhizaId, config) {
66
84
  * @returns Sync result or dry-run result
67
85
  */
68
86
  export async function syncRhiza(client, config, state, options) {
69
- const { collectionId, collectionLabel = 'Rhiza Workflows', dryRun = false } = options;
87
+ const { collectionId, collectionLabel = 'Rhiza Workflows', dryRun = false, force = false } = options;
70
88
  const configHash = hashConfig(config);
71
89
  // ==========================================================================
72
90
  // DRY RUN - Return what would happen
@@ -84,7 +102,7 @@ export async function syncRhiza(client, config, state, options) {
84
102
  };
85
103
  }
86
104
  // Check for changes
87
- if (state.config_hash === configHash) {
105
+ if (!force && state.config_hash === configHash) {
88
106
  return { action: 'unchanged' };
89
107
  }
90
108
  // Calculate what changed
@@ -129,7 +147,7 @@ export async function syncRhiza(client, config, state, options) {
129
147
  // UPDATE - Existing registration
130
148
  // ==========================================================================
131
149
  // Check if anything changed
132
- if (state.config_hash === configHash) {
150
+ if (!force && state.config_hash === configHash) {
133
151
  return {
134
152
  action: 'unchanged',
135
153
  state,
@@ -1 +1 @@
1
- {"version":3,"file":"sync.js","sourceRoot":"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C;QACX,mCAAmC;QACnC,MAAM,EAAE,EAAE,EAAE,oBAAoB,EAAE,GAAG,MAAM,gBAAgB,CAAC,MAAM,EAAE,eAAe,EAAE,YAAY,CAAC,CAAC;QAEnG,8BAA8B;QAC9B,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,GAAG,MAAM,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,oBAAoB,CAAC,CAAC;QAEtF,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;QACrC,OAAO;YACL,MAAM,EAAE,SAAS;YACjB,KAAK,EAAE;gBACL,cAAc,EAAE,CAAC;gBACjB,QAAQ,EAAE,OAAO;gBACjB,aAAa,EAAE,oBAAoB;gBACnC,OAAO,EAAE,MAAM,CAAC,OAAO;gBACvB,WAAW,EAAE,UAAU;gBACvB,aAAa,EAAE,GAAG;gBAClB,UAAU,EAAE,GAAG;aAChB;SACF,CAAC;IACJ,CAAC;IAED,6EAA6E;IAC7E,iCAAiC;IACjC,6EAA6E;IAE7E,4BAA4B;IAC5B,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,WAAW,KAAK,UAAU,EAAE,CAAC;QAC/C,OAAO;YACL,MAAM,EAAE,WAAW;YACnB,KAAK;SACN,CAAC;IACJ,CAAC;IAED,sBAAsB;IACtB,MAAM,iBAAiB,CAAC,MAAM,EAAE,KAAK,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IAExD,OAAO;QACL,MAAM,EAAE,SAAS;QACjB,KAAK,EAAE;YACL,GAAG,KAAK;YACR,OAAO,EAAE,MAAM,CAAC,OAAO;YACvB,WAAW,EAAE,UAAU;YACvB,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;SACrC;KACF,CAAC;AACJ,CAAC"}
@@ -31,5 +31,10 @@ export interface RhizaSyncOptions {
31
31
  * When true, returns DryRunResult instead of SyncResult.
32
32
  */
33
33
  dryRun?: boolean;
34
+ /**
35
+ * Force update even if config hash matches state file.
36
+ * Useful when state file is out of sync with the actual API entity.
37
+ */
38
+ force?: boolean;
34
39
  }
35
40
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/registration/rhiza/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAExC,yEAAyE;AACzE,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;AAEjD,0EAA0E;AAC1E,MAAM,WAAW,WAAW;IAC1B,0BAA0B;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,6CAA6C;IAC7C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uBAAuB;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,uDAAuD;IACvD,KAAK,EAAE,MAAM,CAAC;IACd,sBAAsB;IACtB,IAAI,EAAE,SAAS,CAAC;CACjB;AAED,6BAA6B;AAC7B,MAAM,WAAW,gBAAgB;IAC/B,mCAAmC;IACnC,OAAO,EAAE,OAAO,CAAC;IACjB,8EAA8E;IAC9E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,uEAAuE;IACvE,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/registration/rhiza/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAExC,yEAAyE;AACzE,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;AAEjD,0EAA0E;AAC1E,MAAM,WAAW,WAAW;IAC1B,0BAA0B;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,6CAA6C;IAC7C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uBAAuB;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,uDAAuD;IACvD,KAAK,EAAE,MAAM,CAAC;IACd,sBAAsB;IACtB,IAAI,EAAE,SAAS,CAAC;CACjB;AAED,6BAA6B;AAC7B,MAAM,WAAW,gBAAgB;IAC/B,mCAAmC;IACnC,OAAO,EAAE,OAAO,CAAC;IACjB,8EAA8E;IAC9E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,uEAAuE;IACvE,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arke-institute/rhiza",
3
- "version": "0.7.14",
3
+ "version": "0.8.0",
4
4
  "description": "Workflow protocol for Arke - cascading handoff pattern for distributed actions",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",