@kortix/sdk 0.15.1 → 0.15.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/README.md +0 -276
- package/dist/core/client/kortix.d.ts +0 -66
- package/dist/core/client/kortix.d.ts.map +1 -1
- package/dist/core/client/kortix.js +0 -2
- package/dist/core/client/kortix.js.map +1 -1
- package/dist/core/client/project-core.d.ts.map +1 -1
- package/dist/core/rest/projects-client/artifacts.d.ts +0 -245
- package/dist/core/rest/projects-client/artifacts.d.ts.map +1 -1
- package/dist/core/rest/projects-client/artifacts.js +1 -120
- package/dist/core/rest/projects-client/artifacts.js.map +1 -1
- package/dist/core/rest/projects-client/iam-actions.d.ts +0 -1
- package/dist/core/rest/projects-client/iam-actions.d.ts.map +1 -1
- package/dist/core/rest/projects-client/iam-actions.js +0 -1
- package/dist/core/rest/projects-client/iam-actions.js.map +1 -1
- package/dist/core/rest/projects-client/index.d.ts +0 -2
- package/dist/core/rest/projects-client/index.d.ts.map +1 -1
- package/dist/core/rest/projects-client/index.js +0 -2
- package/dist/core/rest/projects-client/index.js.map +1 -1
- package/dist/core/rest/projects-client/notifications.d.ts +2 -6
- package/dist/core/rest/projects-client/notifications.d.ts.map +1 -1
- package/dist/core/rest/projects-client/notifications.js +3 -5
- package/dist/core/rest/projects-client/notifications.js.map +1 -1
- package/dist/core/rest/projects-client/projects.d.ts +10 -4
- package/dist/core/rest/projects-client/projects.d.ts.map +1 -1
- package/dist/core/rest/projects-client/projects.js +0 -3
- package/dist/core/rest/projects-client/projects.js.map +1 -1
- package/dist/index.d.ts +0 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -4
- package/dist/index.js.map +1 -1
- package/dist/kortix.esm.min.js +54 -54
- package/dist/kortix.global.js +54 -54
- package/dist/react/index.d.ts +1 -2
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +1 -2
- package/dist/react/index.js.map +1 -1
- package/dist/react/query-keys.d.ts +1 -15
- package/dist/react/query-keys.d.ts.map +1 -1
- package/dist/react/query-keys.js +1 -5
- package/dist/react/query-keys.js.map +1 -1
- package/dist/react/sign-in-with-kortix.d.ts +2 -2
- package/dist/react/use-artifacts.d.ts +2 -492
- package/dist/react/use-artifacts.d.ts.map +1 -1
- package/dist/react/use-artifacts.js +3 -390
- package/dist/react/use-artifacts.js.map +1 -1
- package/dist/react/use-feature-flag.d.ts +2 -1
- package/dist/react/use-feature-flag.d.ts.map +1 -1
- package/dist/react/use-feature-flag.js +3 -1
- package/dist/react/use-feature-flag.js.map +1 -1
- package/dist/react/use-session.d.ts +4 -4
- package/dist/react/use-session.d.ts.map +1 -1
- package/dist/react/use-session.js +4 -3
- package/dist/react/use-session.js.map +1 -1
- package/dist/react/use-sessions-needing-input.d.ts +3 -1
- package/dist/react/use-sessions-needing-input.d.ts.map +1 -1
- package/dist/react/use-sessions-needing-input.js +4 -2
- package/dist/react/use-sessions-needing-input.js.map +1 -1
- package/package.json +2 -2
- package/dist/core/artifact-doc/base64.d.ts +0 -17
- package/dist/core/artifact-doc/base64.d.ts.map +0 -1
- package/dist/core/artifact-doc/base64.js +0 -69
- package/dist/core/artifact-doc/base64.js.map +0 -1
- package/dist/core/artifact-doc/index.d.ts +0 -7
- package/dist/core/artifact-doc/index.d.ts.map +0 -1
- package/dist/core/artifact-doc/index.js +0 -7
- package/dist/core/artifact-doc/index.js.map +0 -1
- package/dist/core/artifact-doc/sync.d.ts +0 -178
- package/dist/core/artifact-doc/sync.d.ts.map +0 -1
- package/dist/core/artifact-doc/sync.js +0 -838
- package/dist/core/artifact-doc/sync.js.map +0 -1
- package/dist/core/artifact-live/connection.d.ts +0 -116
- package/dist/core/artifact-live/connection.d.ts.map +0 -1
- package/dist/core/artifact-live/connection.js +0 -433
- package/dist/core/artifact-live/connection.js.map +0 -1
- package/dist/core/artifact-live/index.d.ts +0 -8
- package/dist/core/artifact-live/index.d.ts.map +0 -1
- package/dist/core/artifact-live/index.js +0 -7
- package/dist/core/artifact-live/index.js.map +0 -1
- package/dist/core/artifact-live/protocol.d.ts +0 -167
- package/dist/core/artifact-live/protocol.d.ts.map +0 -1
- package/dist/core/artifact-live/protocol.js +0 -153
- package/dist/core/artifact-live/protocol.js.map +0 -1
- package/dist/core/client/project-artifacts.d.ts +0 -74
- package/dist/core/client/project-artifacts.d.ts.map +0 -1
- package/dist/core/client/project-artifacts.js +0 -38
- package/dist/core/client/project-artifacts.js.map +0 -1
- package/dist/core/rest/projects-client/artifact-doc.d.ts +0 -118
- package/dist/core/rest/projects-client/artifact-doc.d.ts.map +0 -1
- package/dist/core/rest/projects-client/artifact-doc.js +0 -122
- package/dist/core/rest/projects-client/artifact-doc.js.map +0 -1
- package/dist/core/rest/projects-client/artifact-live.d.ts +0 -22
- package/dist/core/rest/projects-client/artifact-live.d.ts.map +0 -1
- package/dist/core/rest/projects-client/artifact-live.js +0 -25
- package/dist/core/rest/projects-client/artifact-live.js.map +0 -1
- package/dist/react/use-artifact-live.d.ts +0 -41
- package/dist/react/use-artifact-live.d.ts.map +0 -1
- package/dist/react/use-artifact-live.js +0 -114
- package/dist/react/use-artifact-live.js.map +0 -1
package/README.md
CHANGED
|
@@ -694,282 +694,6 @@ if (first?.capabilities.pause) {
|
|
|
694
694
|
- Deprecated: `ProjectGoal.heartbeat` is always `null`;
|
|
695
695
|
`CreateProjectGoalInput.sessionId` is sent as the goal id.
|
|
696
696
|
|
|
697
|
-
## Artifact comments and activity
|
|
698
|
-
|
|
699
|
-
Projects enable `artifacts` and `artifact_comments` before using comments.
|
|
700
|
-
`artifact_comments` defaults off. Agent tokens need `project.artifact.comment`.
|
|
701
|
-
Every comment identifies its author as a user or a session.
|
|
702
|
-
|
|
703
|
-
```ts
|
|
704
|
-
const artifact = kortix.project(projectId).artifacts;
|
|
705
|
-
const thread = await artifact.comments.create(artifactId, {
|
|
706
|
-
anchor: { type: 'none', version: entryVersion },
|
|
707
|
-
body: 'Confirm the forecast.',
|
|
708
|
-
});
|
|
709
|
-
await artifact.comments.reply(artifactId, thread.thread_id, { body: 'Confirmed.' });
|
|
710
|
-
const handoff = await artifact.comments.send(artifactId, {
|
|
711
|
-
thread_ids: [thread.thread_id],
|
|
712
|
-
batch_id: crypto.randomUUID(),
|
|
713
|
-
agent: 'reviewer',
|
|
714
|
-
});
|
|
715
|
-
await artifact.comments.setStatus(artifactId, thread.thread_id, 'resolved');
|
|
716
|
-
const threads = await artifact.comments.list(artifactId, { status: 'all' });
|
|
717
|
-
const activity = await artifact.activity(artifactId, { limit: 50 });
|
|
718
|
-
```
|
|
719
|
-
|
|
720
|
-
Text anchors carry `version`, `quote`, `prefix`, and `suffix`.
|
|
721
|
-
`quote` accepts up to 500 UTF-16 code units, and `prefix` and `suffix` up to 32 each. Point and region anchors carry a CSS selector,
|
|
722
|
-
element-relative fractions, viewport width, and scroll position.
|
|
723
|
-
|
|
724
|
-
The root exports `listArtifactComments`, `createArtifactComment`,
|
|
725
|
-
`replyArtifactComment`, `setArtifactCommentStatus`, `editArtifactComment`,
|
|
726
|
-
`deleteArtifactComment`, and `listArtifactActivity`. The write functions return
|
|
727
|
-
the thread or comment. `getArtifactCommentThread(projectId, threadId)` resolves
|
|
728
|
-
a bare thread id with the same visibility checks. Activity returns
|
|
729
|
-
`{ items, next_cursor, older_versions }`; pass `next_cursor` as `cursor` to
|
|
730
|
-
read the next page. Unknown historical save authors remain `System`.
|
|
731
|
-
|
|
732
|
-
Comments and replies also accept optional `marks` and `screenshot_base64`. Marks are normalized pen, arrow, or rectangle geometry relative to a region anchor. PNG and WebP screenshots are limited to 2 MiB decoded. `parseArtifactCommentMarks` validates the published `marks: unknown[]` response without changing that existing type. Invalid stored marks return `null`; an empty array is valid.
|
|
733
|
-
|
|
734
|
-
`readArtifactCommentScreenshot(projectId, artifactId, commentId, { signal? })` returns a `Blob` through the authenticated API. The project facade exposes `project.artifacts.comments.readScreenshot(artifactId, commentId)`. Every read checks Artifact visibility. A missing, deleted, or inaccessible screenshot answers `404`. The optional `screenshot_url` response field is a protected relative API path, not a public image URL. `useArtifactCommentScreenshot(projectId, artifactId, commentId)` reads the same authenticated blob for a mounted thumbnail, without retaining it after unmount. A browser host creates an object URL from the returned blob and revokes it when the image leaves the screen. Editing comment text does not change its marks or screenshot. A failed page capture can still save the marks and anchor without a screenshot.
|
|
735
|
-
|
|
736
|
-
Send attaches screenshot bytes only when the target model supports images. Image batches allow at most 20 files, 100 MiB of decoded attachments, and 12 MiB of serialized image parts. A refused batch returns `413` with code `artifact_comment_screenshot_limit`. `ApiError.details.limits` retains the API fields `max_files`, `max_total_bytes`, `max_screenshot_bytes`, and optional `max_parts_bytes`. Text-only targets receive the protected screenshot references in the comment context.
|
|
737
|
-
|
|
738
|
-
`sendArtifactComments` sends selected threads to an agent. Reuse `batch_id`
|
|
739
|
-
when retrying the same handoff. An omitted id is generated once by the SDK.
|
|
740
|
-
The result identifies the target session. A newly reserved session remains
|
|
741
|
-
pending until queued creation succeeds. Read the thread's `agent_state` before
|
|
742
|
-
opening it. `agent_error` distinguishes a delivery failure from the loop guard.
|
|
743
|
-
Editing a comment updates its mentions without requesting another turn; use
|
|
744
|
-
Send to agent to deliver an edited request.
|
|
745
|
-
|
|
746
|
-
`ArtifactCommentMention` identifies a person (`kind: 'user', user_id`), an
|
|
747
|
-
existing session (`kind: 'session', session_id, agent_name`), or a project agent
|
|
748
|
-
(`kind: 'agent', agent_name`). Comments return the server-resolved mentions.
|
|
749
|
-
Agent and session mentions can include their literal `token` for display without agent-run permission.
|
|
750
|
-
|
|
751
|
-
`useArtifactComments(projectId, artifactId, { status?, enabled? })` returns the
|
|
752
|
-
thread query and `create`, `reply`, `setStatus`, `edit`, `remove`, and `send` writes.
|
|
753
|
-
Writes are optimistic: `create`, `reply`, `setStatus`, `edit` and `remove`
|
|
754
|
-
change every loaded thread list at once, and a failed write undoes only its own
|
|
755
|
-
change. A thread or comment that the server has not confirmed yet carries
|
|
756
|
-
`optimistic: true`; a new one also has an `optimistic-` id, an empty author
|
|
757
|
-
(`user_id: ''`) and every `can_*` action false. Hosts render it as pending.
|
|
758
|
-
Mounted Comments and Activity queries, the `useArtifacts` list and the current
|
|
759
|
-
`useArtifact` read refetch after the last concurrent write.
|
|
760
|
-
|
|
761
|
-
`listArtifacts` and `getArtifact` return `open_thread_count` while the project
|
|
762
|
-
has `artifact_comments` on: the threads with status `open` whose first comment
|
|
763
|
-
is not deleted. The field is absent while the flag is off, and from older APIs.
|
|
764
|
-
Hosts show it on an Artifact card before the person opens it.
|
|
765
|
-
`useArtifactActivity(projectId, artifactId, { limit?, cursor?, enabled? })`
|
|
766
|
-
returns one activity page. Both hooks poll every 10 seconds while mounted and
|
|
767
|
-
visible. A missing project or Artifact id disables reads. Comment reads never
|
|
768
|
-
retry a 4xx and retry another 5xx once.
|
|
769
|
-
|
|
770
|
-
`getArtifactCommentContext(projectId, artifactId, { version?, agent? })` returns
|
|
771
|
-
the current action permissions, literal mention insertion tokens, eligible
|
|
772
|
-
`send_thread_ids` (at most 100), the total eligible `send_thread_count`, and
|
|
773
|
-
the proposed session or new-session target. When the project's agent manifest
|
|
774
|
-
cannot be read, the context still answers: `agents` is empty, `send_target` is
|
|
775
|
-
null and `agents_unavailable` is true. People keep commenting; an explicit
|
|
776
|
-
`@agent.` mention is refused until the manifest reads again. Hosts show the bounded batch
|
|
777
|
-
and total when more threads remain. A successful Send refreshes the next batch.
|
|
778
|
-
Hosts use
|
|
779
|
-
that response to label Send before it runs. They do not infer the target from
|
|
780
|
-
the Artifact creator or from `created` on a previous handoff.
|
|
781
|
-
|
|
782
|
-
`readArtifactCommentSnapshot(projectId, artifactId, { version? })` reads the
|
|
783
|
-
context's immutable Files commit and its Markdown. It returns `{ version,
|
|
784
|
-
text }`. An entry ETag is a separate value. A missing saved commit rejects
|
|
785
|
-
with `artifact_comment_snapshot_unavailable`. The project facade exposes
|
|
786
|
-
these readers as `.artifacts.comments.context` and `.snapshot`.
|
|
787
|
-
|
|
788
|
-
`listArtifactComments` and `useArtifactComments` accept `version` for a
|
|
789
|
-
historical Files commit. Returned action permissions are false for that view.
|
|
790
|
-
The historical hook also rejects writes before making an HTTP request.
|
|
791
|
-
|
|
792
|
-
`useArtifactCommentContext` shares the comments cache prefix, so every comment
|
|
793
|
-
write refreshes its count, permissions, and Send target. For a complete
|
|
794
|
-
timeline, `useInfiniteArtifactActivity(projectId, artifactId, { limit?, enabled? })`
|
|
795
|
-
owns cursor pages and exposes ordered, deduplicated `items`, `olderVersions`,
|
|
796
|
-
`fetchNextPage`, and the query status. Hosts render those items without keeping
|
|
797
|
-
a second copy of activity pages. Its mounted polling and write invalidation
|
|
798
|
-
match the one-page hook.
|
|
799
|
-
|
|
800
|
-
### Live presence
|
|
801
|
-
|
|
802
|
-
An open Artifact has one WebSocket per viewer. It carries who is here, their
|
|
803
|
-
cursor, selection, typing and open thread, and a ping when comments, activity
|
|
804
|
-
or content change. It carries no comment text and no Artifact content: those
|
|
805
|
-
stay on REST. It needs `artifacts` and `artifact_comments`.
|
|
806
|
-
|
|
807
|
-
```ts
|
|
808
|
-
// React: one hook per open Artifact.
|
|
809
|
-
const live = useArtifactLive(projectId, artifactId, {
|
|
810
|
-
enabled: artifactCommentsOn, // never connects while false
|
|
811
|
-
view: 'doc', // or 'page'
|
|
812
|
-
version: artifact.entry_version,
|
|
813
|
-
hidden: document.hidden,
|
|
814
|
-
});
|
|
815
|
-
live.status; // 'connecting' | 'live' | 'reconnecting' | 'closed' | 'access_lost'
|
|
816
|
-
live.participants; // ArtifactLiveParticipant[], this tab included (id === live.you)
|
|
817
|
-
live.setCursor({ kind: 'doc', quote: 'Churn fell', prefix: 'quarter. ', offset: 5 });
|
|
818
|
-
live.setTyping({ thread_id: threadId }, true);
|
|
819
|
-
|
|
820
|
-
// Without React (any runtime with a WebSocket, or pass `webSocket`).
|
|
821
|
-
const connection = kortix.project(projectId).artifacts.live.connect(artifactId, {
|
|
822
|
-
view: 'page',
|
|
823
|
-
onEvent: (event) => { /* status, welcome, presence, changed, resync */ },
|
|
824
|
-
});
|
|
825
|
-
connection.setFocus(threadId);
|
|
826
|
-
connection.close();
|
|
827
|
-
```
|
|
828
|
-
|
|
829
|
-
`useArtifactLive` refetches on a `changed` ping: `comments` refetches the
|
|
830
|
-
Artifact's comment reads (not screenshots; deferred while a comment write is
|
|
831
|
-
in flight), `activity` the activity reads, and `content` the current
|
|
832
|
-
Artifact, its versions and the `useArtifacts` list. After a reconnect it
|
|
833
|
-
refetches all of them once (`resync`). It closes on unmount, when `enabled`
|
|
834
|
-
turns false, or when the project or Artifact changes. A `version` change does
|
|
835
|
-
not reconnect; a `hidden` change sends one frame.
|
|
836
|
-
|
|
837
|
-
`createArtifactLiveConnection({ projectId, artifactId, view, version?, hidden?,
|
|
838
|
-
getTicket?, webSocket?, backendUrl?, onEvent? })` is the framework-free
|
|
839
|
-
client. Each attempt mints a one-use ticket (`createArtifactLiveTicket`, a
|
|
840
|
-
60 s ticket from `POST …/live/ticket`) and opens `GET …/live?ticket=` on the
|
|
841
|
-
`ws(s)://` form of `backendUrl`. It sends `hello`, pings every 25 s, and
|
|
842
|
-
replaces a socket that missed a pong or got no welcome in 20 s. It sends at
|
|
843
|
-
most 8 frames a second: each field coalesces to its newest value, so a fast
|
|
844
|
-
pointer never builds a backlog. A setter returns `false` and sends nothing for
|
|
845
|
-
a value the protocol refuses (a doc cursor quote over 64 characters, a frame
|
|
846
|
-
over 1024 UTF-8 bytes, an id that is not a UUID). Reconnects back off 1, 2,
|
|
847
|
-
4, 8, 16, 30 s (plus up to 50 % jitter, at most 30 s), with a new ticket each
|
|
848
|
-
time. Close code `4403`, or a ticket refused with `403` or `404`, ends the
|
|
849
|
-
connection with `access_lost`. Every server frame is validated; an invalid
|
|
850
|
-
frame is dropped.
|
|
851
|
-
|
|
852
|
-
`signalArtifactLiveAgent(projectId, artifactId, { status, thread_id?, quote? })`
|
|
853
|
-
names an agent session's place: `reading`, `editing` or `writing` a thread or
|
|
854
|
-
near a quote, or `idle` to leave. Only a session-bound token may call it; a
|
|
855
|
-
person's token answers `403`. The CLI form is `kortix artifacts focus`.
|
|
856
|
-
|
|
857
|
-
### Co-editing a doc
|
|
858
|
-
|
|
859
|
-
Several people and agents edit one doc Artifact (`type = 'doc'`) at the same
|
|
860
|
-
time over Yjs. It needs `artifacts` and `artifact_comments`. Updates travel
|
|
861
|
-
over REST, not the live socket: a tab POSTs its updates, the server stores
|
|
862
|
-
each under a per-Artifact `seq` and pings the socket with `changed doc`, and
|
|
863
|
-
every tab GETs the updates after its last seq. One tab holds a 15 s lease and
|
|
864
|
-
writes the Markdown file with the save route; the file stays the truth for
|
|
865
|
-
agents, versions and readers. The Yjs state is disposable: every seed starts a
|
|
866
|
-
new `epoch`, and a reset or the GC of an idle doc deletes it. The next open
|
|
867
|
-
seeds it again from the file.
|
|
868
|
-
|
|
869
|
-
The SDK has no yjs dependency. `createArtifactDocSync` works on bytes; the host
|
|
870
|
-
owns the `Y.Doc`:
|
|
871
|
-
|
|
872
|
-
```ts
|
|
873
|
-
import * as Y from 'yjs';
|
|
874
|
-
import { createArtifactDocSync } from '@kortix/sdk';
|
|
875
|
-
|
|
876
|
-
const remote = Symbol('remote');
|
|
877
|
-
let doc = new Y.Doc();
|
|
878
|
-
let known: string | null = null; // the last flushed Markdown this tab knew
|
|
879
|
-
const bind = () => doc.on('update', (update, origin) => { if (origin !== remote) sync.push(update); });
|
|
880
|
-
// The seed is ALWAYS built from the current file, in a scratch Y.Doc.
|
|
881
|
-
const fromFile = async () => {
|
|
882
|
-
const file = await readFile();
|
|
883
|
-
return { update: seedFromMarkdown(file.text), markdown: file.text, version: file.entry_version };
|
|
884
|
-
};
|
|
885
|
-
|
|
886
|
-
const sync = createArtifactDocSync({
|
|
887
|
-
projectId, artifactId,
|
|
888
|
-
holder: crypto.randomUUID(), // this tab's lease id
|
|
889
|
-
apply: (update) => Y.applyUpdate(doc, update, remote), // always the current doc
|
|
890
|
-
merge: (updates) => Y.mergeUpdates(updates),
|
|
891
|
-
onLeader: (leader) => { /* the leader writes the file 2 s after the last edit */ },
|
|
892
|
-
onStatus: (status) => { /* 'failed': fall back to single-writer autosave */ },
|
|
893
|
-
onReset: async ({ reason }) => {
|
|
894
|
-
const mine = editorMarkdown(); // the person's text
|
|
895
|
-
const before = known; // the last flushed Markdown this tab knew
|
|
896
|
-
doc.destroy();
|
|
897
|
-
doc = new Y.Doc(); // never reuse the old doc
|
|
898
|
-
bind();
|
|
899
|
-
known = (await sync.start(fromFile)).base?.markdown ?? known;
|
|
900
|
-
if (canWrite && before !== null && mine !== before) applyOutsideEdit(editor, before, mine);
|
|
901
|
-
},
|
|
902
|
-
});
|
|
903
|
-
bind();
|
|
904
|
-
const { created, base } = await sync.start(fromFile);
|
|
905
|
-
known = base?.markdown ?? null; // update it after each flush and base()
|
|
906
|
-
|
|
907
|
-
useArtifactLive(projectId, artifactId, { view: 'doc', onDoc: (seq) => sync.notify(seq) });
|
|
908
|
-
|
|
909
|
-
// The leader serializes the doc, captures covered at that moment, saves the file, then:
|
|
910
|
-
const seq = sync.covered;
|
|
911
|
-
const saved = await save(serialize(doc));
|
|
912
|
-
await sync.flushed({ version: saved.entry_version, markdown: saved.text, seq });
|
|
913
|
-
sync.close(); // on unmount: sends what is unsent, releases the lease
|
|
914
|
-
```
|
|
915
|
-
|
|
916
|
-
- `start(buildSeed)` reads every stored update (`after=0&base=true`) and applies
|
|
917
|
-
it. An unseeded doc is seeded with `buildSeed()`: build that update from the
|
|
918
|
-
current Markdown file, in a scratch `Y.Doc`, never from live state. The
|
|
919
|
-
engine applies the seed only once the server accepts it: on `409 doc_seeded`
|
|
920
|
-
another tab won, and its doc is pulled instead. `start` runs once, and again
|
|
921
|
-
only after `onReset`; `buildSeed` then gets `restart: true`, and the seed
|
|
922
|
-
still comes from the file.
|
|
923
|
-
- **Reset.** Every push, lease call and flush names the `epoch` the tab
|
|
924
|
-
loaded. A pull that finds the doc unseeded or under another `epoch`, or a
|
|
925
|
-
push, lease renewal or flush answered `409 doc_not_seeded` or `409
|
|
926
|
-
epoch_mismatch`, means the doc this tab loaded is gone. An epoch is adopted
|
|
927
|
-
only when `start` saw none (a doc seeded before epochs); any other change is
|
|
928
|
-
a reset. The engine stops, drops its unacknowledged pushes, rejects
|
|
929
|
-
waiting `flushed` and `base` calls with code `doc_reset`, calls
|
|
930
|
-
`onLeader(false)`, sets the status `reset`, and calls `onReset({ reason })`
|
|
931
|
-
once (`'not_seeded'`, `'epoch'` or `'poisoned'`). The host keeps its editor's
|
|
932
|
-
Markdown (`mine`) and the last flushed Markdown it knew, builds a fresh
|
|
933
|
-
`Y.Doc`, calls `start` again, and then merges `mine` into the new doc. The
|
|
934
|
-
person's unsynced edits survive through that text merge, not through Yjs. A
|
|
935
|
-
read-only viewer rebuilds and merges nothing. The reset ping
|
|
936
|
-
(`changed doc`, version `'0'`) and any ping below the highest seq here
|
|
937
|
-
(seqs restart at 1 after a re-seed), except this tab's own echoes, pull at
|
|
938
|
-
once, so a reset is seen within one round trip.
|
|
939
|
-
- **Poison.** When `apply` throws for a stored update, the engine stops
|
|
940
|
-
applying, sets `retrying`, and resets the doc on the server
|
|
941
|
-
(`resetArtifactDoc`). When another tab holds the lease (`409 not_leader`),
|
|
942
|
-
it checks every 3 s until that tab has reset it. Then it reports
|
|
943
|
-
`onReset({ reason: 'poisoned' })`.
|
|
944
|
-
- `push(update)` batches for 50 ms, merges the batch with `merge`, and keeps
|
|
945
|
-
one push in flight, in order. A failed push retries after 1, 2, 4, 8, 16,
|
|
946
|
-
30 s (plus up to 50 % jitter, at most 30 s) with the later updates merged
|
|
947
|
-
behind it; no update is dropped while the doc lives. A merged batch over
|
|
948
|
-
512 KiB is split. A refusal (`400`, `403`, `404`, one update over 512 KiB,
|
|
949
|
-
`413 doc_too_large` when the doc's stored updates pass their limit) calls
|
|
950
|
-
`onError` and sets `failed`, a final status: the host falls back to autosave.
|
|
951
|
-
- `notify(seq)` pulls when that seq is not here yet. Pulls are serial. Without
|
|
952
|
-
a notify for 3 s the engine polls every 3 s.
|
|
953
|
-
- `covered` is the highest seq such that every update up to it is in the local
|
|
954
|
-
doc. `flushed({ version, markdown, seq? })` waits for the updates pushed
|
|
955
|
-
before it, then records `seq`: the `covered` the host captured when it
|
|
956
|
-
serialized that Markdown, else `covered` now. `409 not_leader` rejects and
|
|
957
|
-
calls `onLeader(false)`. `base()` returns the last flushed Markdown.
|
|
958
|
-
- The lease renews every 5 s. A leader whose renewals fail steps down 13 s
|
|
959
|
-
after its last renewal was sent. A viewer without write access gets `403`
|
|
960
|
-
on the lease and never leads; it still pulls.
|
|
961
|
-
|
|
962
|
-
`getArtifactDoc`, `seedArtifactDoc`, `pushArtifactDocUpdate`,
|
|
963
|
-
`leaseArtifactDoc`, `markArtifactDocFlushed` and `resetArtifactDoc` are the
|
|
964
|
-
REST calls (also `kortix.project(id).artifacts.doc.{get, seed, push, lease,
|
|
965
|
-
flushed, reset}`). They take and return `Uint8Array`; base64 is the wire form
|
|
966
|
-
only. `getArtifactDoc` and `seedArtifactDoc` report the `epoch`. They never
|
|
967
|
-
call the global `onError`. The live connection never emits a `changed` event
|
|
968
|
-
for `doc`, and `ArtifactLiveChange` stays `'comments' | 'activity' |
|
|
969
|
-
'content'`: `createArtifactLiveConnection({ onDoc })` and
|
|
970
|
-
`useArtifactLive(…, { onDoc })` receive the seq, and the hook refetches nothing
|
|
971
|
-
for it.
|
|
972
|
-
|
|
973
697
|
## The facade surface
|
|
974
698
|
|
|
975
699
|
`createKortix(config)` returns one client. The table below is illustrative, not
|
|
@@ -1152,72 +1152,6 @@ export declare function createKortix(config: KortixPlatformConfig, opts?: {
|
|
|
1152
1152
|
}) => Promise<P.AppVolume>;
|
|
1153
1153
|
};
|
|
1154
1154
|
};
|
|
1155
|
-
artifacts: {
|
|
1156
|
-
activity: (artifactId: string, options?: {
|
|
1157
|
-
limit?: number;
|
|
1158
|
-
cursor?: string;
|
|
1159
|
-
} | undefined) => Promise<P.ArtifactActivityPage>;
|
|
1160
|
-
live: {
|
|
1161
|
-
connect: (artifactId: string, options: Omit<import("../artifact-live/index.js").ArtifactLiveConnectionOptions, "projectId" | "artifactId">) => import("../artifact-live/index.js").ArtifactLiveConnection;
|
|
1162
|
-
ticket: (artifactId: string, options?: {
|
|
1163
|
-
signal?: AbortSignal;
|
|
1164
|
-
} | undefined) => Promise<P.ArtifactLiveTicket>;
|
|
1165
|
-
signal: (artifactId: string, signal: import("../artifact-live/index.js").ArtifactLiveAgentSignal) => Promise<void>;
|
|
1166
|
-
};
|
|
1167
|
-
doc: {
|
|
1168
|
-
get: (artifactId: string, options?: {
|
|
1169
|
-
after?: number;
|
|
1170
|
-
base?: boolean;
|
|
1171
|
-
signal?: AbortSignal;
|
|
1172
|
-
} | undefined) => Promise<P.ArtifactDocPage>;
|
|
1173
|
-
seed: (artifactId: string, seed: P.ArtifactDocSeed) => Promise<{
|
|
1174
|
-
seq: number;
|
|
1175
|
-
epoch: string | null;
|
|
1176
|
-
}>;
|
|
1177
|
-
push: (artifactId: string, update: Uint8Array<ArrayBufferLike>, options?: {
|
|
1178
|
-
keepalive?: boolean;
|
|
1179
|
-
epoch?: string | null;
|
|
1180
|
-
} | undefined) => Promise<{
|
|
1181
|
-
seq: number;
|
|
1182
|
-
}>;
|
|
1183
|
-
lease: (artifactId: string, input: {
|
|
1184
|
-
holder: string;
|
|
1185
|
-
release?: boolean;
|
|
1186
|
-
epoch?: string | null;
|
|
1187
|
-
}, options?: {
|
|
1188
|
-
keepalive?: boolean;
|
|
1189
|
-
} | undefined) => Promise<P.ArtifactDocLease>;
|
|
1190
|
-
flushed: (artifactId: string, flush: P.ArtifactDocFlush) => Promise<{
|
|
1191
|
-
flushed_seq: number;
|
|
1192
|
-
}>;
|
|
1193
|
-
reset: (artifactId: string, input: {
|
|
1194
|
-
holder: string;
|
|
1195
|
-
}) => Promise<void>;
|
|
1196
|
-
};
|
|
1197
|
-
comments: {
|
|
1198
|
-
readScreenshot: (artifactId: string, commentId: string, options?: {
|
|
1199
|
-
signal?: AbortSignal;
|
|
1200
|
-
} | undefined) => Promise<Blob>;
|
|
1201
|
-
list: (artifactId: string, options?: {
|
|
1202
|
-
status?: P.ArtifactCommentStatus | "all";
|
|
1203
|
-
version?: string;
|
|
1204
|
-
} | undefined) => Promise<P.ArtifactCommentThread[]>;
|
|
1205
|
-
get: (threadId: string) => Promise<P.ArtifactCommentThread>;
|
|
1206
|
-
context: (artifactId: string, options?: {
|
|
1207
|
-
version?: string;
|
|
1208
|
-
agent?: string;
|
|
1209
|
-
} | undefined) => Promise<P.ArtifactCommentContext>;
|
|
1210
|
-
snapshot: (artifactId: string, options?: {
|
|
1211
|
-
version?: string;
|
|
1212
|
-
} | undefined) => Promise<P.ArtifactCommentSnapshot>;
|
|
1213
|
-
create: (artifactId: string, input: P.CreateArtifactCommentInput) => Promise<P.ArtifactCommentThread>;
|
|
1214
|
-
reply: (artifactId: string, threadId: string, input: P.ReplyArtifactCommentInput) => Promise<P.ArtifactComment>;
|
|
1215
|
-
setStatus: (artifactId: string, threadId: string, status: P.ArtifactCommentStatus) => Promise<P.ArtifactCommentThread>;
|
|
1216
|
-
edit: (artifactId: string, threadId: string, commentId: string, input: P.ArtifactCommentBodyInput) => Promise<P.ArtifactComment>;
|
|
1217
|
-
remove: (artifactId: string, threadId: string, commentId: string) => Promise<P.ArtifactComment>;
|
|
1218
|
-
send: (artifactId: string, input: P.SendArtifactCommentsInput) => Promise<P.SendArtifactCommentsResult>;
|
|
1219
|
-
};
|
|
1220
|
-
};
|
|
1221
1155
|
attachments: {
|
|
1222
1156
|
upload: (file: File, options?: P.PromptAttachmentUploadOptions | undefined) => Promise<P.PromptAttachment>;
|
|
1223
1157
|
delete: (attachmentId: string, options?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kortix.d.ts","sourceRoot":"","sources":["../../../src/core/client/kortix.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxD,YAAY,EAAE,YAAY,EAAE,M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G,CAAC;wBACX,CAAC;;;;;;;;;;;;IA4EA;;;;;OAKG;;;;;;;;;;;;;IAaH,+FAA+F;;IAE/F,sEAAsE;;IAEtE,sEAAsE;;EAGzE;AAED,MAAM,MAAM,MAAM,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AACrD,oEAAoE;AACpE,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC;AAC1D,0EAA0E;AAC1E,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC"}
|
|
@@ -9,7 +9,6 @@ import { bindProjectAccessSecurity } from './project-access-security.js';
|
|
|
9
9
|
import { projectConnections } from './project-connections.js';
|
|
10
10
|
import { connectorDataPlane, connectorHandle } from './project-connectors.js';
|
|
11
11
|
import { bindProjectCore } from './project-core.js';
|
|
12
|
-
import { bindProjectArtifacts } from './project-artifacts.js';
|
|
13
12
|
import { bindProjectOperations } from './project-operations.js';
|
|
14
13
|
import { bindProjectPlatformResources } from './project-platform-resources.js';
|
|
15
14
|
import { bindProjectPlatformSecurity } from './project-platform-security.js';
|
|
@@ -77,7 +76,6 @@ export function createKortix(config, opts) {
|
|
|
77
76
|
const connections = projectConnections(projectId);
|
|
78
77
|
return {
|
|
79
78
|
...bindProjectCore(projectId),
|
|
80
|
-
...bindProjectArtifacts(projectId),
|
|
81
79
|
...bindProjectAccessResources(projectId),
|
|
82
80
|
...bindProjectAccessSecurity(projectId),
|
|
83
81
|
...bindProjectOperations(projectId, connections),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kortix.js","sourceRoot":"","sources":["../../../src/core/client/kortix.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD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