@tetsuo-ai/marketplace-react 0.3.2 → 0.4.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/CHANGELOG.md +22 -0
- package/dist/{chunk-ZAMIL27X.js → chunk-BNILOX3O.js} +3 -3
- package/dist/{chunk-ZAMIL27X.js.map → chunk-BNILOX3O.js.map} +1 -1
- package/dist/{chunk-2Y6JN2VZ.js → chunk-BTAVED7S.js} +87 -4
- package/dist/chunk-BTAVED7S.js.map +1 -0
- package/dist/components/index.cjs +55 -0
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +2 -2
- package/dist/hooks/index.cjs +117 -40
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.cts +14 -1
- package/dist/hooks/index.d.ts +14 -1
- package/dist/hooks/index.js +38 -44
- package/dist/hooks/index.js.map +1 -1
- package/dist/index.cjs +54 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/package.json +2 -2
- package/src/hooks/moderation-attestor.ts +176 -57
- package/src/hooks/useHire.ts +27 -0
- package/src/hooks/useHumanlessHireFlow.ts +74 -17
- package/src/hooks/useTaskActivation.ts +19 -13
- package/dist/chunk-2Y6JN2VZ.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @tetsuo-ai/marketplace-react
|
|
2
2
|
|
|
3
|
+
## 0.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes (breaking — the P1.2 open-roster flag-day cutover)
|
|
6
|
+
|
|
7
|
+
- Rebuild on `@tetsuo-ai/marketplace-sdk@^0.8.0` (peer): hire and activation
|
|
8
|
+
inputs now REQUIRE the P1.2 `moderator` — the pubkey whose attestation the
|
|
9
|
+
gate consumes, read from your attestation service (e.g. attest.agenc.ag
|
|
10
|
+
`GET /v1/info` → `moderator`). `HumanlessHireFlowModerationResult` gains a
|
|
11
|
+
required `moderator` field (the flow's activation consumes the record of
|
|
12
|
+
whoever signed the moderation), validated fail-closed like the hash/URI.
|
|
13
|
+
- The hooks resolve the gate MECHANICS automatically (the trust decision
|
|
14
|
+
stays the caller's): `useHire`, `useHumanlessHireFlow`, and
|
|
15
|
+
`useTaskActivation` attach the `["moderation_attestor", moderator]` roster
|
|
16
|
+
entry when the named moderator is a registered attestor — only after
|
|
17
|
+
verifying the entry exists on-chain (attaching an uninitialized PDA fails
|
|
18
|
+
the gate harder than the authority branch) — and point the gate at the
|
|
19
|
+
FROZEN pre-P1.2 record when no v2 record exists but a legacy record by the
|
|
20
|
+
same moderator does (grace window). Caller-supplied `moderationAttestor` /
|
|
21
|
+
`moderatorIsAttestor` / record overrides win over resolution.
|
|
22
|
+
- `resolveActivationModerationAttestor` (internal) is replaced by
|
|
23
|
+
`resolveActivationModerationAccounts` + `resolveHireListingModerationAccounts`.
|
|
24
|
+
|
|
3
25
|
## 0.3.2
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useAgencContext, useHire, useWalletSigner } from './chunk-
|
|
1
|
+
import { useAgencContext, useHire, useWalletSigner } from './chunk-BTAVED7S.js';
|
|
2
2
|
import { EN_STRINGS, t } from './chunk-H6PJIDQR.js';
|
|
3
3
|
import { TaskStatus, values, findAgentVerificationPda, fetchMaybeAgentVerification } from '@tetsuo-ai/marketplace-sdk';
|
|
4
4
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
@@ -1290,5 +1290,5 @@ function PoweredByAgenC({
|
|
|
1290
1290
|
}
|
|
1291
1291
|
|
|
1292
1292
|
export { AGENC_THEME_CLASS, AGENC_TOKENS_CSS_PATH, Badge, Button, COMPONENT_CATALOG, DEFAULT_TRUST_HREF, DisputeBanner, EN_COMPONENT_STRINGS, HireButton, HireCheckoutModal, ListingCard, ListingGrid, Modal, ModerationBadge, PoweredByAgenC, ProviderCard, ReferrerDisclosure, ReviewPanel, Spinner, StateMessage, TaskTimeline, UNVERIFIED, VerifiedBadge, agencThemeStyleTag, agentVerificationReaderFromRpc, cx, decodeListingCategory, decodeListingName, decodeListingTags, elementClass, evaluateAgentVerification, formatPriceSol, formatRate, formatSol, moderationStateOf, resolveThemeClassName, rootClass, tc, toHex, truncateAddress, useAgentVerification, useFocusTrap };
|
|
1293
|
-
//# sourceMappingURL=chunk-
|
|
1294
|
-
//# sourceMappingURL=chunk-
|
|
1293
|
+
//# sourceMappingURL=chunk-BNILOX3O.js.map
|
|
1294
|
+
//# sourceMappingURL=chunk-BNILOX3O.js.map
|