{"action":"created","comment":{"url":"https://api.github.com/repos/mediachain/aleph/pulls/comments/79491393","id":79491393,"diff_hunk":"@@ -19,6 +21,12 @@\n   \"dependencies\": {\n     \"libp2p-swarm\": \"^0.22.3\",\n     \"multiaddr\": \"^2.0.2\",\n-    \"peer-info\": \"^0.7.0\"\n+    \"peer-info\": \"^0.7.0\",","path":"package.json","position":16,"original_position":16,"commit_id":"a387401126880fd23fe7b7c2f644ce6161aef51f","original_commit_id":"a387401126880fd23fe7b7c2f644ce6161aef51f","user":{"login":"parkan","id":204986,"avatar_url":"https://avatars.githubusercontent.com/u/204986?v=3","gravatar_id":"","url":"https://api.github.com/users/parkan","html_url":"https://github.com/parkan","followers_url":"https://api.github.com/users/parkan/followers","following_url":"https://api.github.com/users/parkan/following{/other_user}","gists_url":"https://api.github.com/users/parkan/gists{/gist_id}","starred_url":"https://api.github.com/users/parkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parkan/subscriptions","organizations_url":"https://api.github.com/users/parkan/orgs","repos_url":"https://api.github.com/users/parkan/repos","events_url":"https://api.github.com/users/parkan/events{/privacy}","received_events_url":"https://api.github.com/users/parkan/received_events","type":"User","site_admin":false},"body":"ah oops forgot to --save this one","created_at":"2016-09-19T21:18:08Z","updated_at":"2016-09-19T21:21:20Z","html_url":"https://github.com/mediachain/aleph/pull/12#discussion_r79491393","pull_request_url":"https://api.github.com/repos/mediachain/aleph/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/mediachain/aleph/pulls/comments/79491393"},"html":{"href":"https://github.com/mediachain/aleph/pull/12#discussion_r79491393"},"pull_request":{"href":"https://api.github.com/repos/mediachain/aleph/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/mediachain/aleph/pulls/12","id":85852973,"html_url":"https://github.com/mediachain/aleph/pull/12","diff_url":"https://github.com/mediachain/aleph/pull/12.diff","patch_url":"https://github.com/mediachain/aleph/pull/12.patch","issue_url":"https://api.github.com/repos/mediachain/aleph/issues/12","number":12,"state":"open","locked":false,"title":"Basic CLI node app for HTTP API","user":{"login":"yusefnapora","id":678715,"avatar_url":"https://avatars.githubusercontent.com/u/678715?v=3","gravatar_id":"","url":"https://api.github.com/users/yusefnapora","html_url":"https://github.com/yusefnapora","followers_url":"https://api.github.com/users/yusefnapora/followers","following_url":"https://api.github.com/users/yusefnapora/following{/other_user}","gists_url":"https://api.github.com/users/yusefnapora/gists{/gist_id}","starred_url":"https://api.github.com/users/yusefnapora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yusefnapora/subscriptions","organizations_url":"https://api.github.com/users/yusefnapora/orgs","repos_url":"https://api.github.com/users/yusefnapora/repos","events_url":"https://api.github.com/users/yusefnapora/events{/privacy}","received_events_url":"https://api.github.com/users/yusefnapora/received_events","type":"User","site_admin":false},"body":"This adds a command-line node app that exposes the HTTP API [defined in concat's mcnode app](https://github.com/mediachain/concat/blob/master/progs/mcnode/main.go#L388).\r\n\r\nIt uses babel, but only with the `transform-flow-strip-types` plugin so we can use flow.  After `npm install`, you can run `npm run build` to de-flow the source, which gets compiled to the `lib` dir.  \r\n\r\nYou can also build and run in one step with `npm run cli`, and you can pass in args after a `--`, so e.g. `npm run cli -- id` will run the `id` command.\r\n\r\nHere's the help text so far:\r\n\r\n```\r\nUsage: lib/client/cli/index.js [options] <command> [command-options]\r\n\r\nCommands:\r\n  id                               request the peer id of the connected peer\r\n  ping <peerId>                    ping a remote node\r\n  publish <namespace> <statement>  publish a statement\r\n  statement <statementId>          retrieve a statement by its id\r\n\r\nOptions:\r\n  --help         Show help                                             [boolean]\r\n  --peerUrl, -p  root URL of the REST API for a mediachain node\r\n                                              [default: \"http://localhost:9002\"]\r\n\r\nExamples:\r\n  lib/client/cli/index.js ping QmF00123  send a ping message to peer with id\r\n                                         QmF00123\r\n```\r\n\r\nI haven't yet sorted out how to get an actual binary out of this, but hopefully it's not too hard to end up with an `aleph-client` that we can `npm install` easily.  For now I've just been using `npm run cli`\r\n\r\nCloses #11 ","created_at":"2016-09-19T19:20:53Z","updated_at":"2016-09-19T21:21:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7ce323c9c03781bdf47caedd08068c12ff0a2b3f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/mediachain/aleph/pulls/12/commits","review_comments_url":"https://api.github.com/repos/mediachain/aleph/pulls/12/comments","review_comment_url":"https://api.github.com/repos/mediachain/aleph/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mediachain/aleph/issues/12/comments","statuses_url":"https://api.github.com/repos/mediachain/aleph/statuses/a387401126880fd23fe7b7c2f644ce6161aef51f","head":{"label":"mediachain:yn-rest-client","ref":"yn-rest-client","sha":"a387401126880fd23fe7b7c2f644ce6161aef51f","user":{"login":"mediachain","id":16711838,"avatar_url":"https://avatars.githubusercontent.com/u/16711838?v=3","gravatar_id":"","url":"https://api.github.com/users/mediachain","html_url":"https://github.com/mediachain","followers_url":"https://api.github.com/users/mediachain/followers","following_url":"https://api.github.com/users/mediachain/following{/other_user}","gists_url":"https://api.github.com/users/mediachain/gists{/gist_id}","starred_url":"https://api.github.com/users/mediachain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mediachain/subscriptions","organizations_url":"https://api.github.com/users/mediachain/orgs","repos_url":"https://api.github.com/users/mediachain/repos","events_url":"https://api.github.com/users/mediachain/events{/privacy}","received_events_url":"https://api.github.com/users/mediachain/received_events","type":"Organization","site_admin":false},"repo":{"id":66977529,"name":"aleph","full_name":"mediachain/aleph","owner":{"login":"mediachain","id":16711838,"avatar_url":"https://avatars.githubusercontent.com/u/16711838?v=3","gravatar_id":"","url":"https://api.github.com/users/mediachain","html_url":"https://github.com/mediachain","followers_url":"https://api.github.com/users/mediachain/followers","following_url":"https://api.github.com/users/mediachain/following{/other_user}","gists_url":"https://api.github.com/users/mediachain/gists{/gist_id}","starred_url":"https://api.github.com/users/mediachain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mediachain/subscriptions","organizations_url":"https://api.github.com/users/mediachain/orgs","repos_url":"https://api.github.com/users/mediachain/repos","events_url":"https://api.github.com/users/mediachain/events{/privacy}","received_events_url":"https://api.github.com/users/mediachain/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mediachain/aleph","description":"א: The mediachain universe ","fork":false,"url":"https://api.github.com/repos/mediachain/aleph","forks_url":"https://api.github.com/repos/mediachain/aleph/forks","keys_url":"https://api.github.com/repos/mediachain/aleph/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mediachain/aleph/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mediachain/aleph/teams","hooks_url":"https://api.github.com/repos/mediachain/aleph/hooks","issue_events_url":"https://api.github.com/repos/mediachain/aleph/issues/events{/number}","events_url":"https://api.github.com/repos/mediachain/aleph/events","assignees_url":"https://api.github.com/repos/mediachain/aleph/assignees{/user}","branches_url":"https://api.github.com/repos/mediachain/aleph/branches{/branch}","tags_url":"https://api.github.com/repos/mediachain/aleph/tags","blobs_url":"https://api.github.com/repos/mediachain/aleph/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mediachain/aleph/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mediachain/aleph/git/refs{/sha}","trees_url":"https://api.github.com/repos/mediachain/aleph/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mediachain/aleph/statuses/{sha}","languages_url":"https://api.github.com/repos/mediachain/aleph/languages","stargazers_url":"https://api.github.com/repos/mediachain/aleph/stargazers","contributors_url":"https://api.github.com/repos/mediachain/aleph/contributors","subscribers_url":"https://api.github.com/repos/mediachain/aleph/subscribers","subscription_url":"https://api.github.com/repos/mediachain/aleph/subscription","commits_url":"https://api.github.com/repos/mediachain/aleph/commits{/sha}","git_commits_url":"https://api.github.com/repos/mediachain/aleph/git/commits{/sha}","comments_url":"https://api.github.com/repos/mediachain/aleph/comments{/number}","issue_comment_url":"https://api.github.com/repos/mediachain/aleph/issues/comments{/number}","contents_url":"https://api.github.com/repos/mediachain/aleph/contents/{+path}","compare_url":"https://api.github.com/repos/mediachain/aleph/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mediachain/aleph/merges","archive_url":"https://api.github.com/repos/mediachain/aleph/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mediachain/aleph/downloads","issues_url":"https://api.github.com/repos/mediachain/aleph/issues{/number}","pulls_url":"https://api.github.com/repos/mediachain/aleph/pulls{/number}","milestones_url":"https://api.github.com/repos/mediachain/aleph/milestones{/number}","notifications_url":"https://api.github.com/repos/mediachain/aleph/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mediachain/aleph/labels{/name}","releases_url":"https://api.github.com/repos/mediachain/aleph/releases{/id}","deployments_url":"https://api.github.com/repos/mediachain/aleph/deployments","created_at":"2016-08-30T21:01:45Z","updated_at":"2016-08-30T21:01:45Z","pushed_at":"2016-09-19T20:38:39Z","git_url":"git://github.com/mediachain/aleph.git","ssh_url":"git@github.com:mediachain/aleph.git","clone_url":"https://github.com/mediachain/aleph.git","svn_url":"https://github.com/mediachain/aleph","homepage":null,"size":24,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":12,"forks":0,"open_issues":12,"watchers":0,"default_branch":"master"}},"base":{"label":"mediachain:master","ref":"master","sha":"e9529e0a5a1d0569bbf36343e90d97d991d63949","user":{"login":"mediachain","id":16711838,"avatar_url":"https://avatars.githubusercontent.com/u/16711838?v=3","gravatar_id":"","url":"https://api.github.com/users/mediachain","html_url":"https://github.com/mediachain","followers_url":"https://api.github.com/users/mediachain/followers","following_url":"https://api.github.com/users/mediachain/following{/other_user}","gists_url":"https://api.github.com/users/mediachain/gists{/gist_id}","starred_url":"https://api.github.com/users/mediachain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mediachain/subscriptions","organizations_url":"https://api.github.com/users/mediachain/orgs","repos_url":"https://api.github.com/users/mediachain/repos","events_url":"https://api.github.com/users/mediachain/events{/privacy}","received_events_url":"https://api.github.com/users/mediachain/received_events","type":"Organization","site_admin":false},"repo":{"id":66977529,"name":"aleph","full_name":"mediachain/aleph","owner":{"login":"mediachain","id":16711838,"avatar_url":"https://avatars.githubusercontent.com/u/16711838?v=3","gravatar_id":"","url":"https://api.github.com/users/mediachain","html_url":"https://github.com/mediachain","followers_url":"https://api.github.com/users/mediachain/followers","following_url":"https://api.github.com/users/mediachain/following{/other_user}","gists_url":"https://api.github.com/users/mediachain/gists{/gist_id}","starred_url":"https://api.github.com/users/mediachain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mediachain/subscriptions","organizations_url":"https://api.github.com/users/mediachain/orgs","repos_url":"https://api.github.com/users/mediachain/repos","events_url":"https://api.github.com/users/mediachain/events{/privacy}","received_events_url":"https://api.github.com/users/mediachain/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mediachain/aleph","description":"א: The mediachain universe ","fork":false,"url":"https://api.github.com/repos/mediachain/aleph","forks_url":"https://api.github.com/repos/mediachain/aleph/forks","keys_url":"https://api.github.com/repos/mediachain/aleph/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mediachain/aleph/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mediachain/aleph/teams","hooks_url":"https://api.github.com/repos/mediachain/aleph/hooks","issue_events_url":"https://api.github.com/repos/mediachain/aleph/issues/events{/number}","events_url":"https://api.github.com/repos/mediachain/aleph/events","assignees_url":"https://api.github.com/repos/mediachain/aleph/assignees{/user}","branches_url":"https://api.github.com/repos/mediachain/aleph/branches{/branch}","tags_url":"https://api.github.com/repos/mediachain/aleph/tags","blobs_url":"https://api.github.com/repos/mediachain/aleph/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mediachain/aleph/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mediachain/aleph/git/refs{/sha}","trees_url":"https://api.github.com/repos/mediachain/aleph/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mediachain/aleph/statuses/{sha}","languages_url":"https://api.github.com/repos/mediachain/aleph/languages","stargazers_url":"https://api.github.com/repos/mediachain/aleph/stargazers","contributors_url":"https://api.github.com/repos/mediachain/aleph/contributors","subscribers_url":"https://api.github.com/repos/mediachain/aleph/subscribers","subscription_url":"https://api.github.com/repos/mediachain/aleph/subscription","commits_url":"https://api.github.com/repos/mediachain/aleph/commits{/sha}","git_commits_url":"https://api.github.com/repos/mediachain/aleph/git/commits{/sha}","comments_url":"https://api.github.com/repos/mediachain/aleph/comments{/number}","issue_comment_url":"https://api.github.com/repos/mediachain/aleph/issues/comments{/number}","contents_url":"https://api.github.com/repos/mediachain/aleph/contents/{+path}","compare_url":"https://api.github.com/repos/mediachain/aleph/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mediachain/aleph/merges","archive_url":"https://api.github.com/repos/mediachain/aleph/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mediachain/aleph/downloads","issues_url":"https://api.github.com/repos/mediachain/aleph/issues{/number}","pulls_url":"https://api.github.com/repos/mediachain/aleph/pulls{/number}","milestones_url":"https://api.github.com/repos/mediachain/aleph/milestones{/number}","notifications_url":"https://api.github.com/repos/mediachain/aleph/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mediachain/aleph/labels{/name}","releases_url":"https://api.github.com/repos/mediachain/aleph/releases{/id}","deployments_url":"https://api.github.com/repos/mediachain/aleph/deployments","created_at":"2016-08-30T21:01:45Z","updated_at":"2016-08-30T21:01:45Z","pushed_at":"2016-09-19T20:38:39Z","git_url":"git://github.com/mediachain/aleph.git","ssh_url":"git@github.com:mediachain/aleph.git","clone_url":"https://github.com/mediachain/aleph.git","svn_url":"https://github.com/mediachain/aleph","homepage":null,"size":24,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":12,"forks":0,"open_issues":12,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mediachain/aleph/pulls/12"},"html":{"href":"https://github.com/mediachain/aleph/pull/12"},"issue":{"href":"https://api.github.com/repos/mediachain/aleph/issues/12"},"comments":{"href":"https://api.github.com/repos/mediachain/aleph/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/mediachain/aleph/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/mediachain/aleph/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mediachain/aleph/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/mediachain/aleph/statuses/a387401126880fd23fe7b7c2f644ce6161aef51f"}}}}
{"actor":{"display_login":"parkan"}}