-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
272 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
stack--current/5-incubator/active/view--chat/src/__fixtures/infinite.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import * as RichText from '@offirmo-private/rich-text-format' | ||
|
||
import { | ||
type StepIterator, | ||
type StepIteratorTNext, | ||
type StepIteratorYieldResult, | ||
} from '../loop/types.js' | ||
import { getꓽInputStepⵧconfirmation } from '../steps/bases.js' | ||
|
||
///////////////////////////////////////////////// | ||
|
||
type ContentType = string | RichText.Document | ||
|
||
///////////////////////////////////////////////// | ||
|
||
class ChatGenerator implements StepIterator<ContentType> { | ||
next(p: StepIteratorTNext<ContentType>) { | ||
const step = getꓽInputStepⵧconfirmation<string>({}) | ||
return { | ||
value: step, | ||
done: false, | ||
} satisfies StepIteratorYieldResult<ContentType> | ||
} | ||
} | ||
|
||
///////////////////////////////////////////////// | ||
|
||
export default ChatGenerator |
7 changes: 5 additions & 2 deletions
7
stack--current/5-incubator/active/view--chat/src/loop/demo.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.